/* ==========================================================================
   LoggerMan — landing page styles
   ========================================================================== */

:root {
  --bg: #06070b;
  --bg-2: #0b0d14;
  --bg-3: #10131c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #9aa2b5;
  --faint: #6b7286;
  --accent: #ff5a3c;
  --accent-2: #ffb347;
  --cyan: #58e6ff;
  --violet: #8b7cff;
  --green: #4ade80;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(255, 90, 60, 0.35); }

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

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

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

.grad-cool {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  max-width: 820px;
}

.section-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
  margin-top: 18px;
}

.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #ff6a3c 0%, #ff4a2e 50%, #ff8a3c 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 30px -8px rgba(255, 90, 60, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  animation: shimmer 6s ease infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(255, 90, 60, 0.75), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 17px; }

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a6a, var(--accent) 60%, #c8341b);
  box-shadow: 0 0 0 3px rgba(255,90,60,0.18), 0 0 14px rgba(255,90,60,0.55);
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--surface-2); }

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

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .3s, opacity .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(255, 90, 60, 0.22), transparent 60%),
    radial-gradient(45% 40% at 85% 20%, rgba(139, 124, 255, 0.18), transparent 60%),
    radial-gradient(50% 40% at 60% 100%, rgba(88, 230, 255, 0.12), transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy, .hero-visual { min-width: 0; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-pill .dot {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: rgba(255, 90, 60, 0.18);
}
.hero-pill .dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,90,60,0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,90,60,0.6); }
  100% { box-shadow: 0 0 0 10px rgba(255,90,60,0); }
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1 .line { display: block; }
.hero p.lead {
  margin: 26px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--green); }

/* macOS window mockup */
.window {
  position: relative;
  border-radius: 14px;
  background: #0f1119;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 40px 90px -30px rgba(0,0,0,0.9),
    0 30px 60px -40px rgba(255, 90, 60, 0.35);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: linear-gradient(180deg, #1d2130, #171a26);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar .title {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 62%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--faint);
}
.window img { width: 100%; display: block; }

.hero-visual { position: relative; perspective: 1400px; }
.hero-stage {
  transform-style: preserve-3d;
  transform: rotateY(-5deg) rotateX(4deg);
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.hero-stage .window { transform: translateZ(0); }

/* Live log ticker */
.ticker {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; gap: 48px; width: max-content;
  animation: ticker 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { white-space: nowrap; }
.ticker-track em { font-style: normal; color: var(--accent-2); margin-right: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { position: relative; padding: 120px 0; }
.section > .container { position: relative; z-index: 1; }
.section:not(.no-line)::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1100px, 92%); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12) 25%, rgba(255,140,90,0.6) 50%, rgba(255,255,255,0.12) 75%, transparent);
}
.section:not(.no-line)::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(640px, 70%); height: 90px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,90,60,0.18), transparent 70%);
}
.section-alt:not(.no-line)::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12) 25%, rgba(88,230,255,0.55) 50%, rgba(255,255,255,0.12) 75%, transparent);
}
.section-alt:not(.no-line)::after { background: radial-gradient(50% 100% at 50% 0%, rgba(88,230,255,0.14), transparent 70%); }

/* Ambient blobs (parallax) */
.section-alt { overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.32; pointer-events: none; z-index: 0;
  will-change: transform;
}
.blob-a { width: 560px; height: 560px; right: -200px; top: 8%; background: radial-gradient(circle, rgba(139,124,255,0.8), transparent 65%); }
.blob-b { width: 520px; height: 520px; left: -220px; bottom: 4%; background: radial-gradient(circle, rgba(255,90,60,0.7), transparent 65%); }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-title, .section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }

