/* ============================================================
   STRATONIQ — Landing Page
   Design tokens sourced from Design.md (Strategic Technical Excellence)
   ============================================================ */

:root {
  /* --- Surfaces (tonal layering: lighter = elevated) --- */
  --surface: #11131c;
  --surface-lowest: #0c0e17;
  --surface-low: #1a1b25;
  --surface-container: #1e1f29;
  --surface-high: #282934;
  --surface-highest: #33343f;

  /* --- Text --- */
  --on-surface: #e2e1ef;
  --on-surface-variant: #cdc3d6;
  --muted: #9494a1;

  /* --- Brand --- */
  --primary: #d6baff;          /* light purple — accents / text on dark */
  --primary-container: #611bb8; /* Stratoniq Purple — CTAs */
  --primary-hover: #6f24cf;
  --inverse-primary: #7739ce;
  --on-primary: #ffffff;

  /* --- Lines --- */
  --outline: #968d9f;
  --outline-variant: #4b4454;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* --- Radii --- */
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* --- Layout --- */
  --container: 1280px;
  --gutter: 24px;
  --margin: 32px;

  /* --- Type --- */
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--primary-container); color: #fff; }

/* ---------------- Layout helpers ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section { padding-block: 120px; position: relative; }
.section--alt { background: var(--surface-lowest); border-block: 1px solid var(--border); }

.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------------- Typography primitives ---------------- */
/* Eyebrow = Status Pill (Design.md › Components › Status Pills):
   a tactile, bordered chip on an elevated surface with a leading
   "live" status dot — a system-status indicator, not just a label. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  line-height: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface-low);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(118, 57, 206, 0.22),
              0 0 10px rgba(214, 186, 255, 0.55);
  animation: eyebrow-pulse 2.4s var(--ease) infinite;
}
@keyframes eyebrow-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(118, 57, 206, 0.22),
                         0 0 10px rgba(214, 186, 255, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(118, 57, 206, 0.10),
                         0 0 14px rgba(214, 186, 255, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section__lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 620px;
}
.section__head--center .section__lead { margin-inline: auto; }

.section__note {
  margin-top: 56px;
  max-width: 720px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.accent { color: var(--primary); }

/* ---------------- Brand logo ---------------- */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; display: block; }
.brand__logo--footer { height: 28px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 15px; }

.btn--primary {
  background: var(--primary-container);
  color: var(--on-primary);
  box-shadow: 0 0 0 0 rgba(97, 27, 184, 0);
}
.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(97, 27, 184, 0.6);
}

.btn--secondary {
  background: transparent;
  color: var(--on-surface);
  border-color: var(--border-strong);
}
.btn--secondary:hover { border-color: var(--on-surface); background: rgba(255,255,255,0.04); }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-size: 14px;
}
.btn--ghost:hover { color: #fff; }

/* ---------------- Cards (shared) ---------------- */
.card {
  position: relative;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .25s var(--ease), background .25s var(--ease),
              transform .25s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-container);
  transform: translateY(-3px);
}

/* Gradient-border treatment — premium surfaces.
   A 1px ring drawn with a masked pseudo-element so it follows the radius.
   Subtle by default, brighter on hover. */
.grad-border::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.04) 36%,
    rgba(118, 57, 206, 0.28) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  transition: opacity .3s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.card:hover::before { opacity: 1; }

