*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0a; --bg-card: #111; --bg-elevated: #1a1a1a; --bg-hover: #222;
  --border: #222; --border-light: #2a2a2a;
  --text: #f0f0f0; --text-muted: #888; --text-dim: #555;
  --accent: #4ade80; --accent-dark: #22c55e;
  --accent-glow: rgba(74,222,128,0.15); --accent-subtle: rgba(74,222,128,0.08); --accent-border: rgba(74,222,128,0.25);
  --red: #ef4444; --yellow: #eab308;
  --radius: 12px; --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4); --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, rgba(74,222,128,0.04) 0%, transparent 60%);
  background-attachment: fixed;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,10,10,0.85); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border); transition: background 0.3s; }
.nav.scrolled { background: rgba(10,10,10,0.95); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; transition: color 0.2s; }
.logo:hover { color: var(--accent); }
.logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--accent-subtle); border: 1px solid var(--accent-border); border-radius: 8px; color: var(--accent); font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; background: var(--accent); color: #000; border: none; border-radius: 8px; font-family: var(--font); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: all 0.2s; }
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 0 30px var(--accent-glow); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); box-shadow: none; }
.btn-accent { background: var(--accent); color: #000; }
.btn-block { width: 100%; }

/* HERO */
.hero { padding: 180px 0 100px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--accent-subtle); border: 1px solid var(--accent-border); border-radius: 100px; color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 32px; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 900; line-height: 1.05; margin-bottom: 24px; color: var(--text); letter-spacing: -2.5px; }
.hero .accent { color: var(--accent); }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-muted); max-width: 600px; margin: 0 auto 48px; line-height: 1.5; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 64px; }

/* PARTICLE CANVAS */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}

/* TERMINAL — FIXED HEIGHT */
.hero-terminal { max-width: 720px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-align: left; box-shadow: var(--shadow-lg); position: relative; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: var(--red); } .dot.yellow { background: var(--yellow); } .dot.green { background: var(--accent); }
.terminal-title { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.terminal-reset { background: none; border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; padding: 2px 8px; border-radius: 6px; font-size: 12px; transition: all 0.2s; font-family: var(--mono); margin-left: 8px; }
.terminal-reset:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-subtle); }
.hero-terminal pre {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  overflow-y: auto;
  height: 280px;
  min-height: 280px;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hero-terminal pre::-webkit-scrollbar { width: 6px; }
.hero-terminal pre::-webkit-scrollbar-track { background: transparent; }
.hero-terminal pre::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.hero-terminal .prompt { color: var(--accent); font-weight: 600; }
.hero-terminal .output { color: var(--text-muted); }
.cursor-blink { display: inline-block; width: 8px; height: 16px; background: var(--accent); animation: blink 1s step-end infinite; vertical-align: text-bottom; margin-left: 2px; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* LOGOS */
.logos { padding: 80px 0; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos p { color: var(--text-dim); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 28px; }
.logo-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.logo-item { padding: 10px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); font-size: 13px; font-weight: 500; transition: all 0.2s; }
.logo-item:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-subtle); }

