:root {
  --porcelain: #fefefc;
  --linen: #fbfbf8;
  --bone: #edede8;
  --greige: #a8a49d;
  --charcoal: #1c1c1a;
  --smoke: #8f8b83;
  --success: #2e7d57;
  --warning: #c58b1b;
  --error: #c64b51;

  --bg: var(--porcelain);
  --card: var(--linen);
  --text: var(--charcoal);
  --muted: var(--smoke);
  --border: var(--bone);
  --accent: var(--greige);
  --accent-strong: var(--charcoal);
  --shadow: rgba(28, 28, 26, 0.08);
  --glow: rgba(168, 164, 157, 0.25);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0e;
    --card: #161715;
    --text: #f5f3ed;
    --muted: #b8b4ab;
    --border: #242422;
    --accent: #a8a49d;
    --accent-strong: #f5f3ed;
    --shadow: rgba(0, 0, 0, 0.4);
    --glow: rgba(168, 164, 157, 0.18);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino", "Palatino Linotype", "Book Antiqua", "Georgia", "Times New Roman", serif;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(168, 164, 157, 0.25) 0%, rgba(168, 164, 157, 0.02) 62%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
}

body::after {
  inset: auto auto -30% -10%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(237, 237, 232, 0.45) 0%, rgba(237, 237, 232, 0.05) 60%, transparent 70%);
}

.page {
  position: relative;
  z-index: 1;
}

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

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

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

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 10px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  padding: 64px 0 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw + 1.5rem, 4rem);
  margin: 0 0 18px;
  line-height: 1.1;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 10px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  background: transparent;
}

.button.primary {
  background: var(--accent-strong);
  color: var(--bg);
  border-color: var(--accent-strong);
  box-shadow: 0 18px 40px var(--shadow);
}

.button.ghost:hover,
.button.primary:hover {
  transform: translateY(-2px);
}

.hero-card {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(251, 251, 248, 0.9) 0%, rgba(237, 237, 232, 0.6) 100%);
  color: var(--text);
  display: grid;
  gap: 6px;
}

@media (prefers-color-scheme: dark) {
  .hero-card {
    background: linear-gradient(135deg, rgba(22, 23, 21, 0.9) 0%, rgba(36, 36, 34, 0.6) 100%);
  }
}

.hero-card span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-card strong {
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 30px 70px var(--shadow);
}

.phone-frame {
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stat {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.1rem;
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-size: clamp(1.8rem, 1.6vw + 1.4rem, 2.6rem);
  margin-bottom: 16px;
}

.section p.lead {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 20px 40px var(--shadow);
  display: grid;
  gap: 12px;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
}

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

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.flow-step {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: transparent;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.screens-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 30px var(--shadow);
}

.screens-grid figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 20px 40px var(--shadow);
}

.support-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.support-list strong {
  color: var(--text);
}

.notice {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(168, 164, 157, 0.12) 0%, rgba(251, 251, 248, 0.2) 100%);
}

.footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.reveal {
  animation: rise 700ms ease forwards;
  opacity: 0;
  transform: translateY(14px);
}

.reveal.delay-1 {
  animation-delay: 120ms;
}

.reveal.delay-2 {
  animation-delay: 240ms;
}

.reveal.delay-3 {
  animation-delay: 360ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .hero-visual {
    order: -1;
  }

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

  .support-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

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

  .hero {
    padding-top: 32px;
  }

  .feature-grid,
  .flow,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
