/* ═══════════════════════════════════════
   Next Story Hub — shared styles
   ═══════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d0d12;
  --surface: #15151c;
  --surface-2: #1e1e2e;
  --border: #2a2a3a;
  --text: #e4e4f0;
  --dim: #7a7a8c;
  --accent: #cba6f7;
  --accent-hover: #b4befe;
  --green: #a6e3a1;
  --cyan: #74c7ec;
  --yellow: #f9e2af;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

html, body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

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

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.brand:hover { color: var(--accent-hover); }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--dim); }
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: 18px;
  color: var(--dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Product cards (hub index) ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 40px 0 80px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: transform .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.product-card .product-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--surface-2);
}
.product-card h2 {
  font-size: 20px;
  font-weight: 600;
}
.product-card .product-desc {
  font-size: 14px;
  color: var(--dim);
  flex: 1;
}
.product-card .product-meta {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--mono);
}

/* ── Product page hero ── */
.product-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.product-hero .app-icon {
  width: 96px; height: 96px;
  margin: 0 auto 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(203, 166, 247, 0.2);
}
.product-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}
.product-hero .subtitle {
  font-size: 18px;
  color: var(--dim);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ── Download buttons ── */
.downloads {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all .15s;
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}
.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  border-color: var(--accent-hover);
}
.btn .arch { font-family: var(--mono); font-size: 12px; opacity: 0.7; }

/* ── Features grid ── */
.features {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.features h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feature h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent);
}
.feature p {
  font-size: 14px;
  color: var(--dim);
}

/* ── Screenshots ── */
.screenshots {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.screenshots h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
}
.screenshots .shot {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ── Demo video ── */
.demo {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.demo h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 8px;
}
.demo-caption {
  text-align: center;
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 32px;
}
.demo-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  max-width: 100%;
}
.demo-frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Footer ── */
.site-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}
.site-footer .footer-links { margin-top: 8px; }
.site-footer .footer-links a { margin: 0 8px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 36px; }
  .product-hero h1 { font-size: 32px; }
  .product-hero .subtitle { font-size: 16px; }
}
