:root {
  --color-canvas: #f5f5f5;
  --color-paper: #ffffff;
  --color-surface-alt: #fafafa;
  --color-ink: #0a0a0a;
  --color-ink-soft: #171717;
  --color-mid-gray: #737373;
  --color-hairline: #e5e5e5;
  --color-ember: #e7000b;
  --color-ember-tint: #fdeceb;
  --font-geist: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 18px;
  --radius-card: 24px;
  --max-width: 1080px;
  --shadow-card:
    0 0 0 1px var(--color-hairline),
    0 1px 3px 0 rgba(0, 0, 0, 0.08),
    0 6px 20px -8px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-mid-gray);
  font-family: var(--font-geist);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-ink);
  letter-spacing: -0.015em;
}
p { margin: 0 0 1em; color: var(--color-mid-gray); }
code {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  padding: .1em .45em;
  font-family: var(--font-mono);
  font-size: .88em;
  color: var(--color-ink-soft);
}
a { color: var(--color-ink); text-decoration: none; }
a:hover { color: var(--color-ember); }

/* --- nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-ink);
}
.brand:hover { color: var(--color-ink); }
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-hairline), 0 0 14px -2px rgba(231, 0, 11, 0.28);
}
.brand-mark img { display: block; width: 20px; height: 20px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--color-mid-gray); font-weight: 500; font-size: .92rem; }
.nav-links a:hover { color: var(--color-ink); }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  font-family: var(--font-geist);
}
.btn-primary {
  background: var(--color-ink);
  color: var(--color-surface-alt);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 8px 20px -10px rgba(231, 0, 11, 0.35);
}
.btn-primary:hover { background: var(--color-ink-soft); }
.btn-ghost {
  background: var(--color-paper);
  border-color: var(--color-hairline);
  color: var(--color-ink);
}
.btn-ghost:hover { border-color: var(--color-mid-gray); }

/* --- hero --- */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 82% -10%, rgba(231, 0, 11, 0.07), transparent 65%),
    radial-gradient(600px 360px at -5% 30%, rgba(10, 10, 10, 0.05), transparent 70%);
}
.hero-copy {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.lede { font-size: 1.08rem; max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.platforms { font-size: .85rem; color: var(--color-mid-gray); margin: 0; }
.hero-shot {
  max-width: 980px;
  margin: 48px auto 0;
  position: relative;
}
.hero-shot video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
  background: var(--color-ink);
  box-shadow: var(--shadow-card);
}
.hero-video-controls {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.hero-shot:hover .hero-video-controls,
.hero-shot:focus-within .hero-video-controls {
  opacity: 1;
}
.hero-video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.hero-video-btn:hover { background: rgba(255, 255, 255, 0.15); }
.hero-video-btn-play {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
}
.hero-video-btn-play:hover { background: rgba(255, 255, 255, 0.25); }
.hero-video-btn-play svg.is-hidden { display: none; }

/* --- section shells --- */
section { padding: 64px 0; }
section h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 32px;
}
.how, .download { border-top: 1px solid var(--color-hairline); }

/* --- feature grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-ink-soft);
  color: var(--color-surface-alt);
  margin-bottom: 16px;
}
.card-icon-accent {
  background: var(--color-ember-tint);
  color: var(--color-ember);
}
.card h3 { font-size: 1.02rem; font-weight: 500; color: var(--color-ink); }
.card p { margin-bottom: 0; font-size: .93rem; }

/* --- features disclosure --- */
.features-more { margin-top: 28px; }
.features-more summary {
  cursor: pointer;
  font-weight: 500;
  font-size: .92rem;
  color: var(--color-mid-gray);
  list-style: none;
}
.features-more summary::-webkit-details-marker { display: none; }
.features-more summary::before { content: "+ "; color: var(--color-ember); }
.features-more[open] summary::before { content: "− "; }
.features-more summary:hover { color: var(--color-ink); }
.features-more .grid { margin-top: 20px; }

/* --- how it works --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.steps li {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  padding: 22px 20px 20px;
  color: var(--color-mid-gray);
  font-size: .93rem;
  position: relative;
  box-shadow: var(--shadow-card);
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-ink-soft);
  color: var(--color-surface-alt);
  margin-bottom: 12px;
}
.step-icon-accent { background: var(--color-ember-tint); color: var(--color-ember); }
.steps strong { color: var(--color-ink); font-weight: 500; }

/* --- download --- */
.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.dl-option { position: relative; }
.dl-option summary {
  cursor: pointer;
  list-style: none;
}
.dl-option summary::-webkit-details-marker { display: none; }
.btn-download { padding: 14px 28px; font-size: 1rem; }
.dl-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 5;
}
.dl-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
}
.dl-menu a:hover { background: var(--color-canvas); }
.dl-menu strong { display: block; font-weight: 500; font-size: .92rem; }
.dl-menu span { display: block; font-size: .78rem; color: var(--color-mid-gray); }

/* --- footer --- */
.footer { border-top: 1px solid var(--color-hairline); padding: 24px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-mid-gray);
  font-family: var(--font-mono);
  font-size: .8rem;
}
.footer-inner a { color: var(--color-mid-gray); }
.footer-inner a:hover { color: var(--color-ember); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.report-bug-btn {
  font: inherit;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--color-mid-gray);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.report-bug-btn:hover { color: var(--color-ember); }

.report-bug-dialog {
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px;
  width: min(340px, calc(100vw - 48px));
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}
.report-bug-dialog::backdrop { background: rgba(10, 10, 10, 0.5); }
.report-bug-dialog h3 { margin-bottom: .3em; }
.report-bug-dialog p { font-size: .92rem; margin-bottom: 20px; }
.report-bug-dialog-options { display: flex; flex-direction: column; gap: 10px; }
.report-bug-dialog-options .btn { justify-content: center; }
.report-bug-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-mid-gray);
  cursor: pointer;
}
.report-bug-dialog-close:hover { background: var(--color-canvas); color: var(--color-ink); }

/* --- responsive --- */
@media (max-width: 860px) {
  .hero h1 { font-size: 2.2rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 16px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links a:nth-child(2) { display: none; } /* hide "How it works" -- keep Download + GitHub */
}
@media (max-width: 420px) {
  .nav-links { gap: 12px; }
}
