:root {
  --bg: #0a0f14;
  --bg-elevated: #0e151c;
  --surface: #121a22;
  --surface-high: #1a2430;
  --accent: #6ee7d2;
  --accent-muted: #2a9a8a;
  --accent-dim: rgba(110, 231, 210, 0.12);
  --text: #eef3f7;
  --text-muted: #8b9aab;
  --divider: #243040;
  --danger: #fb7185;
  --radius: 14px;
  --max: 1120px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(10, 15, 20, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(110, 231, 210, 0.18), transparent 64%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 680;
}

.lede {
  margin: 0 0 28px;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--divider);
  color: var(--text-muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.peak-card {
  position: absolute;
  inset: 20px 12px auto 40px;
  aspect-ratio: 0.62;
  max-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(110, 231, 210, 0.16), transparent 42%),
    linear-gradient(180deg, #152028, #0a0f14);
  border: 1px solid var(--divider);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.peak-card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 58%;
  background:
    linear-gradient(135deg, transparent 48%, rgba(110, 231, 210, 0.9) 49%, transparent 52%),
    linear-gradient(115deg, transparent 40%, rgba(126, 255, 245, 0.55) 41%, transparent 48%),
    linear-gradient(160deg, transparent 35%, rgba(42, 154, 138, 0.7) 36%, transparent 55%);
  clip-path: polygon(8% 100%, 28% 42%, 46% 70%, 62% 22%, 78% 58%, 92% 100%);
  filter: drop-shadow(0 0 18px rgba(110, 231, 210, 0.45));
}

.peak-card-small {
  inset: auto 0 0 58%;
  max-height: 260px;
  opacity: 0.92;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--divider);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 0 0 36px;
  max-width: 40rem;
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--divider);
}

.feature:last-child {
  border-bottom: 0;
}

.feature-index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface-high);
  color: var(--text);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}

.step span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

.about-box {
  padding: 28px;
  background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--divider);
  border-radius: 18px;
}

.about-box p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

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

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--divider);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

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

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

.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: 0 0 32px;
  color: var(--text-muted);
}

.legal-body {
  max-width: 46rem;
}

.legal-body h2 {
  margin: 1.6em 0 0.5em;
  font-size: 1.15rem;
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
}

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

.legal-app {
  --gutter: max(32px, calc(16px + env(safe-area-inset-left)));
  --gutter-end: max(32px, calc(16px + env(safe-area-inset-right)));
}

.legal-app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter-end) 16px var(--gutter);
  background: rgba(10, 15, 20, 0.94);
  border-bottom: 1px solid var(--divider);
}

.legal-app-bar img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.legal-app-bar strong {
  display: block;
  font-size: 15px;
}

.legal-app-bar span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.legal-app-main {
  padding: 28px var(--gutter-end) max(56px, calc(32px + env(safe-area-inset-bottom))) var(--gutter);
}

.legal-app-main h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-app .legal-body {
  max-width: none;
  font-size: 16.5px;
  line-height: 1.7;
}

.legal-app .legal-body ul {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.legal-app .legal-body p,
.legal-app .legal-body li {
  overflow-wrap: break-word;
}

.legal-app .legal-body h2 {
  font-size: 1.08rem;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-high);
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.email-btn:hover {
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .wrap {
    width: min(var(--max), calc(100% - 56px));
  }

  .site-header {
    height: calc(var(--header-h) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .nav {
    top: calc(var(--header-h) + env(safe-area-inset-top));
  }

  .legal-page {
    padding: 28px 0 max(56px, calc(32px + env(safe-area-inset-bottom)));
  }

  .legal-page h1 {
    font-size: 28px;
  }

  .legal-body {
    font-size: 16.5px;
    line-height: 1.65;
  }

  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