/* SOCIAL PROOF */
.social-proof { padding: 60px 0; border-bottom: 1px solid var(--border); }
.social-proof-label { text-align: center; color: var(--text-dim); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 32px; }
.social-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof-stat { text-align: center; padding: 24px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.proof-number { font-size: 36px; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.proof-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--text); margin-bottom: 16px; letter-spacing: -1.5px; }
.section-header p { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* FEATURES */
.features { padding: 120px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; transition: all 0.3s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { color: var(--accent); }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 18px; color: var(--text); margin-bottom: 12px; font-weight: 700; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* HOW */
.how { padding: 120px 0; background: var(--bg-elevated); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(12.5% + 10px);
  right: calc(12.5% + 10px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-border), var(--accent), var(--accent-border));
  opacity: 0.3;
  z-index: 0;
}
/* Animated flow dot along connector */
.steps::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 10px);
  width: 8px; height: 6px;
  background: var(--accent);
  border-radius: 4px;
  z-index: 2;
  animation: flowDot 3s ease-in-out infinite;
}
@keyframes flowDot {
  0% { left: calc(12.5% + 10px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(87.5% - 18px); opacity: 0; }
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
}
.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(2) { transition-delay: 0.15s; }
.step:nth-child(3) { transition-delay: 0.3s; }
.step:nth-child(4) { transition-delay: 0.45s; }
.step-visible {
  opacity: 1;
  transform: translateY(0);
}
.step:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.step-visible:hover { transform: translateY(-4px); }
.step-number {
  width: 52px; height: 52px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 0 24px var(--accent-glow);
}
/* Connector arrows between step numbers */
.step-number::after {
  content: '→';
  position: absolute;
  top: 50%; left: calc(100% + 2px);
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  opacity: 0.4;
  margin-left: 4px;
}
.step:last-child .step-number::after { display: none; }
.step h3 { font-size: 18px; color: var(--text); margin-bottom: 12px; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.step code {
  display: block;
  padding: 10px 16px;
  background: var(--bg);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* SCAN */
.scan-section { padding: 120px 0; }
.scan-box { max-width: 580px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 40px; text-align: center; }
.scan-box h2 { font-size: 28px; color: var(--text); margin-bottom: 12px; font-weight: 800; }
.scan-box > p { color: var(--text-muted); margin-bottom: 32px; font-size: 15px; }
.scan-box input { width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 15px; margin-bottom: 12px; font-family: var(--font); transition: border-color 0.2s; }
.scan-box input:focus { outline: none; border-color: var(--accent); }
.scan-box input::placeholder { color: var(--text-dim); }
.scan-box button { width: 100%; margin-top: 8px; }
#scan-result { margin-top: 16px; padding: 16px; border-radius: 8px; display: none; font-size: 14px; line-height: 1.5; }
#scan-result.success { display: block; background: var(--accent-subtle); border: 1px solid var(--accent-border); color: var(--accent); }
#scan-result.error { display: block; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }

/* PRICING */
.pricing { padding: 120px 0; background: var(--bg-elevated); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-grid-4 { grid-template-columns: repeat(4, 1fr); max-width: 1200px; }
.pricing-grid-5 { grid-template-columns: repeat(5, 1fr); max-width: 1300px; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 28px; text-align: center; position: relative; transition: all 0.3s; display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border-color: var(--accent-border); box-shadow: 0 0 40px var(--accent-glow); background: linear-gradient(180deg, rgba(74,222,128,0.04) 0%, var(--bg-card) 40%); }
.price-card.featured:hover { box-shadow: 0 0 60px var(--accent-glow); }
.price-card .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 20px; background: var(--accent); color: #000; border-radius: 100px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.price-card h3 { font-size: 20px; color: var(--text); margin-bottom: 8px; font-weight: 700; }
.price-card .price { font-size: 44px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.price-card .price span { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.price-card .price-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; min-height: 40px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: auto; padding-bottom: 24px; }
.price-card li { padding: 7px 0; color: var(--text-muted); font-size: 13px; display: flex; align-items: flex-start; gap: 10px; }
.price-card .check { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.addons-section { margin-top: 48px; text-align: center; }
.addons-row { display: flex; justify-content: center; gap: 8px; flex-wrap: nowrap; max-width: 900px; margin: 0 auto; }
.addon-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--bg-card); border: 1px solid var(--accent-border); border-radius: 100px; text-decoration: none; color: var(--accent); font-size: 13px; font-weight: 600; transition: all 0.3s; cursor: pointer; white-space: nowrap; }
.addon-pill:hover { background: rgba(74,222,128,0.08); box-shadow: 0 0 20px rgba(74,222,128,0.1); transform: translateY(-2px); }
.addon-icon { flex-shrink: 0; }
.addon-icon svg { width: 16px; height: 16px; }
.addon-arrow { color: var(--text-dim); font-size: 12px; transition: transform 0.3s; }
.addon-pill:hover .addon-arrow { transform: translateX(4px); color: var(--accent); }
.addons-subtext { margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.pricing-note { max-width: 700px; margin: 40px auto 0; text-align: center; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.pricing-note p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.pricing-note .accent { color: var(--accent); font-weight: 700; }

/* COMPARE */
.compare { padding: 120px 0; }
.compare-table { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table thead th { padding: 18px 20px; font-size: 14px; font-weight: 700; color: var(--text-muted); background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.compare-table thead th.highlight { color: var(--accent); background: var(--accent-subtle); }
.compare-table tbody td { padding: 16px 20px; font-size: 14px; border-bottom: 1px solid var(--border); text-align: center; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child { color: var(--text); font-weight: 600; text-align: left; }
.compare-table tbody td.highlight { color: var(--accent); font-weight: 700; background: var(--accent-subtle); }
.compare-table tbody .yes { color: var(--accent); }
.compare-table tbody .no { color: var(--red); }
.compare-table tbody tr:hover { background: var(--bg-hover); }

/* CTA */
.cta-section { padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(32px, 4vw, 48px); color: var(--text); margin-bottom: 16px; font-weight: 800; letter-spacing: -1.5px; }
.cta-section p { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-muted); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* FOOTER */
footer { padding: 80px 0 32px; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col h4 { color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.footer-col p { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.status-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 14px; background: var(--accent-subtle); border: 1px solid var(--accent-border); border-radius: 100px; font-size: 12px; color: var(--accent); font-weight: 600; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.footer-bottom { text-align: center; color: var(--text-dim); font-size: 13px; padding-top: 32px; border-top: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before, .steps::after { display: none; }
  .step-number::after { display: none; }
  .pricing-grid, .pricing-grid-3, .pricing-grid-4, .pricing-grid-5 { grid-template-columns: 1fr; max-width: 400px; }
  .addons-row { flex-direction: column; align-items: center; }
  .addon-pill { width: 100%; max-width: 280px; justify-content: center; }
  .social-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .nav-links { display: none; }
  .hero { padding: 140px 0 80px; }
  .features, .how, .scan-section, .pricing, .compare, .cta-section { padding: 80px 0; }
}

/* CONTACT SECTION */
.contact-section { padding: 120px 0; }
.contact-section textarea:focus { outline: none; border-color: var(--accent); }
#contact-result { margin-top: 16px; padding: 16px; border-radius: 8px; display: none; font-size: 14px; line-height: 1.5; }
#contact-result.success { display: block; background: var(--accent-subtle); border: 1px solid var(--accent-border); color: var(--accent); }
#contact-result.error { display: block; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