.section-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 20%, var(--bg-2) 80%, var(--bg) 100%);
}

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-top: -40px;
  position: relative; z-index: 2;
}
.stat { padding: 28px 28px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.how-step {
  position: relative; padding: 24px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.how-step:hover { border-color: var(--border-2); transform: translateY(-3px); }
.how-step:not(:last-child)::after {
  content: ""; position: absolute; right: -19px; top: 50%; width: 20px; height: 1px;
  background: linear-gradient(90deg, rgba(255,140,90,0.7), rgba(255,140,90,0.1));
}
.how-no { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent-2); }
.how-step .icon-box { width: 40px; height: 40px; margin-bottom: 16px; }
.how-step h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.how-step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Bento modules */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, background 0.35s;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.07), transparent 40%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card.span-2 { grid-column: span 2; }

.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,90,60,0.22), rgba(255,179,71,0.12));
  border: 1px solid rgba(255,140,90,0.25);
  color: var(--accent-2);
  flex: none;
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box.cool { background: linear-gradient(135deg, rgba(88,230,255,0.18), rgba(139,124,255,0.14)); border-color: rgba(120,200,255,0.25); color: var(--cyan); }
.icon-box.violet { background: linear-gradient(135deg, rgba(139,124,255,0.22), rgba(88,230,255,0.1)); border-color: rgba(160,150,255,0.3); color: var(--violet); }
.icon-box.green { background: linear-gradient(135deg, rgba(74,222,128,0.18), rgba(88,230,255,0.1)); border-color: rgba(100,230,150,0.28); color: var(--green); }

