/* Memfect.io — Main Stylesheet
   Design: warm earth-tone palette (matches desktop app)
   Fonts: Inter Tight (display + body) */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Instrument+Serif&display=swap');

:root {
  /* Light palette — warm earth tones */
  --bg: #f6f5f1;
  --bg-elevated: #fdfcf8;
  --bg-sunken: #eae7dd;
  /* Dark palette */
  --bg-dark: #13130f;
  --bg-dark-card: #1b1a16;
  --bg-dark-elevated: #1b1a16;
  --bg-dark-border: #2a2820;
  /* Borders */
  --border: #d9d5c8;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-on-dark: rgba(255, 255, 255, 0.08);
  /* Text */
  --text: #1c1b17;
  --text-secondary: #6b6858;
  --muted: #9a9684;
  --muted-on-dark: rgba(255, 255, 255, 0.5);
  /* Accent — warm golden (matches desktop app) */
  --green: oklch(0.58 0.14 45);
  --green-light: oklch(0.94 0.03 45);
  --green-dark: oklch(0.72 0.15 55);
  /* Sizing */
  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  --radius-lg: 1rem;
  /* Elevation + glow */
  --glow: oklch(0.72 0.15 55 / 0.25);
  --shadow-card: 0 1px 2px rgba(28, 27, 23, 0.04), 0 8px 24px rgba(40, 35, 20, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(28, 27, 23, 0.05), 0 16px 48px rgba(40, 35, 20, 0.12);
  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Type */
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --container: 1100px;
  --section-gap: 8rem;
}

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

html { scroll-behavior: smooth; }

/* Lenis smooth-scroll host styles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Reveal targets are pre-hidden only when JS is confirmed AND motion is allowed.
   GSAP sets inline opacity, so no-JS and reduced-motion users always see content. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow { max-width: 720px; }

/* ═══════════════════════════════
   ANNOUNCEMENT BANNER
   ═══════════════════════════════ */

.banner {
  background: var(--text);
  overflow: hidden;
  height: 2.5rem;
  display: flex;
  align-items: center;
  position: relative;
}

/* Edge fades over the scrolling track */
.banner::before,
.banner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 1;
  pointer-events: none;
}

.banner::before { left: 0; background: linear-gradient(90deg, var(--text), transparent); }
.banner::after { right: 0; background: linear-gradient(270deg, var(--text), transparent); }

.banner:hover .banner-track { animation-play-state: paused; }

.banner-track {
  display: flex;
  gap: 4rem;
  animation: bannerScroll 25s linear infinite;
  white-space: nowrap;
}

.banner-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.banner-item .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-dark);
}

.banner-item a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes bannerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   NAVIGATION
   ═══════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 19, 15, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(19, 19, 15, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
  transition: height 0.3s var(--ease-out);
}

.nav.is-scrolled .nav-inner { height: 3.25rem; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.nav-logo {
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  color: var(--muted-on-dark);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}

/* ═══════════════════════════════
   BUTTONS
   ═══════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Light-section overrides */
.pillars .btn-primary,
.features .btn-primary,
.testimonials .btn-primary,
.pricing-tiers .btn-primary,
.download-hero .btn-primary,
.download-platforms .btn-primary {
  background: var(--text);
  color: #fff;
}

.pillars .btn-primary:hover,
.features .btn-primary:hover,
.testimonials .btn-primary:hover,
.pricing-tiers .btn-primary:hover,
.download-hero .btn-primary:hover,
.download-platforms .btn-primary:hover {
  background: #333;
}

.pillars .btn-ghost,
.features .btn-ghost,
.testimonials .btn-ghost,
.pricing-tiers .btn-ghost,
.download-hero .btn-ghost {
  border-color: var(--border);
  color: var(--muted);
}

.pillars .btn-ghost:hover,
.features .btn-ghost:hover,
.testimonials .btn-ghost:hover,
.pricing-tiers .btn-ghost:hover,
.download-hero .btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */

.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  background: var(--bg-dark) url("/static/img/hero-bg.27d1a6179736.jpg") center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Warm golden glow bleeding from the top */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, oklch(0.45 0.10 55 / 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(19,19,15,0.4) 0%, rgba(19,19,15,0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.hero-img-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 60%);
  transform-style: preserve-3d;
}

/* Soft accent under-glow behind the screenshot */
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(50% 50% at 50% 45%, var(--glow), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.feature-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-sm) - 1px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-dark);
  animation: badgePulse 2.4s var(--ease-out) infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.72 0.15 55 / 0.5); }
  50% { box-shadow: 0 0 0 5px oklch(0.72 0.15 55 / 0); }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.045em;
  font-weight: 600;
  line-height: 1.02;
  color: #fff;
}

