/* ============================================================
   Hover — design tokens
   ============================================================ */

:root {
  /* Mission-control / blueprint palette.
     NOT beige/cream. NOT black-and-green. */
  --ink:           #0B1426;   /* deep navy ground */
  --ink-2:        #14213D;   /* navy panel */
  --ink-3:        #1E2F52;   /* navy raised */
  --rule:         #2A3A5C;   /* divider */
  --paper:        #ECEFF4;   /* cool off-white, slightly cyan-cool, never beige */
  --paper-mute:   #B7C2D6;   /* secondary on dark */
  --mute:         #8294B0;   /* tertiary on dark */
  --accent:       #FF6B35;   /* signal orange (operational, not aggressive red) */
  --accent-soft:  #FFB996;
  --accent-deep:  #C73E0F;
  --warn:         #F9C74F;

  /* Typography */
  --font-display: "Fraunces", "Hoefler Text", Georgia, serif;
  --font-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale */
  --step--1: clamp(0.84rem, 0.80rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.93rem + 0.30vw, 1.18rem);
  --step-1:  clamp(1.20rem, 1.06rem + 0.60vw, 1.55rem);
  --step-2:  clamp(1.50rem, 1.24rem + 1.10vw, 2.20rem);
  --step-3:  clamp(2.00rem, 1.48rem + 2.30vw, 3.40rem);
  --step-4:  clamp(2.60rem, 1.74rem + 3.90vw, 5.20rem);
  --step-5:  clamp(3.40rem, 2.00rem + 6.20vw, 7.40rem);

  /* Layout */
  --measure: 64ch;
  --gutter: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  --max-w: 1240px;
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--accent); color: var(--ink); }

/* ============================================================
   Wordmark
   ============================================================ */

.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; }
.wordmark-mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.wordmark-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
}
.wordmark-text-small { font-size: 0.92rem; }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: rgba(11, 20, 38, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  z-index: -1;
}

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 1vw + 0.7rem, 2rem); }
.nav-links a {
  font-size: var(--step--1);
  color: var(--paper-mute);
  letter-spacing: 0.02em;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--paper); }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
}
.nav-cta:hover { background: var(--accent); color: var(--ink) !important; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 9rem) var(--gutter) clamp(4rem, 6vw, 7rem);
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

/* graticule background — CSS-only tactical-chart pattern */
.graticule {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 107, 53, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 107, 53, 0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 240px 240px, 240px 240px, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero > *:not(.graticule) { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-mute);
  margin-bottom: 1.6rem;
}
.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 107, 53, 0.04); }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.8rem;
  max-width: 18ch;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.hero-sub {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--paper-mute);
  max-width: 56ch;
  margin: 0 0 2.4rem;
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 4rem; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 4px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.btn-ghost {
  color: var(--paper);
  border-color: var(--rule);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--paper); }

.btn-large { padding: 1.05rem 1.8rem; font-size: var(--step-1); }
.btn-block { display: flex; width: 100%; margin-top: auto; }

/* ============================================================
   Hero stats
   ============================================================ */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.4rem;
  border-top: 1px solid var(--rule);
  margin: 0;
  padding-top: 1.8rem;
}
.hero-stats > div {
  padding: 0.4rem 2.4rem 0.4rem 0;
  border-right: 1px solid var(--rule);
}
.hero-stats > div:last-child { border-right: none; padding-right: 0; }
.hero-stats dt {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-bottom: 0.35rem;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: var(--step-1);
  color: var(--paper);
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 6vw, 7rem) var(--gutter);
  border-top: 1px solid var(--rule);
}

.section-num {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.section-h {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 2rem;
}

.section-lede {
  max-width: var(--measure);
  font-size: var(--step-1);
  color: var(--paper-mute);
  margin: 0 0 2.6rem;
  line-height: 1.5;
}

/* ============================================================
   Problem section — two-column prose
   ============================================================ */

.prose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 2vw, 2.4rem);
  max-width: 90ch;
}
.prose-grid p {
  margin: 0;
  color: var(--paper-mute);
  font-size: var(--step-0);
  line-height: 1.65;
}

