/* ==========================================================================
   macCurrent — modern pro-tool design system
   Dark, near-black surface · cyan→blue→green accent · glass · subtle grid.
   Vanilla CSS, no build step. Shared by every page.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0b0b0f;
  --bg-2: #0d0d12;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;

  /* Accent */
  --accent: #00d8ff;
  --accent-2: #34d399;
  --blue: #60a5fa;
  --accent-grad: linear-gradient(120deg, #00d8ff 0%, #34d399 100%);

  /* Status */
  --green: #34d399;
  --amber: #fbbf24;
  --red: #ff6b6b;

  /* Shape / depth */
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-window: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.4);

  --maxw: 1180px;
  /* Native system stack — San Francisco on the Mac audience this app targets.
     Kept self-hosted/system only so the strict CSP (style-src 'self') holds. */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(10, 132, 255, 0.20), transparent 60%),
    radial-gradient(90% 50% at 88% 6%, rgba(52, 211, 153, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%, var(--bg) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; font-weight: 600; }
p { margin: 0; }

img { max-width: 100%; display: block; }

::selection { background: rgba(0, 216, 255, 0.35); color: #fff; }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }

main { display: block; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 30px;
}
section[id] { scroll-margin-top: 88px; }

.section-header { max-width: 720px; margin: 0 0 44px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); }
.section-header p { margin-top: 16px; color: var(--muted); font-size: 17px; }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 30px;
  min-height: 68px;
  transition: padding 0.3s ease;
}
/* glass backdrop that intensifies on scroll (toggled by motion.js) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 15, 0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  z-index: -1;
}
.site-header.is-scrolled::before {
  background: rgba(11, 11, 15, 0.72);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand img.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 0;
  object-fit: contain;
}

.site-header nav,
.site-header .nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header nav a,
.site-header .nav a {
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.site-header nav a:hover,
.site-header .nav a:hover { color: var(--text); }
.site-header nav a.button,
.site-header .nav a.button { color: #0b0b0f; }
.site-header .nav a.button.secondary { color: var(--text); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.button.primary {
  background: var(--text);
  color: #0b0b0f;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 216, 255, 0.35);
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.button.secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 216, 255, 0.08);
  transform: translateY(-2px);
}
.button.lg { padding: 14px 24px; font-size: 15px; border-radius: 11px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 30px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}

/* Parallax background layers */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-grid {
  position: absolute;
  inset: -30% -10% 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 28%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 28%, transparent 72%);
  animation: grid-drift 42s linear infinite;
  will-change: transform;
}
@keyframes grid-drift { to { transform: translateY(46px); } }
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.hero-glow.g1 { top: -160px; right: -60px; background: radial-gradient(circle, rgba(0, 216, 255, 0.5), transparent 70%); }
.hero-glow.g2 { top: 120px; right: 200px; background: radial-gradient(circle, rgba(52, 211, 153, 0.32), transparent 70%); }

