/* ── Tokens (from Alpha app: web/src/styles.css) ─────────────────────── */
:root {
  --bg: #0d1017;
  --surface-1: #161b26;
  --surface-2: #1d2433;
  --surface-3: #232c3d;
  --accent: #6ea8ff;
  --accent-hover: #8bbbff;
  --grad: linear-gradient(135deg, #6ea8ff, #a06bff);
  --grad-reverse: linear-gradient(135deg, #a06bff, #6ea8ff);
  --text: #eef2f8;
  --muted: #94a0b8;
  --faint: #66738c;
  --border: #283142;
  --border-strong: #36425a;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Fira Code", "JetBrains Mono", monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --elev-1: 0 1px 0 rgba(255,255,255,0.02), 0 6px 18px rgba(0,0,0,0.3);
  --kind-host: #4c8dff;
  --kind-service: #2ea043;
  --kind-identity: #a371f7;
  --kind-credential: #e3793a;
  --kind-finding: #f85149;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-3); padding: 1px 5px; border-radius: 3px; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 16, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }

.nav-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #07101f;
}

.nav-wordmark { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 120ms; }
.nav-link:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--grad);
  color: #07101f;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  transition: opacity 120ms;
}

.nav-cta:hover { opacity: 0.9; color: #07101f; }

.nav-toggle { display: none; background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 100px 0 80px; position: relative; overflow: hidden; }

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(ellipse, rgba(110, 168, 255, 0.07) 0%, rgba(160, 107, 255, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-text { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
}

.hero-headline {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-headline .highlight {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub { font-size: 18px; color: var(--muted); line-height: 1.7; margin-bottom: 40px; max-width: 520px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--grad);
  color: #07101f;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  transition: opacity 120ms, transform 120ms;
}

.btn-primary:hover { opacity: 0.92; color: #07101f; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  transition: border-color 120ms, color 120ms;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero visual ─────────────────────────────────────────────────────── */
.hero-visual { position: relative; }

.hero-terminal {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-terminal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.2), rgba(160, 107, 255, 0.1), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-terminal .prompt { color: var(--accent); }
.hero-terminal .cmd { color: var(--text); }
.hero-terminal .output { color: var(--faint); white-space: pre; }

.term-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }

/* Floating entity badges */
.float-badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.float-badge-1 { top: -12px; right: -8px; background: rgba(76, 141, 255, 0.15); color: var(--kind-host); border: 1px solid rgba(76, 141, 255, 0.3); animation-delay: 0s; }
.float-badge-2 { bottom: 40px; right: -16px; background: rgba(46, 160, 67, 0.15); color: var(--kind-service); border: 1px solid rgba(46, 160, 67, 0.3); animation-delay: 0.8s; }
.float-badge-3 { bottom: -8px; left: 24px; background: rgba(227, 121, 58, 0.15); color: var(--kind-credential); border: 1px solid rgba(227, 121, 58, 0.3); animation-delay: 1.6s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; background: var(--surface-1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }

.stat-number {
  font-size: 40px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ── Blade sections ──────────────────────────────────────────────────── */
.blade { padding: 120px 0; }
.blade + .blade { border-top: 1px solid var(--border); }
.blade-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.blade-layout.reverse .blade-visual { order: -1; }

.blade-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.blade-title { font-size: 36px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.01em; }
.blade-desc { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 28px; }

.blade-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.blade-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; line-height: 1.6; }
.blade-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

.blade-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 24px; transition: gap 200ms; }
.blade-link:hover { gap: 10px; }
.blade-link svg { width: 16px; height: 16px; }

/* Blade visuals */
.blade-visual-box {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--elev-1);
}

.blade-visual-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--surface-1));
  pointer-events: none;
}

/* Terminal visual */
.vis-terminal { font-family: var(--font-mono); font-size: 12px; line-height: 1.8; color: var(--faint); }
.vis-terminal .prompt { color: var(--accent); }
.vis-terminal .cmd { color: var(--text); }
.vis-terminal .output { color: var(--faint); }

