:root {
  --bg-0: #030712;
  --bg-1: #0a0f1a;
  --bg-2: #111827;
  --bg-3: #1a2234;
  --border-1: rgba(34,211,238,0.08);
  --border-2: rgba(34,211,238,0.14);
  --t1: #e2e8f0;
  --t2: #94a3b8;
  --t3: #64748b;
  --t4: #475569;
  --t5: #334155;
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-dim: rgba(34,211,238,0.08);
  --cyan-glow: rgba(34,211,238,0.12);
  --cyan-glow2: rgba(34,211,238,0.06);
  --mono: 'Space Mono', monospace;
  --sans: 'Outfit', system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--t1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* Dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(34,211,238,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

@keyframes glowPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.65; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.anim { animation: fadeUp 0.5s ease forwards; }
.a1 { animation-delay: 0.08s; opacity: 0; }
.a2 { animation-delay: 0.16s; opacity: 0; }
.a3 { animation-delay: 0.24s; opacity: 0; }
.a4 { animation-delay: 0.32s; opacity: 0; }
.a5 { animation-delay: 0.40s; opacity: 0; }

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
  border-radius: 1px;
}

/* ═══════════════════════════════════════════
   ORBS
   ═══════════════════════════════════════════ */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(34,211,238,0.04);
  top: 10%; left: 25%;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(167,139,250,0.03);
  bottom: 10%; right: 15%;
  animation-delay: 3s;
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  animation: fadeUp 0.4s ease forwards;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}
.nav-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--t2);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t4);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--t2); background: rgba(255,255,255,0.03); border-color: var(--border-1); }
.nav-link-accent {
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
  border-radius: 6px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-1);
  transition: all 0.15s;
}
.nav-link-accent:hover {
  background: var(--cyan-glow);
  border-color: var(--border-2);
  box-shadow: 0 0 16px var(--cyan-glow2);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
  text-align: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
  margin-bottom: 36px;
}
.hero-chip .led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34,211,238,0.5);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero h1 .accent {
  color: var(--cyan);
  position: relative;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cyan);
  opacity: 0.3;
  border-radius: 2px;
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--t3);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Terminal preview card */
.hero-terminal {
  width: 100%;
  max-width: 540px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    0 0 80px var(--cyan-glow2);
  margin-bottom: 48px;
}
.ht-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-1);
  gap: 6px;
}
.ht-bar .d { width: 7px; height: 7px; border-radius: 50%; opacity: 0.7; }
.ht-bar .d-r { background: #ef4444; }
.ht-bar .d-y { background: #eab308; }
.ht-bar .d-g { background: #22c55e; }
.ht-bar .ht-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t5);
}
.ht-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
}
.p { color: var(--cyan); }
.c { color: var(--t3); }
.f { color: #a78bfa; }
.s { color: #34d399; }
.v { color: #fbbf24; }
.d { color: var(--t5); }

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--cyan);
  color: var(--bg-0);
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-main:hover {
  box-shadow: 0 0 32px rgba(34,211,238,0.3);
  transform: translateY(-2px);
}
.btn-main kbd {
  padding: 2px 8px;
  background: rgba(3,7,18,0.2);
  border: 1px solid rgba(3,7,18,0.15);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
}
.btn-second {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-second:hover {
  border-color: var(--border-3);
  color: var(--t1);
  background: rgba(255,255,255,0.03);
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
.features {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) {
  .features { grid-template-columns: 1fr; max-width: 400px; }
}

.feat {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 22px 20px;
  transition: all 0.2s;
}
.feat:hover {
  border-color: var(--border-2);
  background: rgba(255,255,255,0.03);
}
.feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feat-icon svg { width: 18px; height: 18px; }
.feat-icon.cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--border-1); }
.feat-icon.purple { background: rgba(167,139,250,0.08); color: #a78bfa; border: 1px solid rgba(167,139,250,0.1); }
.feat-icon.green { background: rgba(52,211,153,0.08); color: #34d399; border: 1px solid rgba(52,211,153,0.1); }

.feat h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feat p {
  font-size: 13px;
  color: var(--t4);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border-1);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
footer a {
  color: var(--t4);
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover { color: var(--cyan); }
footer .sep { opacity: 0.3; }
