/* ─── Reset & Base ──────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --surface: #1e1e2a;
  --border: rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.12);
  --text: #e4e4ed;
  --text-secondary: #8b8b9e;
  --text-muted: #5c5c70;
  --accent: #6366f1;
  --accent-bright: #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --blue: #60a5fa;
  --font-heading: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-body: 'JetBrains Mono', 'SF Mono', monospace;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: #2a2a3a #0a0a0f;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 3px; }

/* ─── Utility ───────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent-bright), #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mono { font-family: var(--font-mono); }

/* ─── Scroll Reveal Animation ───────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Parallax Layers ───────────────────────── */
.parallax-container {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20% 0;
  will-change: transform;
  pointer-events: none;
}

/* ─── Glow Orbs (ambient background) ────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}

/* ─── Navigation ────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s var(--ease-out-expo);
}
nav.scrolled {
  padding: 10px 0;
  background: rgba(10,10,15,0.9);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon svg { width: 18px; height: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a:active { transform: scale(0.96); }
.nav-links a.active { color: #fff; background: rgba(99,102,241,0.25); border-bottom: 2px solid var(--accent-bright); }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--accent-bright) !important; }

/* ─── Hamburger ────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 10001;
  transition: all 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); }
.hamburger:active { transform: scale(0.94); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger[aria-expanded="true"] {
  background: rgba(255,255,255,0.12);
  border-color: rgba(99,102,241,0.4);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-bright);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-bright);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #0a0a14;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10000;
    padding: 80px 24px 40px;
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex !important;
    animation: fadeInMenu 0.3s ease-out;
  }
  @keyframes fadeInMenu {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .nav-links li { width: 100%; max-width: 300px; }
  .nav-links a {
    display: block;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 12px;
    color: #e2e8f0 !important;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
  }
  .nav-links a:hover, .nav-links a:active {
    color: #fff !important;
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.4);
  }
  .nav-links .nav-cta {
    margin-top: 12px;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
  }
}

/* ─── Hero ──────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 60px;
  position: relative;
}
#hero .glow-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  top: -10%; left: 30%;
}
#hero .glow-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.08), transparent 70%);
  bottom: 10%; right: 10%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-primary:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0) scale(0.97); }
.btn-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero download link */
.hero-download {
  text-align: center;
  margin-bottom: 32px;
}
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-bright);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px dashed rgba(99,102,241,0.3);
  border-radius: 8px;
  transition: all 0.2s;
}
.download-link:hover {
  background: rgba(99,102,241,0.08);
  border-color: var(--accent);
  color: #fff;
}
.download-link:active { transform: scale(0.97); }
.download-note {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.hero-download-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Step action button */
.step-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.step-action:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.step-action:active { transform: translateY(0) scale(0.97); }

/* 4-column steps grid */
.steps-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* (install-steps removed — instructions now inline in step cards) */

/* Hero browser frame wrapping hero content */
.hero-frame-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  perspective: 1200px;
}
.hero-page-content {
  text-align: center;
  padding: 48px 40px 32px;
  padding-right: 320px; /* make room for the floating VibeLens panel */
  position: relative;
  z-index: 1;
  background: #0c0c16;
}
/* Selection highlight on the Download button */
.hero-selected-el {
  position: relative;
  outline: 2px solid #818cf8;
  outline-offset: 4px;
  animation: hero-selection-pulse 2.5s ease infinite;
}
@keyframes hero-selection-pulse {
  0%, 100% { outline-color: #818cf8; box-shadow: 0 0 0 0 rgba(129,140,248,0.3), 0 4px 12px rgba(0,0,0,0.3); }
  50% { outline-color: #a5b4fc; box-shadow: 0 0 16px 3px rgba(129,140,248,0.15), 0 4px 12px rgba(0,0,0,0.3); }
}

/* Old wrapper — kept for compat */
.hero-image-wrapper {
  max-width: 960px;
  margin: 0 auto;
  perspective: 1200px;
}
.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 32px 64px rgba(0,0,0,0.5),
    0 16px 32px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.05),
    0 0 120px rgba(99,102,241,0.08);
  transform: rotateX(2deg);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
  animation: hero-float 6s ease-in-out infinite;
}
.browser-frame:hover {
  transform: rotateX(0) translateY(-4px);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 20px 40px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 160px rgba(99,102,241,0.12);
}
@keyframes hero-float {
  0%, 100% { transform: rotateX(2deg) translateY(0); }
  50% { transform: rotateX(2deg) translateY(-8px); }
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #12121f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}
.browser-url svg { color: var(--green); flex-shrink: 0; }
.browser-actions {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.hero-image {
  width: 100%;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transform: none;
  animation: none;
}

/* ─── Hero Demo Mockup (unused fake page removed) ── */

/* Floating VibeLens inspector panel */
.demo-vl-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  width: 280px;
  background: #13131f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0,0,0,0.6),
    0 8px 16px rgba(0,0,0,0.4),
    0 0 60px rgba(99,102,241,0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  animation: panel-slide-in 0.8s var(--ease-out-expo) both;
  animation-delay: 1.2s;
  z-index: 2;
}
@keyframes panel-slide-in {
  from { opacity: 0; transform: translateY(-50%) translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}

.demo-vl-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-vl-dots {
  display: flex;
  gap: 5px;
}
.demo-vl-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.demo-vl-title {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
}
.demo-vl-status {
  font-size: 10px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}
.demo-vl-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.4);
}

.demo-vl-tabs {
  display: flex;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-vl-tab {
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.05em;
  cursor: default;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.demo-vl-tab.active {
  color: #a5b4fc;
  border-bottom-color: #6366f1;
}

.demo-vl-breadcrumb {
  padding: 8px 12px;
  font-size: 10px;
  color: #64748b;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.demo-vl-selector {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.demo-vl-body {
  padding: 4px 0;
  max-height: 240px;
  overflow: hidden;
}

.demo-vl-section {
  padding: 4px 12px;
}
.demo-vl-section-header {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  padding: 6px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.demo-vl-section:first-child .demo-vl-section-header {
  border-top: none;
}

.demo-vl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.demo-vl-label {
  color: #94a3b8;
  min-width: 70px;
}
.demo-vl-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.demo-vl-value {
  flex: 1;
  text-align: right;
  color: #e2e8f0;
  background: rgba(255,255,255,0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}
.demo-vl-changed {
  border-color: rgba(129,140,248,0.3);
  background: rgba(99,102,241,0.08);
  color: #c7d2fe;
}

.demo-vl-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.demo-vl-apply {
  width: 100%;
  padding: 8px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* ─── Logos / Social Proof ───────────────────── */
#works-with {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.works-with-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logos-row span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo);
}
.logos-row span:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* ─── Problem Section ───────────────────────── */
#problem {
  padding: 120px 0;
  position: relative;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.section-desc {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Friction loop animation */
.friction-loop {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.friction-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.4s var(--ease-out-expo);
}
.friction-step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateX(6px);
}
.friction-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.friction-num-slow { background: rgba(248,113,113,0.15); color: var(--red); }
.friction-num-fast { background: rgba(74,222,128,0.15); color: var(--green); }
.friction-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.friction-connector {
  width: 2px;
  height: 8px;
  background: var(--border);
  margin-left: 32px;
}

/* ─── Features Section ──────────────────────── */
#features {
  padding: 120px 0;
}
.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-hero-image {
  max-width: 720px;
  margin: 0 auto 64px;
}
.features-hero-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 80px rgba(99,102,241,0.06);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.feature-block:nth-child(even) .feature-visual { order: -1; }

.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.feature-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.feature-desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}
.bullet-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px;
}
.bullet-green { background: rgba(74,222,128,0.12); color: var(--green); }
.bullet-blue { background: rgba(96,165,250,0.12); color: var(--blue); }
.bullet-purple { background: rgba(168,85,247,0.12); color: #a855f7; }
.bullet-yellow { background: rgba(250,204,21,0.12); color: var(--yellow); }

/* Feature visual containers */
.feature-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.feature-visual-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

/* ─── How It Works ──────────────────────────── */
#how-it-works {
  padding: 120px 0;
  position: relative;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}
.step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.step-code {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  overflow-x: auto;
}

/* ─── Comparison ────────────────────────────── */
#comparison {
  padding: 120px 0;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}
.comparison-card {
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.comparison-card-before {
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.comparison-card-after {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.06));
  border: 1px solid rgba(99,102,241,0.15);
}
.comparison-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.comparison-label-dim { color: var(--text-muted); }
.comparison-label-bright { color: var(--accent-bright); }
.comparison-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comparison-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.comparison-steps li .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.comparison-time {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}
.time-slow { color: var(--red); }
.time-fast { color: var(--green); }

/* ─── Architecture ──────────────────────────── */
#architecture {
  padding: 120px 0;
}
.arch-diagram {
  margin-top: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.arch-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.arch-box-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.arch-box-title .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.arch-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch-items li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.arch-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--border-bright);
}
.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.arch-connector-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  border-radius: 1px;
  position: relative;
}
.arch-connector-line::before {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  background: #a855f7;
  border-radius: 50%;
}
.arch-connector-line::after {
  content: '';
  position: absolute;
  left: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ─── Privacy Section ───────────────────────── */
#privacy {
  padding: 120px 0;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}
