/* ===== Design tokens ===== */
:root {
  --color-bg: oklch(97.5% 0.01 80);
  --color-surface: oklch(100% 0 0);
  --color-surface-sunken: oklch(94% 0.015 80);
  --color-text: oklch(22% 0.02 280);
  --color-text-muted: oklch(45% 0.02 280);
  --color-accent: oklch(38% 0.11 280);      /* deep indigo */
  --color-accent-strong: oklch(28% 0.1 280);
  --color-action: oklch(72% 0.16 55);       /* warm amber */
  --color-action-strong: oklch(64% 0.17 50);
  --color-border: oklch(88% 0.015 80);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-hero: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  --text-section: clamp(1.8rem, 1.5rem + 1.5vw, 2.75rem);

  --space-section: clamp(3.5rem, 2.8rem + 3vw, 7rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);

  --radius: 14px;
  --radius-sm: 8px;

  --duration-fast: 150ms;
  --duration-normal: 280ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 1px 2px oklch(22% 0.02 280 / 0.06), 0 12px 28px oklch(22% 0.02 280 / 0.08);
  --shadow-lifted: 0 4px 10px oklch(22% 0.02 280 / 0.1), 0 24px 48px oklch(22% 0.02 280 / 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(97.5% 0.01 80 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--color-accent-strong);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.logo .logo-mark { color: var(--color-action-strong); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out-expo);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--color-accent-strong); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo);
}
.btn-primary {
  background: var(--color-action);
  color: oklch(20% 0.03 50);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.3) inset, var(--shadow-card);
}
.btn-primary:hover { background: var(--color-action-strong); transform: translateY(-1px); box-shadow: var(--shadow-lifted); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent-strong); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ===== Hero ===== */
.hero {
  padding-block: clamp(3rem, 4vw, 5.5rem) var(--space-section);
  position: relative;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(60% 60% at 30% 20%, oklch(85% 0.06 280 / 0.5), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  background: oklch(90% 0.04 280 / 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: var(--text-hero); max-width: 14ch; }
.hero .lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.hero-meta strong { color: var(--color-text); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-lifted);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.hero-visual .browser-bar {
  display: flex;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  background: var(--color-surface-sunken);
  border-bottom: 1px solid var(--color-border);
}
.hero-visual .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border); }
.hero-visual .mock-body { padding: 1.4rem; }
.hero-visual .mock-hero {
  height: 90px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, oklch(38% 0.11 280), oklch(50% 0.1 300));
  margin-bottom: 0.9rem;
}
.hero-visual .mock-row { display: flex; gap: 0.7rem; margin-bottom: 0.7rem; }
.hero-visual .mock-card { flex: 1; height: 54px; border-radius: var(--radius-sm); background: var(--color-surface-sunken); }
.hero-visual .badge-swap {
  position: absolute;
  right: -10px;
  bottom: -10px;
  background: var(--color-action);
  color: oklch(20% 0.03 50);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transform: rotate(-4deg);
}

/* ===== Section shell ===== */
section { padding-block: var(--space-section); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 3vw, 3rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { font-size: var(--text-section); }
.section-head p { color: var(--color-text-muted); font-size: var(--text-lg); }

.alt-bg { background: var(--color-surface); border-block: 1px solid var(--color-border); }

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-action-strong);
  margin-bottom: 0.6rem;
  display: block;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* ===== Sample teaser ===== */
.sample-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.compare-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.compare-card .tag {
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-card.before .tag { background: var(--color-surface-sunken); color: var(--color-text-muted); }
.compare-card.after .tag { background: oklch(90% 0.04 280 / 0.6); color: var(--color-accent-strong); }
.compare-card .thumb { aspect-ratio: 4 / 3; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.thumb .bar { border-radius: 6px; }
.thumb .bar.hero { height: 40%; }
.thumb .bar.row { flex: 1; display: flex; gap: 0.5rem; }
.thumb .bar.row > span { flex: 1; border-radius: 6px; }

.compare-card.before .bar.hero { background: oklch(90% 0.01 80); }
.compare-card.before .bar.row > span { background: oklch(93% 0.01 80); }
.compare-card.after .bar.hero { background: linear-gradient(135deg, oklch(38% 0.11 280), oklch(58% 0.13 45)); }
.compare-card.after .bar.row > span { background: oklch(94% 0.02 280); }

/* ===== Pricing ===== */
.price-card {
  background: var(--color-accent);
  color: oklch(97% 0.01 280);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lifted);
}
.price-card h2 { color: oklch(97% 0.01 280); }
.price-tag { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 600; }
.price-tag sup { font-size: 0.4em; vertical-align: super; }
.price-includes { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.price-includes li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.95rem; opacity: 0.92; }
.price-includes li::before { content: "✓"; color: var(--color-action); font-weight: 700; }
.price-card .btn-primary { width: 100%; }
.price-note { font-size: 0.8rem; opacity: 0.7; margin-top: 0.8rem; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 0.75rem; max-width: 760px; }
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--color-text-muted); margin: 0.75rem 0 0; }

/* ===== Order form ===== */
.order-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.order-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(38% 0.11 280 / 0.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-size: 0.9rem; min-height: 1.3em; }
.form-status.ok { color: oklch(45% 0.12 150); }
.form-status.err { color: oklch(50% 0.18 25); }

.payment-panel h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.payment-panel p { color: var(--color-text-muted); font-size: 0.9rem; }
.pay-option {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.9rem;
}
.pay-option strong { display: block; margin-bottom: 0.3rem; }
.wallet-address {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  background: var(--color-surface-sunken);
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  word-break: break-all;
  display: block;
  margin-top: 0.4rem;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 2.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a { color: var(--color-accent-strong); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-grid, .order-panel, .price-card { grid-template-columns: 1fr; }
  .steps, .sample-compare { grid-template-columns: 1fr; }
  .site-nav a:not(.btn) { display: none; }
}
