:root {
  --bg: #f4efe6;
  --bg-2: #ebe3d4;
  --surface: #fffaf3;
  --ink: #1c1915;
  --muted: #5e564c;
  --line: rgba(28, 25, 21, 0.12);
  --gold: #8a5a12;
  --gold-dim: rgba(138, 90, 18, 0.12);
  --dusk: #1b2740;
  --ember: #c56a32;
  --stage-ink: #f6f0e6;
  --stage-muted: rgba(246, 240, 230, 0.74);
  --code: #221c16;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Avenir Next", sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110e;
    --bg-2: #1c1814;
    --surface: #221c17;
    --ink: #f3eadf;
    --muted: #b7aa9a;
    --line: rgba(243, 234, 223, 0.12);
    --gold: #e0b15a;
    --gold-dim: rgba(224, 177, 90, 0.14);
    --code: #0e0c0a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 280px at 100% 0%, var(--gold-dim), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0 8px;
  font-size: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.lang {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.stage {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: end;
  padding: 48px 44px 40px;
  border-radius: 28px;
  color: var(--stage-ink);
  background: linear-gradient(155deg, var(--dusk) 0%, #3c2a33 48%, var(--ember) 140%);
  min-width: 0;
}
.kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0c27a;
}
.stage h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.lede { margin: 0 0 26px; max-width: 36em; color: var(--stage-muted); font-size: 19px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 600;
}
.btn-gold { background: #f0c27a; color: #24180c; }
.btn-line { border-color: rgba(246, 240, 230, 0.35); color: var(--stage-ink); }
.stage-mark {
  margin: 0;
  justify-self: end;
  width: min(280px, 100%);
}
.stage-mark img {
  width: 100%;
  height: auto;
  border-radius: 28%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}
.screen {
  margin: 18px 0 0;
  padding: 10px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-width: 0;
}
.screen img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.screen figcaption {
  margin: 12px 8px 0;
  color: var(--muted);
  font-size: 15px;
}

.facts {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 14px;
  min-width: 0;
}
.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fact span { color: var(--muted); font-size: 15px; }

.features { padding: 54px 0 10px; }
.section-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.features h2, .install h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.ve-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 20px;
  min-width: 0;
}
.ve-card--hero {
  background:
    linear-gradient(180deg, var(--gold-dim), transparent 70%),
    var(--surface);
}
.stack { display: grid; gap: 14px; }
.ve-card h3 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.ve-card p { margin: 0; color: var(--muted); }
.num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.quote {
  margin: 28px 0 0;
  padding: 0;
  max-width: 18em;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.install { padding: 36px 0 20px; }
.sub { margin: -6px 0 16px; color: var(--muted); max-width: 40em; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tabs button {
  font-family: var(--font-body);
  font-size: 15px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}
.panel {
  background: var(--code);
  color: #f6f0e6;
  border-radius: 22px;
  padding: 8px 8px 18px;
}
.panel ol { margin: 0; padding: 8px 28px 0 46px; }
.panel li { margin: 14px 0; }
.panel li::marker { color: #f0c27a; font-family: var(--font-mono); }
.code {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  overflow: auto;
}
.code code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.copy {
  margin-left: auto;
  flex: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: #f0c27a;
  border: 0;
  cursor: pointer;
}
.foot {
  padding: 28px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
.foot a { color: var(--ink); }

.stage, .screen, .fact, .ve-card, .quote { animation: fadeUp 0.55s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); }
.fact { animation-name: fadeScale; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 800px) {
  .stage, .facts, .grid { grid-template-columns: 1fr; }
  .stage { padding: 28px 22px 24px; }
  .stage-mark { justify-self: start; width: 148px; }
  .nav { flex-wrap: wrap; gap: 10px 16px; }
}
