/* =========================================================================
   Space Coast Automation
   Design system: dark aerospace / instrument panel
   Palette, type, layout primitives, components, motion.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Palette */
  --space-navy: #0a1422;
  --mission-navy: #13243b;
  --signal-cyan: #3dd6e0;
  --cyan-deep: #0e7c8c;
  --safety-amber: #f5a524;
  --off-white: #f4f6f8;
  --instrument-grey: #5b6878;
  --grid-line: #27374b;
  --panel-white: #ffffff;
  --systems-green: #2fbf71;

  /* Semantic */
  --bg: var(--space-navy);
  --bg-elevated: var(--mission-navy);
  --surface: #16263d;
  --border: var(--grid-line);
  --border-strong: #34465f;
  --text: var(--off-white);
  --text-muted: #9db0c6;
  --text-dim: #8194ab;
  --accent: var(--signal-cyan);
  --accent-ink: #04222a;

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;

  --fs-eyebrow: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  --fs-h3: clamp(1.35rem, 1.1vw + 1rem, 1.75rem);
  --fs-h2: clamp(2rem, 2.4vw + 1rem, 3rem);
  --fs-h1: clamp(2.5rem, 4vw + 1rem, 4.25rem);

  /* Spacing */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Structure */
  --container: 1180px;
  --container-narrow: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(61, 214, 224, 0.35), 0 12px 40px -12px rgba(61, 214, 224, 0.25);
  --ring: 0 0 0 3px rgba(61, 214, 224, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 150ms var(--ease);
  --t: 220ms var(--ease);

  /* Decorative dot grid */
  --dot: rgba(61, 214, 224, 0.06);
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% -10%, rgba(61, 214, 224, 0.08), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(245, 165, 36, 0.05), transparent 38%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: #76e6ee;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(61, 214, 224, 0.28);
  color: var(--off-white);
}

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--center {
  justify-content: center;
}

.mono {
  font-family: var(--font-mono);
}

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

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 8vw, var(--space-3xl));
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, rgba(19, 36, 59, 0) 0%, rgba(19, 36, 59, 0.55) 50%, rgba(19, 36, 59, 0) 100%);
}

.section--panel {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  margin-top: 0.75rem;
}

.section__lead {
  margin-top: 1rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
}

/* Grids */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: transform var(--t-fast), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary {
  --btn-bg: var(--signal-cyan);
  --btn-fg: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(61, 214, 224, 0.6);
}

.btn--primary:hover {
  --btn-bg: #5ce1ea;
  color: var(--accent-ink);
}

.btn--secondary {
  --btn-fg: var(--text);
  border-color: var(--border-strong);
  background: rgba(244, 246, 248, 0.02);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(61, 214, 224, 0.08);
}

.btn--ghost {
  padding-inline: 0.25rem;
  color: var(--accent);
}

.btn--ghost:hover {
  color: #76e6ee;
}

.btn--lg {
  padding: 1.05rem 2rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

/* Status light dot on the primary CTA */
.btn--primary .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(4, 34, 42, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}

.btn--primary:hover .dot {
  animation-play-state: paused;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(4, 34, 42, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(4, 34, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(4, 34, 42, 0);
  }
}

.btn .arrow {
  transition: transform var(--t);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   6. Header / navigation
   ------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--signal-cyan);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--t);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 20, 34, 0.82);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav__logo:hover {
  color: var(--text);
}

.nav__logo svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav__logo .nav__logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 2px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(244, 246, 248, 0.05);
}

.nav__link[aria-current="page"] {
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
}

.nav__toggle .icon-close {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7rem, 14vh, 11rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 78%);
  opacity: 0.9;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(61, 214, 224, 0.16), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy,
.hero__visual {
  min-width: 0;
}

.hero__title {
  margin-top: 1.25rem;
}

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

.hero__subtitle {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 38ch;
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Hero visual: instrument panel card */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(61, 214, 224, 0.05), transparent 30%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  background-image:
    radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
}

