/* ============================================================
   LINGOPIPELINE — GLOBAL STYLES SCAFFOLD
   Aesthetic: Cyber-Linguist Tech Utility
   ============================================================ */

/* ── 0. SELF-HOSTED FONTS — Inter (no third-party / GDPR-safe) ─ */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/inter-900.woff2") format("woff2"); }

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg: #000;
  --surface: #0b0d14;
  --text: #fff;
  --text-dim: #aab2c5;
  --magenta: #ff2ec4;
  --cyan: #22e3ff;
  --accent-gradient: linear-gradient(100deg, var(--magenta), var(--cyan));
  --glow: 0 0 24px rgba(255, 46, 196, 0.55), 0 0 48px rgba(34, 227, 255, 0.35);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing scale (8-pt base) */
  --space-1: 0.5rem;   /*  8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */
  --space-8: 8rem;     /* 128px */
}

/* ── 2. MODERN RESET ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

/* ── 3. BASE TYPOGRAPHY ───────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x already set in reset above */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-dim);
  max-width: 66ch;
}

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

section {
  padding-block: var(--space-7);
}

/* ── 5. REUSABLE COMPONENTS ───────────────────────────────── */

/* Button base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: box-shadow 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

/* Glowing gradient CTA */
.btn--glow {
  background-image: var(--accent-gradient);
  color: var(--text);
  border: none;
  box-shadow: var(--glow);
}

.btn--glow:hover,
.btn--glow:focus-visible {
  box-shadow:
    0 0 36px rgba(255, 46, 196, 0.75),
    0 0 64px rgba(34, 227, 255, 0.55);
  transform: translateY(-2px);
}

.btn--glow:active {
  transform: translateY(0);
}

/* Gradient text clip */
.gradient-text {
  background-image: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-image: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
}

/* Visually hidden (a11y) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 6. FOCUS STYLES ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ── 7. SITE HEADER ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* position:relative ensures mobile nav (position:absolute) stays
     within the header as its containing block */
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-2);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.site-header__prism {
  flex-shrink: 0;
}

.site-header__nav {
  flex: 1;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
  color: var(--text);
}

.site-header__cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile menu toggle (hidden on desktop) */
.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: var(--space-1);
  color: var(--text);
  margin-left: auto;
}

.site-header__menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X when nav is open */
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 8. SITE FOOTER ───────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-6);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

.site-footer__logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer__tagline {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: var(--space-1);
  max-width: none;
}

.site-footer__nav-list {
  display: flex;
  gap: var(--space-3);
}

.site-footer__nav-link {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.site-footer__nav-link:hover,
.site-footer__nav-link:focus-visible {
  color: var(--text);
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: right;
  max-width: none;
}

/* ── 9. SCROLL-REVEAL MECHANISM ───────────────────────────── */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ── 10. REDUCED MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ── 11. RESPONSIVE — MOBILE NAV ──────────────────────────── */
@media (max-width: 820px) {
  .site-header__menu-toggle {
    display: flex;
  }

  .site-header__cta {
    display: none;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-3) var(--space-4);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.3s ease;
    pointer-events: none;
  }

  .site-header__nav.is-open {
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
  }

  .site-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .site-header__nav-link {
    font-size: 1.125rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__nav-list {
    justify-content: center;
  }

  .site-footer__copy {
    text-align: center;
  }
}

/* ── SECTION STYLE MARKERS (populated by build/sections) ─── */
/* ============================================================
   HERO SECTION — scoped to #hero / .hero
   All colors via CSS custom properties; no raw hex values.
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Ensure the section padding from the global rule still applies
     but we let flexbox do the vertical centering */
  padding-block: var(--space-8);
  background: var(--bg);
}

/* ── Full-bleed canvas (behind everything) ──────────────── */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ── Static SVG fallback ────────────────────────────────── */
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Hidden by default; shown when JS canvas is not running */
  display: none;
  opacity: 0.55;
}

/* Show fallback when JS is unavailable */
html:not(.js) .hero__fallback {
  display: block;
}

/* Show fallback (and hide canvas) when reduced-motion is on;
   the JS also hides canvas, but this CSS rule covers no-JS users
   with the preference set. */
