/* MacSweep landing page — "the page is the app window".
   - Outer: warm Sequoia-style ambient gradient (cream → mauve)
   - Inner: a real macOS window with traffic lights, sidebar nav, content
   - Type: Instrument Serif italics for headlines, Geist for body, JetBrains Mono for tech
   - The sidebar nav matches the actual app, screenshots show the real product
*/

:root {
  /* Outer page palette — light, ambient */
  --paper: #f5f3ee;
  --paper-2: #ece6dd;
  --ink: #1a1a1f;
  --ink-soft: #4a4a55;
  --ink-faint: #8a8a95;
  --ink-line: rgba(26, 26, 31, 0.10);

  /* Inner window palette — matches the real app */
  --win-bg: #131318;
  --win-surface: #1a1d28;
  --win-surface-2: #22263a;
  --win-text: #f5f5f7;
  --win-text-2: #c4c4cc;
  --win-text-3: #8e8e98;
  --win-line: rgba(255, 255, 255, 0.08);
  --win-line-2: rgba(255, 255, 255, 0.04);

  /* Accents */
  --accent: #b9a9f7;
  --accent-strong: #8b5cf6;
  --accent-soft: rgba(185, 169, 247, 0.12);
  --accent-glow: rgba(185, 169, 247, 0.35);
  --safe: #4ade80;
  --review: #facc15;
  --keep: #fca5a5;
  --warm: #fb923c;

  /* Typography */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  /* Inside the fake window we use SF stack so it really feels like a Mac app */
  --sf: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;

  --window-max: 1280px;
  --sidebar-w: 240px;
  --content-pad: 56px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--sans); font-weight: 400; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flex; flex-direction: column;
}

a { color: var(--accent-strong); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ink); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
.serif.italic { font-style: italic; }

/* ── Page background — soft ambient wash with grain ─────────────────── */
.page-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, #f3eee6 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, #ece5f5 0%, transparent 50%),
    var(--paper);
}
.page-bg__layer {
  position: absolute; inset: 0; pointer-events: none;
}
.page-bg__layer--mauve {
  background: radial-gradient(ellipse 800px 600px at 75% 20%, rgba(185, 169, 247, 0.18), transparent 60%);
}
.page-bg__layer--mint {
  background: radial-gradient(ellipse 600px 500px at 15% 85%, rgba(74, 222, 128, 0.10), transparent 60%);
}
/* Subtle grain — using a tiny inline SVG, no external request */
.page-bg__layer--noise {
  opacity: 0.40; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ── Page-level header (above the window) ───────────────────────────── */
.page-head {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
  width: 100%; max-width: var(--window-max);
  margin: 0 auto;
  padding: 18px 32px 0;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-soft); letter-spacing: .03em;
  text-transform: lowercase;
  flex-shrink: 0;
}
.page-head__back { color: var(--ink-soft); text-decoration: none; justify-self: start; }
.page-head__back:hover { color: var(--accent-strong); }
.page-head__breadcrumb { color: var(--ink-faint); }
.page-head__github { color: var(--ink-soft); justify-self: end; }
.page-head__github:hover { color: var(--accent-strong); }

