:root {
  --bg: #0B0E14;
  --surface: #111827;
  --surface-high: #1A1F2E;
  --surface-elevated: #1E293B;
  --border: #334155;
  --border-subtle: rgba(51, 65, 85, 0.6);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --primary: #8B5CF6;
  --primary-glow: #A78BFA;
  --secondary: #06B6D4;
  --secondary-glow: #67E8F9;
  --accent: #F472B6;
  --accent-glow: #F9A8D4;
  --teal: #14B8A6;
  --blue: #6366F1;
  --gray: #64748B;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: var(--primary-glow);
  background: rgba(139, 92, 246, 0.08);
}

.btn-white {
  background: var(--text);
  color: var(--bg);
}

.btn-white:hover {
  box-shadow: 0 8px 24px rgba(248, 250, 252, 0.18);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-glow);
  margin-bottom: 14px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand-icon {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 35%, rgba(139, 92, 246, 0.2), transparent 45%),
    radial-gradient(circle at 75% 25%, rgba(6, 182, 212, 0.12), transparent 45%),
    var(--bg);
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  right: -180px;
  top: 40px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.08);
  color: var(--primary-glow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-size: 4rem;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.subheadline {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 540px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.providers {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.providers-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.provider-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary-glow);
}

/* Hero illustration */
.hero-illustration {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.orbit-lg {
  width: 460px;
  height: 460px;
}

.orbit-md {
  width: 340px;
  height: 340px;
  border-color: rgba(6, 182, 212, 0.12);
}

.central-cube {
  position: relative;
  width: 180px;
  height: 180px;
  z-index: 2;
}

.cube-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 70%);
  filter: blur(24px);
}

.cube-face {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(6, 182, 212, 0.8));
  box-shadow:
    0 0 60px rgba(139, 92, 246, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  position: relative;
}

.cube-face::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(6, 182, 212, 0.25));
}

.cube-face svg {
  width: 70%;
  height: 70%;
  position: relative;
  z-index: 1;
}

.connection-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

.satellite {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  width: 96px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.satellite svg {
  width: 32px;
  height: 32px;
}

.satellite span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.node-question {
  top: 20px;
  left: 30px;
  color: var(--primary-glow);
}

.node-answer {
  top: 30px;
  right: 20px;
  color: var(--secondary-glow);
}

.node-note {
  top: 180px;
  right: 0;
  color: var(--accent);
}

.node-tag {
  bottom: 100px;
  left: 10px;
  color: var(--secondary-glow);
}

.node-person {
  bottom: 30px;
  right: 40px;
  color: var(--primary-glow);
}

/* How it works */
.how-it-works {
  padding: 20px 0 80px;
}

.steps-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  position: relative;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}

.step-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--text);
}

.step-icon.purple { background: rgba(139, 92, 246, 0.15); }
.step-icon.cyan { background: rgba(6, 182, 212, 0.15); }
.step-icon.pink { background: rgba(244, 114, 182, 0.15); }

.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--primary-glow);
  margin-right: 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.step-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border);
  font-size: 1.6rem;
  font-weight: 300;
}

.step:last-child .step-arrow {
  display: none;
}

/* Features */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-4px);
}

.feature-card:nth-child(5),
.feature-card:nth-child(6) {
  grid-column: span 1;
}

.feature-card:nth-child(7) {
  grid-column: span 2;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

.feature-icon.purple { background: rgba(139, 92, 246, 0.15); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.15); }
.feature-icon.pink { background: rgba(244, 114, 182, 0.15); }

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-card.highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
  border-color: rgba(139, 92, 246, 0.35);
}

/* Privacy */
.privacy-section {
  padding: 60px 0 100px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
}

.privacy-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 65%);
  filter: blur(30px);
}

.shield-icon {
  width: 220px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

.privacy-copy h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.privacy-copy > p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 0 36px;
}

.privacy-bullets {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.bullet {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bullet-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bullet-icon svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.bullet-icon.purple { background: rgba(139, 92, 246, 0.15); }
.bullet-icon.cyan { background: rgba(6, 182, 212, 0.15); }
.bullet-icon.pink { background: rgba(244, 114, 182, 0.15); }

.bullet strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
}

.bullet span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Graph showcase */
.graph-showcase {
  padding: 80px 0;
}

.graph-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.graph-copy h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.graph-copy > p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 32px;
}

.legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.purple { background: var(--primary); }
.dot.cyan { background: var(--secondary); }
.dot.pink { background: var(--accent); }
.dot.teal { background: var(--teal); }
.dot.blue { background: var(--blue); }
.dot.gray { background: var(--gray); }

.graph-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.graph-panel .mermaid {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
}

.graph-panel .mermaid svg {
  max-width: 100%;
  height: auto;
}

/* CLI */
.cli-section {
  padding: 60px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: 0.6fr 1.4fr;
  align-items: start;
}

.cli-copy h2,
.demo-copy h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.demo-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 18px 0 28px;
}

/* Terminal / Browser windows */
.cli-window,
.browser-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.window-titlebar,
.browser-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-high);
  border-bottom: 1px solid var(--border);
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-lights span:nth-child(1) { background: #FF5F57; }
.traffic-lights span:nth-child(2) { background: #FEBC2E; }
.traffic-lights span:nth-child(3) { background: #28C840; }

.window-title,
.browser-title {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 44px;
}

.terminal-body {
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.terminal-body .line {
  margin-bottom: 4px;
}

.terminal-body .prompt { color: var(--muted); }
.terminal-body .cmd { color: var(--text); font-weight: 600; }
.terminal-body .arg { color: var(--primary-glow); }
.terminal-body .path { color: var(--secondary-glow); }
.terminal-body .str { color: #A3E635; }
.terminal-body .success { color: #4ADE80; }
.terminal-body .hl { color: var(--secondary-glow); font-weight: 600; }
.terminal-body .output { color: var(--muted); padding-left: 12px; }
.terminal-body .rocket { color: var(--accent); }
.terminal-body .url { color: var(--secondary-glow); text-decoration: underline; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--primary-glow);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Demo */
.demo-section {
  padding: 80px 0;
}

.browser-content {
  height: 560px;
  background: var(--bg);
}

.browser-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--bg);
}

/* CTA */
.cta-section {
  position: relative;
  padding: 90px 0;
  margin: 0 24px 80px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.22), transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(6, 182, 212, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.12), transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 14px;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content > p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 34px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 18px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--primary-glow);
}

.footer-community {
  text-align: right;
}

.footer-community p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.heart {
  color: var(--accent);
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.socials a:hover {
  color: var(--text);
  border-color: var(--primary-glow);
}

.socials a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .graph-grid,
  .split-grid,
  .split-grid.reverse,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-illustration {
    min-height: 420px;
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(7) {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-community {
    text-align: left;
    grid-column: span 2;
  }

  .socials {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .steps-panel {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(7) {
    grid-column: span 1;
  }

  .privacy-bullets {
    flex-direction: column;
  }

  .legend {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-section {
    margin: 0 16px 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-community {
    grid-column: span 1;
  }
}