@media (prefers-reduced-motion: reduce) {
  .hero__canvas {
    display: none;
  }

  .hero__fallback {
    display: block;
  }
}

/* ── Radial vignette for text legibility ────────────────── */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 70% 80% at 30% 50%,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(0, 0, 0, 0.08) 100%
    );
  pointer-events: none;
}

/* ── Content layer ──────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
}

/* ── H1 Heading ─────────────────────────────────────────── */
.hero__heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 18ch;
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

/* Ensure the gradient-text span inherits the correct line-height */
.hero__heading .gradient-text {
  display: inline;
}

/* ── Sub-headline ───────────────────────────────────────── */
.hero__sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

/* ── CTA row ────────────────────────────────────────────── */
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Ghost / secondary link */
.hero__ghost-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dim);
  position: relative;
  transition: color 0.2s ease;
}

.hero__ghost-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background-image: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.hero__ghost-link:hover,
.hero__ghost-link:focus-visible {
  color: var(--text);
}

.hero__ghost-link:hover::after,
.hero__ghost-link:focus-visible::after {
  transform: scaleX(1);
}

/* ── Scroll-reveal stagger for hero children ────────────── */
#hero [data-reveal]:nth-child(2) {
  transition-delay: 0.1s;
}

#hero [data-reveal]:nth-child(3) {
  transition-delay: 0.2s;
}

#hero [data-reveal]:nth-child(4) {
  transition-delay: 0.35s;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 820px) {
  #hero {
    min-height: 80vh;
    padding-block: var(--space-7);
  }

  .hero__heading {
    max-width: 100%;
  }

  .hero__sub {
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  #hero {
    min-height: 75vh;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* ============================================================
   USP SECTION — Hybrid Intelligence Positioning Pull-Quote
   Scoped entirely to #usp / .usp
   ============================================================ */

#usp {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind the quote for atmosphere */
#usp::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 50%,
      rgba(255, 46, 196, 0.06) 0%,
      rgba(34, 227, 255, 0.04) 50%,
      transparent 80%
    );
  pointer-events: none;
  /* aria-hidden is an HTML attribute; not valid in CSS — removed */
}

.usp__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

/* Decorative opening mark */
.usp__quote {
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
  max-width: 860px;
}

.usp__quote::before {
  content: "\201C";
  display: block;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.75;
  margin-bottom: var(--space-2);
  background-image: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* aria-hidden is an HTML attribute; not valid in CSS — removed */
}

.usp__quote-text {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: none;
}

/* Respect reduced motion — no additional transitions needed
   (scroll-reveal is handled globally by data-reveal + main.js) */
@media (prefers-reduced-motion: reduce) {
  #usp::before {
    display: none;
  }
}

/* Responsive: tighten padding on small screens */
@media (max-width: 640px) {
  .usp__quote-text {
    font-weight: 700;
  }
}
/* ============================================================
   PROBLEM SECTION — scoped to #problem / .problem
   ============================================================ */

/* ── Section layout ─────────────────────────────────────────── */
.problem {
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Header block ───────────────────────────────────────────── */
.problem__header {
  max-width: 680px;
  margin-bottom: var(--space-6);
}

.problem__header h2 {
  margin-bottom: var(--space-3);
  color: var(--text);
}

.problem__intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 60ch;
}

/* ── Responsive card grid ───────────────────────────────────── */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ── Individual card ────────────────────────────────────────── */
.problem__card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.problem__card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: #0f1220;
}

/* ── Card icon wrapper ──────────────────────────────────────── */
.problem__card-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.problem__card-icon svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* ── Card title ─────────────────────────────────────────────── */
.problem__card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Card body copy ─────────────────────────────────────────── */
.problem__card-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: none;
  flex: 1;
}

/* ── Stagger delay for scroll-reveal ───────────────────────────
   The global JS adds .is-visible; we just supply the delay.    */
.problem__card:nth-child(1) { transition-delay: 0ms; }
.problem__card:nth-child(2) { transition-delay: 80ms; }
.problem__card:nth-child(3) { transition-delay: 160ms; }
.problem__card:nth-child(4) { transition-delay: 240ms; }

