/* LattePrompter landing — dark, calm, one amber accent.
   Type scale: 13 / 15 / 17 / 24 / 40 / clamp-hero. Spacing rhythm: 8px base. */

:root {
  --bg: #0d1014;
  --bg-raise: #12151a;
  --surface: #1a2027;
  --border: #232b33;
  --border-lit: #3a4854;
  --text: #fff3e3;
  --text-2: #8ca6bd;
  --text-3: #556573;
  --amber: #fcbd3f;
  --amber-deep: #e29a1b;
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-reading: 'Atkinson Hyperlegible', var(--font);
  --font-mono: 'SF Mono', ui-monospace, Menlo, monospace;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/assets/fonts/AtkinsonHyperlegible-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/assets/fonts/AtkinsonHyperlegible-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a { color: var(--amber); }
p a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }

/* ============================== nav ============================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.wordmark em { font-style: normal; color: var(--text-2); }
.cup { width: 20px; height: 20px; color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-ghost { color: var(--text-2); font-size: 15px; font-weight: 600; transition: color 0.15s; }
.nav-ghost:hover { color: var(--text); }

/* ============================== buttons ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-accent {
  background: var(--amber);
  color: #14100a;
  box-shadow: 0 0 0 0 rgba(252, 189, 63, 0);
}
.btn-accent:hover {
  transform: translateY(-1px);
  background: #ffd061;
  box-shadow: 0 8px 30px -6px rgba(252, 189, 63, 0.45);
}
.btn-ghost {
  border: 1px solid var(--border-lit);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ============================== hero ============================== */

.hero { padding: 152px 0 96px; position: relative; }
.hero::before {
  /* one warm glow behind the fold — the "latte light" */
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(252, 189, 63, 0.09), transparent 65%);
  pointer-events: none;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 28px;
}
.sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34em;
  margin-bottom: 36px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.cta-row.center { justify-content: center; }
.proof {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-bottom: 72px;
}

/* ============================== demo ============================== */

.demo-frame {
  background: #07090b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 90px -40px rgba(252, 189, 63, 0.18);
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-lit); }
.demo-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
  margin-left: 10px;
  flex: 1;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}
.chip-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.6s ease-in-out infinite;
}
.chip.waiting .chip-pulse { background: var(--text-3); animation: none; }
@keyframes pulse { 50% { opacity: 0.35; } }
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  background: color-mix(in srgb, var(--amber) 10%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
}

.demo-stage { position: relative; height: 300px; overflow: hidden; }
.demo-scroll {
  padding: 40px 56px;
  font-family: var(--font-reading);
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.55;
  font-weight: 700;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.demo-scroll .w { opacity: 0.34; transition: opacity 0.25s ease, color 0.25s ease, text-shadow 0.4s ease; }
.demo-scroll .w.read { opacity: 0.88; }
.demo-scroll .w.now {
  opacity: 1;
  color: var(--amber);
  text-shadow: 0 0 26px rgba(252, 189, 63, 0.55);
}
.demo-fade { position: absolute; left: 0; right: 0; height: 70px; pointer-events: none; }
.demo-fade.top { top: 0; background: linear-gradient(#07090b, transparent); }
.demo-fade.bottom { bottom: 0; background: linear-gradient(transparent, #07090b); }

.demo-meter {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-raise);
}
.demo-meter span {
  flex: 1;
  border-radius: 2px;
  background: color-mix(in srgb, var(--amber) 55%, #6b5a2e);
  min-height: 8%;
  transition: height 0.12s ease;
}

/* ============================== sections ============================== */

.section { padding: 108px 0; }
h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 24px;
}
.section .container.narrow h2 { margin-bottom: 18px; }
.body-lg { font-size: 19px; color: var(--text-2); line-height: 1.65; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 64px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--text-2); }

figure.shot, figure.shot-wide { margin: 0; }
figure.shot img, figure.shot-wide img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.75);
}
figcaption {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 14px;
  font-family: var(--font-mono);
}
.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-lit); transform: translateY(-2px); }
.card h3 { font-size: 16.5px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--text-2); }

.version { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); margin-bottom: 30px; }
.fine { font-size: 14px; color: var(--text-3); margin-top: 28px; line-height: 1.75; }
.fine strong { color: var(--text-2); }
#download .cta-row { margin-bottom: 0; }

/* ============================== footer ============================== */

.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-3);
}
.footer a:hover { color: var(--text); }

/* ============================== motion ============================== */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip-pulse { animation: none; }
  .demo-scroll { transition: none; }
  .btn, .card { transition: none; }
}

/* ============================== responsive ============================== */

@media (max-width: 480px) {
  .nav-ghost { display: none; }
}

@media (max-width: 860px) {
  .steps, .grid { grid-template-columns: 1fr; }
  .shot-pair { grid-template-columns: 1fr; }
  .hero { padding-top: 128px; }
  .demo-scroll { padding: 32px 28px; }
  .demo-stage { height: 260px; }
  .section { padding: 76px 0; }
}
