: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; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(900px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(129, 140, 248, 0.10), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }

/* ---- 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);
  text-align: left;
}
.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; }

/* ---- 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; }
}