/* Always-on, richer ring for the most premium tiles */
.solution--cta::before {
  opacity: 1;
  background: linear-gradient(
    140deg,
    rgba(214, 186, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(97, 27, 184, 0.55) 100%
  );
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(12, 14, 23, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__links {
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: color .2s;
  position: relative;
}
.nav__links a:hover { color: var(--on-surface); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--primary-container);
  transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 16px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 99;
  background: rgba(12, 14, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--margin) 28px;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .25s;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--on-surface-variant);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border: none; margin-top: 14px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(80px, 12vh, 150px);
  padding-bottom: 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute;
  inset: -1px;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 35%, transparent 78%);
}
.hero__glow {
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 920px;
  height: 620px;
  max-width: 120vw;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(97, 27, 184, 0.32), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { text-align: center; max-width: 940px; margin-inline: auto; }
.hero .eyebrow { justify-content: center; }

.hero__title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__title .accent {
  display: block;
  background: linear-gradient(180deg, #efe3ff 0%, #d6baff 60%, #b58bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin: 28px auto 0;
  max-width: 640px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__capabilities {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__capabilities .dot {
  width: 4px; height: 4px;
  border-radius: var(--r-full);
  background: var(--outline-variant);
}
.hero__support {
  margin-top: 80px;
  max-width: 760px;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   SECTION 2 — STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.stat { padding: 40px 36px; }
.stat__num {
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #c8aef5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 18px;
  color: var(--on-surface-variant);
  font-size: 15px;
  max-width: 220px;
}

/* ============================================================
   SECTION 3 — CONNECTOR DIAGRAM
   ============================================================ */
.connector {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 12px auto 56px;
  max-width: 980px;
}
.connector__node {
  position: relative;
  flex: 1;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 132px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.connector__node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg,
    rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.03) 40%, rgba(118,57,206,0.24) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.connector__node:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.connector__node:hover::before { opacity: 1; }
.connector__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.connector__name { font-weight: 600; font-size: 16px; line-height: 1.3; }

.connector__node--hero {
  background: linear-gradient(180deg, rgba(97,27,184,0.22), rgba(97,27,184,0.06));
  border-color: var(--inverse-primary);
  box-shadow: 0 0 40px -10px rgba(97, 27, 184, 0.55);
  flex: 1.15;
}
.connector__node--hero .connector__tag { color: var(--primary); }
.connector__node--hero .connector__name { color: #fff; }
.connector__node--hero::before {
  opacity: 1;
  background: linear-gradient(140deg,
    rgba(214,186,255,0.7) 0%, rgba(118,57,206,0.25) 45%, rgba(97,27,184,0.7) 100%);
}

.connector__link {
  align-self: center;
  width: 36px;
  height: 1.5px;
  background: linear-gradient(to right, var(--outline-variant), var(--inverse-primary));
  flex: 0 0 auto;
  position: relative;
}
.connector__link::before,
.connector__link::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: var(--r-full);
  background: var(--inverse-primary);
  transform: translateY(-50%);
}
.connector__link::before { left: -3px; }
.connector__link::after { right: -3px; }

.connector__copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 860px;
  margin-inline: auto;
}
.connector__copy p { color: var(--on-surface-variant); font-size: 17px; line-height: 1.65; }

/* ============================================================
   SECTION 4 — SOLUTIONS
   ============================================================ */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.solution {
  position: relative;
  padding: 32px 30px 34px;
  display: flex;
  flex-direction: column;
}
.solution__index {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--outline-variant);
}
.solution__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(97, 27, 184, 0.12);
  border: 1px solid rgba(118, 57, 206, 0.35);
  color: var(--primary);
  margin-bottom: 22px;
}
.solution__icon svg { width: 24px; height: 24px; }
.solution__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.solution__desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.solution__list {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.solution__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--on-surface-variant);
}
.solution__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border: 1.5px solid var(--inverse-primary);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* closing CTA tile */
.solution--cta {
  justify-content: center;
  background: linear-gradient(160deg, rgba(97,27,184,0.16), var(--surface-low));
  border-color: rgba(118, 57, 206, 0.4);
}
.solution--cta .solution__title { font-size: 22px; line-height: 1.25; }
.solution__cta-link { margin-top: 20px; font-weight: 600; }

/* ============================================================
   SECTION 5 — ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about__body { display: flex; flex-direction: column; gap: 22px; }
.about__body p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: var(--on-surface-variant);
}
.about__body p:first-child { color: var(--on-surface); font-weight: 500; }

/* ============================================================
   SECTION 6 — WHY STRATONIQ
   ============================================================ */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.why__card { padding: 32px 28px; }
.why__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 24px;
}
.why__icon svg { width: 32px; height: 32px; }
.why__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.why__desc { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ============================================================
   SECTION 7 — FINAL CTA
   ============================================================ */
.cta {
  position: relative;
  padding-block: 140px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--surface-lowest);
}
.cta__glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 700px;
  max-width: 130vw;
  background: radial-gradient(ellipse at center, rgba(97, 27, 184, 0.30), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 820px; margin-inline: auto; }
