/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0c0e12;
  --surface1:  #13161d;
  --surface2:  #1a1e28;
  --border:    rgba(142,171,255,0.12);
  --border2:   rgba(142,171,255,0.20);
  --primary:   #8eabff;
  --primary-dim: rgba(142,171,255,0.10);
  --cyan:      #64d2dc;
  --error:     #ff6b6b;
  --text1:     #ffffff;
  --text2:     #a8b8d8;
  --text3:     #576070;
  --radius:    14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text1);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  flex-shrink: 0;
}

/* ── Grid overlay ─────────────────────────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(142,171,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,171,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(12,14,18,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text1);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text2);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text1); }
.nav-links a.active { color: var(--primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #0c0e12;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 28px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #0c0e12;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(142,171,255,0.25); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── Play Store badge ─────────────────────────────────────────────────────── */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface1);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 12px 24px;
  text-decoration: none;
  transition: all 0.2s;
}

.play-badge:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

.play-badge-icon { width: 28px; height: 28px; }

.play-badge-text { display: flex; flex-direction: column; }
.play-badge-sub { font-size: 10px; color: var(--text3); letter-spacing: 0.06em; text-transform: uppercase; }
.play-badge-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--text1); }

/* ── Section ──────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  color: var(--text1);
}

.section-header p {
  font-size: 16px;
  color: var(--text2);
  max-width: 480px;
  line-height: 1.7;
}

/* ── Feature cards ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-dim);
  border: 1px solid var(--border2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text1);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

/* ── Pillars ──────────────────────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  background: var(--surface1);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.pillar-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Phone mockup ─────────────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: 240px;
  height: 500px;
  background: #161a22;
  border-radius: 40px;
  border: 2px solid var(--border2);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(142,171,255,0.06);
  flex-shrink: 0;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  z-index: 2;
}

/* ── Screenshot gallery ───────────────────────────────────────────────────── */
.sc-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 40px;
}

/* Phone side */
.sc-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  padding-bottom: 28px;
}

.sc-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,171,255,0.16) 0%, transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  pointer-events: none;
}

.sc-phone {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 540px;
  background: #161a22;
  border-radius: 44px;
  border: 2px solid var(--border2);
  overflow: hidden;
  box-shadow:
    0 48px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(142,171,255,0.06),
    0 0 60px rgba(142,171,255,0.08);
  flex-shrink: 0;
}

.sc-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: opacity 0.28s ease;
}

.sc-phone img.sc-fade {
  opacity: 0;
}

/* When the screenshot already includes a phone frame — strip the CSS frame */
.sc-phone.sc-phone--bare {
  background: transparent;
  border-color: transparent;
  box-shadow: 0 48px 80px rgba(0,0,0,0.55);
  border-radius: 28px;
}

.sc-phone.sc-phone--bare .phone-notch {
  display: none;
}

.sc-phone.sc-phone--bare img {
  border-radius: 26px;
}

.sc-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 18px;
  background: rgba(0,0,0,0.55);
  filter: blur(16px);
  border-radius: 50%;
  z-index: 0;
}

/* Info panel */
.sc-info {
  padding: 0 20px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sc-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-counter::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  flex-shrink: 0;
}

.sc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  transition: opacity 0.2s;
}

.sc-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 36px;
  transition: opacity 0.2s;
}

/* Nav buttons */
.sc-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.sc-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface1);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  line-height: 1;
  font-family: sans-serif;
}

.sc-btn:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Thumbnail strip */
.sc-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 8px;
}

.sc-thumbs::-webkit-scrollbar { display: none; }

.sc-thumb {
  width: 54px;
  height: 116px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.5;
}

.sc-thumb:hover { opacity: 0.8; transform: translateY(-2px); }

.sc-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(142,171,255,0.35);
  opacity: 1;
}

.sc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Section with no top gap for screenshots */
.sc-section {
  padding-top: 80px;
}

@media (max-width: 768px) {
  .sc-stage { grid-template-columns: 1fr; }
  .sc-phone-wrap { margin-bottom: 36px; }
  .sc-phone { width: 220px; height: 460px; }
  .sc-glow { width: 260px; height: 260px; }
  .sc-info { padding: 0; }
  .sc-title { font-size: 28px; }
  .sc-thumb { width: 44px; height: 94px; }
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  position: relative;
  z-index: 1;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text3);
  text-decoration: none;
  text-transform: uppercase;
}

.footer-logo span { color: var(--primary); opacity: 0.6; }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
  color: var(--text3);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-copy {
  font-size: 12px;
  color: var(--text3);
}

/* ── Legal / Prose ────────────────────────────────────────────────────────── */
.prose-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

.prose-toc {
  position: sticky;
  top: 88px;
}

.prose-toc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.prose-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prose-toc a {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  display: block;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.prose-toc a:hover { color: var(--text1); background: var(--surface1); border-color: var(--border); }

.prose {
  max-width: 680px;
}

.prose h2 {
  font-size: 22px;
  color: var(--text1);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose ul {
  margin: 12px 0 16px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose li {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.prose th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose td {
  padding: 12px 16px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose a {
  color: var(--primary);
  text-decoration: none;
}

.prose a:hover { text-decoration: underline; }

.prose strong { color: var(--text1); font-weight: 600; }

/* ── Changelog ────────────────────────────────────────────────────────────── */
.changelog-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:first-child { padding-top: 0; }

.changelog-meta { display: flex; flex-direction: column; gap: 8px; }

.version-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-dim);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  width: fit-content;
}

.changelog-date {
  font-size: 13px;
  color: var(--text3);
  font-family: 'Space Grotesk', sans-serif;
}

.changelog-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: var(--text1);
  margin-bottom: 16px;
}

.changelog-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.changelog-content li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

.changelog-content li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  flex-shrink: 0;
}

.tag-new { background: rgba(142,171,255,0.12); color: var(--primary); }
.tag-fix { background: rgba(100,210,220,0.10); color: var(--cyan); }
.tag-improved { background: rgba(255,255,255,0.06); color: var(--text2); }
.tag-pro { background: rgba(255,196,87,0.12); color: #ffc457; }

/* ── Support ──────────────────────────────────────────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 60px;
}

.support-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  color: var(--text1);
}

.support-card p { font-size: 14px; color: var(--text2); line-height: 1.65; }

.support-card a {
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}

.support-card a:hover { text-decoration: underline; }

.faq { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text1);
  transition: color 0.2s;
}

.faq-q:hover { color: var(--primary); }

.faq-q svg {
  width: 18px;
  height: 18px;
  stroke: var(--text3);
  flex-shrink: 0;
  transition: transform 0.2s;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-item.open .faq-a { display: block; }

/* ── Page header (legal/inner pages) ─────────────────────────────────────── */
.page-header {
  padding: 120px 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.page-header h1 { font-size: 48px; }

.page-header p {
  font-size: 15px;
  color: var(--text2);
}

/* ── Glow accents ─────────────────────────────────────────────────────────── */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow-1 {
  top: -160px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(142,171,255,0.10) 0%, transparent 70%);
}

.glow-2 {
  top: 100px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,210,220,0.06) 0%, transparent 70%);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 80px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .prose-layout { grid-template-columns: 1fr; }
  .prose-toc { display: none; }
  .changelog-entry { grid-template-columns: 1fr; gap: 16px; }
  .support-grid { grid-template-columns: 1fr; }
  .page-header { padding: 100px 20px 40px; }
  footer { flex-direction: column; align-items: flex-start; padding: 32px 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