/* Entity list visual */
.vis-entities { display: flex; flex-direction: column; gap: 8px; }
.entity-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.03); }

.kind-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.kind-host { background: rgba(76, 141, 255, 0.12); color: var(--kind-host); }
.kind-service { background: rgba(46, 160, 67, 0.12); color: var(--kind-service); }
.kind-credential { background: rgba(227, 121, 58, 0.12); color: var(--kind-credential); }
.kind-identity { background: rgba(163, 113, 247, 0.12); color: var(--kind-identity); }
.kind-finding { background: rgba(248, 81, 73, 0.12); color: var(--kind-finding); }

.entity-value { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.entity-meta { color: var(--faint); font-size: 12px; margin-left: auto; }

/* Graph visual */
.vis-graph { position: relative; height: 280px; }
.vis-graph svg { width: 100%; height: 100%; }

/* Credential table visual */
.vis-cred-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vis-cred-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.vis-cred-table td { padding: 10px 12px; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.03); font-family: var(--font-mono); }
.vis-cred-table .masked { color: var(--faint); letter-spacing: 0.15em; }
.vis-cred-table .tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 600; }

/* ── Supported tools ─────────────────────────────────────────────────── */
.tools { padding: 120px 0; background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tools-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.tools-text .tools-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.tools-text .tools-title { font-size: 36px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.01em; }
.tools-text .tools-desc { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 24px; }
.tools-text .tools-note { color: var(--faint); font-size: 14px; }

.tools-terminal {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  box-shadow: var(--elev-1);
}

.tools-terminal .t-prompt { color: var(--accent); }
.tools-terminal .t-cmd { color: var(--text); }
.tools-terminal .t-cat { color: var(--accent); font-weight: 600; margin-top: 8px; display: block; }
.tools-terminal .t-items { color: var(--muted); }
.tools-terminal .t-count { color: var(--kind-service); }

/* ── Screenshots ─────────────────────────────────────────────────────── */
.screenshots { padding: 100px 0; }
.screenshots-header { text-align: center; margin-bottom: 48px; }
.screenshots-header .section-label { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.screenshots-header .section-sub { color: var(--muted); font-size: 17px; }

.screenshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.screenshot-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 2s ease-in-out infinite;
  opacity: 0.35;
}

.screenshot-label { position: relative; z-index: 1; font-size: 15px; font-weight: 500; color: var(--muted); }
.screenshot-soon { position: relative; z-index: 1; font-size: 12px; color: var(--faint); }

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-headline { font-size: 44px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-sub { color: var(--muted); font-size: 18px; margin-bottom: 48px; }

.cta-install {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: left;
  max-width: 620px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
}

.cta-install .prompt { color: var(--accent); }
.cta-install .cmd { color: var(--text); }
.cta-install .copy-hint { color: var(--faint); font-size: 12px; flex-shrink: 0; border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px; }

.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta-links { display: flex; gap: 28px; justify-content: center; margin-top: 32px; }
.cta-links a { color: var(--faint); font-size: 14px; transition: color 120ms; }
.cta-links a:hover { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { color: var(--faint); font-size: 14px; font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--faint); font-size: 13px; transition: color 120ms; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: 42px; }
  .blade-layout { grid-template-columns: 1fr; gap: 48px; }
  .blade-layout.reverse .blade-visual { order: 0; }
  .blade-title { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tools-layout { grid-template-columns: 1fr; gap: 48px; }
  .tools-text .tools-title { font-size: 30px; }
}

@media (max-width: 767px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .hero { padding: 72px 0 56px; }
  .hero-headline { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .blade { padding: 72px 0; }
  .blade-title { font-size: 26px; }
  .blade-layout { gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 32px; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .tools { padding: 72px 0; }
  .tools-text .tools-title { font-size: 26px; }
  .cta { padding: 80px 0; }
  .cta-headline { font-size: 30px; }
  .cta-install { font-size: 12px; padding: 16px 20px; }
  .screenshots-header .section-label { font-size: 26px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 16, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 14px;
  }
  .nav-toggle { display: block; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