/* ── Tablet: 2 columns ──────────────────────────────────────── */
@media (max-width: 900px) {
  .problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile: 1 column ───────────────────────────────────────── */
@media (max-width: 540px) {
  .problem__grid {
    grid-template-columns: 1fr;
  }

  .problem__card:nth-child(1),
  .problem__card:nth-child(2),
  .problem__card:nth-child(3),
  .problem__card:nth-child(4) {
    transition-delay: 0ms;
  }

  .problem__header h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
}

/* ── Reduced motion: remove stagger ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .problem__card:nth-child(n) {
    transition-delay: 0ms;
  }
}
/* ============================================================
   WORKFLOW SECTION — Lingo Pipeline
   Scope: #workflow / .workflow
   Tokens: var(--bg), var(--surface), var(--text), var(--text-dim),
           var(--magenta), var(--cyan), var(--accent-gradient),
           var(--glow), var(--radius), var(--maxw), var(--font),
           var(--space-1..8)
   ============================================================ */

/* ── Section shell ─────────────────────────────────────────── */
#workflow {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle ambient radial glow behind the whole section */
#workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(255, 46, 196, 0.055) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 40%, rgba(34, 227, 255, 0.045) 0%, transparent 70%);
  pointer-events: none;
  /* aria-hidden is an HTML attribute; not valid in CSS — removed */
}

/* ── Section header ────────────────────────────────────────── */
.workflow__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.workflow__intro {
  margin-top: var(--space-3);
  margin-inline: auto;
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 54ch;
}

/* ── Pipeline ──────────────────────────────────────────────── */
.workflow__pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: var(--space-7);
  position: relative;
}

/* ── Individual phase card ─────────────────────────────────── */
.workflow__phase {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.workflow__phase:hover,
.workflow__phase:focus-within {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Phase index badge */
.workflow__phase-index {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  opacity: 0.45;
}

/* Phase icon container */
.workflow__phase-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

/* Phase content */
.workflow__phase-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.workflow__phase-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.workflow__phase-desc {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: none;
  margin: 0;
}

/* ── Phase color variants ──────────────────────────────────── */

/* Neutral (phase 1) */
.workflow__phase--neutral .workflow__phase-icon {
  color: var(--text-dim);
}

/* Magenta (phase 2) */
.workflow__phase--magenta {
  border-color: rgba(255, 46, 196, 0.25);
}

.workflow__phase--magenta:hover,
.workflow__phase--magenta:focus-within {
  border-color: rgba(255, 46, 196, 0.5);
  box-shadow: 0 0 28px rgba(255, 46, 196, 0.18);
}

.workflow__phase-icon--magenta {
  color: var(--magenta);
  border-color: rgba(255, 46, 196, 0.3);
  background: rgba(255, 46, 196, 0.07);
  box-shadow: 0 0 18px rgba(255, 46, 196, 0.25);
  animation: workflow-pulse-magenta 3s ease-in-out infinite;
}

@keyframes workflow-pulse-magenta {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 46, 196, 0.25); }
  50%       { box-shadow: 0 0 28px rgba(255, 46, 196, 0.5), 0 0 48px rgba(255, 46, 196, 0.2); }
}

/* Cyan (phase 3) */
.workflow__phase--cyan {
  border-color: rgba(34, 227, 255, 0.2);
}

.workflow__phase--cyan:hover,
.workflow__phase--cyan:focus-within {
  border-color: rgba(34, 227, 255, 0.45);
  box-shadow: 0 0 28px rgba(34, 227, 255, 0.15);
}

