:root {
  --background: #0b0f1a;
  --foreground: #e9ecf5;
  --card: #111625;
  --card-foreground: #e9ecf5;
  --muted: #1a2032;
  --muted-foreground: #93a0b8;
  --primary: #6366f1;
  --primary-foreground: #ffffff;
  --primary-2: #22d3ee;
  --secondary: #232b40;
  --secondary-foreground: #dbe1ef;
  --border: #232b40;
  --input: #232b40;
  --radius: 0.75rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.mono, .mono * { font-family: "JetBrains Mono", monospace; }
.font-serif { font-family: "Source Serif 4", serif; }
.font-sans { font-family: "Inter", sans-serif; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; }

.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }

/* Header */
#header { height: 4rem; background: rgba(11,15,26,0.95); backdrop-filter: blur(12px); }
.brand { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.05em; color: var(--foreground); }
.brand::after { content: "·"; color: var(--primary); }
#header nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.2s; }
#header nav a:hover { color: var(--foreground); }

/* Badges & pills */
.badge, .pill, .chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: 9999px;
  font-family: "JetBrains Mono", monospace; font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.badge.status, .pill { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); color: var(--primary); padding: 0.25rem 0.75rem; }
.chip { padding: 0.25rem 0.625rem; background: var(--secondary); color: var(--secondary-foreground); }
.chip.glow { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.35); color: var(--primary); }
.chip.dark { background: var(--muted); color: var(--muted-foreground); }
.pill.live { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); color: var(--primary); }

.ping { position: relative; display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--primary); border-radius: 9999px; }
.ping::before { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: var(--primary); opacity: 0.75; animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.dot-lg { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem;
  height: 2.5rem; padding: 0 1.25rem; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-lg { height: 3rem; padding: 0 1.75rem; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: rgba(99,102,241,0.9); }
.btn-secondary { background: rgba(35,43,64,0.6); color: var(--secondary-foreground); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--secondary); color: var(--foreground); }
.btn-ghost { background: transparent; color: var(--primary); padding: 0 0.25rem; height: 2rem; font-size: 0.75rem; }
.btn-ghost:hover { background: rgba(99,102,241,0.1); }
.glow-btn { box-shadow: 0 10px 25px rgba(99,102,241,0.25); }
.arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero */
.hero { padding: 5rem 0 7rem; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(26,32,64,0.7), transparent 60%); pointer-events: none; }
.section-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at top, var(--primary) 0%, transparent 55%); opacity: 0.05; pointer-events: none; }
.testimonials-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at top, var(--primary) 0%, transparent 55%); opacity: 0.05; pointer-events: none; }
.cta-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cta-glow::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 350px; background: rgba(99,102,241,0.2); border-radius: 9999px; filter: blur(72px); }

.stat { display: flex; align-items: flex-start; gap: 0.75rem; }
.stat-icon { padding: 0.5rem; border-radius: 0.5rem; background: rgba(35,43,64,0.6); color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }

/* Terminal */
.terminal { border: 1px solid var(--border); border-radius: 0.75rem; background: #0d1220; box-shadow: 0 25px 60px rgba(0,0,0,0.5); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: var(--muted); border-bottom: 1px solid var(--border); }
.terminal-bar .dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; background: #374151; }
.terminal-bar .dot:nth-child(1) { background: #ef4444; }
.terminal-bar .dot:nth-child(2) { background: #f59e0b; }
.terminal-bar .dot:nth-child(3) { background: #22c55e; }
.terminal-bar span.mono { margin-left: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.terminal-body { padding: 1.25rem 1.25rem 1.5rem; font-size: 0.8125rem; line-height: 1.8; }
.terminal-body p { color: #c7d0e3; }
.prompt { color: var(--primary); font-weight: 600; }
.ok { color: #4ade80; }
.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stats band */
.stats-band { border-bottom: 1px solid rgba(35,43,64,0.4); background: rgba(26,32,50,0.3); }
.stat-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.375rem; padding: 0.5rem 1rem; }
.stat-center .label { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.stat-center .value { font-size: 1.125rem; font-weight: 700; color: var(--foreground); }

/* Feature cards */
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.feature-card:hover { border-color: rgba(99,102,241,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.feature-icon { padding: 0.625rem; border-radius: 0.625rem; background: var(--muted); border: 1px solid var(--border); width: max-content; }
.feature-title { font-family: "Source Serif 4", serif; font-size: 1.25rem; font-weight: 700; }
.feature-desc { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.625; }
.feature-stat { background: rgba(26,32,50,0.6); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .feature-stat { flex-direction: row; align-items: center; justify-content: space-between; } }
.feature-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--foreground); font-weight: 500; }

/* Testimonials */
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; transition: border-color 0.2s, box-shadow 0.2s; }
.testimonial-card:hover { border-color: rgba(99,102,241,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.stars { color: var(--primary); letter-spacing: 0.05em; }
.testimonial-card blockquote { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.625; flex: 1; }
.testimonial-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.testimonial-foot .name { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.testimonial-foot .role { font-size: 0.75rem; color: var(--muted-foreground); }

/* Deploy cards */
.deploy-card { background: rgba(17,22,37,0.85); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; backdrop-filter: blur(8px); transition: border-color 0.3s, box-shadow 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.deploy-card:hover { border-color: rgba(99,102,241,0.5); }
.zap { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.deploy-icon { padding: 0.625rem; border-radius: 0.625rem; background: var(--muted); border: 1px solid var(--border); color: var(--primary); width: max-content; }
.deploy-title { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1.125rem; color: var(--card-foreground); }
.deploy-desc { color: var(--muted-foreground); font-size: 0.75rem; margin-top: 0.125rem; }
.deploy-price { margin-top: 1rem; padding: 0.875rem; border-radius: 0.5rem; background: rgba(26,32,50,0.5); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* Footer */
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--card); }
.status-pill .mono { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.radio { display: inline-block; width: 0.75rem; height: 0.75rem; border: 2px solid var(--primary); border-radius: 9999px; position: relative; }
.radio::after { content: ""; position: absolute; inset: 0.125rem; border-radius: 9999px; background: var(--primary); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--card); color: var(--muted-foreground); font-size: 1rem; transition: all 0.2s; }
.social:hover { color: var(--primary); background: var(--muted); }
.footer-link { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-link:hover { color: var(--foreground); }
.op-icon { color: var(--primary); flex-shrink: 0; }

/* Reveal animation */
.reveal { opacity: 1; }

/* Menu toggle */
.menu-toggle { display: flex; flex-direction: column; gap: 4px; padding: 0.5rem; background: transparent; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--foreground); border-radius: 2px; }

/* Text helpers */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-foreground { color: var(--foreground); }

/* Responsive */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .lg\:col-span-7 { grid-column: span 7; }
  .lg\:col-span-5 { grid-column: span 5; }
  .lg\:col-span-4 { grid-column: span 4; }
  .lg\:col-span-3 { grid-column: span 3; }
  .lg\:col-span-2 { grid-column: span 2; }
  .hidden.lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}
.hidden { display: none; }

@media (max-width: 1023px) {
  #header nav.lg\:flex { display: none; }
  .menu-toggle { display: flex; }
}
