:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #ededf0;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: rgba(0, 0, 0, 0.12);
  --line-soft: rgba(0, 0, 0, 0.075);
  --dark: #050607;
  --dark-elevated: #111617;
  --dark-text: #f5f5f7;
  --dark-muted: rgba(245, 245, 247, 0.72);
  --mint: #4ecfc0;
  --blue: #0071e3;
  --green: var(--mint);
  --green-soft: #effbf7;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.06);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1160px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.42);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
}

.nav-bar {
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2 + 10px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(1.25);
}

.brand-link,
.back-link,
.nav-links a,
.language-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  flex: 1 1 auto;
  min-width: 160px;
  font-weight: 820;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.back-link {
  display: none;
  flex: 0 0 auto;
  gap: 7px;
  border-radius: 999px;
  padding: 0 13px;
  color: #424245;
  font-size: 13px;
  font-weight: 760;
}

body.is-page .back-link {
  display: inline-flex;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  color: #424245;
  font-size: 14px;
  font-weight: 720;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  width: 18px;
}

.language-toggle {
  flex: 0 0 auto;
  min-width: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 820;
  cursor: pointer;
}

.primary-action:hover,
.secondary-action:hover,
.language-toggle:hover,
.back-link:hover,
.support-actions a:hover {
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  min-height: calc(92svh - 68px);
  padding: 86px 0 78px;
  display: flex;
  align-items: center;
  color: var(--dark-text);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dark);
}

.hero-inner,
.privacy-inner,
.site-footer,
.section-copy,
.phrase-grid,
.flow-inner,
.legal-page,
.forecast-lines {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: 72px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 820;
}

.hero-section .eyebrow,
.flow-section .eyebrow {
  color: var(--mint);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.25rem, 6vw, 4.75rem);
  line-height: 1.02;
  font-weight: 820;
}

h2 {
  font-size: clamp(2.375rem, 4.3vw, 3.5rem);
  line-height: 1.06;
  font-weight: 820;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.18;
  font-weight: 820;
}

.hero-body,
.section-copy p,
.phrase-item p,
.principle-grid p,
.privacy-inner p,
.legal-intro,
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 520;
}

.hero-body {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--dark-muted);
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 820;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-action {
  background: var(--blue);
  color: #fff;
}

.primary-action::after {
  content: "→";
  padding-left: 8px;
}

.secondary-action {
  border: 1px solid rgba(245, 245, 247, 0.2);
  color: var(--dark-text);
}

.secondary-action:hover {
  border-color: rgba(245, 245, 247, 0.36);
  background: rgba(255, 255, 255, 0.06);
}

.hero-meta {
  margin: 20px 0 0;
  color: rgba(245, 245, 247, 0.58);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 720;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: center;
  gap: 26px;
}

.route-stage {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.route-ghost,
.route-main,
.route-flow,
.timeline-base,
.timeline-draw {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-ghost {
  stroke: rgba(245, 245, 247, 0.12);
  stroke-width: 16;
}

.route-main {
  --path-length: 720;
  stroke: var(--mint);
  stroke-width: 5;
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
  animation: draw-route 8.6s var(--ease-premium) infinite;
  will-change: stroke-dashoffset;
}

.route-flow {
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 2;
  stroke-dasharray: 6 18;
  animation: route-flow 14s linear infinite;
  will-change: stroke-dashoffset;
}

.route-dot {
  fill: var(--dark);
  stroke: var(--mint);
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-pop 8.6s var(--ease-premium) infinite both;
  will-change: opacity, transform;
}

.dot-two {
  animation-delay: 720ms;
}

.dot-three {
  animation-delay: 1440ms;
}

.dot-four {
  animation-delay: 2160ms;
}

.route-beats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.route-beats span {
  min-height: 84px;
  border-top: 1px solid rgba(245, 245, 247, 0.18);
  display: grid;
  align-content: center;
  gap: 7px;
}

.route-beats small {
  color: var(--mint);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 820;
}

.route-beats strong {
  color: var(--dark-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 820;
}

.promise-section,
.note-section {
  padding: 96px 0;
  background: var(--surface);
}

.section-copy {
  max-width: 980px;
}

.section-copy p {
  max-width: 780px;
  margin: 20px 0 0;
}

.phrase-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.phrase-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.phrase-item span,
.principle-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 820;
}

.phrase-item p,
.principle-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.flow-section {
  position: relative;
  background: var(--dark);
  color: var(--dark-text);
}

.flow-inner {
  padding: 102px 0 98px;
}

.section-heading {
  max-width: 860px;
}

.timeline-visual {
  margin-top: 58px;
}

.timeline-visual svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.timeline-base {
  stroke: rgba(245, 245, 247, 0.14);
  stroke-width: 14;
}

.timeline-draw {
  --path-length: 1040;
  stroke: var(--mint);
  stroke-width: 5;
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
  animation: timeline-draw 9.4s var(--ease-premium) infinite;
  will-change: stroke-dashoffset;
}

.timeline-visual circle {
  fill: var(--dark);
  stroke: var(--dark-text);
  stroke-width: 3;
}

.principle-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.principle-grid article {
  border-top: 1px solid rgba(245, 245, 247, 0.18);
  padding-top: 18px;
}

.principle-grid span {
  color: var(--mint);
}

.principle-grid p {
  color: var(--dark-muted);
}

.privacy-band {
  padding: 96px 0;
  background: var(--page);
}

.privacy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 64px;
  align-items: start;
}

.privacy-inner p {
  max-width: 720px;
  margin: 20px 0 0;
}

.privacy-list {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.privacy-list li {
  min-height: 58px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  color: #424245;
  font-size: 15px;
  font-weight: 780;
}

.privacy-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--blue);
}

