:root {
  --bg: #08090c;
  --surface: #101218;
  --surface-hover: #151821;
  --text: #f2f3f5;
  --text-secondary: #9da3ad;
  --text-muted: #8a9099;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #8b7cff;
  --header-h: 3.5rem;
  --wrap: 68.75rem;
  --narrow: 38rem;
  --pad: clamp(2rem, 4.5vw, 3rem);
  --section: clamp(5rem, 10vw, 8.75rem);
  --radius: 0.75rem;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --title-hero: clamp(2.35rem, 5.4vw, 4.35rem);
  --title-section: clamp(1.7rem, 3.2vw, 2.6rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: clip;
}

body {
  min-height: 100vh;
}

html.nav-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  z-index: 30;
  padding: 0.45rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(100% - var(--pad) * 2, var(--wrap));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - var(--pad) * 2, var(--narrow));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  background: rgba(8, 9, 12, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  width: min(100% - var(--pad) * 2, var(--wrap));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.logo img {
  width: 22px;
  height: 22px;
  flex: none;
  transition: opacity 0.2s ease;
}

.logo:hover img {
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  gap: 5px;
  border-radius: 0.5rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4rem, 10vw, 7.5rem);
}

@media (min-width: 960px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-brand {
  margin-bottom: 0.9rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 13ch;
  font-size: var(--title-hero);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.section-title {
  font-size: var(--title-section);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-lead {
  margin-top: 1.35rem;
  max-width: 22ch;
  color: var(--text);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.hero-body {
  margin-top: 1rem;
  max-width: 32rem;
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.path {
  display: grid;
  justify-items: center;
  min-width: 11.5rem;
}

.path-node {
  width: 7.75rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.path-node-relay {
  color: var(--text);
  background: var(--surface);
}

.path-line {
  position: relative;
  width: 1px;
  height: 1.7rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.path-pulse {
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(242, 243, 245, 0.75), transparent);
  animation: path-flow 3.8s ease-in-out infinite;
}

.path-pulse-delay {
  animation-delay: 1.9s;
}

.path-meta {
  color: var(--text-muted);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  padding-block: var(--section);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

#top {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.narrow p,
.flow figcaption,
.closing,
.cta p {
  color: var(--text-secondary);
}

.section-title,
.cta-brand {
  color: var(--text);
}

#philosophy p {
  margin-top: 1.15rem;
  font-size: 1.0625rem;
}

.eyebrow {
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1.35rem 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.card-num {
  margin-bottom: 1.05rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.card h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.section-intro {
  max-width: 14em;
  margin-bottom: 0;
}

.section-intro .eyebrow {
  margin-bottom: 1rem;
}

#how-title {
  max-width: 8.6em;
}

.flow {
  margin: 0;
  min-width: 0;
}

.flow-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.flow-node {
  width: min(100%, 15.5rem);
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: transparent;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.flow-node-relay {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flow-arrow {
  position: relative;
  width: 1px;
  height: 1.15rem;
  background: rgba(255, 255, 255, 0.18);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 4px;
  height: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transform: translateX(-50%) rotate(45deg);
}

.flow figcaption {
  max-width: 32rem;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.9875rem;
}

.not-list {
  margin-top: 1.6rem;
}

.not-list li {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.32;
}

.closing {
  margin-top: 1.75rem;
  max-width: 24rem;
}

.timeline {
  margin-top: 0.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.35rem 1.35rem;
  padding: 1.85rem 0 0;
}

.timeline-item + .timeline-item {
  margin-top: 1.85rem;
  border-top: 1px solid var(--border);
}

.timeline-num {
  padding-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.timeline-body h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.timeline-body h3::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: var(--border-strong);
  flex: none;
}

.timeline-body li {
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.timeline-body li + li {
  margin-top: 0.45rem;
}

.cta {
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta .eyebrow {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.cta p {
  margin-top: 1rem;
}

.cta-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.25rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.cta-brand img {
  width: 22px;
  height: 22px;
}

.cta .cta-tagline {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 2.1rem 0 2.4rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-logo {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.footer-logo img {
  width: 20px;
  height: 20px;
}

.copyright {
  color: var(--text-muted);
}

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(13rem, 0.75fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
  }

  .site-nav {
    flex: 1 0 100%;
    padding-bottom: 0.75rem;
  }

  .js .header-inner {
    flex-wrap: nowrap;
    height: var(--header-h);
  }

  .js .site-header {
    height: var(--header-h);
  }

  .js .nav-toggle {
    display: grid;
  }

  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    right: var(--pad);
    left: var(--pad);
    z-index: 30;
    flex: none;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: rgba(16, 18, 24, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .js .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .js .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 0.55rem;
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 3.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero-visual {
    width: 100%;
  }

  .how-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-intro {
    max-width: none;
  }

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

  .timeline-item {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    padding: 1.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    max-width: none;
    font-size: clamp(2.05rem, 11vw, 2.55rem);
  }

  .path {
    min-width: 0;
    width: 100%;
  }

  .flow-node {
    width: 100%;
  }

  .card {
    padding: 1.2rem 1.1rem 1.25rem;
  }

  .timeline-body h3::before {
    width: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@keyframes path-flow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(220%);
  }
}