/* ════════════════════════════════════════════════════════════════════
   THE WINDOW — entire site rendered as one macOS app window
══════════════════════════════════════════════════════════════════════ */
.window {
  flex: 1;
  width: 100%; max-width: var(--window-max);
  margin: 14px auto 24px;
  background: var(--win-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px rgba(13, 14, 18, 0.20),
    0 12px 30px rgba(13, 14, 18, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 0;
}

/* Title bar with traffic lights */
.window__chrome {
  display: grid; grid-template-columns: 80px 1fr 80px;
  align-items: center; padding: 14px 16px;
  background: linear-gradient(180deg, #25272f 0%, #1d1f27 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.traffic-lights { display: flex; gap: 8px; }
.tl {
  width: 12px; height: 12px; border-radius: 100px;
  display: inline-block; box-shadow: 0 0 0 .5px rgba(0,0,0,.3) inset;
}
.tl--red    { background: #fc6058; }
.tl--yellow { background: #fec041; }
.tl--green  { background: #34c84a; }
.window__title {
  font-family: var(--sf); font-size: 13px; font-weight: 600;
  color: var(--win-text-2); text-align: center;
  letter-spacing: -.005em;
}
.window__chrome-spacer {}

.window__body {
  display: grid; grid-template-columns: var(--sidebar-w) 1fr;
  flex: 1; min-height: 0;
}

/* ── Sidebar (matches the actual app sidebar) ───────────────────────── */
.sidebar {
  background: linear-gradient(180deg, #1a1d28 0%, #181a23 100%);
  border-right: 1px solid var(--win-line);
  padding: 18px 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--sf); color: var(--win-text);
  overflow-y: auto;
}

.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 14px;
  text-decoration: none; color: var(--win-text);
}
.sidebar__logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: conic-gradient(from 200deg, #c4b5fd, #4ade80, #facc15, #f472b6, #c4b5fd);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  flex-shrink: 0;
}
.sidebar__brand-name {
  font-family: var(--sf); font-weight: 600; font-size: 14px;
  letter-spacing: -.005em;
}

.sidebar__nav { display: flex; flex-direction: column; gap: 1px; }
.snav {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--win-text-2);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.snav:hover { background: rgba(255, 255, 255, 0.04); color: var(--win-text); }
.snav.active {
  background: rgba(185, 169, 247, 0.10);
  color: var(--win-text);
}
.snav.active .snav__icon { color: var(--accent); }
.snav__icon {
  font-size: 13px; opacity: .65; width: 16px; flex-shrink: 0; text-align: center;
}
.snav__label { flex: 1; }
.snav__tag {
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 100px;
  text-transform: uppercase;
}
.snav__tag--fast {
  background: linear-gradient(135deg, #c4b5fd, #f472b6);
  color: #0a0a0c;
}
.snav__tag--ai {
  background: linear-gradient(135deg, #c4b5fd, #f0abfc);
  color: #0a0a0c;
}

.sidebar__chip {
  margin-top: 14px; padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03); border-radius: 100px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--win-text-2); font-family: var(--sf);
  align-self: flex-start;
}
.sidebar__chip-dot {
  width: 7px; height: 7px; border-radius: 100px;
  background: var(--safe);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, .15);
}

.sidebar__footer {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--win-line);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--sf); font-size: 11.5px; color: var(--win-text-3);
}
.sf-row { display: flex; justify-content: space-between; align-items: baseline; }
.sf-row .mono { font-size: 12px; color: var(--win-text); }
.sf-row--meta { font-style: italic; color: var(--win-text-3); margin-top: 4px; }

/* ── Main canvas — scrollable content area ──────────────────────────── */
.canvas {
  background: var(--win-bg);
  color: var(--win-text);
  padding: 0;
  font-family: var(--sans);
  overflow-y: auto;
}

.module {
  padding: 80px var(--content-pad) 60px;
  border-bottom: 1px solid var(--win-line-2);
  scroll-margin-top: 0;
}
.module:last-of-type { border-bottom: 0; }

.kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--win-text-3); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px;
}
.kicker--ai {
  color: var(--accent);
  background: linear-gradient(90deg, transparent 0%, var(--accent-soft) 50%, transparent 100%);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
}

.module__h2 {
  font-family: var(--sans); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.025em; line-height: 1.1; color: var(--win-text);
  margin-bottom: 1.4rem; max-width: 720px;
}
.module__lede {
  font-size: 1.05rem; line-height: 1.65; color: var(--win-text-2);
  max-width: 720px; margin-bottom: 2rem;
}
.module__lede a { color: var(--accent); }
.module__lede a:hover { color: var(--win-text); }
.module__lede code, .install-steps code, .proof-list code {
  font-family: var(--mono); font-size: .88em;
  background: var(--accent-soft); padding: .12em .4em; border-radius: 4px;
  color: var(--accent);
}
.module__lede strong { color: var(--win-text); font-weight: 600; }
.module__lede em { font-style: italic; color: var(--win-text); }
.module__lede kbd {
  font-family: var(--mono); font-size: .82em;
  padding: 1px 6px; border-radius: 4px;
  background: var(--win-surface); border: 1px solid var(--win-line);
  color: var(--win-text);
}

/* ── Hero — most prominent ──────────────────────────────────────────── */
.hero__h1 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -.035em; line-height: 1.02;
  color: var(--win-text); margin-bottom: 1.6rem;
}
.hero__h1 .serif { font-weight: 400; letter-spacing: -.02em; color: var(--accent); }
.hero__lede {
  font-size: 1.15rem; line-height: 1.65; color: var(--win-text-2);
  max-width: 660px; margin-bottom: 1.8rem;
}
.hero__lede a { color: var(--accent); }
.hero__lede a:hover { color: var(--win-text); }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero__sub {
  font-size: .92rem; line-height: 1.65; color: var(--win-text-3);
  max-width: 660px; margin-bottom: 2.5rem;
  font-style: italic;
  border-left: 2px solid var(--win-line); padding-left: 14px;
}
.hero__sub strong { color: var(--accent); font-weight: 500; font-style: normal; }
.hero__sub code { font-family: var(--mono); font-size: .92em;
  background: var(--win-surface); padding: 1px 5px; border-radius: 3px;
  color: var(--win-text-2); font-style: normal; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 100px;
  font-family: var(--sans); font-weight: 500; font-size: .92rem;
  cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
  text-decoration: none;
  letter-spacing: -.005em;
}
.btn-primary {
  background: var(--accent); color: #0a0a0c;
  border: 1px solid var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--accent-glow);
  color: #0a0a0c;
}
.btn-primary--big { padding: 14px 28px; font-size: 1rem; }
.btn-ghost {
  background: transparent; color: var(--win-text);
  border: 1px solid var(--win-line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,.02); }

