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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #27272a;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text: #fafafa;
  --muted: #a1a1aa;
  --accent: #2563eb;
  --radius: 0.625rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise texture overlay */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  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)'/%3E%3C/svg%3E");
}

/* Nav */
nav {
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-accent { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--primary-hover); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 1.5rem 100px;
  text-align: center;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto 0.75rem;
}

.waitlist-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.waitlist-form input:focus { border-color: var(--primary); }
.waitlist-form input::placeholder { color: #52525b; }

.waitlist-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s, opacity 0.15s;
}
.waitlist-form button:hover { background: var(--primary-hover); }
.waitlist-form button:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 16px; height: 16px;
  animation: spin 0.8s linear infinite;
}
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  font-size: 0.8rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.form-note.success { color: #22c55e; }
.form-note.error { color: #ef4444; }

.social-proof {
  color: var(--muted);
  font-size: 0.8rem;
}
.social-proof span { color: var(--text); font-weight: 600; }

/* Features */
.features {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 1.5rem 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  background: var(--border);
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  transition: background 0.15s;
}
.feature-card:hover { background: #1a1a1a; }

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Terminal */
.terminal-section {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 120px;
}

.terminal {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(37,99,235,0.08);
}

.terminal-bar {
  background: #1a1a1a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green  { background: #22c55e; }
.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  background: #0a0a0a;
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  min-height: 200px;
}

.terminal-line { display: flex; gap: 0.75rem; opacity: 0; animation: fadein 0.3s forwards; }
.terminal-line .prompt { color: #2563eb; user-select: none; }
.terminal-line .cmd    { color: #fafafa; }
.terminal-line .out    { color: #a1a1aa; }
.terminal-line .success { color: #22c55e; }
.terminal-line .warn   { color: #f59e0b; }
@keyframes fadein { to { opacity: 1; } }

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
footer p { color: var(--muted); font-size: 0.8rem; }

/* Mobile */
@media (max-width: 540px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { justify-content: center; }
  img{
    width: 120px;
    height:40x;
  }
}
