/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --bg-card: #181818;
  --border: #262626;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-dim: #6a6a6a;
  --accent: #1db954;
  --accent-dim: #169c46;
  --radius: 6px;
  --max-w: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-weight: 700; margin: 0 0 12px; line-height: 1.2; }
h2 { font-size: 22px; margin-bottom: 20px; }
h3 { font-size: 15px; margin-bottom: 8px; }
p { margin: 0 0 12px; color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand-name {
  font-weight: 700;
  font-size: 17px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
.site-nav a { color: var(--text-secondary); }
.site-nav a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent);
  color: #06120a !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--accent-dim); color: #06120a !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #06120a;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--text-secondary); }
.btn-large { font-size: 15px; padding: 14px 32px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 72px 24px 64px;
}
.hero-text { flex: 1.3; min-width: 0; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 16px;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-art {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  border: 1px solid var(--border);
}

/* ---------- Notices ---------- */
.notices { padding: 32px 24px; }
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.notice-date {
  color: var(--text-dim);
  font-size: 13px;
  min-width: 88px;
  flex-shrink: 0;
}
.notice-body h3 { margin: 0 0 4px; font-size: 15px; }
.notice-body p { margin: 0; font-size: 14px; }
.notice-empty { color: var(--text-dim); font-size: 14px; }

/* ---------- Features ---------- */
.features { padding: 40px 24px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature p { margin: 0; font-size: 14px; }

/* ---------- Screenshots ---------- */
.shots { padding: 40px 24px; }
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.shot-grid figure { margin: 0; }
.shot-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}
.shot-grid figcaption {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

/* ---------- Setup ---------- */
.setup { padding: 40px 24px; }
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  margin-bottom: 20px;
}
.setup-reqs ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}
.setup-reqs li { margin-bottom: 6px; }
.setup-steps pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin: 0;
}
.setup-steps code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-primary);
  white-space: pre;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack span {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- Download ---------- */
.download {
  padding: 56px 24px 72px;
  text-align: center;
}
.download-sub {
  max-width: 56ch;
  margin: 0 auto 24px;
  font-size: 14px;
}
.download-status {
  min-height: 20px;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
}
.download-alt {
  font-size: 13px;
  margin-top: 6px;
}
.download-alt a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-row p { margin: 0; font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-dim); font-size: 13px; }
.footer-links a:hover { color: var(--text-secondary); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .site-nav { gap: 14px; font-size: 13px; }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 20px 48px;
    gap: 28px;
  }
  .hero h1 { font-size: 28px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { width: 140px; height: 140px; border-radius: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: 1fr; }
  .notice { flex-direction: column; gap: 4px; }
  .notice-date { min-width: auto; }
  .footer-row { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .nav-cta { padding: 6px 12px; }
}