/* ── Screenshots ────────────────────────────────────────────────────── */
.shot {
  margin-top: 32px;
  position: relative;
}
.shot__frame {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.50),
    0 8px 20px rgba(0, 0, 0, 0.30);
  background: #131318;
}
.shot__frame img { width: 100%; height: auto; display: block; }
.shot figcaption {
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--win-text-3); letter-spacing: .02em;
  max-width: 720px; line-height: 1.5;
}
.caption-tag {
  color: var(--accent); font-weight: 500;
  letter-spacing: .04em;
}
.shot--right { margin-left: 0; }

/* ── Files lens grid ────────────────────────────────────────────────── */
.lens-grid {
  list-style: none; display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
.lens-grid li {
  display: grid; grid-template-columns: 60px 1fr; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--win-line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  font-size: .96rem; line-height: 1.55; color: var(--win-text-2);
  transition: border-color .15s, background .15s;
}
.lens-grid li:hover { border-color: var(--accent); background: var(--accent-soft); }
.lens-grid li b { color: var(--accent); font-weight: 600; }
.lens-grid__num {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--win-text-3); letter-spacing: .04em;
}

/* ── Sweeper · AI section (the standout) ────────────────────────────── */
.module--accent {
  background:
    radial-gradient(ellipse 600px 400px at 100% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 500px 300px at 0% 100%, rgba(74, 222, 128, 0.06), transparent 60%),
    var(--win-bg);
  border-bottom-color: var(--win-line);
}
.module--accent .module__h2 .serif {
  background: linear-gradient(135deg, var(--accent) 0%, #f0abfc 60%, #4ade80 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ask-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(185, 169, 247, 0.15);
  border: 1px solid rgba(185, 169, 247, 0.30);
  color: var(--accent); font-family: var(--sf); font-size: .85em; font-weight: 500;
  vertical-align: 2px;
}
.ask-chip--inline { vertical-align: -1px; font-size: .9em; padding: 2px 8px; margin: 0 2px; }

/* Verdict triplet — the core of the AI feature explanation */
.verdict-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 32px 0 40px; max-width: 900px;
}
.verdict-card {
  padding: 22px 22px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--win-line);
  transition: transform .15s, border-color .15s;
}
.verdict-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }
.vchip {
  display: inline-block;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 12px; border-radius: 100px; color: #0a0a0c;
  margin-bottom: 14px;
}
.vchip--safe   { background: var(--safe); }
.vchip--review { background: var(--review); }
.vchip--keep   { background: var(--keep); }
.verdict-card__reason {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  line-height: 1.45; color: var(--win-text); margin-bottom: 14px;
  letter-spacing: -.005em;
}
.verdict-card__conf {
  font-family: var(--mono); font-size: 11px; color: var(--win-text-3);
  font-variant-numeric: tabular-nums;
}