.workflow__phase-icon--cyan {
  color: var(--cyan);
  border-color: rgba(34, 227, 255, 0.3);
  background: rgba(34, 227, 255, 0.06);
  box-shadow: 0 0 18px rgba(34, 227, 255, 0.2);
  animation: workflow-pulse-cyan 3s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes workflow-pulse-cyan {
  0%, 100% { box-shadow: 0 0 14px rgba(34, 227, 255, 0.2); }
  50%       { box-shadow: 0 0 28px rgba(34, 227, 255, 0.45), 0 0 48px rgba(34, 227, 255, 0.15); }
}

/* Gradient (phase 4) */
.workflow__phase--gradient {
  border-color: rgba(255, 46, 196, 0.2);
  background: linear-gradient(135deg, rgba(255, 46, 196, 0.06) 0%, rgba(34, 227, 255, 0.06) 100%);
}

.workflow__phase--gradient:hover,
.workflow__phase--gradient:focus-within {
  border-color: rgba(255, 46, 196, 0.35);
  box-shadow: var(--glow);
}

.workflow__phase-icon--gradient {
  background: linear-gradient(135deg, rgba(255, 46, 196, 0.12), rgba(34, 227, 255, 0.12));
  border-color: rgba(255, 255, 255, 0.12);
  /* Use a clipped gradient for the icon stroke color via filter approach */
  color: var(--cyan);
  animation: workflow-pulse-gradient 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes workflow-pulse-gradient {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(255, 46, 196, 0.2),
      0 0 20px rgba(34, 227, 255, 0.15);
  }
  50% {
    box-shadow:
      0 0 24px rgba(255, 46, 196, 0.45),
      0 0 40px rgba(34, 227, 255, 0.35);
  }
}

/* ── Connectors between phases ─────────────────────────────── */
.workflow__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  position: relative;
  align-self: center;
  /* Vertically center within the card area */
  margin-top: -16px; /* rough offset to visually center on icon row */
}

.workflow__connector-line {
  position: relative;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  overflow: visible;
}

.workflow__connector-line--magenta {
  background: var(--magenta);
  box-shadow: 0 0 6px rgba(255, 46, 196, 0.5);
}

.workflow__connector-line--gradient {
  background: var(--accent-gradient);
  box-shadow: 0 0 6px rgba(255, 46, 196, 0.35), 0 0 10px rgba(34, 227, 255, 0.25);
}

.workflow__connector-line--cyan {
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(34, 227, 255, 0.45);
}

.workflow__connector-glow {
  position: absolute;
  inset: -3px -6px;
  border-radius: 4px;
  animation: workflow-line-glow 2.5s ease-in-out infinite;
}

.workflow__connector-line--magenta .workflow__connector-glow {
  background: rgba(255, 46, 196, 0.15);
  animation-delay: 0.3s;
}

.workflow__connector-line--gradient .workflow__connector-glow {
  background: linear-gradient(90deg, rgba(255, 46, 196, 0.12), rgba(34, 227, 255, 0.12));
  animation-delay: 0.6s;
}

.workflow__connector-line--cyan .workflow__connector-glow {
  background: rgba(34, 227, 255, 0.12);
  animation-delay: 0.9s;
}

