:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --surface: #161a23;
  --line: #232836;
  --line-soft: #1c2030;
  --fg: #eef0f4;
  --fg-dim: #a8aebd;
  --fg-mute: #6e7589;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: transparent;
  color: var(--fg);
  line-height: 1.55;
  min-height: 100vh;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---- Background effect stack ---- */
.bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, #11141d 0%, #0b0d12 60%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  opacity: 0.65;
}
.aurora-1 {
  width: 640px; height: 640px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, #6366f1 0%, transparent 65%);
}
.aurora-2 {
  width: 520px; height: 520px;
  top: 18%; right: -160px;
  background: radial-gradient(circle, #818cf8 0%, transparent 65%);
  opacity: 0.55;
}
.aurora-3 {
  width: 780px; height: 780px;
  bottom: -340px; left: 28%;
  background: radial-gradient(circle, #4f46e5 0%, transparent 65%);
  opacity: 0.45;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  will-change: transform;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(11, 13, 18, 0.85) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}


/* ---- Nav ---- */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
}
.brand-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 5px;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--accent); }
.logo-sm .brand-mark { width: 22px; height: 22px; border-radius: 6px; padding: 3px; }
.logo-sm .brand-text { font-size: 14px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}
.cone { filter: saturate(0); }

/* ---- Hero ---- */
.hero {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 60px 24px 80px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 32px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--fg-dim);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.lead strong { color: var(--fg); font-weight: 600; }

/* ---- Notify ---- */
.notify-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 64px;
  justify-content: center;
}
.notify-wrap .reveal {
  display: none;
  margin: 0;
  max-width: 480px;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
  animation: revealIn 0.4s ease-out both;
}
.notify-wrap .reveal strong { color: var(--fg); font-weight: 600; }
.notify-wrap.revealed #notify-btn { display: none; }
.notify-wrap.revealed .reveal { display: block; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { background: #5457e8; transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }

/* ---- Terminal mock ---- */
.terminal {
  max-width: 680px;
  margin: 60px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    0 0 60px -20px rgba(99, 102, 241, 0.25);
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  will-change: transform;
}
.terminal:hover {
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.7),
    0 0 80px -10px rgba(99, 102, 241, 0.4);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }
.terminal-bar em {
  font-style: normal;
  margin-left: 8px;
  font-size: 12px;
  color: var(--fg-mute);
}
.terminal pre {
  margin: 0;
  padding: 20px 22px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-dim);
  overflow-x: auto;
}
.c-muted { color: var(--fg-mute); }
.c-ok { color: var(--ok); font-weight: 600; }
.c-warn { color: var(--warn); font-weight: 600; }
.c-bad { color: var(--bad); font-weight: 600; }

/* ---- Footer ---- */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.muted { color: var(--fg-mute); font-size: 13px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .aurora, .grid { transition: none; transform: none !important; }
  .terminal { transition: none; }
  .dot { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero { padding: 40px 20px 60px; }
  .terminal { margin-top: 44px; }
  .terminal pre { font-size: 11px; padding: 16px; }
  .status-pill { padding: 4px 10px; font-size: 11.5px; }
  .aurora { filter: blur(60px); }
  .aurora-1 { width: 420px; height: 420px; }
  .aurora-2 { width: 360px; height: 360px; }
  .aurora-3 { width: 500px; height: 500px; }
}
