:root {
  --bg: #05070d;
  --bg-alt: #080b14;
  --panel: #0d1220;
  --panel-border: #1c2438;
  --text: #eef1fb;
  --text-dim: #a6afc7;
  --text-faint: #6b7392;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --purple: #8b5cf6;
  --green: #34d399;
  --gradient: linear-gradient(90deg, var(--green), var(--cyan), var(--blue));
  --radius: 16px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; flex-shrink: 0; }
.brand-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 16px 2px rgba(52, 211, 153, 0.5); flex-shrink: 0; }
.brand-dot { color: var(--text-faint); font-weight: 500; }

.main-nav { display: flex; gap: 26px; font-size: 0.9rem; color: var(--text-dim); }
.main-nav a:hover { color: var(--text); }

.header-cta { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #05070d; }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { background: transparent; border-color: var(--green); color: var(--text); }
.btn-secondary:hover { border-color: var(--cyan); }
.btn-ghost { background: var(--panel); border-color: var(--panel-border); color: var(--text-dim); padding: 9px 16px; font-size: 0.85rem; }
.btn-ghost:hover { color: var(--text); border-color: var(--green); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 640px;
  background:
    radial-gradient(circle at 25% 20%, rgba(52, 211, 153, 0.14), transparent 55%),
    radial-gradient(circle at 75% 10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.1), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.status-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  padding: 7px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-border);
  color: var(--text-dim); margin-bottom: 24px; letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.18; letter-spacing: -0.02em;
  max-width: 760px; margin: 0 0 20px;
}
.hero-sub { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--panel-border); }
.section.alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; margin: 0 0 18px; max-width: 720px; }
.section-lead { color: var(--text-dim); font-size: 1.05rem; max-width: 680px; margin: 0 0 40px; }
.section-note { color: var(--text-dim); font-size: 0.95rem; max-width: 680px; margin-top: 28px; }
.section-note strong { color: var(--text); }

/* Mockup / code-style example */
.mockup {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); overflow: hidden; max-width: 560px;
}
.mockup-title {
  padding: 12px 20px; font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  border-bottom: 1px solid var(--panel-border); background: rgba(255,255,255,0.02);
}
.mockup-body {
  margin: 0; padding: 20px; font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem; color: var(--text); line-height: 1.7; white-space: pre-wrap; overflow-x: auto;
}

/* Personal knowledge graph */
.graph { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.graph-root {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px; font-weight: 700;
  background: var(--gradient); color: #05070d;
}
.graph-branches {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%;
}
.graph-branch {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 20px; position: relative;
}
.graph-branch::before {
  content: ""; position: absolute; top: -16px; left: 50%; width: 1px; height: 16px;
  background: var(--panel-border);
}
.graph-node { font-weight: 700; margin-bottom: 12px; color: var(--cyan); }
.graph-branch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.graph-branch li { font-size: 0.88rem; color: var(--text-dim); padding-left: 14px; position: relative; }
.graph-branch li::before { content: "·"; position: absolute; left: 0; color: var(--text-faint); }

/* Dashboard mockup */
.dashboard-mockup {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 20px; padding: 32px; max-width: 620px;
}
.dashboard-header { font-weight: 700; font-size: 1.05rem; margin-bottom: 20px; }
.dashboard-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dashboard-list li { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: #f87171; box-shadow: 0 0 8px 1px rgba(248, 113, 113, 0.5); }
.dot-amber { background: #fbbf24; box-shadow: 0 0 8px 1px rgba(251, 191, 36, 0.5); }
.dashboard-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--panel-border);
}
.dashboard-grid div { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-dim); }
.dashboard-grid strong { color: var(--text); }
.dashboard-grid .ok { color: var(--green); }
.dashboard-grid .warn { color: #fbbf24; }

/* Q&A grid */
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.qa-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 24px; }
.qa-question { font-weight: 700; margin: 0 0 12px; font-size: 0.98rem; }
.qa-answer { color: var(--text-dim); margin: 0 0 10px; font-size: 0.92rem; }
.qa-source { color: var(--text-faint); font-size: 0.8rem; margin: 0; }

/* Chip cloud */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-cloud span {
  background: var(--panel); border: 1px solid var(--panel-border);
  padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; color: var(--text-dim);
}

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { position: relative; padding-left: 24px; font-size: 0.95rem; color: var(--text); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gradient);
}
.feature-list.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .wrap { display: flex; flex-direction: column; align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--panel-border); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--text-faint); }
.footer-tagline { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-dim); margin: 0; }
.footer-copy { font-size: 0.8rem; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .graph-branches { grid-template-columns: repeat(2, 1fr); }
  .qa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-cta .btn-ghost:first-child { display: none; }
  .graph-branches { grid-template-columns: 1fr; }
  .feature-list.two-col { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 56px 0; }
}
