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

:root {
  --primary: #007AFF;
  --primary-dark: #0056CC;
  --dark: #0A0F1E;
  --dark2: #111827;
  --card: #1A2235;
  --border: #1E2D45;
  --text: #E8EDF5;
  --muted: #8896AA;
  --accent: #00D4FF;
  --green: #00C48C;
  --purple: #7C3AED;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center;
  height: 64px; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
}
.nav-logo .mark {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #fff;
}
.nav-logo .ai { color: var(--primary); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 18px !important; border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ── HERO ── */
.hero {
  padding: 100px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,122,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,122,255,0.12);
  border: 1px solid rgba(0,122,255,0.3);
  color: var(--primary);
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #8896AA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 span { -webkit-text-fill-color: var(--primary); }
.hero p {
  font-size: 18px; color: var(--muted);
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,122,255,0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--muted); background: rgba(255,255,255,0.04); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ── SECTIONS ── */
section { padding: 80px 5%; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--muted);
  max-width: 560px; line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-top: 48px; }

/* ── FEATURE CARD ── */
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feat-icon.blue { background: rgba(0,122,255,0.15); }
.feat-icon.green { background: rgba(0,196,140,0.15); }
.feat-icon.purple { background: rgba(124,58,237,0.15); }
.feat-icon.cyan { background: rgba(0,212,255,0.15); }
.feat-icon.orange { background: rgba(255,149,0,0.15); }
.feat-icon.pink { background: rgba(255,45,85,0.15); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── CODE BLOCK ── */
.code-block {
  background: #0D1117;
  border: 1px solid #21262D;
  border-radius: 10px;
  padding: 20px 24px;
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  position: relative;
}
.code-block .comment { color: #6A737D; }
.code-block .tag { color: #79C0FF; }
.code-block .attr { color: #FF7B72; }
.code-block .val { color: #A5D6FF; }
.code-block .str { color: #A5D6FF; }
.code-block .fn { color: #D2A8FF; }
.code-block .kw { color: #FF7B72; }
.code-block .num { color: #79C0FF; }
.code-block .copy {
  position: absolute; top: 12px; right: 12px;
  background: #21262D; border: 1px solid #30363D;
  color: #8B949E; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.code-block .copy:hover { color: #fff; background: #30363D; }

/* ── STEP ── */
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.step-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: 14px; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 32px; }

/* ── ARCH DIAGRAM ── */
.arch {
  background: #0D1117;
  border: 1px solid #21262D;
  border-radius: 12px;
  padding: 32px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #8B949E;
  line-height: 1.9;
  overflow-x: auto;
  white-space: pre;
}
.arch .hl { color: #79C0FF; }
.arch .gr { color: #3FB950; }
.arch .pu { color: #D2A8FF; }
.arch .or { color: #FFA657; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.price-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(0,122,255,0.08) 0%, var(--card) 100%);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.price-name { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.price-amount { font-size: 42px; font-weight: 800; letter-spacing: -2px; margin-bottom: 4px; }
.price-amount span { font-size: 18px; font-weight: 500; color: var(--muted); }
.price-period { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.price-cta { width: 100%; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; margin-top: 40px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; border-bottom: 1px solid rgba(30,45,69,0.6); }
tr:hover td { background: rgba(255,255,255,0.02); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--muted); }

/* ── STAT BAR ── */
.stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.stat { flex: 1; min-width: 160px; padding: 32px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 36px; font-weight: 800; letter-spacing: -2px; background: linear-gradient(135deg, #fff, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-q { padding: 18px 20px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 20px; color: var(--muted); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; color: var(--muted); font-size: 14px; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 5% 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: rgba(0,122,255,0.08);
  border: 1px solid rgba(0,122,255,0.2);
  border-radius: 10px;
  padding: 20px 24px;
}
.highlight-box.green { background: rgba(0,196,140,0.08); border-color: rgba(0,196,140,0.2); }
.highlight-box.purple { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); }

/* ── TAG PILL ── */
.pill {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.pill-blue { background: rgba(0,122,255,0.15); color: #60A5FA; }
.pill-green { background: rgba(0,196,140,0.15); color: #34D399; }
.pill-purple { background: rgba(124,58,237,0.15); color: #A78BFA; }
.pill-orange { background: rgba(255,149,0,0.15); color: #FBB040; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, rgba(0,122,255,0.12) 0%, rgba(124,58,237,0.08) 100%);
  border: 1px solid rgba(0,122,255,0.2);
  border-radius: 20px;
  padding: 64px 5%;
  text-align: center;
  margin: 0 5% 80px;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.cta-section p { color: var(--muted); font-size: 17px; margin-bottom: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 4%; gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 56px 4%; }
  .hero { padding: 64px 4% 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