.cta .eyebrow { justify-content: center; }
.cta__title {
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.cta__sub {
  margin: 26px auto 40px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* ---- Contact form ---- */
.contact {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact__hp { position: absolute; left: -9999px; opacity: 0; } /* honeypot */

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  background: var(--surface-lowest);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 15px;
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--outline-variant); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(97, 27, 184, 0.25);
}

.contact__submit { margin-top: 4px; width: 100%; }

.contact__status {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  margin: 0;
}
.contact__status.is-error { color: var(--error); }
.contact__status.is-success { color: #7ee0b0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 72px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__tag {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  max-width: 320px;
  line-height: 1.6;
}
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer__col a { font-size: 14.5px; color: var(--on-surface-variant); transition: color .2s; }
.footer__col a:hover { color: var(--on-surface); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--on-surface); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --margin: 24px; }
  .section { padding-block: 96px; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .solutions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 32px 28px; }

  .connector { flex-direction: column; align-items: stretch; gap: 0; max-width: 420px; }
  .connector__link { width: 1.5px; height: 28px; background: linear-gradient(to bottom, var(--outline-variant), var(--inverse-primary)); margin-block: 2px; }
  .connector__link::before { left: 50%; top: -3px; transform: translateX(-50%); }
  .connector__link::after { right: auto; left: 50%; top: auto; bottom: -3px; transform: translateX(-50%); }
  .connector__node--hero { flex: 1; }
  .connector__copy { grid-template-columns: 1fr; gap: 20px; }

  .about { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  :root { --margin: 18px; }
  .section { padding-block: 80px; }
  .section__head { margin-bottom: 44px; }
  .solutions { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* ============================================================
   LEGAL PAGES (Privacy, Terms, etc.)
   ============================================================ */

/* ---- Hero header (mirrors the homepage hero treatment) ---- */
.legal-hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 190px);
  padding-bottom: 64px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
.legal-hero__grid {
  position: absolute;
  inset: -1px;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 80% at 30% 0%, #000 30%, transparent 75%);
}
.legal-hero__glow {
  position: absolute;
  top: -30%;
  left: 20%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  max-width: 120vw;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(97, 27, 184, 0.28), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.legal-hero__inner { max-width: 820px; }
.legal-hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.legal-hero__title .accent {
  background: linear-gradient(180deg, #efe3ff 0%, #d6baff 60%, #b58bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-hero__sub {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.legal-hero__meta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.legal-hero__tag {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Body ---- */
.legal { padding-block: 64px 120px; }

.legal__placeholder {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--primary);
  background: rgba(97, 27, 184, 0.20);
  border: 1px solid rgba(214, 186, 255, 0.25);
  padding: 1px 7px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

/* Editing-note callout */
.legal__notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 56px;
  padding: 18px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface-low);
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.legal__notice p { margin: 0; }
.legal__notice-pill {
  flex: none;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(97, 27, 184, 0.22);
  border: 1px solid rgba(214, 186, 255, 0.25);
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* ---- Two-column layout: sticky TOC + content panel ---- */
.legal__layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 48px;
  align-items: start;
}

.legal__toc { position: sticky; top: 100px; }
.legal__toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.legal__toc nav { display: flex; flex-direction: column; gap: 2px; }
.legal__toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 12px;
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--on-surface-variant);
  border-left: 2px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.legal__toc a:hover {
  color: var(--on-surface);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--primary-container);
}
.legal__toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  opacity: 0.85;
}

/* Content panel — premium bordered surface with gradient ring */
.legal__panel {
  position: relative;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
}

.legal__block { scroll-margin-top: 100px; }
.legal__block + .legal__block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.legal__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}
.legal__block h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.legal__block h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal__block p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--on-surface-variant);
}
.legal__block p:last-child { margin-bottom: 0; }
.legal__block ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 0;
}
.legal__block li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.65;
  color: var(--on-surface-variant);
}
.legal__block li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(97, 27, 184, 0.18);
}
.legal__block a { color: var(--primary); text-decoration: underline; }
.legal__block a:hover { color: var(--on-surface); }

.legal__back { margin-top: 56px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .legal__layout { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; }
  .legal__toc-inner {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface-low);
    padding: 20px 18px;
  }
  .legal__toc nav {
    flex-flow: row wrap;
    gap: 6px;
  }
  .legal__toc a { border-left: none; padding: 6px 10px; }
  .legal__toc a:hover { border-left: none; }
}
