/* ═══════════════════════════════════════════════════════════════
   Acme — dark amber palette, Fraunces display, Satoshi body
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:       #0d0c0a;
  --bg2:      #141210;
  --bg3:      #1c1916;
  --surface:  #211f1a;
  --border:   #2e2b24;
  --amber:    #e8a020;
  --amber-lt: #f5be5a;
  --amber-dk: #b87c10;
  --text:     #f0ebe0;
  --text-2:   #a89e88;
  --text-3:   #68614f;
  --green:    #4ade80;
  --red:      #f87171;
  --radius:   6px;
  --radius-lg:14px;
  font-size: 16px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Satoshi', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Shared type ─────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: #0d0c0a;
}
.btn-primary:hover {
  background: var(--amber-lt);
  box-shadow: 0 4px 20px rgba(232, 160, 32, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-3);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm:hover { border-color: var(--amber); color: var(--amber); }

.btn-xs {
  padding: 6px 14px;
  font-size: 0.78rem;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.btn-xs:hover { color: var(--text); border-color: var(--text-3); }

.btn-amber {
  background: var(--amber);
  color: #0d0c0a;
  border-color: var(--amber);
}
.btn-amber:hover { background: var(--amber-lt); }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 12, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.logo-dot { color: var(--amber); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  margin-right: auto;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(232,160,32,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--amber-lt);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 640px;
}
.hero-headline em {
  font-style: italic;
  color: var(--amber);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ── FEATURES ────────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}
.feature-card {
  background: var(--bg2);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface); }
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── SHOWCASE ────────────────────────────────────────────────── */
.showcase {
  padding: 100px 0;
  background: var(--bg);
}
.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.widget-card:hover {
  border-color: rgba(232,160,32,0.3);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.widget-meta {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.widget-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.widget-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.widget-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}
.widget-demo {
  padding: 24px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  min-height: 140px;
}

/* Flip card */
.flip-card {
  width: 120px;
  height: 100px;
  perspective: 600px;
  cursor: pointer;
}
.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.flip-front {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.flip-back {
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.35);
  color: var(--amber-lt);
  transform: rotateY(180deg);
}
.flip-icon { font-size: 1.4rem; margin-bottom: 2px; }
.flip-front small, .flip-back small { font-size: 0.68rem; color: var(--text-3); font-weight: 400; }

/* Counter */
.counter-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.counter-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.counter-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.counter-reset { align-self: center; }

/* Configurator */
.configurator { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.config-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
.config-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d0c0a;
  transition: background 0.2s;
}
.config-controls { display: flex; flex-direction: column; gap: 8px; }
.config-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.config-input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.config-input:focus { border-color: var(--amber); }
.config-swatches { display: flex; gap: 8px; }
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { border-color: var(--text); transform: scale(1.15); }

/* Toggles */
.toggle-demo { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
}
.toggle-switch {
  width: 38px;
  height: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  position: relative;
  transition: background 0.22s, border-color 0.22s;
  flex-shrink: 0;
}
.toggle-switch.on {
  background: var(--amber);
  border-color: var(--amber);
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), background 0.22s;
}
.toggle-switch.on .toggle-thumb {
  transform: translateX(16px);
  background: #0d0c0a;
}
.toggle-label { font-size: 0.85rem; color: var(--text-2); user-select: none; }
.toggle-row:hover .toggle-label { color: var(--text); }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-bottom: 16px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  background: var(--bg2);
  transition: all 0.22s;
}
.step.completed .step-dot {
  background: var(--amber);
  border-color: var(--amber);
  color: #0d0c0a;
}
.step.active .step-dot {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,160,32,0.15);
}
.step span {
  font-size: 0.65rem;
  color: var(--text-3);
  font-weight: 500;
}
.step.active span { color: var(--amber-lt); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 14px;
  transition: background 0.3s;
}
.step-line.completed { background: var(--amber-dk); }
.stepper-btns { display: flex; gap: 8px; justify-content: center; }

/* Star rating */
.rating-demo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stars { display: flex; gap: 4px; font-size: 2rem; cursor: pointer; }
.star { color: var(--border); transition: color 0.12s, transform 0.12s; }
.star:hover, .star.lit { color: var(--amber); transform: scale(1.1); }
.rating-label {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 500;
  min-height: 1.2em;
}

/* Showcase CTA */
.showcase-cta {
  text-align: center;
  padding: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.showcase-cta p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ── ABOUT ────────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.code-block {
  background: #0a0908;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.82rem;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green  { background: #28c840; }
.code-filename {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-left: 4px;
  font-family: 'Courier New', monospace;
}
.code-body {
  padding: 20px 20px;
  overflow-x: auto;
}
.code-body code { font-family: 'Courier New', Courier, monospace; line-height: 1.9; }
.tok-kw  { color: #c792ea; }
.tok-fn  { color: #82aaff; }
.tok-id  { color: #eeffff; }
.tok-str { color: var(--amber-lt); }
.tok-attr { color: #ffcb6b; }
.tok-comp { color: #f07178; }
.tok-punc { color: var(--text-3); }
.tok-eq   { color: var(--text-3); }
.tok-brace { color: #89ddff; }
.tok-jsx  { color: #89ddff; }

/* ── WAITLIST ────────────────────────────────────────────────── */
.waitlist {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}
.waitlist-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 12px;
}
.waitlist-sub {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}
.waitlist-form { width: 100%; }
.form-row {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 6px 6px 16px;
  transition: border-color 0.15s;
}
.form-row:focus-within { border-color: var(--amber); }
.form-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.form-input::placeholder { color: var(--text-3); }
.form-message {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
}
.form-message.success { color: var(--green); }
.form-message.error   { color: var(--red); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg2);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-2);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-3);
  flex: 1;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-2); }

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .widget-grid   { grid-template-columns: 1fr; }
  .about-inner   { grid-template-columns: 1fr; }
  .hero-stats    { gap: 32px; }
  .nav-links     { display: none; }
}
@media (max-width: 520px) {
  .features-grid  { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; }
  .form-row       { flex-direction: column; padding: 12px; }
  .footer-inner   { flex-direction: column; text-align: center; }
  .footer-copy    { flex: none; }
}
