:root {
  --bg: #f6f2ea;
  --bg-strong: #efe7d9;
  --paper: rgba(255, 253, 248, 0.9);
  --paper-strong: #fffdf8;
  --ink: #10242b;
  --ink-soft: #53676e;
  --teal: #1f6b79;
  --teal-soft: #d9ecef;
  --amber: #c7853c;
  --line: rgba(16, 36, 43, 0.12);
  --line-strong: rgba(16, 36, 43, 0.18);
  --shadow: 0 30px 80px rgba(16, 36, 43, 0.11);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(31, 107, 121, 0.12), transparent 22rem),
    radial-gradient(circle at bottom left, rgba(199, 133, 60, 0.08), transparent 18rem),
    linear-gradient(180deg, #faf7f0 0%, #f2ede3 100%);
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.page-shell {
  min-height: 100vh;
}

.hero-shell,
.section,
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-shell {
  padding-top: 24px;
  padding-bottom: 36px;
}

.nav {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(16, 36, 43, 0.06);
}

.nav.is-scrolled {
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(16, 36, 43, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 30px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.04;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  max-width: 10ch;
}

.hero h1 span {
  display: block;
  color: rgba(16, 36, 43, 0.78);
}

.lead,
.section-heading p,
.card p,
.privacy-card li,
.code-note {
  color: var(--ink-soft);
  line-height: 1.75;
}

.lead {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.hero-meta {
  margin-top: 18px;
}

.hero-meta span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--ink) 0%, #21444d 100%);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.preview-shell {
  display: flex;
  justify-content: flex-end;
}

.preview-card,
.card,
.privacy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.preview-card {
  width: min(100%, 500px);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 251, 245, 0.94)),
    var(--paper-strong);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.preview-topbar strong {
  margin-left: 6px;
  color: var(--ink);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 36, 43, 0.16);
}

.preview-stage {
  padding: 22px;
}

.preview-hero {
  margin-bottom: 18px;
}

.preview-overline {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.preview-hero p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

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

.preview-surface {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
}

.preview-surface-large {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.preview-page {
  min-height: 200px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(31, 107, 121, 0.06), rgba(255, 255, 255, 0)),
    #fff;
  border: 1px solid rgba(16, 36, 43, 0.08);
  padding: 22px;
}

.preview-page-lines {
  height: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(16, 36, 43, 0.13);
}

.preview-page-lines.short {
  width: 62%;
}

.preview-badge,
.preview-chip,
.step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-badge {
  background: var(--teal-soft);
  color: var(--teal);
}

.preview-chip {
  margin-bottom: 10px;
  background: rgba(199, 133, 60, 0.12);
  color: #935f22;
}

.section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 14px;
}

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

.feature-grid,
.timeline-grid,
.link-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 22px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.card-soft {
  background: rgba(255, 255, 255, 0.72);
}

.step-tag {
  margin-bottom: 16px;
  background: rgba(31, 107, 121, 0.1);
  color: var(--teal);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.privacy-card {
  padding: 22px;
}

.privacy-card ul {
  margin: 0;
  padding-left: 18px;
}

.privacy-card li + li {
  margin-top: 12px;
}

.code-card pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: #f1ede4;
}

.code-note {
  margin-top: 16px;
}

.link-card {
  display: block;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 107, 121, 0.26);
}

.footer {
  padding-top: 22px;
  padding-bottom: 32px;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .hero,
  .split-layout,
  .feature-grid,
  .timeline-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: static;
    border-radius: 24px;
  }

  .hero h1 {
    max-width: none;
  }

  .preview-shell {
    justify-content: stretch;
  }

  .preview-card {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero-shell,
  .section,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .nav-links,
  .hero-actions,
  .hero-meta {
    width: 100%;
  }

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