/* =========================================================================
   Coelion — landing page (Nav + Hero)
   Hand-authored HTML5 / CSS / vanilla JS. Pixel-matched to Figma frames
   336:486 (Nav Bar) + 359:2 (Hero). Values measured from the design.
   Responsive + WCAG 2.1 AA.
   ========================================================================= */

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Surfaces (measured: nav + hero base = rgb(11,18,32)) */
  --bg:            #0B1220;   /* page / nav / hero base */
  --bg-deep:       #0A0C1F;   /* footer (brand Obsidian Navy) */
  --eyebrow-bg:    #0E142D;   /* eyebrow pill fill */
  --ghost-bg:      rgba(17, 24, 39, 0.5);

  /* Brand indigo (measured primary = rgb(52,54,207)) */
  --primary:       #3436CF;
  --primary-hover: #4144DD;
  --lavender:      #B8A9FF;
  --deep-violet:   #3B2FB8;
  --glow:          rgba(52, 54, 207, 0.40);   /* hero radial glow (#3436CF) */
  --glow-soft:     rgba(52, 54, 207, 0.24);
  --cta-glow:      rgba(124, 58, 237, 0.30);  /* primary CTA outer glow */
  --eyebrow-glow:  rgba(124, 58, 237, 0.15);

  /* Text */
  --text:          #FFFFFF;
  --text-wordmark: #F2F2F2;
  --text-muted:    #94A3B8;   /* subhead — 7.46:1 on --bg */
  --text-nav:      #758397;   /* inactive nav links — 4.95:1 on --bg */

  /* Lines */
  --grid-line:     rgba(63, 63, 78, 0.55);    /* #3F3F4E */
  --hairline:      rgba(255, 255, 255, 0.08);
  --ghost-border:  #E2E8F0;

  /* Geometry */
  --container:     1280px;
  --gutter:        clamp(20px, 4vw, 40px);
  --radius:        8px;
  --header-h:      80px;

  /* Type */
  --font-display:  "Space Grotesk", system-ui, sans-serif;
  --font-body:     "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Reset / base (mirrors figma_html/layout.py base_css) ───────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:where(h1) { font-weight: 700; }

/* ── Layout primitives ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.full-bleed { width: 100%; }

/* Skip link (a11y) */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 1100;
  padding: 0.6rem 1rem; border-radius: 6px;
  background: #fff; color: var(--bg);
  font-weight: 600;
}

/* Focus ring — visible, keyboard-only */
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost {
  background: var(--ghost-bg);
  color: #fff;
  border-color: var(--ghost-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(17, 24, 39, 0.72); }
.btn:active { transform: translateY(1px); }

.btn-lg { font-size: 16px; padding: 19px 33px; }     /* hero CTAs → 58px tall */
.btn-primary.btn-lg { box-shadow: 0 0 20px var(--cta-glow); }

/* =========================================================================
   Header / navigation  (Figma 336:486)
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand-name {
  font-family: var(--font-body);          /* Inter Bold — per Figma (node 336:491) */
  font-weight: 700;
  font-size: clamp(20px, calc(1.1rem + 0.5vw), 24px);
  line-height: 1;
  letter-spacing: -0.6px;
  color: var(--text-wordmark);
}

/* Collapsible region — transparent wrapper on desktop, panel on mobile */
.nav-collapse { display: contents; }

.nav > nav[aria-label="Primary"] {       /* centered link group on desktop */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-nav);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }

.nav-cta { margin-left: auto; font-size: 14px; padding: 10px 20px; }  /* → 40px tall */

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle-bars { position: relative; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: background-color 0.2s ease; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }
.site-header.nav-open .nav-toggle-bars { background: transparent; }
.site-header.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero  (Figma 359:2)
   ========================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(72px, 12vw, 207px) clamp(72px, 11vw, 170px);
}
.hero .container { position: relative; z-index: 1; }