.hero-line { display: inline-block; }

/* Gradient gold fill — also targets SplitText word spans, since
   background-clip: text doesn't reach into transformed children */
.hero-title .serif,
.hero-title .serif .st-word {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92) 25%, oklch(0.82 0.12 55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted-on-dark);
  max-width: 500px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-platforms {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted-on-dark);
  font-weight: 500;
}

.platform-item svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.4;
  color: #fff;
}

.hero .btn-primary {
  background: #fff;
  color: var(--bg-dark);
}

.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--muted-on-dark);
}

.hero .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ═══════════════════════════════
   MOCK WINDOW (Hero Visual)
   ═══════════════════════════════ */

.hero-visual {
  margin-top: 4.5rem;
  padding: 0 1rem;
  perspective: 1200px;
}

.mock-window {
  background: rgba(27, 26, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--bg-dark-border);
}

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

.mock-dot:first-child { background: #FF5F57; }
.mock-dot:nth-child(2) { background: #FFBD2E; }
.mock-dot:nth-child(3) { background: #28CA42; }

.mock-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--muted-on-dark);
  font-weight: 500;
}

.mock-body {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  min-height: 320px;
}

.mock-sidebar {
  padding: 1rem 0.625rem;
  border-right: 1px solid var(--bg-dark-border);
  background: rgba(255, 255, 255, 0.02);
}

.mock-tree-item {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-on-dark);
  border-radius: var(--radius-sm);
  cursor: default;
}

.mock-tree-item.active {
  background: oklch(0.28 0.06 55 / 0.3);
  color: var(--green-dark);
  font-weight: 600;
}

.mock-tree-item.indent { padding-left: 1.5rem; }

.mock-editor {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  background: var(--bg-dark-elevated);
}

.mock-line { color: rgba(255, 255, 255, 0.55); }
.mock-line.heading { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.mock-line.h2 { color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.9rem; }
.mock-line.h3 { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.mock-line.tag { color: var(--green-dark); opacity: 0.5; }
.mock-link { color: var(--green-dark); font-weight: 500; }

.mock-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--green-dark);
  animation: caretBlink 1.1s steps(1) infinite;
}

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

.mock-panel {
  padding: 1rem 0.625rem;
  border-left: 1px solid var(--bg-dark-border);
  background: rgba(255, 255, 255, 0.02);
}

.mock-panel-title {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-on-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.mock-backlink {
  font-size: 0.75rem;
  color: var(--green-dark);
  padding: 0.4rem 0;
  font-weight: 600;
}

.mock-backlink-context {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted-on-dark);
  margin-top: 0.1rem;
  line-height: 1.5;
}

.mock-graph { margin-top: 0.5rem; }
.mini-graph { width: 100%; }

/* ═══════════════════════════════
   SCROLLING LOGOS
   ═══════════════════════════════ */

.logos-section {
  padding: 3.5rem 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-dark-border);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.logos-track {
  display: flex;
  gap: 3.5rem;
  animation: logoScroll 40s linear infinite;
  width: max-content;
}

.logos-track:hover { animation-play-state: paused; }

.logo-item {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.logo-item:hover { color: rgba(255, 255, 255, 0.4); }

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   STATS ROW
   ═══════════════════════════════ */

.stats-row {
  padding: 5rem 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-dark-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-on-dark);
  font-weight: 500;
}

/* ═══════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════ */

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 4rem;
  line-height: 1.65;
}

/* ═══════════════════════════════
   TRUST PILLARS
   ═══════════════════════════════ */

.pillars {
  padding: var(--section-gap) 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 0, 0, 0.12);
}

.pillar-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  background: var(--green-light);
  border: 1px solid oklch(0.58 0.14 45 / 0.15);
  border-radius: var(--radius-sm);
  color: var(--green);
  margin-bottom: 1.5rem;
}

