:root {
  --page: #f1f2f4;
  --card: #ffffff;
  --ink: #121212;
  --night: #160f08;
  --panel: #0a0a0b;
  --muted: rgba(0, 0, 0, 0.6);
  --hairline: #e4e6ea;
  --accent: #00786a;
  --teal: #19b7a5;
  --teal-light: #2fd4c0;
  --sand: #dcb884;
  --pill-ink: #160f08;
  --glow: 0 8px 28px rgba(25, 183, 165, 0.45);
  --on-dark: #ffffff;
  --on-dark-dim: rgba(255, 255, 255, 0.72);
  --dark-hairline: rgba(255, 255, 255, 0.16);
  --display: "Roboto Condensed", "Arial Narrow", "Inter", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-card: 18px;
  --r-panel: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--page);
}

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.9rem, 7.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}

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

/* Kickers */
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.kicker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--dark-hairline);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-dark-dim);
  margin-bottom: 2rem;
}

.kicker-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(25, 183, 165, 0.9);
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  color: var(--pill-ink);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  box-shadow: var(--glow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(25, 183, 165, 0.55);
}

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

.btn-small {
  padding: 0.55rem 1.15rem;
  font-size: 0.9375rem;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--dark-hairline);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

/* Header */
.site-header {
  background: var(--night);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.logo-lockup {
  height: 3.5rem;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-header nav a {
  white-space: nowrap;
}

.site-header nav a:not(.btn) {
  position: relative;
  color: var(--on-dark-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.site-header nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--teal);
  transition: right 0.25s ease;
}

.site-header nav a:not(.btn):hover {
  color: var(--on-dark);
}

.site-header nav a:not(.btn):hover::after {
  right: 0;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-lede {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--night);
  background-image: radial-gradient(78% 64% at 50% 40%, rgba(8, 6, 3, 0.35), rgba(22, 15, 8, 0) 80%);
  color: var(--on-dark);
  padding: 6.5rem 0 0;
}

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

.aurora {
  position: absolute;
  inset: -20% -10% 0;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.aurora .a1 {
  width: 48vw;
  height: 48vw;
  left: -10vw;
  top: -8vw;
  background: radial-gradient(circle at 30% 30%, #19b7a5, transparent 62%);
  animation: drift1 22s ease-in-out infinite alternate;
}

.aurora .a2 {
  width: 42vw;
  height: 42vw;
  right: -8vw;
  top: 6vw;
  background: radial-gradient(circle at 60% 40%, #dcb884, transparent 60%);
  animation: drift2 26s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to {
    transform: translate(6vw, 5vw);
  }
}

@keyframes drift2 {
  to {
    transform: translate(-5vw, 7vw);
  }
}

/* Constellation — connected-systems motif, concentrated right of the headline */
.constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to left, black 42%, transparent 80%);
  mask-image: linear-gradient(to left, black 42%, transparent 80%);
  pointer-events: none;
}

.c-wave {
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 8 16;
  opacity: 0.35;
  filter: drop-shadow(0 0 4px rgba(47, 212, 192, 0.5));
  animation: c-flow 7s linear infinite;
}

.c-wave-2 {
  stroke: var(--sand);
  opacity: 0.25;
  animation-duration: 9s;
  animation-direction: reverse;
  filter: drop-shadow(0 0 4px rgba(220, 184, 132, 0.4));
}

@keyframes c-flow {
  to {
    stroke-dashoffset: -240;
  }
}

.c-links line {
  stroke: var(--teal-light);
  stroke-width: 1;
  opacity: 0.22;
}

.c-nodes circle {
  fill: var(--teal-light);
  filter: drop-shadow(0 0 3px rgba(47, 212, 192, 0.8));
  animation: c-twinkle 4s ease-in-out infinite;
}

.c-nodes circle:nth-child(3n) {
  fill: var(--sand);
  filter: drop-shadow(0 0 3px rgba(220, 184, 132, 0.7));
}

.c-nodes circle:nth-child(2n) {
  animation-delay: 0.6s;
  animation-duration: 3.2s;
}

.c-nodes circle:nth-child(4n) {
  animation-delay: 1.8s;
  animation-duration: 5s;
}

.c-nodes circle:nth-child(5n) {
  animation-delay: 2.4s;
  animation-duration: 4.6s;
}

@keyframes c-twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.hero h1 {
  max-width: 50rem;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  color: var(--on-dark-dim);
  max-width: 42rem;
}

.cta-note {
  color: var(--on-dark-dim);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

/* Stat band (bottom of hero) */
.stat-band {
  list-style: none;
  padding: 0;
  margin: 4.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--dark-hairline);
}

.stat-band li {
  padding: 2.5rem 1.75rem 3rem;
  border-left: 1px solid var(--dark-hairline);
}

.stat-band li:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.stat-label {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--on-dark-dim);
  max-width: 16rem;
}

/* Cards */
.card-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card-grid li {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 1.75rem;
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 2px 4px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.card-grid li:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--accent) 4%, var(--card)));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 18px 34px color-mix(in srgb, var(--accent) 16%, transparent);
}

.card-grid li p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Steps — numbered because the process is a sequence */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.steps li p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Diagnostic panel — the signature element */
.panel {
  margin-top: 2.5rem;
  background: var(--panel);
  color: var(--on-dark);
  border-radius: var(--r-panel);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  box-shadow: 0 30px 80px rgba(10, 10, 12, 0.35);
}

