:root {
  --paper: #161009;
  --paper-2: #1d160d;
  --ink: #f3ead9;
  --ink-soft: #c8bba6;
  --ink-mute: #9a8f7c;
  --bronze: #c2693c;
  --gold: #cda86a;
  --line: rgba(205, 168, 106, 0.16);
  --card: rgba(255, 250, 240, 0.028);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ambient glows */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.glow-1 {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(194, 105, 60, 0.22), transparent 70%);
}
.glow-2 {
  width: 600px; height: 600px;
  bottom: -260px; right: -160px;
  background: radial-gradient(circle, rgba(205, 168, 106, 0.12), transparent 70%);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(22, 16, 9, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--gold); }

/* HERO */
.hero {
  padding-top: 120px;
  padding-bottom: 110px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  color: var(--bronze);
  margin-bottom: 30px;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.2rem, 13vw, 8.5rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, var(--ink) 30%, var(--gold) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--gold);
  margin-top: 18px;
}
.sub {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  color: #1a1206;
  box-shadow: 0 10px 34px rgba(194, 105, 60, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(194, 105, 60, 0.42); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* SECTIONS */
.section {
  padding-top: 78px;
  padding-bottom: 78px;
  border-top: 1px solid var(--line);
}
.serif-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 38px;
  max-width: 640px;
}
.section p { color: var(--ink-soft); }
.section p + p { margin-top: 16px; }
em { font-style: italic; color: var(--gold); }
strong { font-weight: 600; color: var(--ink); }

/* INSTALL */
.install-grid {
  display: grid;
  gap: 18px;
}
.install-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bronze);
}
.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  text-align: left;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace;
  color: var(--ink);
  font-size: 0.86rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.code code { white-space: nowrap; overflow-x: auto; }
.code:hover { border-color: var(--gold); background: rgba(205, 168, 106, 0.05); }
.copy-hint {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.code:hover .copy-hint { color: var(--gold); }

.note {
  margin-top: 34px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.code-inline {
  display: inline-flex;
  width: auto;
  margin-top: 12px;
  padding: 9px 14px;
  font-size: 0.8rem;
}

/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.formula-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 34px 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}
.formula-label {
  font-family: 'SFMono-Regular', ui-monospace, monospace;
  color: var(--bronze);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.formula {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
}
.formula-note {
  color: var(--ink-mute);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* BENCHMARK */
.bench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.bench-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  overflow: hidden;
}
.bench-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #fdf8ef;
}
.bench-card figcaption {
  margin-top: 16px;
  color: var(--ink-mute);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* WHERE TABLE */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.where-table {
  width: 100%;
  border-collapse: collapse;
}
.where-table th, .where-table td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.where-table tr:last-child td { border-bottom: none; }
.where-table th {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--paper-2);
}
.where-table td:first-child {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.where-table td { color: var(--ink-soft); }

/* FOOTER */
.footer {
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.88rem;
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  color: #1a1206;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* RESPONSIVE */
@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(:last-child) { display: none; }
  .why-grid, .bench-grid { grid-template-columns: 1fr; }
  .code { font-size: 0.76rem; }
  .hero { padding-top: 80px; padding-bottom: 70px; }
}