/* Decorative backdrop: 46px grid (top, fading) + indigo radial glow */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {            /* grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 16%, transparent 52%);
          mask-image: linear-gradient(to bottom, #000 0, #000 16%, transparent 52%);
}
.hero-bg::after {             /* glow */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 47% -70px, var(--glow), transparent 62%),
    radial-gradient(620px 360px at 78% 40%, var(--glow-soft), transparent 60%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Eyebrow pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--eyebrow-bg);
  box-shadow: 0 0 15px var(--eyebrow-glow);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
}
.eyebrow-icon { color: var(--lavender); flex: none; }

/* Headline */
.hero-title {
  margin-top: clamp(20px, 2.4vw, 28px);
  max-width: 1074px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, calc(1.37rem + 3.91vw), 72px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
}

/* Sub-headline */
.hero-subtitle {
  margin-top: clamp(18px, 2.4vw, 30px);
  max-width: 754px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, calc(0.9rem + 0.6vw), 20px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* CTA row */
.hero-actions {
  margin-top: clamp(32px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* =========================================================================
   Comparison — Legacy vs Modern  (Figma 336:716)
   ========================================================================= */
.compare {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(64px, 9vw, 92px);
}
.compare .container { position: relative; z-index: 1; }

/* top-left indigo glow blob (336:799) */
.compare-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.compare-bg::before {
  content: "";
  position: absolute;
  left: -150px; top: -120px;
  width: 520px; height: 450px;
  border-radius: 50%;
  background: rgba(52, 54, 207, 0.18);
  filter: blur(60px);
}

.compare-head { max-width: 880px; margin-inline: auto; text-align: center; }
.compare-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, calc(1.4rem + 2.3vw), 48px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #fff;
}
.compare-sub {
  margin-top: clamp(16px, 2.2vw, 24px);
  max-width: 820px;
  margin-inline: auto;
  font-family: var(--font-body);
  font-size: clamp(16px, calc(0.95rem + 0.4vw), 20px);
  line-height: 1.5;
  color: var(--text-muted);
}

/* unified two-up panel: rounded outer corners, square inner seam */
.compare-panel {
  margin: clamp(36px, 5vw, 60px) auto 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 8px;
  overflow: hidden;
}
.compare-card { padding: clamp(28px, 4vw, 64px); }
.compare-card--legacy {
  background: rgba(4, 6, 11, 0.4);
  box-shadow: inset -1px 0 0 rgba(59, 130, 246, 0.16);   /* centre seam */
}
.compare-card--modern {
  background:
    radial-gradient(120% 92% at 100% 0%, rgba(39, 126, 255, 0.16), transparent 60%),
    linear-gradient(145deg, #0C162D 0%, #070B16 100%);
}
.compare-card-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(20px, calc(1.05rem + 0.5vw), 24px);
  line-height: 1.3;
  letter-spacing: -0.7px;
  color: #fff;
}

.compare-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.compare-item { display: flex; align-items: center; gap: 16px; }
.compare-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.45px;
}
.compare-card--legacy .compare-label { color: #8B99AD; }
.compare-card--modern .compare-label { color: rgba(255, 255, 255, 0.9); }

.compare-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.compare-badge img { width: 14px; height: 14px; }
.compare-badge--bad {
  background: rgba(251, 44, 54, 0.05);
  border-color: rgba(251, 44, 54, 0.2);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}
.compare-badge--good {
  background: rgba(0, 188, 125, 0.1);
  border-color: rgba(0, 188, 125, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

/* stack the two cards on narrow screens */
@media (max-width: 720px) {
  .compare-panel {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 16px;
    border-radius: 0;
    overflow: visible;
  }
  .compare-card { border-radius: 8px; }
  .compare-card--legacy { box-shadow: none; }
}

/* =========================================================================
   Vertical Integration of Enterprise Layers  (Figma 359:3)
   ========================================================================= */
.vint {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(64px, 9vw, 100px);
}
.vint .container { position: relative; z-index: 1; }

.vint-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.vint-bg::before {                                   /* top-left indigo blob (336:234) */
  content: "";
  position: absolute;
  left: -120px; top: -80px;
  width: 512px; height: 444px;
  border-radius: 50%;
  background: rgba(52, 54, 207, 0.16);
  filter: blur(70px);
}
.vint-bg::after {                                    /* soft glow behind the diagram */
  content: "";
  position: absolute;
  right: 4%; top: 50%; transform: translateY(-50%);
  width: 680px; height: 680px; max-width: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 54, 207, 0.16), transparent 65%);
}

.vint-grid {
  display: grid;
  grid-template-columns: minmax(300px, 500px) 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.vint-copy { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.vint-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, calc(1.4rem + 2.3vw), 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
}
.vint-text { display: flex; flex-direction: column; gap: 8px; max-width: 457px; }
.vint-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, calc(0.95rem + 0.2vw), 18px);
  line-height: 1.56;
  color: var(--text-muted);
}
.vint-figure { display: flex; justify-content: center; }
.vint-diagram { width: 100%; max-width: 593px; height: auto; }

/* stack on narrow screens */
@media (max-width: 860px) {
  .vint-grid { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 48px); }
  .vint-copy { text-align: center; align-items: center; }
  .vint-text { text-align: center; }
  .vint-bg::after { right: 50%; transform: translate(50%, -50%); }
}

