:root {
  --bg: #0a0c12;
  --bg-2: #0f1320;
  --surface: #131829;
  --border: #252b3f;
  --text: #e8ebf4;
  --text-dim: #8f97ad;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --gradient: linear-gradient(120deg, #818cf8, #22d3ee);
  --radius: 14px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(500px 500px at 50% 90%, rgba(99, 102, 241, 0.1), transparent 60%);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 18, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  color: #0a0c12;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #0a0c12;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.icon {
  width: 17px;
  height: 17px;
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--text-dim);
  font-size: 1.12rem;
}

.highlight {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Terminal */
.terminal-demo {
  max-width: 700px;
  margin: 56px auto 0;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0d1020;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 22px 20px;
  min-height: 96px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.line .prompt {
  color: #34d399;
  font-weight: 600;
  margin-right: 4px;
}

.line .cmd {
  color: var(--text);
}

.line.dim {
  color: var(--text-dim);
}

.cursor-line {
  margin-top: 14px;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: var(--accent-2);
  vertical-align: middle;
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

/* Trust list */
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.hero-trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

/* Features */
.features {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-top: 10px;
  margin-bottom: 52px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon.blue { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.card-icon.green { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.card-icon.purple { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.card-icon.orange { background: rgba(251, 146, 60, 0.15); color: #fb923c; }

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  padding: 40px 0 90px;
}

.cta-box {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px 30px;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(99, 102, 241, 0.15), transparent 70%),
    var(--bg-2);
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-sub {
  color: var(--text-dim);
  margin-top: 10px;
}

.waitlist {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 32px auto 0;
}

.waitlist input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist input:focus {
  border-color: var(--accent);
}

.waitlist input::placeholder {
  color: var(--text-dim);
}

.form-message {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.form-message.success { color: #34d399; }
.form-message.error { color: #fb7185; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner .brand-name {
  font-weight: 800;
}

.footer-inner p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-left: auto;
}

.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .waitlist {
    flex-direction: column;
  }
  .footer-inner {
    justify-content: center;
  }
  .footer-inner p {
    margin-left: 0;
  }
}