/* OceanGateSoftware — shared shell styles
   Matches index-v3.html visual language: light palette, Space Grotesk + Inter + JetBrains Mono + Instrument Serif,
   indigo→violet→cyan gradient, glass cards, radial mesh backdrop. */

:root {
  --bg: #F5F6FB;
  --bg-2: #EBEEF7;
  --bg-3: #FFFFFF;
  --fg: #0A1028;
  --fg-2: #232A47;
  --muted: #5C6487;
  --muted-2: #8D94AE;
  --border: rgba(10,16,40,0.08);
  --border-2: rgba(10,16,40,0.14);
  --ink: #0A1028;
  --accent: #4F46E5;
  --accent-2: #7C3AED;
  --cyan: #06B6D4;
  --mint: #10B981;
  --amber: #F59E0B;
  --pink: #E11D74;
  --grad: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #06B6D4 100%);
  --grad-warm: linear-gradient(135deg, #F59E0B 0%, #E11D74 100%);
  --grad-text: linear-gradient(100deg, #4F46E5 0%, #7C3AED 40%, #06B6D4 75%, #4F46E5 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--fg);
  line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Backdrop */
.mesh {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 10% 8%, rgba(79,70,229,0.18), transparent 45%),
    radial-gradient(ellipse at 90% 14%, rgba(6,182,212,0.22), transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(124,58,237,0.12), transparent 55%),
    radial-gradient(ellipse at 20% 95%, rgba(245,158,11,0.15), transparent 55%),
    var(--bg);
  pointer-events: none;
}
.mesh b, .mesh i, .mesh u {
  position: absolute; border-radius: 50%;
  filter: blur(120px); display: block;
}
.mesh b { width: 520px; height: 520px; background: rgba(124,58,237,0.35); top: -100px; right: 10%; animation: drift1 26s ease-in-out infinite alternate; }
.mesh i { width: 460px; height: 460px; background: rgba(6,182,212,0.3); top: 40%; left: -100px; animation: drift2 30s ease-in-out infinite alternate; }
.mesh u { width: 420px; height: 420px; background: rgba(225,29,116,0.2); bottom: -100px; right: 20%; animation: drift3 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -80px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-100px, -120px) scale(1.12); } }

.global-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,16,40,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,16,40,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, black 0%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 75%, transparent 100%);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 28px; }

/* Nav */
nav.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,246,251,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--grad); display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: -0.02em; color: white;
  box-shadow: 0 10px 24px -8px rgba(79,70,229,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%, 30% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; color: var(--fg); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all 180ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: rgba(10,16,40,0.04); }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  white-space: nowrap; position: relative;
}
.btn-ghost { color: var(--fg); background: transparent; border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-3); transform: translateY(-2px); border-color: rgba(10,16,40,0.22); }
.btn-primary {
  color: white; background: var(--grad);
  background-size: 200% 200%;
  box-shadow: 0 10px 28px -8px rgba(79,70,229,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(79,70,229,0.65); }
.btn-lg { padding: 15px 24px; font-size: 15px; border-radius: 12px; }
.btn-xl { padding: 18px 28px; font-size: 16px; border-radius: 14px; font-weight: 700; }
.btn-amber {
  color: #1a1100;
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  box-shadow: 0 12px 32px -10px rgba(245,158,11,0.6), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(245,158,11,0.8); }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--border); color: var(--fg); align-items: center; justify-content: center; }

/* Shared typography */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.22);
  margin-bottom: 24px; font-weight: 600;
}
.kicker::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,70,229,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(79,70,229,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); }
}
h1.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  text-wrap: balance;
  color: var(--fg);
}
h1.page-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-2);
}
.grad-text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: grad-pan 8s linear infinite;
}
@keyframes grad-pan { to { background-position: 200% center; } }
.page-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
  text-wrap: pretty;
}
.page-hero { padding: 80px 0 48px; position: relative; }
.page-hero .container > .kicker { margin-bottom: 20px; }

/* Section helpers */
.section { padding: 80px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
h2.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
  text-wrap: balance;
  color: var(--fg);
}
h2.section-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--accent-2);
}
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }

/* Glass card */
.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.9); border-color: var(--border-2); box-shadow: 0 20px 50px -20px rgba(10,16,40,0.15); }

/* Placeholder chip — amber pill used across pages */
.ph-note {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.32);
  border-radius: 6px;
  font-size: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #B45309;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Mega CTA (reuse) */
.mega { padding: 60px 0 120px; }
.mega-card {
  position: relative;
  border-radius: 32px;
  padding: 90px 48px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(79,70,229,0.55), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(6,182,212,0.45), transparent 55%),
    radial-gradient(ellipse at 55% 50%, rgba(245,158,11,0.2), transparent 60%),
    linear-gradient(160deg, #0A1028 0%, #151A36 100%);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  box-shadow: 0 40px 100px -30px rgba(10,16,40,0.4);
}
.mega-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.mega-card > * { position: relative; }
.mega h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
  max-width: 820px; margin-left: auto; margin-right: auto;
  text-wrap: balance;
  color: white;
}
.mega h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: #FCD34D; }
.mega p { font-size: 17px; color: rgba(255,255,255,0.72); max-width: 540px; margin: 0 auto 32px; }
.mega-cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.mega-cta-row .btn-ghost { color: white; border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }
.mega-cta-row .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 72px 0 40px; position: relative; background: linear-gradient(180deg, transparent, rgba(10,16,40,0.02)); }
.foot-giant {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(60px, 14vw, 200px);
  letter-spacing: -0.055em;
  line-height: 0.9;
  background: linear-gradient(180deg, rgba(10,16,40,0.12), transparent 85%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 56px;
  pointer-events: none;
  user-select: none;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand { max-width: 360px; }
.foot-brand p { font-size: 14px; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.foot-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.foot-contact a { color: var(--muted); text-decoration: none; transition: color 180ms ease; }
.foot-contact a:hover { color: var(--accent); }
.foot-contact .fc-loc { color: var(--muted-2); }
.foot-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 18px; letter-spacing: -0.01em; text-transform: uppercase; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 180ms ease; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-2); gap: 16px; flex-wrap: wrap; }
.foot-bottom .foot-links { display: flex; gap: 22px; }
.foot-bottom a { color: var(--muted-2); text-decoration: none; }
.foot-bottom a:hover { color: var(--muted); }
.foot-status { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #047857; }
.foot-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2s infinite; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: inline-flex; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: 13px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; max-width: none; }
  .mega-card { padding: 60px 24px; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
