/* ============================================================
   Luna Code — landing page
   Dark neutral base, purple accents (matches the extension theme)
   ============================================================ */

:root {
  --bg: #0b0b0f;
  --bg-2: #0e0e13;
  --surface: #141419;
  --surface-2: #1a1a21;
  --border: #26262f;
  --border-soft: #1c1c24;

  --text: #ececef;
  --text-dim: #9a9aa4;
  --text-faint: #6b6b76;

  --accent: #8b5cf6;
  --accent-2: #a855f7;
  --accent-bright: #b794ff;
  --accent-glow: rgba(139, 92, 246, 0.35);

  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 24px 70px -24px rgba(139, 92, 246, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Offset in-page anchor targets so the sticky nav doesn't cover them. */
section[id], #main { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-bright);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grad {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent-2) 55%, #d8c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn .icon { flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 32px -8px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
}

.btn-lg { padding: 14px 24px; font-size: 15.5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border-soft); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { color: var(--text); }
.brand-logo {
  display: inline-flex;
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.brand-name { font-size: 17px; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 14px;
  margin-right: auto;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  color: var(--text);
  padding: 10px 4px;
  font-size: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:last-child { border: 0; margin-top: 8px; }
.mobile-menu .btn { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 60px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background:
    radial-gradient(closest-side, rgba(168, 85, 247, 0.22), transparent 70%),
    radial-gradient(closest-side, rgba(139, 92, 246, 0.16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-copy, .hero-mockup { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  margin-bottom: 20px;
}
.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 40ch;
  margin-bottom: 30px;
}
.lede strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 8px 8px 16px;
  max-width: 100%;
}
.install-cmd code {
  background: none;
  color: var(--text);
  font-size: 14px;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.install-cmd .copy-btn { flex: none; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--text); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.hero-badges li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-dim);
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Hero: animated panel replica ---------- */
.hero-mockup { position: relative; perspective: 1500px; }
.shot-glow {
  position: absolute;
  inset: -12% -6% -16% -6%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.34), transparent 72%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.lc-float {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}
@media (prefers-reduced-motion: no-preference) {
  .lc-float { animation: lc-float 7s ease-in-out infinite; }
}
@keyframes lc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.shot-frame {
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #121212;
  box-shadow: var(--shadow-glow);
  transform: rotateX(var(--lc-rx, 4deg)) rotateY(var(--lc-ry, -9deg));
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* ===== Panel replica — mirrors the extension's webview theme ===== */
.lc-panel {
  --bg: #121212;
  --bg-elev: #1a1a1a;
  --bg-elev-2: #212121;
  --border: #323232;
  --border-soft: #262626;
  --text: #ececef;
  --text-dim: #9a9aa4;
  --text-faint: #66666f;
  --accent: #8b5cf6;
  --accent-2: #a855f7;
  --accent-bright: #b794ff;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --green: #4ade80;
  --red: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  display: flex;
  flex-direction: column;
  height: 590px;
  background: var(--bg);
  color: var(--text);
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.lc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; flex: none;
  border-bottom: 1px solid var(--border-soft);
}
.lc-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lc-logo {
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 13.4A8.2 8.2 0 1 1 10.6 3.5 6.4 6.4 0 0 0 20.5 13.4Z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 13.4A8.2 8.2 0 1 1 10.6 3.5 6.4 6.4 0 0 0 20.5 13.4Z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 7px var(--accent-glow));
}
.lc-brandname { font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lc-model {
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text-dim); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.lc-ibtn { flex: none; }
.lc-ibtn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text-dim);
}

/* Messages */
.lc-messages {
  flex: 1; min-height: 0; overflow: hidden;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
/* Keep natural heights — don't let the flex column squash items to fit. */
.lc-messages > * { flex: none; }
.lc-msg.user { display: flex; justify-content: flex-end; }
.lc-msg.user .lc-bubble {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 12px 12px 4px 12px;
  padding: 8px 12px; max-width: 88%; color: var(--text);
}
.lc-badge { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); opacity: 0.75; margin-bottom: 3px; }
.lc-body { color: var(--text); }
.lc-cursor::after { content: "▍"; margin-left: 1px; color: var(--accent-bright); animation: lc-blink 1s steps(2) infinite; }
@keyframes lc-blink { 50% { opacity: 0; } }

/* Tool rows */
.lc-tool { margin: 1px 0; }
.lc-tool-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 1px 2px; color: var(--text-dim); }
.lc-dot {
  width: 9px; height: 9px; flex: none;
  border: 1.5px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: lc-spin 0.7s linear infinite;
}
.lc-mark { width: 12px; text-align: center; font-size: 10.5px; font-weight: 700; flex: none; }
.lc-mark.ok { color: var(--green); }
.lc-verb { color: var(--text); font-size: 12px; font-weight: 500; flex: none; }
.lc-sub { color: var(--text-faint); font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* Diff preview */
.lc-diff { margin: 5px 0 3px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.lc-diff-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: var(--bg-elev-2); border-bottom: 1px solid var(--border-soft); font-size: 11px; }
.lc-diff-path { font-family: var(--mono); color: var(--text-dim); }
.lc-diff-stat { display: flex; gap: 8px; font-family: var(--mono); }
.lc-add { color: var(--green); }
.lc-del { color: var(--red); }
.lc-diff-body { font-family: var(--mono); font-size: 10.5px; line-height: 1.55; padding: 4px 0; background: var(--bg); }
.lc-diff-line { padding: 0 10px; white-space: pre; overflow: hidden; text-overflow: ellipsis; color: var(--text-dim); }
.lc-diff-line.add { background: rgba(74, 222, 128, 0.10); color: var(--text); }
.lc-diff-line.del { background: rgba(248, 113, 113, 0.13); }

/* Thinking activity */
.lc-activity { display: flex; align-items: center; gap: 8px; padding: 4px 14px 8px; font-size: 12px; color: var(--text-dim); flex: none; }
.lc-activity.lc-hidden { display: none; }
.lc-orb { width: 11px; height: 11px; border-radius: 50%; flex: none; background: linear-gradient(90deg, #44444c, #ededf2 50%, #44444c); background-size: 200% 100%; animation: lc-shimmer 1.6s linear infinite; }
.lc-think { display: inline-flex; align-items: flex-end; gap: 3px; }
.lc-think-text { font-weight: 500; background: linear-gradient(90deg, var(--text-faint), #fff 50%, var(--text-faint)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: lc-shimmer 2s linear infinite; }
.lc-dots { display: inline-flex; gap: 3px; margin-bottom: 4px; }
.lc-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); animation: lc-dotb 1.4s ease-in-out infinite; }
.lc-dots i:nth-child(2) { animation-delay: 0.2s; }
.lc-dots i:nth-child(3) { animation-delay: 0.4s; }
.lc-think-count { margin-left: 4px; font-size: 10.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
@keyframes lc-shimmer { to { background-position: -200% 0; } }
@keyframes lc-dotb { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* Composer */
.lc-composer { padding: 10px 14px 12px; border-top: 1px solid var(--border-soft); flex: none; }
.lc-shell { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 8px 8px 12px; }
.lc-input-row { display: flex; align-items: flex-end; gap: 8px; }
.lc-input { flex: 1; color: var(--text-faint); font-size: 13px; line-height: 1.5; padding: 4px 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* While "typing", behave like an auto-growing textarea: wrap to show the full text. */
.lc-input.typed { color: var(--text); white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; word-break: break-word; }
.lc-send { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; flex: none; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.lc-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; row-gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.lc-modes { display: flex; gap: 4px; }
.lc-mode { border: 1px solid transparent; color: var(--text-dim); border-radius: 999px; padding: 3px 11px; font-size: 11px; font-weight: 500; }
.lc-mode.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.lc-meter { margin-left: auto; font-size: 10.5px; color: var(--text-faint); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lc-cost { color: var(--accent-bright); font-weight: 600; }
.lc-cache { color: var(--green); }
.lc-cache-dot { color: var(--green); }

/* Appended-item entrance + reset fade */
.lc-enter { animation: lc-in 0.35s ease both; }
@keyframes lc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lc-panel.lc-fade { opacity: 0; transition: opacity 0.45s ease; }

@media (prefers-reduced-motion: reduce) {
  .lc-enter { animation: none; }
  .lc-dot { animation: none; }
  .lc-orb, .lc-think-text, .lc-dots i { animation: none; }
}

/* ---------- Trust strip ---------- */
.strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 24px;
  text-align: center;
}
.strip-item { display: flex; flex-direction: column; gap: 3px; }
.strip-item strong {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.strip-item span { font-size: 13.5px; color: var(--text-dim); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--surface-2);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.card code { font-size: 0.85em; }

/* ---------- Modes ---------- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mode-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
}
.mode-card.featured {
  border-color: rgba(139, 92, 246, 0.55);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), var(--surface) 60%);
  box-shadow: var(--shadow-glow);
}
.mode-card.featured::after {
  content: "Autonomous";
  position: absolute;
  top: 16px; right: -30px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 34px;
}
.mode-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-bright);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.mode-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.mode-card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 44px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

.how-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.how-note { color: var(--text-dim); font-size: 14px; }

/* ---------- Split (privacy) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}
.split-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.split-copy > p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 24px; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-dim);
  font-size: 15px;
}
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background:
    rgba(139, 92, 246, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23b794ff'/%3E%3C/svg%3E") center/13px no-repeat;
}

.split-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat.sm .stat-num { font-size: 1.5rem; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-dim); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--border-soft); padding-top: 20px; }

.mini-meter { border-top: 1px solid var(--border-soft); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); font-family: var(--mono); }
.mini-row .grad { font-weight: 700; }
.bar { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

/* ---------- Final CTA ---------- */
.cta { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute;
  bottom: -300px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.25), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 620px; }
.cta .brand-logo.big { color: var(--accent); margin-bottom: 20px; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); background: var(--bg-2); padding: 56px 0 28px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); font-weight: 700; }
.footer-col a { color: var(--text-dim); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: var(--text-faint);
  font-size: 13.5px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-mockup { max-width: 440px; margin: 0 auto; }
  .shot-frame { transform: none; }
  .lede { max-width: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 68px 0; }
  .feature-grid, .modes-grid, .steps, .footer-cols { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .mode-card.featured::after { display: none; }
}

@media (max-width: 420px) {
  .strip-inner { grid-template-columns: 1fr; }
  .install-cmd { width: 100%; }
  .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
}
