/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg: #070b12;
  --surface: #0c1220;
  --surface2: #111928;
  --border: #182038;
  --blue: #3b82f6;
  --teal: #06d6a0;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --rose: #f43f5e;
  --sky: #38bdf8;
  --slate: #94a3b8;
  --text: #e2e8f0;
  --muted: #4b5c7a;
  --muted2: #64748b;
  --glow-b: rgba(59, 130, 246, 0.18);
  --glow-t: rgba(6, 214, 160, 0.15);
}
body.light {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #cbd5e1;
  --blue: #2563eb;
  --teal: #059669;
  --violet: #7c3aed;
  --amber: #d97706;
  --rose: #e11d48;
  --sky: #0284c7;
  --slate: #475569;
  --text: #0f172a;
  --muted: #64748b;
  --muted2: #94a3b8;
  --glow-b: rgba(37, 99, 235, 0.08);
  --glow-t: rgba(5, 150, 105, 0.07);
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "JetBrains Mono", monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ── Noise texture overlay ──────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}
body.light::before {
  opacity: 0.018;
}

/* ── Grid background ────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
body.light .grid-bg {
  opacity: 0.2;
}

/* ── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 58px;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s,
    border-color 0.3s;
}
body.light nav {
  background: rgba(240, 244, 248, 0.88);
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.nav-logo span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  font-family: "JetBrains Mono", monospace;
}
.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
}
.nav-cta {
  font-size: 11px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  padding: 7px 16px;
  border-radius: 7px;
  transition: all 0.15s;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
}
.nav-cta:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}
.theme-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
}

/* ── Sections wrapper ───────────────────────────────────── */
section,
footer {
  position: relative;
  z-index: 1;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Radial glow blobs */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background:
    radial-gradient(ellipse at 40% 40%, var(--glow-b) 0%, transparent 65%),
    radial-gradient(ellipse at 65% 55%, var(--glow-t) 0%, transparent 55%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite alternate;
}
@keyframes pulse {
  from {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.07);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}
.hero-eyebrow::before {
  content: "●";
  font-size: 8px;
  animation: blink 1.6s ease infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -3px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.25s;
}
.hero-title .accent-teal {
  color: var(--teal);
}
.hero-title .accent-blue {
  color: var(--blue);
}
.hero-title .dim {
  color: var(--muted);
}

.hero-sub {
  font-size: clamp(13px, 2vw, 16px);
  color: var(--muted2);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.4s;
}
.hero-sub b {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.55s;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  padding: 12px 26px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(6, 214, 160, 0.06);
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.7s;
}
.hero-stat {
  padding: 18px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.hero-stat:last-child {
  border-right: none;
}
.hero-stat-val {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--teal);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-lbl {
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 30%,
    var(--border) 70%,
    transparent
  );
}

/* ── Mock preview window ────────────────────────────────── */
.preview-wrap {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  position: relative;
}
.preview-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse at 50% 0%,
    var(--glow-b) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.window {
  width: 100%;
  max-width: 900px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.4s;
}
body.light .window {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}
.window:hover {
  transform: perspective(1000px) rotateX(0deg);
}
.window-bar {
  height: 40px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 7px;
}
.wb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.wb-r {
  background: #f43f5e;
}
.wb-y {
  background: #fbbf24;
}
.wb-g {
  background: #06d6a0;
}
.window-url {
  margin-left: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 12px;
  font-size: 10px;
  color: var(--muted);
  flex: 1;
  max-width: 340px;
}
.window-content {
  padding: 32px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Animated node map inside window */
.map-demo {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.nd {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid;
  white-space: nowrap;
  opacity: 0;
  animation: nodeIn 0.5s ease forwards;
}
.nd-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
/* project */
.nd-proj {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  color: #e2e8f0;
}
.nd-proj .nd-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}
/* folder */
.nd-fold {
  border-color: #06d6a0;
  background: rgba(6, 214, 160, 0.07);
  color: #e2e8f0;
}
.nd-fold .nd-badge {
  background: rgba(6, 214, 160, 0.18);
  color: #06d6a0;
}
/* file */
.nd-file {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.07);
  color: #e2e8f0;
}
.nd-file .nd-badge {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}
/* class */
.nd-cls {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.07);
  color: #e2e8f0;
}
.nd-cls .nd-badge {
  background: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}
/* function */
.nd-fn {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.07);
  color: #e2e8f0;
}
.nd-fn .nd-badge {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

.map-line {
  position: absolute;
  background: none;
  pointer-events: none;
  opacity: 0;
  animation: lineIn 0.35s ease forwards;
}
@keyframes nodeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes lineIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}