.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.panel__dots {
  display: flex;
  gap: 6px;
}

.panel__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.panel__dots span:first-child {
  background: var(--safety-amber);
}

.panel__dots span:nth-child(2) {
  background: var(--instrument-grey);
}

.panel__dots span:nth-child(3) {
  background: var(--systems-green);
}

.panel__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.flow {
  display: grid;
  gap: 0.75rem;
}

.flow__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(10, 20, 34, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  min-width: 0;
  flex-wrap: wrap;
}

.flow__row .tick {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 191, 113, 0.14);
  color: var(--systems-green);
}

.flow__row .tick svg {
  width: 13px;
  height: 13px;
}

.flow__row code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.flow__row--muted {
  opacity: 0.55;
}

.flow__row--muted .tick {
  background: rgba(91, 104, 120, 0.18);
  color: var(--instrument-grey);
}

/* -------------------------------------------------------------------------
   8. Trust strip
   ------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--border);
  background: rgba(19, 36, 59, 0.4);
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-block: 1.5rem;
}

.trust__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.trust__item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

/* -------------------------------------------------------------------------
   9. Cards (services / values)
   ------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 214, 224, 0.5);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(61, 214, 224, 0.1);
  border: 1px solid rgba(61, 214, 224, 0.2);
  color: var(--accent);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.card__title {
  font-size: 1.25rem;
}

.card__text {
  color: var(--text-muted);
  font-size: var(--fs-small);
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.card__link .arrow {
  transition: transform var(--t);
}

.card:hover .card__link .arrow {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   10. Stats / metrics
   ------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--text);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.03em;
}

.stat__num .unit {
  color: var(--accent);
}

.stat__label {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   11. Process steps
   ------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(61, 214, 224, 0.35);
  border-radius: 50%;
  background: rgba(61, 214, 224, 0.06);
}

.step__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step__text {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.step::after {
  content: "";
  position: absolute;
  top: 2.55rem;
  right: -0.7rem;
  width: 1.4rem;
  height: 1px;
  background: var(--border-strong);
}

.steps .step:last-child::after {
  display: none;
}

/* -------------------------------------------------------------------------
   12. Feature list (why-us / values / how aerospace)
   ------------------------------------------------------------------------- */
.feature-list {
  display: grid;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(61, 214, 224, 0.1);
  color: var(--accent);
  border: 1px solid rgba(61, 214, 224, 0.2);
}

.feature__icon svg {
  width: 20px;
  height: 20px;
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.feature__text {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

/* -------------------------------------------------------------------------
   13. Results / checklist
   ------------------------------------------------------------------------- */
.checklist {
  display: grid;
  gap: 1rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1.0625rem;
  color: var(--text);
}

.checklist li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--systems-green);
}

.checklist li span {
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   14. Testimonials
   ------------------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote__mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.6;
  color: rgba(61, 214, 224, 0.4);
}

.quote__text {
  font-size: 1.0625rem;
  color: var(--text);
  flex: 1;
}

.quote__author {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--safety-amber);
  background: rgba(245, 165, 36, 0.08);
  border: 1px solid rgba(245, 165, 36, 0.25);
  border-radius: var(--radius-pill);
}

.placeholder-note svg {
  width: 14px;
  height: 14px;
}