.privacy-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.privacy-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.privacy-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.privacy-card-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* ─── CTA Section ───────────────────────────── */
#cta {
  padding: 48px 0 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta .glow-orb {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
/* (cta-install styles removed — no CLI needed) */

/* ─── Footer ────────────────────────────────── */
footer {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-left a { color: var(--text-secondary); text-decoration: none; }
.footer-left a:hover { color: var(--text); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ─── Responsive: Tablet ───────────────────── */
@media (max-width: 1024px) {
  .steps-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .arch-diagram { padding: 32px; gap: 24px; }
}

/* ─── Responsive: Mobile ───────────────────── */
@media (max-width: 768px) {
  /* Navigation — handled by hamburger menu above */

  /* Hero */
  #hero { padding: 100px 12px 48px; min-height: auto; }
  .hero-frame-wrapper { margin: 0 -4px; }
  .hero-page-content { padding: 32px 20px 24px; padding-right: 20px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; justify-content: center; max-width: 320px; }
  .hero-image-wrapper { margin: 0 -16px; }
  .browser-frame { border-radius: 8px; }
  .browser-dots span { width: 8px; height: 8px; }
  .browser-url { font-size: 10px; padding: 4px 8px; }

  /* VibeLens panel mobile — stack below frame */
  .demo-vl-panel {
    position: relative;
    top: auto; right: auto;
    width: 100%;
    margin-top: 16px;
    border-radius: 12px;
    animation-name: none;
    opacity: 1;
  }

  /* Works with */
  .logos-row { gap: 8px; }
  .logos-row span { font-size: 11px; padding: 6px 12px; }

  /* Sections */
  #problem, #features, #how-it-works, #comparison, #architecture, #privacy {
    padding: 64px 0;
  }
  .features-header { margin-bottom: 48px; }

  /* Grids → single column */
  .problem-grid,
  .feature-block,
  .comparison-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-block { padding: 48px 0; }
  .feature-block:nth-child(even) .feature-visual { order: 0; }
  .steps-grid, .steps-grid-4, .privacy-grid { grid-template-columns: 1fr; }

  /* Architecture */
  .arch-diagram { grid-template-columns: 1fr; padding: 24px; }
  .arch-connector { flex-direction: row; }
  .arch-connector-line { width: 2px; height: 40px; background: linear-gradient(180deg, var(--accent), #a855f7); }

  /* Comparison */
  .comparison-card { padding: 24px; }

  /* Footer */
  footer .container { flex-direction: column; gap: 12px; text-align: center; }
  .footer-left { font-size: 12px; }
}

/* ─── Responsive: Small phones ─────────────── */
@media (max-width: 400px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 14px; }
  .section-heading { font-size: 28px; }
  .feature-title { font-size: 24px; }
  .cta-title { font-size: 28px; }
  .logos-row span { font-size: 10px; padding: 5px 10px; }
  .step-card { padding: 20px; }
}

/* ─── Back to Top FAB ────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-out-expo);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

/* ─── Privacy Modal ──────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  position: relative;
  max-width: 640px;
  width: calc(100% - 48px);
  max-height: 80vh;
  background: #13131f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px;
  overflow-y: auto;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.6),
    0 0 80px rgba(99,102,241,0.06);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease-out-expo);
}
.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}
/* Scrollbar styling */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.modal-updated {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.modal-highlight {
  background: rgba(74,222,128,0.06);
  border-left: 3px solid var(--green);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #d1fae5;
  margin-bottom: 24px;
  line-height: 1.5;
}
.modal-body h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 20px 0 8px;
}
.modal-body p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 8px;
}
.modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 8px;
}
.modal-body li {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  padding: 4px 0 4px 16px;
  position: relative;
}
.modal-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.modal-body a {
  color: var(--accent-bright);
  text-decoration: none;
}
.modal-body a:hover { text-decoration: underline; }
.modal-body strong { color: #cbd5e1; }

@media (max-width: 768px) {
  .modal-content { padding: 24px; }
  .modal-title { font-size: 20px; }
}