/* AI flow steps */
.ai-flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 900px;
  margin-bottom: 16px;
}
.ai-flow__step {
  position: relative;
  padding: 6px 0 0;
}
.ai-flow__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  margin-bottom: 12px;
}
.ai-flow__step h3 {
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  color: var(--win-text); margin-bottom: 8px;
  letter-spacing: -.005em;
}
.ai-flow__step p {
  font-size: .92rem; line-height: 1.55; color: var(--win-text-2);
}
.ai-flow__step a { color: var(--accent); }
.ai-flow__step em { color: var(--win-text); font-style: italic; }

/* ── Quarantine proof list ──────────────────────────────────────────── */
.proof-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin-top: 28px; max-width: 720px;
}
.proof-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px dashed var(--win-line);
  font-size: .96rem; line-height: 1.6; color: var(--win-text-2);
}
.proof-list li:last-child { border-bottom: 0; }
.proof-list b { color: var(--win-text); font-weight: 600; }
.proof-list__bullet {
  color: var(--accent); font-family: var(--mono); font-size: 16px;
  line-height: 1; padding-top: 2px;
}

/* ── Install ────────────────────────────────────────────────────────── */
.module--install {
  background:
    radial-gradient(ellipse 700px 500px at 50% 100%, var(--accent-soft), transparent 70%),
    var(--win-bg);
}
.install-steps {
  list-style: none; display: flex; flex-direction: column; gap: 28px;
  max-width: 720px; margin: 32px 0 40px;
}
.install-steps > li {
  display: grid; grid-template-columns: 60px 1fr; gap: 18px;
  align-items: flex-start;
}
.step-num {
  font-family: var(--mono); font-size: 18px; font-weight: 500;
  color: var(--win-text-3); letter-spacing: .04em;
  padding-top: 4px;
}
.step-body h3 {
  font-family: var(--sans); font-weight: 600; font-size: 1.1rem;
  color: var(--win-text); margin-bottom: 6px; letter-spacing: -.005em;
}
.step-body p {
  font-size: .96rem; line-height: 1.6; color: var(--win-text-2);
}
.step-body__note {
  font-size: .85rem; color: var(--win-text-3); font-style: italic;
  margin-top: 6px;
}
.dl-link {
  font-family: var(--mono); font-size: .92em;
  color: var(--accent); border-bottom: 1px dashed var(--accent);
}
.code {
  font-family: var(--mono); font-size: .85rem; line-height: 1.7;
  background: #0e0e13; color: #c0d0e8;
  padding: 14px 18px; border-radius: 8px; margin: 10px 0;
  overflow-x: auto; border: 1px solid var(--win-line);
}
.code .prompt { color: var(--accent); user-select: none; margin-right: 8px; }
.install-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px;
}

/* ── Window footer ──────────────────────────────────────────────────── */
.window__footer {
  padding: 26px var(--content-pad);
  font-family: var(--mono); font-size: 11px; color: var(--win-text-3);
  text-align: center;
  border-top: 1px solid var(--win-line);
  letter-spacing: .02em;
}
.window__footer a { color: var(--win-text-3); }
.window__footer a:hover { color: var(--accent); }

/* ── Responsive — collapse sidebar on mobile ────────────────────────── */
@media (max-width: 880px) {
  .window__body { grid-template-columns: 1fr; }
  .sidebar {
    position: relative; height: auto; max-height: none;
    border-right: 0; border-bottom: 1px solid var(--win-line);
    padding: 16px;
  }
  .sidebar__nav {
    flex-direction: row; flex-wrap: wrap; gap: 4px;
  }
  .snav { padding: 6px 10px; font-size: 12.5px; }
  .snav__label { font-size: 12px; }
  .sidebar__chip { display: none; }
  .sidebar__footer { display: none; }
  .module { padding: 50px 28px 40px; }
  .verdict-row { grid-template-columns: 1fr; }
  .ai-flow { grid-template-columns: 1fr; gap: 24px; }
  .lens-grid li { grid-template-columns: 40px 1fr; padding: 14px 16px; }
  .install-steps > li { grid-template-columns: 36px 1fr; gap: 12px; }
  .page-head { font-size: 10.5px; padding: 16px 20px 0; }
  .window { margin: 16px auto 40px; border-radius: 10px; }
}

@media (max-width: 480px) {
  .hero__h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .module__h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .install-cta { flex-direction: column; align-items: stretch; }
  .install-cta .btn-primary, .install-cta .btn-ghost { justify-content: center; }
}