.pillar-icon svg { width: 100%; height: 100%; }

/* ─── Cursor spotlight (position fed by JS via --mx/--my) ─── */
.pillar-card, .feature-card, .use-case-card { position: relative; }

.pillar-card::after,
.feature-card::after,
.use-case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), oklch(0.72 0.15 55 / 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.use-case-card::after {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), oklch(0.72 0.15 55 / 0.13), transparent 65%);
}

.pillar-card:hover::after,
.feature-card:hover::after,
.use-case-card:hover::after { opacity: 1; }

.pillar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ═══════════════════════════════
   FEATURES GRID
   ═══════════════════════════════ */

.features {
  padding: 4rem 0 var(--section-gap);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 0, 0, 0.12);
}

.feature-card.span-2 {
  grid-column: span 2;
}

.feature-card.wide {
  grid-column: 1 / -1;
}

/* Compact accent card (no visual) */
.feature-card.accent {
  background: linear-gradient(160deg, var(--green-light), var(--bg-elevated) 75%);
}

.feature-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.035em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 400px;
}

.feature-visual-inner {
  margin-top: 2rem;
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

/* Backlinks */
.fc-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-dark-border);
}
.fc-item:last-child { border-bottom: none; }

.fc-note {
  display: block;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.fc-context {
  font-size: 0.78rem;
  color: var(--muted-on-dark);
}

.fc-context mark {
  background: oklch(0.94 0.03 45);
  color: var(--green-dark);
  padding: 0.05em 0.2em;
  border-radius: 3px;
}

/* Graph */
.graph-demo { width: 100%; height: auto; display: block; }

/* Editor */
.editor-inner {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
}

.ec-line { color: var(--text-secondary); }
.ec-h1 { color: var(--text); font-weight: 700; font-size: 1rem; }
.ec-bold { color: var(--text); }
.ec-link { color: var(--green); }
.ec-tag { color: var(--green); opacity: 0.7; }

/* Canvas */
.canvas-inner {
  position: relative;
  min-height: 180px;
}

.canvas-node {
  position: absolute;
  padding: 0.35rem 0.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.canvas-node.highlight {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.canvas-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Plugins */
.plugins-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}

.plugin-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  transition: border-color 0.2s;
}

.plugin-chip:hover { border-color: rgba(0, 0, 0, 0.15); }

.plugin-chip-name {
  font-weight: 600;
  font-size: 0.82rem;
}

.plugin-chip-author {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ═══════════════════════════════
   USE CASES
   ═══════════════════════════════ */

.use-cases {
  padding: var(--section-gap) 0;
  background: var(--bg-dark);
  color: #fff;
}

.use-cases .section-label { color: var(--muted-on-dark); }
.use-cases .section-title { color: #fff; }
.use-cases .section-sub { color: var(--muted-on-dark); }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}

.use-case-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%), var(--bg-dark-elevated);
  border: 1px solid var(--border-on-dark);
  border-top-color: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  cursor: default;
}

.use-case-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.use-case-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  background: oklch(0.28 0.06 55 / 0.35);
  border: 1px solid oklch(0.72 0.15 55 / 0.2);
  border-radius: var(--radius-sm);
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.use-case-icon svg {
  width: 100%;
  height: 100%;
}

.use-case-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.use-case-card p {
  font-size: 0.82rem;
  color: var(--muted-on-dark);
  line-height: 1.6;
}

/* ═══════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════ */

.testimonials {
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  animation: testimonialScroll 40s linear infinite;
  width: max-content;
}

.testimonials-track:hover { animation-play-state: paused; }

.testimonial-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--muted);
}

@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   CTA SECTION
   ═══════════════════════════════ */

.cta-section {
  padding: var(--section-gap) 0;
  text-align: center;
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Golden glow rising from below — bookends the hero */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 65% at 50% 100%, oklch(0.45 0.10 55 / 0.3), transparent 70%);
  pointer-events: none;
}

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

.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  color: #fff;
}

.cta-section p {
  color: var(--muted-on-dark);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--bg-dark);
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--muted-on-dark);
}

.cta-section .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ═══════════════════════════════
   PRICING
   ═══════════════════════════════ */

.pricing-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.pricing-tiers { text-align: center; padding-bottom: 4rem; }