@keyframes workflow-line-glow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.workflow__connector-arrow {
  position: absolute;
  right: -6px;
  color: var(--text-dim);
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Features row ──────────────────────────────────────────── */
.workflow__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.workflow__feature {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.workflow__feature:hover,
.workflow__feature:focus-within {
  border-color: rgba(34, 227, 255, 0.2);
  box-shadow: 0 0 20px rgba(34, 227, 255, 0.07);
}

.workflow__feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 46, 196, 0.1), rgba(34, 227, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.workflow__feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.workflow__feature-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

/* ── Reduced-motion overrides ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .workflow__phase-icon--magenta,
  .workflow__phase-icon--cyan,
  .workflow__phase-icon--gradient,
  .workflow__connector-glow {
    animation: none;
  }

  /* Keep glows visible statically */
  .workflow__phase-icon--magenta {
    box-shadow: 0 0 18px rgba(255, 46, 196, 0.3);
  }

  .workflow__phase-icon--cyan {
    box-shadow: 0 0 18px rgba(34, 227, 255, 0.25);
  }

  .workflow__phase-icon--gradient {
    box-shadow: 0 0 18px rgba(34, 227, 255, 0.2);
  }

  .workflow__connector-glow {
    opacity: 0.6;
  }
}

/* ── Responsive: tablet (≤ 900px) — 2-column pipeline wrap ─── */
@media (max-width: 900px) {
  .workflow__pipeline {
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
  }

  .workflow__phase {
    flex: 1 1 calc(50% - var(--space-3));
    max-width: calc(50% - var(--space-3));
  }

  /* Hide horizontal connectors on wrapped layout */
  .workflow__connector {
    display: none;
  }

  .workflow__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: mobile (≤ 600px) — fully vertical stack ───── */
@media (max-width: 600px) {
  .workflow__pipeline {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .workflow__phase {
    flex: none;
    max-width: none;
    border-radius: 0;
    border-bottom: none;
    /* Vertical connector via a pseudo-element on each non-last phase */
    position: relative;
  }

  .workflow__phase:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .workflow__phase:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  /* Re-show connectors as vertical lines */
  .workflow__connector {
    display: flex;
    width: auto;
    height: 32px;
    align-items: stretch;
    justify-content: center;
    margin-top: 0;
    background: var(--surface);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .workflow__connector-line {
    width: 2px;
    height: 100%;
    border-radius: 1px;
  }

  .workflow__connector-glow {
    inset: -6px -3px;
  }

  /* Hide the arrow on vertical connectors */
  .workflow__connector-arrow {
    display: none;
  }

  .workflow__features {
    grid-template-columns: 1fr;
  }

  .workflow__header {
    text-align: left;
  }
}
/* ============================================================
   COMPARISON SECTION — scoped to #comparison / .comparison
   Cyber-Linguist Tech Utility aesthetic
   ============================================================ */

/* ── Layout ──────────────────────────────────────────────── */
#comparison {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle radial ambient glow behind the split */
#comparison::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 25% 60%, rgba(255, 46, 196, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 75% 40%, rgba(34, 227, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.comparison .container {
  position: relative;
  z-index: 1;
}

/* ── Header ──────────────────────────────────────────────── */
.comparison__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.comparison__header h2 {
  margin-top: var(--space-1);
  max-width: 22ch;
  margin-inline: auto;
}

/* ── Split container ─────────────────────────────────────── */
.comparison__split {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0 var(--space-5);
  align-items: start;
}

/* ── Divider ─────────────────────────────────────────────── */
.comparison__divider {
  align-self: stretch;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--magenta) 20%,
    var(--cyan) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 8px rgba(255, 46, 196, 0.6),
    0 0 16px rgba(34, 227, 255, 0.4);
  border-radius: 2px;
}

/* ── Column shared ───────────────────────────────────────── */
.comparison__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-2);
}

/* ── Column header ───────────────────────────────────────── */
.comparison__col-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.comparison__col-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: calc(var(--radius) / 1.5);
}

.comparison__col-label--old {
  /* Raised from 0.35 → 0.6 to meet WCAG AA 4.5:1 contrast on dark bg */
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison__col-label--new {
  color: var(--cyan);
  background: rgba(34, 227, 255, 0.08);
  border: 1px solid rgba(34, 227, 255, 0.3);
}

/* ── Decorative motifs ───────────────────────────────────── */
.comparison__motif {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 3.5rem;
  align-items: center;
  padding: var(--space-2);
  border-radius: var(--radius);
}

/* Chaotic / old — faded, misaligned */
.comparison__motif--chaotic {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.comparison__motif--chaotic span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font);
  line-height: 1.2;
  /* Stagger slightly to suggest disorder */
  display: inline-block;
}

.comparison__motif--chaotic span:nth-child(2) {
  transform: translateY(3px) rotate(-1.5deg);
  color: rgba(255, 60, 60, 0.25);
}

.comparison__motif--chaotic span:nth-child(3) {
  transform: translateY(-4px) rotate(1deg);
}

.comparison__motif--chaotic span:nth-child(4) {
  color: rgba(255, 80, 80, 0.2);
  transform: translateY(5px);
}

.comparison__motif--chaotic span:nth-child(5) {
  transform: rotate(-2deg) translateX(4px);
  color: rgba(255, 60, 60, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .comparison__motif--chaotic span {
    /* static — intentional disorder is layout, not animation */
  }
}

/* Clean aligned blocks motif */
.comparison__motif--aligned {
  background: rgba(34, 227, 255, 0.04);
  border: 1px solid rgba(34, 227, 255, 0.12);
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.comparison__motif-block {
  display: block;
  height: 0.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 227, 255, 0.3));
  width: 40%;
}

.comparison__motif-block--wide {
  width: 85%;
  background: linear-gradient(90deg, rgba(34, 227, 255, 0.6), rgba(34, 227, 255, 0.15));
}

.comparison__motif-block--med {
  width: 60%;
  background: linear-gradient(90deg, rgba(34, 227, 255, 0.5), rgba(34, 227, 255, 0.1));
}