.forecast-lines {
  margin-top: 54px;
  display: grid;
  gap: 8px;
}

.forecast-lines p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  line-height: 1.06;
  font-weight: 820;
}

.forecast-lines p:nth-child(2) {
  color: #424245;
}

.forecast-lines p:nth-child(3) {
  color: var(--muted);
}

.legal-page {
  padding: 86px 0 70px;
}

.legal-hero {
  max-width: 800px;
  margin-bottom: 52px;
}

.legal-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.legal-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.legal-intro {
  margin-top: 18px;
  max-width: 760px;
}

.legal-card {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.legal-card section + section {
  margin-top: 34px;
}

.legal-card h2 {
  font-size: 1.65rem;
  line-height: 1.2;
}

.legal-card p {
  margin: 14px 0 0;
}

.legal-card ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 10px;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.support-actions a {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  padding: 0 15px;
  font-weight: 820;
  transition: transform 180ms ease, border-color 180ms ease;
}

.site-footer {
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-mark.mini {
  width: 28px;
  height: 28px;
}

.site-footer p,
.site-footer small {
  color: var(--muted);
  font-weight: 650;
}

.site-footer p {
  max-width: 520px;
}

.footer-links {
  display: grid;
  gap: 9px;
  min-width: 190px;
}

.footer-links a {
  color: #424245;
  font-size: 14px;
  font-weight: 720;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 560ms var(--ease-premium), transform 560ms var(--ease-premium);
}

.reveal.in-view,
body.ready .hero-copy,
body.ready .hero-visual {
  opacity: 1;
  transform: translateY(0);
}

body.is-page [data-home-view],
body:not(.is-page) [data-legal-view] {
  display: none;
}

@keyframes draw-route {
  0% {
    stroke-dashoffset: var(--path-length);
  }
  26%,
  82% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes timeline-draw {
  0% {
    stroke-dashoffset: var(--path-length);
  }
  30%,
  84% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

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

@keyframes dot-pop {
  0%,
  12% {
    opacity: 0;
    transform: scale(0.72);
  }
  24%,
  82% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-section {
    align-items: start;
  }

  .hero-visual {
    min-height: auto;
  }

  .privacy-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-bar {
    min-height: 62px;
    padding: 8px 18px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .brand-link {
    min-width: 0;
  }

  .brand-name {
    font-size: 19px;
  }

  .language-toggle {
    min-width: 50px;
    padding: 0 14px;
  }

  .back-link {
    padding: 0 10px;
  }

  .back-link span:last-child {
    max-width: 56px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hero-section {
    min-height: auto;
    padding: 62px 0 56px;
  }

  h1 {
    font-size: clamp(2.75rem, 12vw, 3.25rem);
  }

  h2 {
    font-size: clamp(2.125rem, 9vw, 2.375rem);
  }

  .hero-body,
  .section-copy p,
  .privacy-inner p,
  .legal-intro,
  .legal-card p,
  .legal-card li {
    font-size: 17px;
  }

  .route-beats,
  .phrase-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .route-beats {
    gap: 0;
  }

  .route-beats span {
    min-height: 64px;
  }

  .promise-section,
  .note-section,
  .privacy-band {
    padding: 72px 0;
  }

  .flow-inner {
    padding: 76px 0;
  }

  .timeline-visual {
    margin-top: 38px;
  }

  .legal-page {
    padding-top: 70px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 440px) {
  .hero-inner,
  .privacy-inner,
  .site-footer,
  .section-copy,
  .phrase-grid,
  .flow-inner,
  .legal-page,
  .forecast-lines {
    width: min(calc(100% - 32px), var(--max));
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.125rem;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}

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

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

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