/* ============================================
   PrePA Path — Design Tokens
   ============================================ */
:root {
  --bg-deep: #0a0f1c;
  --bg-panel: #111b2e;
  --bg-panel-light: #17233b;
  --blue: #3b82f6;
  --blue-bright: #6fa8fb;
  --blue-dim: #274574;
  --amber: #f5a623;
  --green: #22c55e;
  --text: #f4f7fb;
  --text-muted: #93a1b8;
  --text-faint: #5b6980;
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(111, 168, 251, 0.35);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.mono-stat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Background texture — faint hex grid
   ============================================ */
.hex-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(59, 130, 246, 0.10), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(245, 166, 35, 0.06), transparent 40%);
  pointer-events: none;
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .btn {
  color: var(--text);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}

.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--border-bright);
  background: rgba(111, 168, 251, 0.06);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 40px;
    text-align: center;
  }
  .hero-badges,
  .hero-cta {
    justify-content: center;
  }
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--blue-bright);
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .hero p.lede {
    max-width: unset;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 260px;
  border-radius: 34px;
  overflow: hidden;
  border: 6px solid #060a14;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 90px rgba(59, 130, 246, 0.18);
}

.phone-frame img {
  display: block;
  width: 100%;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(10px);
}

/* floating stat chip on hero image */
.float-chip {
  position: absolute;
  background: var(--bg-panel-light);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.float-chip.chip-1 {
  top: 14%;
  left: -8%;
}

.float-chip.chip-2 {
  bottom: 10%;
  right: -10%;
}

@media (max-width: 500px) {
  .float-chip {
    display: none;
  }
}

.float-chip strong {
  font-family: var(--font-mono);
  color: var(--green);
}

/* ============================================
   Section shell
   ============================================ */
section {
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16.5px;
}

/* ============================================
   The Path — signature timeline
   ============================================ */
.path-section {
  padding: 100px 0 60px;
}

.path-rail {
  position: relative;
}

.path-rail::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border-bright) 6%,
    var(--border-bright) 94%,
    transparent
  );
}

@media (min-width: 860px) {
  .path-rail::before {
    left: 50%;
  }
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 0 0 88px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stage.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stage:last-child {
  padding-bottom: 0;
}

.stage-marker {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-bright);
  flex-shrink: 0;
  z-index: 2;
}

.stage-marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(111, 168, 251, 0.18);
}

.stage-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: center;
}

.stage-copy .stage-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
  display: block;
}

.stage-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.stage-copy p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 6px;
}

.stage-shot {
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid #060a14;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  justify-self: end;
}

/* alternate layout on desktop: even stages mirror */
@media (min-width: 860px) {
  .path-rail {
    padding-left: 0;
  }
  .stage {
    grid-template-columns: 1fr 56px 1fr;
    gap: 0;
  }
  .stage-marker {
    grid-column: 2;
    justify-self: center;
  }
  .stage-body {
    grid-column: 1;
    grid-template-columns: 1fr 200px;
  }
  .stage:nth-child(even) .stage-body {
    grid-column: 3;
    grid-template-columns: 200px 1fr;
  }
  .stage:nth-child(even) .stage-shot {
    order: -1;
    justify-self: start;
  }
  .stage:nth-child(odd) .stage-body {
    text-align: right;
  }
  .stage:nth-child(odd) .stage-copy .stage-label {
    text-align: right;
  }
}

@media (max-width: 859px) {
  .stage-body {
    grid-template-columns: 1fr;
  }
  .stage-shot {
    justify-self: start;
    max-width: 160px;
  }
}

/* ============================================
   CASPA callout strip
   ============================================ */
.callout {
  padding: 64px 0;
  margin: 40px 0;
}

.callout-card {
  background: linear-gradient(135deg, var(--bg-panel-light), var(--bg-panel));
  border: 1px solid var(--border-bright);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .callout-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

.callout-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
}

.callout-copy p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 22px;
  max-width: 42ch;
}

.stat-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat-row .stat {
  display: flex;
  flex-direction: column;
}

.stat .num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue-bright);
}

.stat .label {
  font-size: 12.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.export-mock {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.export-mock .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.export-mock .row:last-of-type {
  border-bottom: none;
}

.export-mock .row .cat {
  color: var(--text-muted);
}

.export-mock .row .val {
  font-family: var(--font-mono);
  color: var(--text);
}

.export-mock .btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* ============================================
   Closing CTA
   ============================================ */
.final-cta {
  padding: 100px 0 90px;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 18ch;
  margin: 0 auto 18px;
}

.final-cta p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 auto 32px;
}

.final-cta .hero-cta {
  justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.footer-inner .brand {
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a:hover {
  color: var(--text-muted);
}

/* ============================================
   Privacy page
   ============================================ */
.legal {
  padding: 64px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.legal .meta {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 48px;
  font-family: var(--font-mono);
}

.legal h2 {
  font-size: 1.25rem;
  margin: 44px 0 14px;
  color: var(--blue-bright);
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
}

.legal a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-decoration-color: rgba(111, 168, 251, 0.35);
}

.legal strong {
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

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