/* ── Rows ────────────────────────────────────────────────── */
.comparison__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comparison__row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison__rows li:last-child.comparison__row {
  border-bottom: none;
}

.comparison__row-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Old column — row values */
.comparison__row-value--old {
  font-size: 0.9375rem;
  font-weight: 500;
  /* Raised from 0.28 → 0.55 to meet WCAG AA 4.5:1 contrast on dark bg */
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  /* Strikethrough to reinforce "old way" */
  text-decoration: line-through;
  text-decoration-color: rgba(255, 80, 80, 0.45);
  text-decoration-thickness: 1px;
}

/* New column — row values */
.comparison__row-value--new {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* ── Highlight chips ─────────────────────────────────────── */
.comparison__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.comparison__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: calc(var(--radius) * 2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
  background: rgba(34, 227, 255, 0.08);
  border: 1px solid rgba(34, 227, 255, 0.3);
  box-shadow: 0 0 10px rgba(34, 227, 255, 0.15);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.comparison__chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  flex-shrink: 0;
}

/* ── Left column tonal treatment ────────────────────────── */
.comparison__col--old {
  opacity: 0.85;
}

/* Subtle red tint overlay for the old column via a gradient card */
.comparison__col--old .comparison__rows {
  border-left: 2px solid rgba(255, 60, 60, 0.15);
  padding-left: var(--space-3);
}

/* New column — cyan left accent */
.comparison__col--new .comparison__rows {
  border-left: 2px solid rgba(34, 227, 255, 0.3);
  padding-left: var(--space-3);
}

/* ── Mobile — stack vertically ───────────────────────────── */
@media (max-width: 760px) {
  .comparison__split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-4) 0;
  }

  .comparison__divider {
    width: 100%;
    height: 2px;
    align-self: auto;
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--magenta) 20%,
      var(--cyan) 80%,
      transparent 100%
    );
    box-shadow:
      0 0 8px rgba(255, 46, 196, 0.5),
      0 0 16px rgba(34, 227, 255, 0.35);
    border-radius: 2px;
  }

  .comparison__col--old {
    order: 1;
  }

  .comparison__divider {
    order: 2;
  }

  .comparison__col--new {
    order: 3;
  }

  .comparison__chips {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .comparison__header h2 {
    max-width: none;
  }

  .comparison__col--old .comparison__rows,
  .comparison__col--new .comparison__rows {
    border-left: none;
    padding-left: 0;
  }
}
/* ============================================================
   AUDIENCE SECTION
   Scope: #audience / .audience
   Tokens: var(--...) only — no raw hex values
   ============================================================ */

/* ── Layout ───────────────────────────────────────────────── */
#audience {
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.audience__heading {
  max-width: 20ch;
  margin-bottom: var(--space-4);
}

.audience__intro {
  max-width: 62ch;
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

/* ── Persona cards ────────────────────────────────────────── */
.audience__personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.audience__persona {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle gradient top edge */
.audience__persona::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.audience__persona:hover::before,
.audience__persona:focus-within::before {
  opacity: 1;
}

.audience__persona:hover,
.audience__persona:focus-within {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 40px rgba(255, 46, 196, 0.1), 0 2px 16px rgba(34, 227, 255, 0.08);
}

/* ── Persona icon ─────────────────────────────────────────── */
.audience__persona-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cyan);
  flex-shrink: 0;
}

/* ── Persona text ─────────────────────────────────────────── */
.audience__persona-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.audience__persona-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.audience__persona-value {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: none;
}


/* ── Stagger delay on reveal ──────────────────────────────── */
.audience__persona:nth-child(1) { transition-delay: 0s; }
.audience__persona:nth-child(2) { transition-delay: 0.1s; }
.audience__persona:nth-child(3) { transition-delay: 0.2s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .audience__personas {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .audience__persona {
    flex-direction: row;
    align-items: flex-start;
  }

  .audience__persona-icon {
    margin-top: 2px;
  }
}

@media (max-width: 540px) {
  .audience__persona {
    flex-direction: column;
  }
}

/* ── Reduced motion: disable card hover transitions ────────── */
@media (prefers-reduced-motion: reduce) {
  .audience__persona,
  .audience__persona::before {
    transition: none;
  }
}
/* ============================================================
   PILOT SECTION — Final CTA + Pilot Form
   All selectors scoped to #pilot / .pilot
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────────── */
#pilot {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  /* extra breathing room for a final-CTA section */
  padding-block: var(--space-8);
}