/* ============================================================
   Topology figure
   ============================================================ */

.topology {
  margin: 2rem 0 0;
  padding: 1.6rem;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow-x: auto;
}

/* Grid layout: row 1 holds edge labels, row 2 holds the node boxes and the
   1px connector lines. Labels and boxes live in different rows, so they
   cannot occupy the same vertical band — eliminates the overlap mode that
   made absolute positioning impossible to tune. */
.topology-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0;
  row-gap: 1rem;
  min-width: max-content;
}

.topology-edge-label {
  grid-row: 1;
  justify-self: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  white-space: nowrap;
}
.topology-edge-label--1 { grid-column: 2; }
.topology-edge-label--2 { grid-column: 4; }

.topology-node {
  grid-row: 2;
  border: 1px solid var(--rule);
  background: var(--ink);
  padding: 0.9rem 1.1rem;
  min-width: 9rem;
  text-align: center;
}
.topology-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
}
.topology-meta {
  display: block;
  font-size: var(--step--1);
  color: var(--mute);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.topology-edge {
  grid-row: 2;
  align-self: center;
  position: relative;
  min-width: 4rem;
  height: 1px;
  background: var(--rule);
}
.topology-edge::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--rule);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ============================================================
   Capabilities grid
   ============================================================ */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.cap {
  background: var(--ink-2);
  padding: 1.6rem 1.4rem;
  transition: background 200ms ease;
}
.cap:hover { background: var(--ink-3); }
.cap-h {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 450;
  font-variation-settings: "opsz" 36;
  margin: 0 0 0.5rem;
  color: var(--paper);
}
.cap p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--paper-mute);
  line-height: 1.55;
}

/* ============================================================
   Audience grid
   ============================================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.audience {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  background: linear-gradient(170deg, var(--ink-2), var(--ink) 90%);
}
.audience-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.audience h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.audience p { margin: 0; color: var(--paper-mute); font-size: var(--step-0); }

/* ============================================================
   Pricing grid
   ============================================================ */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.price {
  background: var(--ink-2);
  padding: 1.8rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-feature {
  background: var(--ink-3);
  outline: 1px solid var(--accent);
  outline-offset: -2px;
}
.price-flag {
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.32rem 0.7rem;
  font-weight: 600;
}
.price h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.price-tag {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  color: var(--accent);
  margin: 0 0 1.2rem;
}
.price-tag span {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.3rem;
}
.price ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  flex: 1;
}
.price li {
  font-size: var(--step-0);
  color: var(--paper-mute);
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--rule);
}
.price li:last-child { border-bottom: none; }

/* ============================================================
   CTA
   ============================================================ */

.section-cta {
  text-align: center;
  padding: clamp(5rem, 8vw, 8rem) var(--gutter);
  max-width: 60rem;
}
.cta-h {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
}
.cta-sub {
  font-size: var(--step-1);
  color: var(--paper-mute);
  margin: 0 0 2.4rem;
  max-width: 50ch;
  margin-inline: auto;
}
.cta-trust {
  margin: 4rem 0 0;
  font-size: var(--step--1);
  color: var(--mute);
  letter-spacing: 0.02em;
}
.trust-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--mute);
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
}
.trust-name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--paper);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.01em;
  display: block;
}
.trust-detail {
  display: block;
  margin-top: 0.5rem;
  color: var(--mute);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--rule);
  padding: 2.4rem var(--gutter);
  background: var(--ink-2);
}
.footer-row {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}
.footer-mark { display: flex; align-items: center; gap: 0.6rem; }
.footer-copy {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: var(--step--1);
  color: var(--paper-mute);
}
.footer-meta {
  margin: 0;
  font-size: var(--step--1);
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
