:root {
  --brand: #0a66c2;
  --brand-dark: #084b94;
  --brand-light: #e8f0fe;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --code-bg: #1e293b;
  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}

.header-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--text);
  text-decoration: none;
}
.header-logo span { color: var(--brand); }

.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.header-nav a:hover { color: var(--brand); text-decoration: none; }

.header-cta {
  padding: 8px 18px;
  background: var(--brand);
  color: white !important;
  border-radius: 20px;
  font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.header-cta:hover { background: var(--brand-dark) !important; text-decoration: none !important; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 24px 80px;
  background: linear-gradient(160deg, #f0f4ff 0%, #fff 50%, #f0fdf4 100%);
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(10,102,194,.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 28px;
  background: var(--brand); color: white;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,102,194,.35);
  text-decoration: none; color: white;
}

.btn-secondary {
  padding: 14px 28px;
  background: white; color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: border-color .2s, transform .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--brand); color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-video-placeholder {
  margin: 60px auto 0;
  max-width: 840px;
  aspect-ratio: 16/9;
  background: var(--code-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  color: #64748b; font-size: 15px;
  position: relative; overflow: hidden;
  border: 1px solid #334155;
}

.hero-video-placeholder .play-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

/* ── Section ──────────────────────────────────────────────────────────────── */
section { padding: 80px 24px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  line-height: 1.15; letter-spacing: -.5px;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px; color: var(--text-muted); max-width: 560px;
  margin-bottom: 48px;
}

/* ── Features grid ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-icon {
  font-size: 32px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--brand-light); border-radius: 12px;
}

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }

.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--brand); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}

.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; color: var(--text-muted);
  transition: all .15s;
}
.tab-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Code block ───────────────────────────────────────────────────────────── */
pre {
  background: var(--code-bg); color: #e2e8f0;
  padding: 20px 24px; border-radius: 10px;
  font-size: 13px; line-height: 1.7;
  overflow-x: auto; margin: 12px 0;
}
code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
p code, li code {
  background: var(--brand-light); color: var(--brand-dark);
  padding: 2px 7px; border-radius: 4px; font-size: 13px;
}

/* ── Tones showcase ───────────────────────────────────────────────────────── */
.tones-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tone-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: white; border: 1.5px solid var(--border);
  border-radius: 24px; font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.tone-pill:hover { border-color: var(--brand); background: var(--brand-light); cursor: default; }

/* ── Screenshot placeholder ───────────────────────────────────────────────── */
.screenshot-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center; color: var(--text-muted);
}
.screenshot-placeholder .ph-icon { font-size: 40px; margin-bottom: 12px; }
.screenshot-placeholder p { font-size: 15px; }
.screenshot-placeholder small { font-size: 13px; opacity: .7; }

/* ── Provider cards ───────────────────────────────────────────────────────── */
.providers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.provider-card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: white;
}
.provider-card .provider-badge {
  display: inline-block; padding: 3px 10px;
  background: var(--brand-light); color: var(--brand);
  border-radius: 20px; font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}
.provider-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.provider-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.provider-card code { font-size: 12px; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 2px; max-width: 720px; }
details {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
details + details { border-top: none; border-radius: 0; }
details:last-child { border-radius: 0 0 var(--radius) var(--radius); }
details:first-child { border-radius: var(--radius) var(--radius) 0 0; }
summary {
  padding: 18px 20px; font-weight: 600; font-size: 15px;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  background: white;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 20px; color: var(--text-muted); }
details[open] summary::after { content: '−'; }
details[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 16px 20px; background: var(--bg-alt); font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── CTA Banner ───────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, #7c3aed 100%);
  border-radius: 20px; padding: 60px 40px;
  text-align: center; color: white;
}
.cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 17px; opacity: .9; margin-bottom: 32px; }
.btn-white {
  padding: 14px 28px; background: white; color: var(--brand);
  border-radius: 10px; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); text-decoration: none; color: var(--brand); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text); color: #94a3b8;
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid #334155;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 10px; max-width: 280px; }
.footer-brand .footer-logo { font-size: 18px; font-weight: 700; color: white; }
.footer-links h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #e2e8f0; margin-bottom: 14px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: #94a3b8; }
.footer-links a:hover { color: white; text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: white; text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 60px 16px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
}