/* ── Atmospheric ambient orbs ───────────────────────────────── */
.pilot__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  /* respect reduced-motion: no animation when user prefers it */
  will-change: transform;
}

.pilot__orb--magenta {
  width: clamp(480px, 60vw, 860px);
  height: clamp(480px, 60vw, 860px);
  top: -20%;
  left: -18%;
  background: radial-gradient(
    circle,
    rgba(255, 46, 196, 0.18) 0%,
    rgba(255, 46, 196, 0.06) 45%,
    transparent 70%
  );
  filter: blur(72px);
  animation: pilot-orb-drift-a 18s ease-in-out infinite alternate;
}

.pilot__orb--cyan {
  width: clamp(400px, 50vw, 720px);
  height: clamp(400px, 50vw, 720px);
  bottom: -15%;
  right: -12%;
  background: radial-gradient(
    circle,
    rgba(34, 227, 255, 0.15) 0%,
    rgba(34, 227, 255, 0.05) 45%,
    transparent 70%
  );
  filter: blur(64px);
  animation: pilot-orb-drift-b 22s ease-in-out infinite alternate;
}

@keyframes pilot-orb-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(48px, 32px) scale(1.06); }
}

@keyframes pilot-orb-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, -24px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .pilot__orb {
    animation: none;
  }
}

/* ── Header / intro copy ────────────────────────────────────── */
.pilot__header {
  text-align: center;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.pilot__header h2 {
  margin-bottom: var(--space-3);
}

.pilot__body {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

/* ── Card wrapper ───────────────────────────────────────────── */
.pilot__card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
  background: rgba(11, 13, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: var(--space-5);
  /* subtle inset glow rim */
  box-shadow:
    0 0 0 1px rgba(255, 46, 196, 0.08),
    0 0 48px rgba(255, 46, 196, 0.06),
    0 0 80px rgba(34, 227, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Form layout ────────────────────────────────────────────── */
.pilot__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pilot__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.pilot__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* ── Labels ─────────────────────────────────────────────────── */
.pilot__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pilot__required {
  color: var(--magenta);
}

/* Inline validation error */
.pilot__error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--magenta);
  margin-top: var(--space-1);
}

.pilot__error[hidden] {
  display: none;
}

.pilot__input[aria-invalid="true"] {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 46, 196, 0.14);
}

/* Honeypot field — removed from view, kept for bots */
.pilot__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Inputs + textarea ──────────────────────────────────────── */
.pilot__input,
.pilot__textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius) * 0.65);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 0.65rem 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  outline: none;
}

.pilot__input::placeholder,
.pilot__textarea::placeholder {
  color: rgba(170, 178, 197, 0.45);
}

.pilot__textarea {
  resize: vertical;
  min-height: 110px;
}

.pilot__input:hover,
.pilot__textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.pilot__input:focus,
.pilot__textarea:focus {
  border-color: var(--cyan);
  background: rgba(34, 227, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(34, 227, 255, 0.12);
}

.pilot__input:focus-visible,
.pilot__textarea:focus-visible {
  /* handled above via :focus; suppress default ring */
  outline: none;
}

/* invalid + touched state */
.pilot__input:not(:placeholder-shown):invalid {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 46, 196, 0.12);
}

/* ── Submit row ─────────────────────────────────────────────── */
.pilot__actions {
  display: flex;
  justify-content: center;
  padding-top: var(--space-1);
}

.pilot__actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 1.0625rem;
  padding: 0.875rem 2rem;
}

/* ── Success message ────────────────────────────────────────── */
.pilot__success {
  display: none; /* JS sets display to flex/block via hidden attr removal */
  margin-top: var(--space-4);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  padding: var(--space-3);
  border: 1px solid rgba(34, 227, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(34, 227, 255, 0.06);
}

.pilot__success:not([hidden]) {
  display: block;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pilot__card {
    padding: var(--space-4) var(--space-3);
  }

  .pilot__field-row {
    grid-template-columns: 1fr;
  }
}
