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

:root {
  --bg: #0b0f19;
  --bg-card: #131929;
  --bg-card-hover: #1a2236;
  --text: #e4e8f1;
  --text-muted: #8b95ad;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --border: #1e293b;
  --radius: 8px;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(11,15,25,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: .9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font-weight: 600; border-radius: var(--radius); cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, border-color .15s; border: 2px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text-muted); }

/* Hero */
.hero { padding: 140px 0 80px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.hero-sub { max-width: 620px; margin: 20px auto 0; font-size: 1.15rem; color: var(--text-muted); }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Features */
.features { padding: 80px 0; }
.features h2, .api-section h2, .cta-section h2 { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-muted); max-width: 560px; margin: 0 auto 48px; font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: background .15s; }
.feature-card:hover { background: var(--bg-card-hover); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* API Section */
.api-section { padding: 80px 0; border-top: 1px solid var(--border); }
.api-examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.api-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.api-card h4 { font-size: 1rem; margin-bottom: 8px; }
.api-card code { display: block; background: var(--bg); padding: 8px 12px; border-radius: 4px; font-size: .85rem; color: var(--primary); margin-bottom: 10px; font-family: "SF Mono", Menlo, Monaco, monospace; }
.api-card p { color: var(--text-muted); font-size: .9rem; }
.api-cta { text-align: center; margin-top: 40px; }

/* CTA / Signup */
.cta-section { padding: 80px 0; border-top: 1px solid var(--border); }
.signup-form { max-width: 480px; margin: 0 auto; }
.form-row { display: flex; gap: 12px; }
.form-input { flex: 1; padding: 12px 16px; font-size: 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); outline: none; }
.form-input:focus { border-color: var(--primary); }
.form-status { text-align: center; margin-top: 12px; font-size: .9rem; min-height: 1.4em; }
.form-status.success { color: #22c55e; }
.cta-note { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: .9rem; }

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

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .api-examples { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
