:root {
  --bg: #0d0d0d;
  --surface: #151515;
  --surface-2: #1a1a1a;
  --line: #2a2418;
  --gold: #ffb800;
  --gold-dim: #c47f00;
  --amber: #c8922a;
  --cream: #f5e6c8;
  --muted: #b8ab92;
  --green: #39ff14;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}

a { color: var(--gold); }
img, svg { max-width: 100%; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.mono, .prompt, .tagline, .eyebrow, .mail {
  font-family: ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--cream); letter-spacing: .04em; }
.brand b { color: var(--gold); font-weight: 800; }
.chip { color: var(--gold); flex: none; }
.nav { display: flex; gap: 1.25rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--gold); }

/* hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }

.banner { display: block; width: 100%; height: auto; border-radius: 6px; }

.lede { max-width: 62ch; margin: 2rem auto 0; text-align: center; color: var(--muted); font-size: 1.1rem; }
.lede-left { color: var(--muted); max-width: 55ch; margin: 0 0 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.75rem 0 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* buttons */
.btn {
  display: inline-block; padding: .65rem 1.2rem; border-radius: 6px;
  border: 1px solid var(--gold-dim); color: var(--gold);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: rgba(255,184,0,.1); border-color: var(--gold); }
.btn-primary { background: var(--gold); color: #0d0d0d; border-color: var(--gold); }
.btn-primary:hover { background: #ffc933; color: #0d0d0d; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { margin: 0 0 .4rem; color: var(--green); font-size: .85rem; letter-spacing: .08em; text-transform: lowercase; }
h2 { margin: 0 0 1.75rem; font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.15; color: var(--cream); text-wrap: balance; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.4rem; display: flex; flex-direction: column; min-width: 0;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.card-featured { grid-column: 1 / -1; border-color: var(--gold-dim); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 1.35rem; color: var(--gold); }
.card p { color: var(--muted); margin: .8rem 0 0; }
.tag { font-family: ui-monospace, Consolas, monospace; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; }
.facts { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .4rem 1.5rem; color: var(--cream); font-size: .95rem; }
.facts li::before { content: "> "; color: var(--green); font-family: ui-monospace, Consolas, monospace; }
.card-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto !important; padding-top: 1.25rem; }
.card .fine { font-size: .82rem; margin-top: .9rem; color: var(--amber); }
.status { font-family: ui-monospace, Consolas, monospace; color: var(--green); font-size: .9rem; }
.status::before { content: "● "; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about > * { min-width: 0; }
.about h2 { margin-bottom: 0; }
.about-copy p { margin: 0 0 1rem; color: var(--muted); font-size: 1.05rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.75rem 0 0; }
.stats dt { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stats dd { margin: .3rem 0 0; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }

/* contact */
.mail { font-size: clamp(1.05rem, 4vw, 1.6rem); margin: 0; overflow-wrap: anywhere; }
.mail .prompt { color: var(--green); }
.mail a { color: var(--gold); text-decoration: none; border-bottom: 1px dashed var(--gold-dim); }
.mail a:hover { border-bottom-style: solid; }

/* footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.75rem; }
.site-footer .mono { color: var(--green); }

/* announcement + coffee */
.announce { background: var(--surface); border-bottom: 1px solid var(--gold-dim); }
.announce-inner { padding-block: .8rem; }
.announce p { margin: 0; color: var(--cream); font-size: .95rem; }
.announce .prompt { color: var(--green); }
.announce b { color: var(--gold); }
.coffee { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 1.75rem 0 0; }
.coffee span { color: var(--muted); max-width: 45ch; font-size: .95rem; }

/* app pages */
.app-hero { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.app-hero h1 { margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; color: var(--cream); text-wrap: balance; }
.app-hero .hero-cta { justify-content: flex-start; }
.back-link { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); text-decoration: none; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.back-link:hover { color: var(--gold); }
.fine { font-size: .85rem; color: var(--amber); margin: 1rem 0 0; max-width: 70ch; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; margin: 1.75rem 0 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.shots figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }

.steps { margin: 0; padding-left: 1.3rem; max-width: 65ch; color: var(--cream); }
.steps li { margin-bottom: .6rem; padding-left: .3rem; }
.steps li::marker { color: var(--gold); font-weight: 700; }

.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--cream); }
.faq summary::marker { color: var(--gold); }
.faq summary:hover { color: var(--gold); }
.faq details p { margin: .7rem 0 0; max-width: 65ch; color: var(--muted); }

@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; }
  .nav { gap: .9rem; }
  .brand-word { display: none; }
}