/* =========================================================================
   Sovereign Deployment  (Figma 359:4)
   ========================================================================= */
.sov {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(64px, 9vw, 96px);
}
.sov .container { position: relative; z-index: 1; }

.sov-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sov-bg::before {                            /* 46px grid in the lower band (336:8) */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 42%, #000 70%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 42%, #000 70%, #000 92%, transparent 100%);
}
.sov-bg::after {                             /* top-centre glow (336:686) */
  content: "";
  position: absolute;
  left: 50%; top: 4%; transform: translateX(-50%);
  width: 520px; height: 300px; max-width: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 54, 207, 0.14), transparent 65%);
}

.sov-head { max-width: 1084px; margin-inline: auto; text-align: center; }
.sov-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, calc(1.3rem + 2.4vw), 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
}
.sov-sub {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 1084px;
  margin-inline: auto;
  font-family: var(--font-body);
  font-size: clamp(16px, calc(0.95rem + 0.4vw), 18px);
  line-height: 1.55;
  color: var(--text-muted);
}

.sov-cards {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px 40px;
}
.sov-card {
  flex: 1 1 220px;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background-color: rgba(11, 18, 33, 0.9);
  background-image: linear-gradient(152deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.sov-card:nth-child(even) { margin-top: 28px; }   /* staggered row */
.sov-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1.2px solid rgba(52, 54, 207, 0.2);
}
.sov-icon img { width: 22px; height: 22px; }
.sov-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sov-card-title { font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1.5; color: #fff; white-space: nowrap; }
.sov-card-desc { font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.25; color: #8B99AD; }

@media (max-width: 880px) {
  .sov-cards { gap: 16px; }
  .sov-card { flex-basis: 260px; }
  .sov-card:nth-child(even) { margin-top: 0; }     /* drop stagger when wrapping */
}

/* =========================================================================
   Capabilities — Everything Required to Govern Enterprise AI  (Figma 336:589)
   ========================================================================= */
.cap {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(64px, 9vw, 100px);
}
.cap-head { max-width: 1080px; margin-inline: auto; text-align: center; }
.cap-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, calc(1.3rem + 2.4vw), 48px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #fff;
}
.cap-sub {
  margin-top: clamp(16px, 2vw, 24px);
  margin-inline: auto;
  max-width: 900px;
  font-family: var(--font-body);
  font-size: clamp(16px, calc(0.95rem + 0.4vw), 20px);
  line-height: 1.5;
  color: var(--text-muted);
}

.cap-cards {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 1014px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 36px;
  min-height: 320px;
  border: 1px solid #1A3264;
  border-radius: 8px;
  background: #091327;
}
.cap-card--featured { background: #0C182F; border-color: #274481; }
.cap-card--accent   { background: #050C1B; border-color: #15264A; }
.cap-card > * { position: relative; z-index: 1; }

.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #15223A;
  border: 1px solid #1C2B4B;
}
.cap-icon img { width: 22px; height: 22px; }
.cap-card-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: #fff;
}
.cap-card-desc {
  margin-top: 12px;
  max-width: 235px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  color: #C5C6CE;
}

/* card 1 — faint ripple texture (approximation of 336:600) */
.cap-card--featured::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 32% 78%, rgba(91, 79, 233, 0.07) 0 1px, transparent 1px 17px);
  -webkit-mask-image: radial-gradient(circle at 32% 78%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 32% 78%, #000, transparent 72%);
}
/* card 3 — decorative accent squares (336:610 / 336:611) */
.cap-card--accent::before {
  content: "";
  position: absolute; right: 49px; bottom: 1px; z-index: 0;
  width: 82px; height: 58px; border-radius: 2px;
  background: rgba(52, 54, 207, 0.2);
}
.cap-card--accent::after {
  content: "";
  position: absolute; right: 17px; bottom: 54px; z-index: 0;
  width: 24px; height: 24px; border-radius: 2px;
  background: rgba(124, 58, 237, 0.6);
}

@media (max-width: 860px) {
  .cap-cards { grid-template-columns: 1fr; max-width: 460px; }
  .cap-card { min-height: 0; }
  .cap-card-desc { max-width: none; }
}

/* =========================================================================
   Audiences — Built for Enterprise IT and Security Teams  (Figma 336:687)
   ========================================================================= */
.aud {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(64px, 9vw, 96px);
}
.aud-head { max-width: 1100px; margin-inline: auto; text-align: center; }
.aud-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, calc(1.3rem + 2.4vw), 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
}
.aud-sub {
  margin-top: clamp(16px, 2vw, 24px);
  margin-inline: auto;
  max-width: 720px;
  font-family: var(--font-body);
  font-size: clamp(16px, calc(0.95rem + 0.4vw), 20px);
  line-height: 1.4;
  color: var(--text-muted);
}
.aud-tags {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 900px;   /* holds 4 pills on row 1, 3 on row 2 (matches Figma) */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.aud-tag {
  padding: 15px 29px;
  border-radius: 50px;
  background: #0E142D;
  border: 1px solid #3436CF;
  box-shadow: 0 0 7.5px rgba(124, 58, 237, 0.15);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .aud-tags { gap: 12px; }
}

/* =========================================================================
   Our Team  (Figma 359:5)
   ========================================================================= */
.team {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(64px, 9vw, 96px);
}
.team .container { position: relative; z-index: 1; }
.team-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.team-bg::before {                              /* wide lavender glow (336:854) */
  content: "";
  position: absolute;
  left: 50%; top: 56%; transform: translate(-50%, -50%);
  width: 1039px; max-width: 82%; height: 402px;
  border-radius: 50%;
  background: rgba(52, 54, 207, 0.15);
  filter: blur(60px);
}

.team-head { max-width: 1080px; margin-inline: auto; text-align: center; }
.team-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, calc(1.3rem + 2.4vw), 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
}
.team-sub {
  margin-top: clamp(16px, 2vw, 24px);
  margin-inline: auto;
  max-width: 820px;
  font-family: var(--font-body);
  font-size: clamp(16px, calc(0.95rem + 0.4vw), 20px);
  line-height: 1.4;
  color: var(--text-muted);
}