/* -------------------------------------------------------------------------
   15. CTA band
   ------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 214, 224, 0.16), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 52ch;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: var(--fs-lead);
}

.cta-band .hero__actions {
  justify-content: center;
}

/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 14, 24, 0.6);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.footer__brand .nav__logo {
  margin-bottom: 1rem;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 32ch;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer__col ul {
  display: grid;
  gap: 0.65rem;
}

.footer__col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer__bottom .mono {
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------------
   17. Forms
   ------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.field__label .opt {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field__hint {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(10, 20, 34, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
}

.field__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--text-dim);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 214, 224, 0.18);
  background: rgba(10, 20, 34, 0.95);
}

.field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239db0c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field__select option {
  background: var(--mission-navy);
  color: var(--text);
}

.field--invalid .field__input,
.field--invalid .field__select,
.field--invalid .field__textarea {
  border-color: #ff7a7a;
}

.field__error {
  font-size: 0.8rem;
  color: #ff9a9a;
  min-height: 0;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.form-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent);
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: flex;
}

.form-status svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.form-status--success {
  background: rgba(47, 191, 113, 0.1);
  border: 1px solid rgba(47, 191, 113, 0.4);
  color: #8ee9b8;
}

.form-status--error {
  background: rgba(255, 122, 122, 0.08);
  border: 1px solid rgba(255, 122, 122, 0.35);
  color: #ffb3b3;
}

.btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   18. Contact layout & info cards
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.info-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-card p,
.info-card address {
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-style: normal;
}

.info-card a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.steps-mini {
  display: grid;
  gap: 1rem;
  counter-reset: ministep;
}

.steps-mini li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.steps-mini li::before {
  counter-increment: ministep;
  content: counter(ministep);
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid rgba(61, 214, 224, 0.3);
  border-radius: 50%;
}

/* -------------------------------------------------------------------------
   19. Page hero (inner pages)
   ------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(7rem, 13vh, 10rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 70%);
}

.page-hero h1 {
  margin-top: 1rem;
  max-width: 18ch;
}

.page-hero .lead {
  margin-top: 1.25rem;
  max-width: 60ch;
}

/* Breadcrumb / prose */
.prose {
  max-width: 70ch;
}

.prose > * + * {
  margin-top: 1.15rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  margin-top: 2rem;
}

.prose ul {
  display: grid;
  gap: 0.6rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Service detail blocks */
.service-block {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  scroll-margin-top: 100px;
}

.service-block + .service-block {
  margin-top: 1.5rem;
}

.service-block__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.service-block__index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid rgba(61, 214, 224, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
}

.service-block__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
}

.service-block__col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.service-block__col p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.outcome {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(47, 191, 113, 0.07);
  border: 1px solid rgba(47, 191, 113, 0.2);
  border-radius: var(--radius-sm);
}

.outcome svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--systems-green);
}

.outcome p {
  color: var(--text);
  font-size: var(--fs-small);
}

.outcome strong {
  color: var(--systems-green);
}

/* Anchor nav for services */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.anchor-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(19, 36, 59, 0.5);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.anchor-nav a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.anchor-nav a .mono {
  color: var(--accent);
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------
   20. 404
   ------------------------------------------------------------------------- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 6rem;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  line-height: 1;
}

.error-page__count {
  font-family: var(--font-mono);
  color: var(--safety-amber);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------
   21. Motion / scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 80ms;
}

.reveal[data-delay="2"] {
  transition-delay: 160ms;
}

.reveal[data-delay="3"] {
  transition-delay: 240ms;
}

/* Trajectory draw-on for the logo arc */
.draw-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.is-drawn .draw-path {
  animation: draw 1s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

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

.mt-0 {
  margin-top: 0;
}

.no-scroll {
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   23. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    max-width: 460px;
  }

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

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

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

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

  .step::after {
    display: none;
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  /* Balance can overflow very narrow columns; prefer pretty wrapping */
  h1,
  h2,
  h3,
  h4 {
    text-wrap: pretty;
  }

  /* Mobile navigation */
  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    background: rgba(10, 20, 34, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }

  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav__actions {
    margin: 1rem 0 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav__actions .btn {
    width: 100%;
  }

  .service-block__cols {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .grid--4,
  .stats,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .hero__actions .btn {
    width: 100%;
    white-space: normal;
  }
}

/* -------------------------------------------------------------------------
   24. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .draw-path {
    stroke-dashoffset: 0;
  }
}
