:root {
  --bg: #07090f;
  --bg-alt: #0d1117;
  --bg-card: #0f1520;
  --text: #e8edf5;
  --muted: #6b7896;
  --accent: #4fffb0;
  --accent-dim: rgba(79, 255, 176, 0.12);
  --accent-glow: rgba(79, 255, 176, 0.25);
  --border: #1a2236;
  --border-light: #1f2d42;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'DM Mono', 'Fira Code', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

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

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

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: auto;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }

.btn-primary-sm {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  background: var(--accent);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary-sm:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(79, 255, 176, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--text);
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #000;
  background: var(--accent);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-trust {
  font-size: 13px;
  color: var(--muted);
}

/* ── GRAPH WINDOW ── */
.hero-visual {
  display: flex;
  justify-content: center;
}

.graph-window {
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(79, 255, 176, 0.06), 0 20px 60px rgba(0,0,0,0.4);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c940; }

.window-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  text-align: center;
}

.window-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 20px;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#graphCanvas {
  display: block;
  width: 100%;
  height: auto;
}

/* ── CODE STRIP ── */
.code-strip {
  margin-top: 50px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}

.code-tab {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 16px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.code-tab.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: var(--accent-dim);
}

.hero-code {
  padding: 22px 24px;
  margin: 0;
  background: transparent;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
}

.hero-code code {
  color: var(--text);
}

.hero-code .c  { color: #bd93f9; }  /* keywords */
.hero-code .s  { color: #f1fa8c; }  /* strings */
.hero-code .k  { color: var(--accent); }  /* functions */
.hero-code .cmt { color: var(--muted); font-style: italic; }

/* ── PAIN BANNER ── */
.pain-banner {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.pain-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.pain-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 340px;
}

.pain-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pain-item.highlight .pain-label { color: var(--accent); }

.pain-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.pain-arrow {
  font-size: 28px;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── SECTIONS ── */
.section {
  padding: 100px 0;
}

.alt-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-card.main-card {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card) 60%, rgba(79, 255, 176, 0.04));
  border-color: rgba(79, 255, 176, 0.2);
}

.feature-icon {
  margin-bottom: 16px;
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── STEPS ── */
.steps-container {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  padding-bottom: 56px;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.step-connector {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 12px;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 20px;
}

.step-code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.step-code pre {
  padding: 16px 20px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.step-code .s   { color: #f1fa8c; }
.step-code .cmt { color: var(--muted); font-style: italic; }

/* ── MINI GRAPH ── */
.step-viz {
  margin-top: 4px;
}

.mini-graph {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}

.mg-node {
  background: var(--accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.25);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.mg-edge {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  padding: 0 4px;
}

/* ── USE CASES ── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.usecase-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.uc-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.usecase-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.usecase-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── INTEGRATIONS ── */
.integrations-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.int-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.int-card:hover { border-color: var(--border-light); }

.int-card.highlight-int {
  border-color: rgba(79, 255, 176, 0.25);
  background: linear-gradient(135deg, var(--bg-card), rgba(79, 255, 176, 0.04));
}

.int-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.int-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.int-cmd {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.compat-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.compat-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.compat-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.compat-items span {
  font-size: 13px;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
}

/* ── CTA ── */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79, 255, 176, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: 50px;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
}

.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cta-form input {
  padding: 13px 18px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  width: 280px;
  transition: border-color 0.2s;
  outline: none;
}

.cta-form input:focus { border-color: var(--accent); }

.cta-note {
  font-size: 13px;
  color: var(--muted);
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ── RESPONSIVE ── */

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.uc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.uc-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(79, 255, 176, 0.3);
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.2s;
}
.uc-cta:hover { background: var(--accent-dim); }

.vscode-card {
  border-color: rgba(79, 255, 176, 0.2);
  background: linear-gradient(135deg, var(--bg-card), rgba(79, 255, 176, 0.03));
}

.int-sub {
  font-size: 12px;
  color: var(--accent);
  margin: 6px 0 10px;
  opacity: 0.85;
}

.int-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  background: var(--accent);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.int-cta:hover { opacity: 0.85; }

.integrations-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }

  .nav-links { display: none; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.main-card { grid-column: span 2; }

  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .integrations-row { grid-template-columns: 1fr 1fr; }
  .integrations-row-3 { grid-template-columns: 1fr 1fr; }

  .pain-inner { flex-direction: column; gap: 16px; text-align: center; }
  .pain-arrow { transform: rotate(90deg); }
}

@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .cta-inner h2 { font-size: 30px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card.main-card { grid-column: span 1; }
  .usecases-grid { grid-template-columns: 1fr; }
  .integrations-row { grid-template-columns: 1fr 1fr; }

  .step-row { grid-template-columns: 1fr; }
  .step-left { display: none; }

  .cta-form { flex-direction: column; align-items: center; }
  .cta-form input { width: 100%; }

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