.hero-copy { position: relative; z-index: 2; min-width: 0; }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px 14px;
  border-radius: 980px;
  margin-bottom: 24px;
}
.eyebrow-pill .ping {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
}
.hero-audience {
  margin-top: 16px;
  max-width: 500px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof {
  margin-top: 26px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before {
  content: "";
  width: 15px; height: 15px;
  flex: 0 0 auto;
  background: var(--accent-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%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 fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.product-hunt-badge { display: inline-block; margin-top: 24px; }

/* ---------- App window mockup (hero) ---------- */
.hero-media { position: relative; z-index: 2; min-width: 0; }
.app-window {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  will-change: transform;
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.traffic { width: 11px; height: 11px; border-radius: 50%; }
.traffic.r { background: #ff5f57; }
.traffic.y { background: #febc2e; }
.traffic.g { background: #28c840; }
.app-titletext { margin-left: 8px; font-size: 12.5px; color: var(--dim); font-family: var(--font-mono); }
.app-body { padding: 16px; }
.scan-bar {
  height: 6px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden; margin-bottom: 16px;
}
.scan-fill {
  height: 100%; width: 30%;
  background: var(--accent-grad);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(0, 216, 255, 0.6);
  animation: scan 5s ease-in-out infinite;
}
@keyframes scan {
  0% { width: 4%; }
  45% { width: 100%; }
  100% { width: 100%; }
}

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
  margin-bottom: 9px;
}
.app-row:last-child { margin-bottom: 0; }
.app-icon { width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto; }
.app-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-name { font-size: 13.5px; font-weight: 600; }
.app-source { font-size: 11.5px; color: var(--dim); }
.badge {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  padding: 5px 9px; border-radius: 7px;
  flex: 0 1 auto;
  white-space: nowrap;
}
.badge.updated { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.badge.safe { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.badge.available { background: rgba(251, 191, 36, 0.14); color: var(--amber); }
.badge.review { background: rgba(251, 191, 36, 0.14); color: var(--amber); }
.badge.handoff { background: rgba(96, 165, 250, 0.14); color: var(--blue); }
.badge.manual { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.badge.failed { background: rgba(255, 107, 107, 0.14); color: var(--red); }

/* staggered entrance for hero rows when animated */
@media (prefers-reduced-motion: no-preference) {
  .app-window .app-row { opacity: 0; transform: translateY(8px); animation: row-in 0.5s ease forwards; }
  .app-window .app-row:nth-child(1) { animation-delay: 0.6s; }
  .app-window .app-row:nth-child(2) { animation-delay: 0.85s; }
  .app-window .app-row:nth-child(3) { animation-delay: 1.1s; }
  .app-window .app-row:nth-child(4) { animation-delay: 1.35s; }
}
@keyframes row-in { to { opacity: 1; transform: translateY(0); } }

/* floating badge accents around window */
.window-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(13, 13, 18, 0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  z-index: 3;
}
.window-tag.t1 { top: -16px; left: -22px; color: var(--green); }
.window-tag.t2 { bottom: 26px; right: -26px; color: var(--accent); }

/* ---------- App / brand gradient swatches (CSS classes, not inline styles,
   so the strict Content-Security-Policy `style-src 'self'` is preserved) ---------- */
.gr-figma     { background: linear-gradient(135deg, #0acf83, #0a84ff); }
.gr-appstore  { background: linear-gradient(135deg, #34d399, #0a84ff); }
.gr-microsoft { background: linear-gradient(135deg, #34d399, #10b981); }
.gr-blue      { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.gr-electron  { background: linear-gradient(135deg, #a1a1aa, #71717a); }
.gr-firefox   { background: linear-gradient(135deg, #00d8ff, #0a84ff); }
.gr-adobe     { background: linear-gradient(135deg, #34d399, #0a84ff); }
.gr-photoshop { background: linear-gradient(135deg, #34d399, #00d8ff); }
.gr-brave     { background: linear-gradient(135deg, #f97316, #ef4444); }
.gr-postman   { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.gr-amber     { background: linear-gradient(135deg, #fbbf24, #f97316); }

/* ---------- "Works with" marquee ---------- */
.marquee-section { padding: 28px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.marquee-label { text-align: center; color: var(--dim); font-size: 12.5px; margin-bottom: 20px; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.marquee-item .logo-tile {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
.marquee-item .logo-tile img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* ---------- Video showcase ---------- */
.video-frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: none;
}
.video-frame video { display: block; width: 100%; height: auto; }

/* ---------- Interactive demo ---------- */
.demo-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 36px;
}
.demo-steps { display: flex; flex-direction: column; gap: 10px; }
.demo-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.demo-step:hover { border-color: var(--line-strong); }
.demo-step.active {
  border-color: var(--accent);
  background: rgba(0, 216, 255, 0.08);
}
.demo-step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 7px;
  flex: 0 0 auto;
}
.demo-step.active .num { color: var(--accent); border-color: var(--accent); }
.demo-step h4 { margin: 0 0 3px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.demo-step p { font-size: 12.5px; color: var(--muted); margin: 0; }

.demo-stage {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  min-height: 430px;
}
.demo-stage .app-titlebar { background: rgba(255, 255, 255, 0.02); }
.demo-screen { display: none; padding: 20px; }
.demo-screen.active { display: block; animation: fade-up 0.4s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.demo-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.demo-heading h3 { font-size: 16px; }
.demo-heading .muted { color: var(--dim); font-size: 12.5px; font-family: var(--font-mono); }

.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 14px;
}
.toast .ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(52,211,153,0.2); display: flex; align-items: center; justify-content: center; color: var(--green); flex: 0 0 auto; }
.toast strong { font-size: 13.5px; }
.toast small { display: block; font-size: 12px; color: var(--muted); }

.version-change { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.version-change .to { color: var(--green); }

.demo-progress { display: flex; gap: 6px; padding: 0 20px 18px; }
.demo-progress .seg { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.demo-progress .seg.done { background: var(--accent-grad); }
.demo-note { text-align: center; color: var(--dim); font-size: 13px; margin-top: 22px; }
.demo-note.demo-note-left { text-align: left; margin-top: 16px; }
.demo-note a { color: var(--accent); }

/* ---------- Problem section ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.problem-col {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 28px;
}
.problem-col.outcome { border-color: rgba(0, 216, 255, 0.3); background: rgba(0, 216, 255, 0.05); }
.problem-col h3 { font-size: 18px; margin-bottom: 18px; }
.pain-list, .outcome-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pain-list li, .outcome-list li { display: flex; gap: 11px; font-size: 14.5px; color: var(--muted); }
.pain-list li::before { content: "✕"; color: var(--red); font-size: 13px; flex: 0 0 auto; }
.outcome-list li::before { content: "✓"; color: var(--green); font-size: 13px; flex: 0 0 auto; }

/* ---------- Update judgment ---------- */
.judgment-section {
  padding-top: 28px;
}
.judgment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.judgment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.judgment-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--line-strong);
}
.judgment-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    var(--panel-2);
}
.judgment-card.safe::before { background: var(--green); }
.judgment-card.review::before { background: var(--amber); }
.judgment-card.handoff::before { background: var(--blue); }
.judgment-kicker {
  width: fit-content;
  margin-bottom: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.judgment-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.judgment-card p {
  color: var(--muted);
  font-size: 14.5px;
}
.judgment-pill {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 980px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Capabilities grid ---------- */
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.capability-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.capability-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-2); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(0, 216, 255, 0.12);
  border: 1px solid rgba(0, 216, 255, 0.25);
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.capability-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-icon svg { width: 22px; height: 22px; }
.capability-card h3 { font-size: 17px; margin-bottom: 10px; }
.capability-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Backup and history feature ---------- */
.protect-section {
  padding-top: 56px;
}
.protect-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: center;
}
.protect-copy {
  display: grid;
  gap: 14px;
}
.protect-point {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
.protect-point strong {
  color: var(--text);
  font-size: 15px;
}
.protect-point span {
  color: var(--muted);
  font-size: 14px;
}
.protect-shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.protect-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.protect-shot figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- Workflow timeline ---------- */
.workflow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.workflow::before {
  content: ""; position: absolute; top: 26px; left: 6%; right: 6%;
  height: 2px; background: var(--line);
}
.workflow-progress {
  position: absolute; top: 26px; left: 6%;
  height: 2px; width: 0; background: var(--accent-grad);
  box-shadow: 0 0 10px rgba(0, 216, 255, 0.6);
  transition: width 0.15s linear;
  z-index: 1;
}
.workflow-step { position: relative; text-align: center; }
.step-number {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  color: var(--accent); margin-bottom: 16px;
}
.workflow-step h3 { font-size: 16px; margin-bottom: 8px; }
.workflow-copy { font-size: 13.5px; color: var(--muted); }

/* ---------- Coverage ---------- */
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.source-item {
  display: flex; flex-direction: column; gap: 5px;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.source-item:hover { border-color: rgba(0, 216, 255, 0.4); transform: translateY(-2px); }
.source-item strong { font-size: 14.5px; }
.source-item span { font-size: 13px; color: var(--muted); }

/* ---------- Feature pills ---------- */
.feature-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.feature-pills span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 980px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature-pills span:hover { border-color: rgba(0, 216, 255, 0.4); background: var(--panel-2); transform: translateY(-2px); }
.feature-pills span::before {
  content: "";
  width: 14px; height: 14px; flex: 0 0 auto;
  background: var(--accent-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%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 fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Safety + history panel ---------- */
.safety-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.safety-list h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 26px; }
.safety-row { margin-bottom: 22px; }
.safety-row h3 { font-size: 16px; margin-bottom: 7px; color: var(--text); }
.safety-row p { font-size: 14.5px; color: var(--muted); }

.history-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.history-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.history-app { display: flex; align-items: center; gap: 12px; }
.mini-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}
.mini-icon.figma { background: linear-gradient(135deg, #f24e1e, #0a84ff); }
.mini-icon.onepassword { background: linear-gradient(135deg, #0ea5e9, #1d4ed8); font-size: 13px; }
.history-app strong { display: block; font-size: 14.5px; }
.history-app span { font-size: 12px; color: var(--dim); }
.history-badge { font-family: var(--font-mono); font-size: 11px; padding: 5px 10px; border-radius: 8px; background: rgba(52, 211, 153, 0.14); color: var(--green); }
.history-body { padding: 18px; }
.history-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.history-summary strong { font-size: 14px; }
.history-summary span { display: block; font-size: 12.5px; color: var(--muted); }
.backup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 10px;
}
.backup-stats span {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(0, 216, 255, 0.22);
  background: rgba(0, 216, 255, 0.07);
  color: var(--muted);
  font-size: 11.5px;
}
.backup-stats strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.history-list { display: flex; flex-direction: column; }
.history-item { display: flex; gap: 13px; padding: 12px 0; align-items: flex-start; }
.history-item + .history-item { border-top: 1px solid var(--line-soft); }
.history-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--dim); flex: 0 0 auto; }
.history-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(52,211,153,0.6); }
.history-dot.amber { background: var(--amber); }
.history-copy { flex: 1; }
.history-copy strong { display: block; font-size: 13.5px; }
.history-copy span { font-size: 12.5px; color: var(--muted); }
.history-date { font-family: var(--font-mono); font-size: 11px; color: var(--dim); text-align: right; white-space: nowrap; }
.history-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--dim);
}
.history-link { color: var(--accent); }

/* ---------- Handoff ---------- */
.handoff-panel {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0, 216, 255, 0.08), rgba(52, 211, 153, 0.04));
  padding: 44px;
}
.handoff-panel h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.handoff-panel p { color: var(--muted); font-size: 15.5px; }
.handoff-list { display: flex; flex-direction: column; gap: 10px; }
.handoff-list span {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line-soft);
  font-size: 14px; color: var(--text);
}
.handoff-list span::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(0, 216, 255, 0.18), transparent 60%),
    var(--panel);
  padding: 64px 40px;
  overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { margin: 16px auto 0; max-width: 480px; color: var(--muted); font-size: 17px; }
.cta-actions { position: relative; z-index: 2; margin-top: 30px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.trust-row {
  position: relative; z-index: 2;
  margin-top: 28px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  color: var(--dim); font-size: 13px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px 30px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 13.5px;
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); transition: color 0.2s ease; }
.site-footer nav a:hover { color: var(--text); }
.site-footer p { color: var(--dim); }

/* ---------- Secondary content pages (.page / .text-panel) ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 30px 96px;
}
.page .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.page h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 28px; letter-spacing: -0.035em; }
.text-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 36px 38px;
}
.text-panel h2 { font-size: 20px; margin: 30px 0 12px; }
.text-panel h2:first-child { margin-top: 0; }
.text-panel p { color: var(--muted); margin-bottom: 12px; }
.text-panel a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.text-panel ul { margin: 12px 0 16px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.text-panel li { position: relative; padding-left: 24px; color: var(--muted); }
.text-panel li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.text-panel .meta { font-family: var(--font-mono); font-size: 13px; color: var(--dim); margin-top: -4px; }
.release-notes-panel h2 { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line-soft); }
.release-notes-panel h2:first-child { padding-top: 0; margin-top: 0; border-top: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 40px; }
  .hero-media { order: 2; }
  .problem-grid, .judgment-grid, .capability-grid, .protect-grid, .safety-layout, .handoff-panel { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .workflow::before, .workflow-progress { display: none; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-steps { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .demo-step { min-width: 210px; }
}

@media (max-width: 680px) {
  .section, .site-header, .site-footer, .hero, .shell {
    max-width: 100vw;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header {
    gap: 12px;
  }
  .brand {
    gap: 9px;
  }
  .brand img.brand-mark {
    width: 40px;
    height: 40px;
  }
  .site-header .nav {
    flex: 0 1 auto;
    gap: 0;
    margin-left: auto;
    min-width: 0;
  }
  .site-header .nav a.button {
    max-width: 138px;
    padding: 11px 12px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero {
    overflow: hidden;
  }
  .hero-copy,
  .hero-media {
    width: 100%;
    max-width: calc(100vw - 40px);
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.08;
    max-width: 330px;
    overflow-wrap: break-word;
  }
  .hero h1 .grad {
    display: block;
  }
  .hero .lede {
    font-size: 16px;
    max-width: 100%;
  }
  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .app-body {
    padding: 12px;
  }
  .app-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
  }
  .app-info {
    width: 100%;
  }
  .badge {
    grid-column: 2;
    width: fit-content;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header nav a:not(.button) { display: none; }
  .workflow { grid-template-columns: 1fr; }
  .backup-stats { grid-template-columns: 1fr; }
  .handoff-panel, .cta { padding: 32px 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .window-tag { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scan-fill { width: 100% !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .app-window .app-row { opacity: 1 !important; transform: none !important; }
}