.pricing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 3.5rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem;
}

.toggle-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--text);
  color: #fff;
}

.toggle-btn:not(.active):hover {
  color: var(--text);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  position: relative;
  transition: box-shadow 0.3s;
}

.price-card:hover {
  box-shadow: 0 4px 20px rgba(40, 35, 20, 0.06);
}

.price-card.featured {
  border-color: var(--green);
  border-width: 2px;
}

.price-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-tier {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ═══════════════════════════════
   FAQ
   ═══════════════════════════════ */

.faq-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.04em;
}

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] { background: var(--bg-elevated); }

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 400;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ═══════════════════════════════
   DOWNLOAD PAGE
   ═══════════════════════════════ */

.hero-version {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 0.5rem;
}

.download-hero {
  padding: 4.5rem 0 3.5rem;
}

/* Two-column hero: the case for downloading (left) sits beside the email gate
   (right) — the one required action — so the form is above the fold next to the
   reasons to fill it in, instead of stranded below a tall, empty centered hero. */
.dl-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.75rem;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}

.dl-hero-copy { text-align: left; }

.dl-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

/* The shared .hero-title/.hero-sub are styled for the dark homepage hero
   (white text). On this light page they'd be invisible — re-color them. */
.download-hero .hero-title {
  color: var(--text);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  margin-bottom: 1.1rem;
}