.card h3 { font-size: 22px; font-weight: 700; }
.card .module-no { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.card ul { color: var(--muted); font-size: 15px; margin: 0 0 16px; padding-left: 20px; }
.card ul li { margin-bottom: 6px; }

.log {
  border-radius: var(--radius-sm);
  background: #0a0c12;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  margin: 14px 0;
}
.log-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.log-head i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.log pre {
  margin: 0; padding: 12px 14px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  color: #d7dbe8;
  overflow-x: auto;
  white-space: pre;
}
.log pre .t { color: var(--accent-2); }
.log pre .s { color: var(--cyan); }
.log pre .n { color: var(--violet); }

.format { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.format .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.format .f {
  font-family: var(--font-mono); font-size: 12px;
  padding: 4px 9px; border-radius: 7px;
  background: rgba(255,179,71,0.08);
  border: 1px solid rgba(255,179,71,0.22);
  color: #ffd28a;
}
.format .f.ts { background: rgba(88,230,255,0.07); border-color: rgba(88,230,255,0.22); color: #9df0ff; }
.format .sep { color: var(--faint); font-family: var(--font-mono); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.chip .code {
  font-family: var(--font-mono); font-size: 11px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700;
}
.chip.on { border-color: rgba(255,90,60,0.6); background: rgba(255,90,60,0.12); }

/* Menu bar showcase */
.menubar-demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.macbar {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a1d29, #12141d);
  border: 1px solid var(--border-2);
  padding: 0;
  overflow: visible;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}
.macbar-top {
  display: flex; align-items: center; gap: 18px;
  height: 30px; padding: 0 14px;
  white-space: nowrap; overflow: hidden;
  font-size: 13px; color: #cfd3e0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  border-radius: 14px 14px 0 0;
}
.macbar-top .apple { font-size: 15px; }
.macbar-top .spacer { flex: 1; }
.macbar-top .sys { display: inline-flex; gap: 14px; align-items: center; color: #aeb4c6; font-size: 12px; }
.macbar-top .status { position: relative; }
.macbar-top .status img { width: 18px; height: 18px; filter: drop-shadow(0 0 6px rgba(255,90,60,0.6)); }
.menu-dropdown {
  position: absolute; right: 118px; top: 32px;
  width: 210px;
  border-radius: 8px;
  background: rgba(30, 33, 45, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.8);
  padding: 6px 0;
  font-size: 13.5px;
  z-index: 3;
}
.menu-dropdown li { list-style: none; padding: 5px 14px; display: flex; justify-content: space-between; align-items: center; color: #e6e8f0; }
.menu-dropdown li.sep { height: 1px; padding: 0; margin: 5px 10px; background: rgba(255,255,255,0.1); }
.menu-dropdown li.hl { background: var(--accent); color: #fff; margin: 0 5px; border-radius: 5px; padding: 5px 9px; }
.menu-dropdown li .arrow { opacity: .6; font-size: 11px; }
.submenu {
  position: absolute; right: -104px; top: 68px;
  width: 100px; border-radius: 8px;
  background: rgba(30, 33, 45, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.8);
  padding: 6px 0; font-size: 13.5px; z-index: 4;
}
.submenu li { list-style: none; padding: 5px 14px; color: #e6e8f0; }
.submenu li.check::before { content: "✓ "; }
.macbar-body { height: 340px; border-radius: 0 0 14px 14px;
  background:
    radial-gradient(70% 90% at 30% 100%, rgba(255,90,60,0.12), transparent 60%),
    radial-gradient(60% 70% at 80% 20%, rgba(139,124,255,0.12), transparent 60%);
}

.feature-list { display: grid; gap: 18px; margin-top: 28px; }
.feature { display: flex; gap: 16px; }
.feature .icon-box { width: 40px; height: 40px; }
.feature h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Reporting gallery */
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 8px auto 0; }
.report-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s;
}
.report-item:hover { transform: translateY(-4px); border-color: var(--border-2); }
.report-item { cursor: zoom-in; }
.report-item:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

dialog.lightbox { border: 0; padding: 0; margin: auto; background: transparent; max-width: none; width: auto; color: var(--text); }
dialog.lightbox::backdrop { background: rgba(3,4,8,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
dialog.lightbox figure { margin: 0; position: relative; animation: modalIn .35s cubic-bezier(.2,.8,.2,1); }
dialog.lightbox img {
  display: block; max-width: min(92vw, 1200px); max-height: 78vh; width: auto; height: auto;
  border-radius: 14px; background: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.9);
}
dialog.lightbox figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
dialog.lightbox .modal-close { position: fixed; top: 18px; right: 18px; width: 40px; height: 40px; background: rgba(26,29,41,0.9); z-index: 2; }
dialog.lightbox .modal-close svg { width: 18px; height: 18px; }
.report-item .img-wrap { background: #f0f0f2; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.report-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.report-item .img-wrap.contain img { object-fit: contain; padding: 10px; }
.report-item .img-wrap.dark { background: #0f1119; }
.report-item .cap { padding: 14px 16px; }
.report-item .cap h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.report-item .cap p { margin: 0; color: var(--muted); font-size: 13.5px; }

.note-box {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255,179,71,0.06);
  border: 1px solid rgba(255,179,71,0.22);
  color: var(--muted); font-size: 14.5px;
  margin-top: 24px;
}
.note-box svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); margin-top: 2px; }
.note-box b { color: var(--text); font-weight: 600; }

/* Install steps */
.install-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.steps { position: relative; counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 0 0 34px;
}
.step::before {
  content: "";
  position: absolute; left: 23px; top: 48px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,90,60,0.6), rgba(255,255,255,0.06));
}
.step:last-child::before { display: none; }
.step-no {
  counter-increment: step;
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  background: linear-gradient(135deg, rgba(255,90,60,0.25), rgba(255,179,71,0.12));
  border: 1px solid rgba(255,140,90,0.35);
  color: #ffd0b8;
}
.step-no::before { content: counter(step); }
.step h4 { font-size: 18px; font-weight: 600; margin: 10px 0 6px; }
.step p, .step li { color: var(--muted); font-size: 15px; }
.step p { margin: 0 0 10px; }
.step ol { margin: 0 0 12px; padding-left: 20px; }
.step .shot { margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-2); box-shadow: 0 20px 50px -25px rgba(0,0,0,.9); max-width: 560px; }
.step kbd, .inline-code {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border-2);
  color: var(--text);
}
.step .path { color: var(--text); }
.step .path svg { width: 12px; height: 12px; vertical-align: -1px; margin: 0 4px; color: var(--faint); }

.side-cards { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 24px); }
.side-cards .card ul { margin-bottom: 0; }
.req-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.3);
  color: #b8f5cc; font-size: 14px; font-weight: 500;
}
.req-badge svg { width: 18px; height: 18px; color: var(--green); }