/* ── Features grid ──────────────────────────────────────── */
.features {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: var(--text);
}
.section-sub {
  font-size: 13px;
  color: var(--muted2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 64px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.feat-card {
  background: var(--surface);
  padding: 32px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feat-card:hover {
  background: var(--surface2);
}
.feat-card:hover::before {
  opacity: 1;
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
}
.feat-title {
  font-family: "Syne", sans-serif;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}
.feat-desc {
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted2);
}

/* Feature icon color variants */
.fi-blue {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}
.fi-teal {
  border-color: rgba(6, 214, 160, 0.4);
  background: rgba(6, 214, 160, 0.08);
}
.fi-violet {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.08);
}
.fi-amber {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}
.fi-sky {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}
.fi-rose {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

/* ── How it works ───────────────────────────────────────── */
.how {
  padding: 100px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  margin-top: 64px;
  position: relative;
}
.step {
  padding: 36px 28px;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.step-num {
  font-family: "Syne", sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.step:hover .step-num {
  color: var(--teal);
}
.step-title {
  font-family: "Syne", sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted2);
}

/* ── Node types legend ──────────────────────────────────── */
.types {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.type-card:hover {
  transform: translateY(-4px);
}
.type-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.type-name {
  font-size: 13px;
  font-weight: 700;
}
.type-desc {
  font-size: 10px;
  color: var(--muted2);
  line-height: 1.6;
}

.landing-blog {
  padding: 84px 24px;
}
.blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-head-copy {
  max-width: 620px;
}
.blog-rail {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.blog-preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), rgba(12, 18, 32, 0.82));
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.blog-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--blog-accent, var(--blue));
  opacity: 0.95;
}
.blog-preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}
.blog-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.blog-preview-date {
  color: var(--muted2);
  font-size: 10px;
}
.blog-preview-title {
  font-family: "Syne", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.08;
}
.blog-preview-excerpt {
  color: var(--muted2);
  font-size: 11px;
  line-height: 1.8;
  flex: 1;
}
.blog-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted2);
  font-size: 10px;
}
.blog-preview-link {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}
.blog-preview-empty {
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.8;
}

/* ── CTA section ────────────────────────────────────────── */
.cta-section {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(
    ellipse at 50% 100%,
    var(--glow-b) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.cta-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.cta-sub {
  font-size: 13px;
  color: var(--muted2);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.75;
}
.cta-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 40px;
}
.cta-code span {
  color: var(--muted);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq {
  padding: 100px 24px;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-q {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.faq-q:hover {
  color: var(--blue);
}
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition:
    transform 0.25s,
    border-color 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--blue);
  color: var(--blue);
}
.faq-a {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.25s;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding-top: 14px;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: "Syne", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.footer-logo span {
  color: var(--teal);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 11px;
  color: var(--muted2);
  transition: color 0.15s;
}
.footer-link:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hamburger button ───────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.hamburger:hover {
  border-color: var(--blue);
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.2s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile nav drawer ──────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  z-index: 99;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a,
.mobile-nav button.m-nav-btn {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav button.m-nav-btn:hover {
  background: var(--surface2);
  color: var(--blue);
}
.mobile-nav .m-cta {
  background: var(--blue);
  color: #fff;
  border-radius: 9px;
  text-align: center;
  margin-top: 4px;
  padding: 13px;
  font-weight: 700;
}
.mobile-nav .m-cta:hover {
  background: #1d4ed8;
}
.mobile-nav .m-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-rail {
    grid-template-columns: 1fr;
  }
  .hero-title {
    letter-spacing: -2px;
  }
  .window {
    transform: none;
  }
  .window:hover {
    transform: none;
  }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Nav */
  nav {
    padding: 0 16px;
  }
  .nav-links {
    gap: 4px;
  }
  .nav-links .nav-link {
    display: none;
  }
  .nav-links .nav-cta {
    display: none;
  }
  .nav-links .sep-d {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 88px 20px 60px;
  }
  .hero-eyebrow {
    font-size: 9px;
    padding: 4px 11px;
  }
  .hero-title {
    letter-spacing: -1.5px;
    margin-bottom: 18px;
  }
  .hero-sub {
    font-size: 12px;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 13px;
  }

  /* Hero stats — 2×2 grid */
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    border-radius: 10px;
    margin-top: 44px;
  }
  .hero-stat {
    flex: 1 1 calc(50% - 1px);
    min-width: 0;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .hero-stat:nth-child(2) {
    border-right: none;
  }
  .hero-stat:nth-child(3) {
    border-bottom: none;
  }
  .hero-stat:nth-child(4) {
    border-right: none;
    border-bottom: none;
  }
  .hero-stat-val {
    font-size: 22px;
  }
  .hero-stat-lbl {
    font-size: 9px;
  }

  /* Preview */
  .preview-wrap {
    padding: 40px 16px;
  }
  .window-bar {
    padding: 0 12px;
  }
  .window-url {
    font-size: 9px;
    max-width: 200px;
  }
  .window-content {
    padding: 14px;
  }
  .map-demo {
    height: 190px;
    overflow: hidden;
  }

  /* Sections */
  .features,
  .types {
    padding: 64px 20px;
  }
  .landing-blog {
    padding: 64px 20px;
  }
  .how {
    padding: 64px 20px;
  }
  .how-inner {
    padding: 0;
  }
  .section-title {
    letter-spacing: -1px;
  }
  .section-sub {
    margin-bottom: 40px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .feat-card {
    padding: 24px 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }
  .step {
    padding: 24px 20px;
  }
  .step-num {
    font-size: 38px;
    margin-bottom: 12px;
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .type-card {
    padding: 16px 14px;
  }
  .type-dot {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .type-name {
    font-size: 12px;
  }

  /* CTA */
  .cta-section {
    padding: 72px 20px;
  }
  .cta-title {
    letter-spacing: -1.5px;
  }
  .cta-sub {
    font-size: 12px;
  }

  /* FAQ */
  .faq {
    padding: 64px 20px;
  }
  .faq-q {
    font-size: 13px;
  }
  .faq-a {
    font-size: 11px;
  }
  .faq-item {
    padding: 20px 0;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-links {
    gap: 14px;
    flex-wrap: wrap;
  }
  .footer-link {
    font-size: 12px;
  }

  /* Misc */
  .section-label {
    font-size: 8px;
  }
}

/* ── Small phones ────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero-title {
    letter-spacing: -1px;
  }
  .hero-stat-val {
    font-size: 20px;
  }
  .type-grid {
    grid-template-columns: 1fr;
  }
  .map-demo {
    height: 160px;
  }
}