.team-grid {
  margin: clamp(44px, 6vw, 72px) auto 0;
  max-width: 1080px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(40px, 5vw, 56px) clamp(48px, 6vw, 80px);
}
.team-card {
  width: clamp(180px, 22vw, 240px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team-avatar {
  width: clamp(150px, 18vw, 207px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}
.team-info { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, calc(1.1rem + 0.9vw), 28px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
}
.team-role { color: #5B4FE9; }   /* Figma #3E40DF is 2.74:1 (fails AA); brand Electric Indigo passes */
.team-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.56px;
  color: var(--text-muted);
}

/* =========================================================================
   Contact — Want to learn more?  (Figma 336:814)
   ========================================================================= */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(64px, 9vw, 96px);
}
.contact .container { position: relative; z-index: 1; }
.contact-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.contact-bg::before {
  content: "";
  position: absolute;
  left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 977px; max-width: 76%; height: 560px;
  border-radius: 50%;
  background: rgba(52, 54, 207, 0.12);
  filter: blur(60px);
}

.contact-head { max-width: 900px; margin-inline: auto; text-align: center; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, calc(1.4rem + 2.3vw), 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
}
.contact-sub {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: clamp(16px, calc(0.95rem + 0.4vw), 20px);
  line-height: 1.4;
  color: var(--text-muted);
}

.contact-card {
  position: relative;
  max-width: 822px;
  margin: clamp(36px, 5vw, 48px) auto 0;
  padding: clamp(24px, 5vw, 48px);
  background: rgba(15, 17, 21, 0.3);
  border: 1px solid rgba(4, 6, 11, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* signature corner brackets */
.contact-corner { position: absolute; width: 14px; height: 14px; border: 0 solid #1A62FF; pointer-events: none; }
.contact-corner--tl { top: -1px; left: -1px;  border-top-width: 1px; border-left-width: 1px; }
.contact-corner--tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.contact-corner--bl { bottom: -1px; left: -1px;  border-bottom-width: 1px; border-left-width: 1px; }
.contact-corner--br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #808080;
}
.contact-input {
  width: 100%;
  padding: 0 0 9px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #1F1F1F;
  border-radius: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}
.contact-textarea {
  width: 100%;
  min-height: 128px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid #1F1F1F;
  border-radius: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
.contact-input::placeholder, .contact-textarea::placeholder { color: #808080; }
.contact-input:focus-visible, .contact-textarea:focus-visible { border-color: #5B4FE9; }
.contact-submit { width: 100%; margin-top: 8px; padding: 18px; font-size: 16px; box-shadow: 0 0 10px rgba(124, 58, 237, 0.3); }
.contact-status {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 6px;
  background: rgba(0, 188, 125, 0.1);
  border: 1px solid rgba(0, 188, 125, 0.3);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
}

/* =========================================================================
   Footer  (minimal scaffold)
   ========================================================================= */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.footer-inner .brand { margin-right: 0; }
.footer-inner .brand-mark { width: 22px; height: 22px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--text-nav);
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: #fff; }
.footer-copy { font-family: var(--font-body); font-size: 13px; color: var(--text-nav); }

/* =========================================================================
   Responsive
   ========================================================================= */

/* Tablet — slightly tighter container */
@media (max-width: 1024px) {
  :root { --container: 960px; }
}

/* Mobile — hamburger nav, single-column hero, stacked CTAs */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav { gap: 12px; }
  .nav-toggle { display: inline-flex; }

  /* collapsible region becomes a dropdown panel */
  .nav-collapse {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px clamp(20px, 5vw, 40px) 24px;
    background: var(--bg);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }
  .site-header:not(.nav-open) .nav-collapse { display: none; }

  .nav > nav[aria-label="Primary"] { position: static; transform: none; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { display: block; padding: 12px 8px; font-size: 16px; border-radius: 6px; }
  .nav-cta { margin: 8px 0 0; padding: 14px 20px; font-size: 15px; text-align: center; }
}

/* Stack hero CTAs full-width on the smallest screens */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-inline: auto; }
  .hero-actions .btn { width: 100%; }
}

/* ── Motion / preference guards ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