/* Notes grid */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .3s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.note:hover { border-color: var(--border-2); transform: translateY(-3px); }
.note .icon-box { width: 38px; height: 38px; margin-bottom: 16px; }
.note .icon-box svg { width: 19px; height: 19px; }
.note h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.note p { margin: 0; color: var(--muted); font-size: 14.5px; }
.note.hl { background: linear-gradient(135deg, rgba(255,90,60,0.12), rgba(255,179,71,0.05)); border-color: rgba(255,140,90,0.35); }

/* Download CTA */
.cta {
  position: relative;
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255,140,90,0.25);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255,90,60,0.28), transparent 65%),
    radial-gradient(40% 50% at 15% 100%, rgba(139,124,255,0.18), transparent 60%),
    radial-gradient(40% 50% at 85% 100%, rgba(88,230,255,0.14), transparent 60%),
    var(--bg-3);
}
.cta::before {
  content: "";
  position: absolute; inset: -1px;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(255,90,60,0.5) 60deg, transparent 120deg, transparent 240deg, rgba(88,230,255,0.4) 300deg, transparent 360deg);
  animation: spin 14s linear infinite;
  opacity: .5;
  pointer-events: none;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  border-radius: 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta .app-icon {
  width: 96px; height: 96px; border-radius: 24px;
  margin: 0 auto 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1);
  animation: floaty2 6s ease-in-out infinite;
}
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.cta h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 12px auto 0; }
.cta .hero-actions { margin-top: 28px; }
.cta .hero-actions { justify-content: center; }
.cta .hero-meta { justify-content: center; }

/* Cite */
.paper {
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: center;
}
.paper .venue { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.paper h3 { font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.paper .authors { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.paper-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.paper-actions .btn.done { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 30px -8px rgba(34,197,94,0.5); }
.bibtex { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 14px; }
.bibtex summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
  transition: color .2s;
}
.bibtex summary::-webkit-details-marker { display: none; }
.bibtex summary::before { content: "▸"; font-size: 12px; transition: transform .2s; }
.bibtex[open] summary::before { transform: rotate(90deg); }
.bibtex summary:hover { color: var(--text); }
.bibtex pre {
  margin: 12px 0 0; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #0a0c12; border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: #d7dbe8;
  overflow-x: auto; white-space: pre;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.footer .logos { display: flex; align-items: center; gap: 20px; }
.footer .logos img { height: 52px; width: auto; border-radius: 8px; background: #fff; padding: 6px 10px; }
.footer .about { max-width: 560px; color: var(--muted); font-size: 14.5px; }
.footer .about b { color: var(--text); font-weight: 600; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--faint); font-size: 13px;
}
.footer-bottom a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Modal (download)
   -------------------------------------------------------------------------- */
dialog.modal {
  border: 0; padding: 0; margin: auto;
  background: transparent;
  max-width: min(92vw, 480px);
  width: 100%;
  color: var(--text);
}
dialog.modal::backdrop {
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  border-radius: 24px;
  padding: 36px 32px 32px;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255,90,60,0.22), transparent 65%),
    #10121b;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9);
  animation: modalIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-2); background: rgba(255,255,255,0.05);
  display: grid; place-items: center; color: var(--muted);
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.modal-close svg { width: 16px; height: 16px; }
.modal-card .app-icon { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.9); }
.modal-card h3 { font-size: 24px; text-align: center; margin-top: 6px; }
.modal-card p { color: var(--muted); font-size: 15px; text-align: center; margin: 10px 0 0; }
.modal-form { margin-top: 22px; display: grid; gap: 12px; }
.modal-form label { font-size: 13px; color: var(--muted); }
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  color: var(--text);
  font: inherit; font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,60,0.18); }