.panel-kicker {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-dark-dim);
  margin-bottom: 1.25rem;
}

.panel h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.panel-lede {
  color: var(--on-dark-dim);
  max-width: 34rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  margin-top: 1.875rem;
  padding: 1.25rem 1.5rem;
  border-radius: 15px;
  max-width: 34rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.price-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.price-note {
  color: var(--on-dark-dim);
  font-size: 0.9375rem;
}

.diag-tiers {
  list-style: none;
  display: flex;
  margin-top: 0.75rem;
  max-width: 34rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.diag-tiers li {
  flex: 1;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-left: 1px solid var(--dark-hairline);
}

.diag-tiers li:first-child {
  border-left: none;
}

.diag-tiers-price {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--on-dark);
}

.diag-tiers-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--on-dark-dim);
}

.callout {
  margin-top: 1.875rem;
  padding: 1.25rem 1.5rem;
  max-width: 34rem;
  border-left: 4px solid var(--sand);
  background: linear-gradient(90deg, rgba(220, 184, 132, 0.28), rgba(220, 184, 132, 0));
  font-size: 0.9375rem;
}

.panel .cta-row {
  margin-top: 2rem;
}

/* Tier cards under the panel */
.tiers {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.price {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.price span {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.timeline {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* Case studies (scaffold, section currently commented out) */
.card-grid .metric {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Testimonial (scaffold, section currently commented out) */
.testimonial blockquote {
  max-width: 44rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--display);
  font-size: 1.375rem;
  font-style: italic;
}

.testimonial blockquote footer {
  margin-top: 1rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* About */
.prose {
  max-width: 44rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

.prose p {
  margin-bottom: 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq-list {
  max-width: 46rem;
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 2px 4px rgba(0, 0, 0, 0.06);
  padding: 0 1.5rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.125rem 2rem 1.125rem 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  color: var(--muted);
  font-size: 0.9375rem;
  padding-bottom: 1.25rem;
  max-width: 40rem;
}

/* Final CTA */
.final-cta {
  background: var(--night);
  color: var(--on-dark);
  text-align: center;
}

.final-cta p {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--on-dark-dim);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0.375rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  margin: 0.875rem 0;
}

.footer-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

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

.footer-nav a:hover::after {
  right: 0;
}

.logo-icon {
  height: 2rem;
  width: auto;
  flex-shrink: 0;
}

/* Legal pages (privacy.html, terms.html) */
.legal {
  padding: 4rem 0 5rem;
}

.legal .container {
  max-width: 44rem;
}

.legal h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.625rem;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.375rem;
}

.legal li {
  margin-bottom: 0.375rem;
}

/* Hero entrance — one-time staggered rise on load */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .kicker-chip,
.hero h1,
.hero .lede,
.hero .cta-row,
.hero .cta-note,
.hero .stat-band {
  animation: rise-in 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero h1 {
  animation-delay: 0.08s;
}

.hero .lede {
  animation-delay: 0.16s;
}

.hero .cta-row {
  animation-delay: 0.24s;
}

.hero .cta-note {
  animation-delay: 0.3s;
}

.hero .stat-band {
  animation-delay: 0.4s;
}

/* Scroll reveals — progressive enhancement, Chromium-only for now.
   Cinematic focus-pull: panels rise, sharpen out of a blur, and settle. */
@supports (animation-timeline: view()) {
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.94);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .card-grid li,
  .steps li,
  .prose,
  .faq-list,
  .final-cta .container {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  .steps li:nth-child(2) {
    animation-range: entry 8% entry 68%;
  }

  .steps li:nth-child(3) {
    animation-range: entry 16% entry 76%;
  }

  @keyframes reveal-panel {
    from {
      opacity: 0;
      transform: translateY(36px) scale(0.92);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .panel {
    animation: reveal-panel linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }

  @keyframes reveal-light {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .kicker,
  section h2,
  .section-lede {
    animation: reveal-light linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
}

/* Motion opt-out */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .aurora .a1,
  .aurora .a2,
  .c-wave,
  .c-nodes circle,
  .hero .kicker-chip,
  .hero h1,
  .hero .lede,
  .hero .cta-row,
  .hero .cta-note,
  .hero .stat-band,
  .card-grid li,
  .steps li,
  .panel,
  .prose,
  .faq-list,
  .final-cta .container,
  .kicker,
  section h2,
  .section-lede {
    animation: none;
  }

  .btn,
  .card-grid li,
  .site-header nav a:not(.btn),
  .site-header nav a:not(.btn)::after,
  .footer-nav a::after,
  .faq-list summary::after {
    transition: none;
  }
}

/* Mobile */
@media (max-width: 40rem) {
  section {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .stat-band {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .stat-band li {
    border-left: none;
    border-top: 1px solid var(--dark-hairline);
    padding: 1.5rem 0;
  }

  .stat-band li:first-child {
    border-top: none;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .diag-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 12px;
    gap: 1px;
    background: var(--dark-hairline);
  }

  .diag-tiers li {
    padding: 0.75rem 0.25rem;
    border-left: none;
    background: rgba(10, 10, 11, 0.6);
  }

  .diag-tiers-price {
    font-size: 1rem;
  }

  .price-num {
    font-size: 2rem;
  }

  .site-header nav {
    gap: 0.75rem 1rem;
  }

  .logo-lockup {
    height: 2.75rem;
  }
}
