/* ── Tokens ── */
:root {
  --bg:         #0b0d14;
  --bg-alt:     #111420;
  --bg-card:    #181b26;
  --border:     #252837;
  --text:       #e4e6eb;
  --text-dim:   #7c8095;
  --accent:     #4f8ff7;
  --accent-h:   #3a7ae0;
  --success:    #34d399;
  --radius:     10px;
  --max-w:      1080px;
  --max-narrow: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.9em;
  background: var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}

img { display: block; }

/* ── Utility ── */
.container     { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.narrow        { max-width: var(--max-narrow); }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  text-decoration: none;
}
.nav-brand img { border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-h); text-decoration: none; }
.btn-outline {
  border: 1.5px solid var(--border); color: var(--text); background: transparent;
}
.btn-outline:hover {
  border-color: var(--text-dim); text-decoration: none;
}

/* ── Hero ── */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,143,247,0.08) 0%, transparent 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  border-radius: 20px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 40px rgba(79,143,247,0.2));
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-sub {
  max-width: 600px;
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.hero-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ── Screenshots ── */
.screenshots { padding-bottom: 0; }
.screenshot-tabs {
  display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem;
}
.screenshot-tab {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim);
  padding: 0.5rem 1.2rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s ease;
}
.screenshot-tab:hover { color: var(--text); border-color: var(--text-dim); }
.screenshot-tab.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.screenshot-window {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; max-width: 960px; margin: 0 auto;
}
.screenshot-dots {
  display: flex; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.screenshot-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border);
}
.screenshot-img {
  width: 100%; display: none;
}
.screenshot-img.active { display: block; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}
.section > .narrow > p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* ── Feature grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card-icon { font-size: 1.6rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p  { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* ── Steps ── */
.steps { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.step {
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.step p  { color: var(--text-dim); font-size: 0.95rem; }

/* ── CTA ── */
.cta {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(79,143,247,0.06) 0%, transparent 100%),
    var(--bg);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* ── Mobile ── */
@media (max-width: 640px) {
  .hero { padding: 8rem 0 4rem; }
  .hero-logo { width: 100px; height: 100px; }
  .nav-links a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .footer-inner { flex-direction: column; gap: 0.5rem; }
}