.modal-form .btn { width: 100%; }
.hp-wrap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-form .fine { font-size: 12.5px; color: var(--faint); text-align: center; margin: 4px 0 0; }
.modal-step { display: none; }
.modal-step.is-active { display: block; }
.success-ring {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.4);
  color: var(--green);
  animation: popIn .5s cubic-bezier(.2,.8,.2,1);
}
.success-ring svg { width: 32px; height: 32px; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-actions { margin-top: 22px; display: grid; gap: 10px; }
.cite-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--faint); }
.cite-note span { color: var(--muted); }
.cite-note a { color: var(--accent-2); font-weight: 500; }
.cite-note a:hover { text-decoration: underline; }
.cite-box {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(88,230,255,0.06); border: 1px solid rgba(88,230,255,0.2);
  font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: left;
}
.cite-box svg { width: 20px; height: 20px; flex: none; color: var(--cyan); margin-top: 1px; }
.cite-box b { color: var(--text); font-weight: 600; }
.cite-box a { color: var(--cyan); font-weight: 500; white-space: nowrap; }
.cite-box a:hover { text-decoration: underline; }
.progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 18px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s ease; }

/* Focus rings */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.input:focus-visible { outline: none; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* --------------------------------------------------------------------------
   Live demo (hero)
   -------------------------------------------------------------------------- */
.demo {
  position: relative; min-width: 0;
  border-radius: 14px;
  background: #0f1119;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 40px 90px -30px rgba(0,0,0,0.9), 0 30px 60px -40px rgba(255,90,60,0.35);
  overflow: hidden;
  user-select: none;
}
.demo-menubar {
  display: flex; align-items: center; gap: 12px;
  height: 26px; padding: 0 12px;
  font-size: 11.5px; color: #d5d8e3;
  background: linear-gradient(180deg, #1f2331, #171a26);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-menubar .apple { font-size: 13px; }
.demo-menubar .app-name { font-weight: 600; }
.demo-menubar .spacer { flex: 1; }
.demo-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.demo-status img { width: 14px; height: 14px; filter: drop-shadow(0 0 5px rgba(255,90,60,0.7)); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.demo-clock { font-variant-numeric: tabular-nums; color: #aeb4c6; }

.demo-desktop {
  position: relative; height: 262px; overflow: hidden;
  cursor: crosshair;
  background:
    radial-gradient(60% 70% at 15% 20%, rgba(255,120,70,0.45), transparent 60%),
    radial-gradient(50% 60% at 85% 30%, rgba(120,90,255,0.5), transparent 60%),
    radial-gradient(60% 60% at 60% 100%, rgba(60,170,255,0.4), transparent 60%),
    linear-gradient(160deg, #2a1f3d, #1c2340 55%, #2e1c2c);
}
.dwin {
  position: absolute; border-radius: 8px; overflow: hidden;
  background: #f4f5f8; color: #333;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.45);
  cursor: pointer; z-index: 1;
  transition: box-shadow .25s, transform .25s;
}
.dwin.is-front {
  z-index: 5;
  box-shadow: 0 26px 50px -16px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,90,60,0.55);
}
.dwin.flash::after { content: ""; position: absolute; inset: 0; background: #fff; pointer-events: none; animation: flash .4s ease-out forwards; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.dwin-bar { height: 18px; display: flex; align-items: center; gap: 4px; padding: 0 7px; background: #e4e6ec; font-size: 9px; color: #666; }
.dwin-bar i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dwin-bar i:nth-child(1) { background: #ff5f57; }
.dwin-bar i:nth-child(2) { background: #febc2e; }
.dwin-bar i:nth-child(3) { background: #28c840; }
.dwin-bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dwin-body { height: calc(100% - 18px); padding: 8px; font-size: 10px; }
.dwin-body.safari .url { background: #fff; border: 1px solid #d9dbe3; border-radius: 4px; padding: 3px 7px; font-size: 9px; color: #555; margin-bottom: 8px; }
.ln { height: 6px; border-radius: 3px; background: #d9dbe3; margin: 6px 0; }
.ln.dark { background: #b9bcc8; height: 8px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; } .w90 { width: 90%; } .w95 { width: 95%; }
.dwin-body.terminal { background: #1a1d28; color: #9df0ff; font-family: var(--font-mono); font-size: 9.5px; line-height: 1.6; }
.tcur { animation: blink 1s step-end infinite; }
.dwin-body.notes { padding: 0; background: #fff9e6; }
.dwin-body.notes textarea {
  display: block; width: 100%; height: 100%; border: 0; resize: none; outline: none;
  padding: 8px 10px; background: transparent;
  font: 11.5px/1.5 var(--font-body); color: #333;
  cursor: text; user-select: text; -webkit-user-select: text;
}
.dwin-body.notes textarea::placeholder { color: #9a9483; }
.demo-cursor {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; z-index: 9;
  pointer-events: none; opacity: 0; transition: opacity .3s;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.6));
}
.demo-cursor.is-on { opacity: 1; }
.demo-cursor::after { content: ""; position: absolute; left: -8px; top: -8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(.4); }
.demo-cursor.click::after { animation: ring .45s ease-out; }
@keyframes ring { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.2); } }
.demo-hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; color: #fff; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none; z-index: 8; transition: opacity .35s;
}
.demo-hint.is-hidden { opacity: 0; }

.demo-log { background: #0a0c12; border-top: 1px solid rgba(255,255,255,0.08); }
.demo-log-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 12px 5px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}
.demo-log-head .rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; box-shadow: 0 0 8px var(--accent); animation: blink 1.6s ease-in-out infinite; }
.demo-counts { text-transform: none; letter-spacing: 0; white-space: nowrap; }
.demo-counts b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-lines {
  list-style: none; margin: 0; padding: 0 12px 10px;
  height: 152px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: #c9cede;
  mask-image: linear-gradient(180deg, transparent, #000 22%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%);
}
.demo-lines li { display: flex; gap: 8px; white-space: nowrap; animation: lineIn .25s ease-out; flex: none; }
.demo-lines li em { font-style: normal; flex: none; width: 84px; color: var(--accent-2); }
.demo-lines li span { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; width: 0; }
.demo-lines li.m-mouse em { color: var(--cyan); }
.demo-lines li.m-keystrokes em { color: var(--violet); }
.demo-lines li.m-keyboard em { color: var(--accent-2); }
.demo-lines li.m-apps em { color: var(--green); }
.demo-lines li.m-screenshots em { color: var(--accent); }
.demo-lines li.m-clipboard em { color: #ff7ab8; }
.demo-lines li.m-session { color: var(--faint); }
.demo-lines li.m-session em { color: var(--faint); }
@keyframes lineIn { from { opacity: 0; transform: translateY(5px); } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { max-width: 720px; margin: 0 auto; width: 100%; }
  .hero-stage { transform: none !important; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.span-2 { grid-column: span 2; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-step:not(:last-child)::after { display: none; }
  .menubar-demo { grid-template-columns: minmax(0, 1fr); }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-grid { grid-template-columns: 1fr; }
  .side-cards { position: static; }
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .paper { grid-template-columns: minmax(0, 1fr); }
  .paper-actions { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(6, 7, 11, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  .nav.is-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .section { padding: 84px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 20px; }
  .stat .num { font-size: 32px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card.span-2 { grid-column: span 1; }
  .card { padding: 22px; }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .notes-grid { grid-template-columns: 1fr; }
  .cta { padding: 44px 22px; border-radius: 22px; }
  .demo-desktop { height: 220px; }
  .demo-lines { height: 124px; }
  .demo-counts { display: none; }
  .blob { filter: blur(70px); opacity: .25; }
  dialog.lightbox .modal-close { top: 10px; right: 10px; }
  .paper { padding: 22px; }
  .macbar-top > span:nth-child(3), .macbar-top > span:nth-child(4), .macbar-top > span:nth-child(5), .macbar-top > span:nth-child(6) { display: none; }
  .menu-dropdown { right: 60px; }
  .submenu { right: -20px; top: 100px; }
  .footer .logos img { height: 44px; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
  .step-no { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
  .step::before { left: 19px; top: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero-actions .btn { width: 100%; }
  .modal-card { padding: 28px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-stage { transform: none !important; }
}