.download-hero .hero-title .serif {
  background: linear-gradient(120deg, var(--green) 20%, var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.download-hero .hero-sub {
  color: var(--text-secondary);
  font-size: 1.06rem;
  max-width: 44ch;
  margin: 0 0 1.75rem;
}

.dl-benefits {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.dl-benefits li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.dl-benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.dl-os-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.dl-os-note svg { width: 1rem; height: 1rem; opacity: 0.6; }

.dl-hero-action { width: 100%; }

/* ─── Platform picker (below the hero) ─── */
.download-platforms {
  padding: 0 0 5.5rem;
}

.dl-platforms-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.download-terms {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.download-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.download-card:hover {
  box-shadow: 0 4px 20px rgba(40, 35, 20, 0.06);
  transform: translateY(-2px);
}

/* The visitor's detected OS (set by main.js) — nudge them to the right card. */
.download-card.is-recommended {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 4px 20px rgba(40, 35, 20, 0.06);
}

.dl-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.download-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1.5rem;
  color: var(--text);
  opacity: 0.4;
}

.download-icon svg { width: 100%; height: 100%; }

.download-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.download-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Secondary download (e.g. the non-detected Mac arch) — subtle text link. */
.btn-link {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.btn-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* "Recommended for your Mac" caption — sits below the buttons, one row,
   revealed by JS once the chip is detected. */
.download-rec {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.65rem;
  white-space: nowrap;
}

.download-rec::before {
  content: "\2713\00a0";
  color: #2e9e5b;
}

.download-extras {
  margin-top: 4rem;
  text-align: center;
}

.download-extras h3 {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.extras-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.extra-link {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.extra-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--green);
  transition: width 0.3s;
}

.extra-link:hover::after { width: 100%; }

/* ─── Email capture (download page) ─── */
.signup {
  max-width: 440px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.signup-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.signup-row {
  display: flex;
  gap: 0.5rem;
}

.signup-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.65rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-input::placeholder { color: var(--muted); }

.signup-input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(28, 27, 23, 0.06);
}

.signup .btn-primary { white-space: nowrap; }

.signup-note {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.7rem;
  min-height: 1.1em;
  transition: color 0.2s;
}

.signup-note.is-success { color: var(--green); }
.signup-note.is-error { color: #c0392b; }

.signup.is-done .signup-row { display: none; }
.signup.is-done .signup-label { color: var(--green); }

@media (max-width: 480px) {
  .signup-row { flex-direction: column; }
  .signup .btn-primary { width: 100%; }
}

/* ─── Download email gate ───────────────────────────────────────────
   The required step on the download page. A distinct panel + lock icon so
   it reads as "do this first", and a flash when a locked card sends focus
   here. The platform cards below render locked until this clears. */
/* In the two-column hero the gate fills its column (no centering / top gap). */
.dl-hero-action .download-gate {
  max-width: 100%;
  margin: 0;
}

.download-gate {
  max-width: 500px;
  margin: 3rem auto 0;
  padding: 1.9rem 1.9rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 6rem;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.download-gate .signup-label {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.gate-lock {
  width: 1.6rem;
  height: 1.6rem;
  margin: 0 auto 0.7rem;
  display: block;
  color: var(--text-secondary);
}

.download-gate.is-unlocked .gate-lock { display: none; }

/* Flash when a locked download button bounces focus up here. */
@keyframes gate-flash {
  0%   { box-shadow: 0 0 0 0 var(--glow); border-color: var(--green-dark); }
  100% { box-shadow: 0 0 0 14px transparent; border-color: var(--border); }
}
.download-gate.flash { animation: gate-flash 0.9s var(--ease-out); }

.download-ready {
  max-width: 500px;
  margin: 1rem auto 0;
  font-size: 0.88rem;
  color: var(--green);
}

/* Caption above the locked cards. */
.download-locked-hint {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

/* Locked platform cards: visible (so the page reads as a download page) but
   clearly not yet active. Buttons drop to an outlined "locked" look with a
   padlock, so the solid black email CTA is the only real call to action. */
.download-grid.is-locked .download-card { opacity: 0.92; }

.download-platforms .download-grid.is-locked .btn-primary,
.download-platforms .download-grid.is-locked .btn-link {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.download-platforms .download-grid.is-locked .btn-primary:hover,
.download-platforms .download-grid.is-locked .btn-link:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.download-grid.is-locked .btn-primary::before {
  content: "\1F512\00a0\00a0"; /* 🔒 */
  font-size: 0.85em;
}

/* ═══════════════════════════════
   BENEFITS
   ═══════════════════════════════ */

.benefits {
  padding: 0 0 var(--section-gap);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  max-width: 880px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-check {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0.28rem;
  margin-top: 0.15rem;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid oklch(0.58 0.14 45 / 0.15);
  border-radius: 100px;
}

.benefit-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.benefit-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ═══════════════════════════════
   NEWSLETTER
   ═══════════════════════════════ */

.newsletter {
  padding: 0 0 var(--section-gap);
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 3.25rem;
  background: linear-gradient(150deg, var(--green-light), var(--bg-elevated) 80%);
  border: 1px solid oklch(0.58 0.14 45 / 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.newsletter-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}

.newsletter-copy p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 38ch;
}

/* Form sits left-aligned inside the card, not centered like the download page */
.newsletter-signup {
  max-width: none;
  margin: 0;
  text-align: left;
}

.newsletter-signup .signup-label { margin-bottom: 0.6rem; }
.newsletter-signup .signup-input { background: var(--bg); }

@media (max-width: 760px) {
  .newsletter-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.25rem 1.75rem;
  }
  .newsletter-copy p { max-width: none; }
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */

.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer a { color: rgba(255, 255, 255, 0.5); }
.footer a:hover { color: #fff; }

.footer .nav-brand { color: #fff; }
.footer .nav-logo { color: rgba(255, 255, 255, 0.6); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */

@media (max-width: 1024px) {
  .dl-hero { gap: 2.5rem; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.span-2 { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-gap: 5rem; }

  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(19, 19, 15, 0.97);
    padding: 1.25rem 2rem 1.5rem;
    border-bottom: 1px solid var(--bg-dark-border);
  }

  .hero { padding: 4rem 0 3rem; }
  .hero-title { font-size: 2.75rem; }
  .hero-platforms { flex-wrap: wrap; gap: 1rem; }

  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar, .mock-panel { display: none; }

  .pillars-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.wide > div { grid-template-columns: 1fr !important; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .download-grid { grid-template-columns: 1fr; max-width: 400px; margin: 2.25rem auto 0; }

  .dl-hero { grid-template-columns: 1fr; gap: 2.25rem; max-width: 480px; }
  .dl-hero-copy { text-align: center; }
  .download-hero .hero-sub { max-width: none; }
  .dl-benefits { max-width: 340px; margin-left: auto; margin-right: auto; }
  .dl-os-note { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .plugins-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { width: 300px; }
  .section-title { font-size: 2rem; }
}

/* ═══════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .banner-track,
  .logos-track,
  .testimonials-track,
  .mock-caret,
  .hero-badge .dot { animation: none; }
}
