/* ============================================================
   Umbra — marketing site. True black, native-Mac restraint.
   Centerpiece is a live macOS menu bar + Dock mockup that dims at
   rest and clears as a cursor visits each — the product, shown
   doing the one thing it does. Accent is a cool moonlight silver,
   echoing the app's own lit/shadowed sphere icon.
   ============================================================ */
:root {
  color-scheme: dark; /* always-dark design: match native UI, keep Dark Reader off */
  --font: -apple-system, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, "Menlo", monospace;

  --bg: #000000;
  --bg-raise: #0a0a0a;
  --bg-card: #0e0e0e;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);

  --ink: #f5f5f5;
  --ink-2: rgba(255,255,255,0.58);
  --ink-3: rgba(255,255,255,0.36);

  --umbra: oklch(0.87 0.01 250);
  --umbra-deep: oklch(0.79 0.012 250);
  --umbra-soft: oklch(0.87 0.01 250 / 0.14);
  --umbra-ink: #101014;
  --green: #30d158;

  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.5; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--umbra-soft); color: var(--umbra); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--umbra); color: var(--umbra-ink); padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--umbra); margin-bottom: 18px;
}

/* the sphere mark — lit top-left, shadowed bottom-right, same gradient as the app icon */
.orb {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 30%, #f6f6f8 0%, #bcbcc2 20%, #57575e 52%, #131316 76%, #000 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.18);
}
.orb.sm { width: 13px; height: 13px; }

/* reveal */
html.js .reveal { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
html.js .reveal.pre { opacity: 0; transform: translateY(18px); }

/* ============================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 22px; border-radius: 11px; font-size: 15px; font-weight: 550;
  transition: transform 0.08s, background 0.16s, box-shadow 0.16s; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--umbra); outline-offset: 2px; }
.btn-primary {
  background: var(--umbra); color: var(--umbra-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px rgba(0,0,0,0.5);
}
.btn-primary:hover { background: var(--umbra-deep); box-shadow: 0 10px 30px color-mix(in oklch, var(--umbra) 25%, transparent); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--ink); border: 0.5px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; border-radius: 9px; }
.btn .dl-ico { margin-right: -2px; }

/* ============================================================ paged shell */
html.paged { scroll-snap-type: y mandatory; scroll-padding-top: 0; }

.page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; padding: 104px 0 52px; overflow: hidden;
}
.page > .wrap { width: 100%; }

/* ============================================================ SITE NAV — plain, not OS chrome */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(0,0,0,0.32);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 0.5px solid rgba(255,255,255,0.07); transition: background 0.3s;
}
.topnav.solid { background: rgba(0,0,0,0.78); }
.topnav-brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; color: #fff; }
.topnav-links { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.topnav-links a { padding: 8px 14px; border-radius: 8px; font-size: 13.5px; color: rgba(255,255,255,0.68); transition: background 0.15s, color 0.15s; }
.topnav-links a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.topnav-links a.lit { background: rgba(255,255,255,0.1); color: #fff; }

/* ============================================================ HERO */
.page-hero { padding: 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; background: #000;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 60% at 22% 0%, rgba(255,255,255,0.07), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 0.5px, transparent 0.5px);
  background-size: 4px 4px; opacity: 0.6;
}
.page-hero .wrap.hero-wrap {
  position: relative; z-index: 2; padding-top: 128px; padding-bottom: 40px;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-head { max-width: 560px; }
.page-hero .eyebrow { color: var(--umbra); }
.page-hero h1 {
  font-size: clamp(36px, 4.4vw, 62px); line-height: 1; letter-spacing: -0.04em;
  font-weight: 600; color: #fff; text-wrap: balance;
}
.page-hero h1 .muted { color: rgba(255,255,255,0.48); }
.page-hero .hero-lead {
  font-size: clamp(15.5px, 1.4vw, 18px); margin-top: 22px; max-width: 480px;
  color: rgba(255,255,255,0.72); line-height: 1.6; text-wrap: pretty;
}
.page-hero .hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.page-hero .hero-meta {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 22px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hero-meta .dot, .cta-reqs .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* ---- the live mockup ---- */
.hero-mock-wrap { display: flex; flex-direction: column; align-items: stretch; }
.desktop-mock {
  position: relative; width: 100%; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden; background: #000;
  border: 0.5px solid rgba(255,255,255,0.13);
  box-shadow: 0 50px 120px rgba(0,0,0,0.65), 0 0 0 0.5px rgba(255,255,255,0.05);
}
.mock-menubar {
  position: relative; flex: none; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.22));
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
}
.mock-mb-left { display: flex; align-items: center; gap: 15px; }
.mock-apple { display: flex; color: rgba(255,255,255,0.92); }
.mock-mb-app { font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.mock-mb-word { font-size: 12.5px; color: rgba(255,255,255,0.6); }
.mock-mb-right { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,0.88); }
.mock-clock { font-size: 11.5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.85); }
.mock-screen {
  flex: none; height: clamp(170px, 21vw, 280px); position: relative;
  background: radial-gradient(120% 100% at 28% 0%, #232326, #050505 68%);
}
.mock-dock-row { flex: none; display: flex; justify-content: center; padding: 12px 0 16px; }
.mock-dock {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 13px;
  border-radius: 17px; background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.055));
  border: 0.5px solid rgba(255,255,255,0.13); box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
.dock-icon { width: 32px; height: 32px; border-radius: 8.5px; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 5px rgba(0,0,0,0.4); }
.dock-sep { width: 1px; height: 26px; background: rgba(255,255,255,0.16); margin: 0 3px; flex: none; }
.mock-scrim { position: absolute; inset: 0; background: #000; opacity: 0.62; pointer-events: none; }
.mock-dock .mock-scrim { border-radius: 17px; }
.mock-cursor {
  position: absolute; left: 72%; top: 58%; width: 16px; height: 20px; z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); opacity: 0; pointer-events: none;
}
.mock-label { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* ============================================================ THE MECHANIC */
.mech-sec { border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); position: relative; overflow: hidden; }
.mech-sec .glow { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; background: radial-gradient(50% 50% at 50% 50%, var(--umbra-soft) 0%, transparent 70%); opacity: 0.55; pointer-events: none; }
.mech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; position: relative; z-index: 1; width: 100%; }
.mech-copy h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.mech-copy p { font-size: 16.5px; color: var(--ink-2); margin-top: 20px; max-width: 480px; line-height: 1.6; text-wrap: pretty; }
.mech-copy p strong { color: var(--ink); }
.mech-note { margin-top: 22px; font-size: 13.5px; color: var(--ink-3); border-left: 2px solid var(--line-strong); padding-left: 14px; line-height: 1.55; max-width: 460px; }

.mech-vis { display: grid; place-items: center; }
.compare { display: flex; gap: 18px; width: 100%; max-width: 420px; }
.compare-item { flex: 1; }
.compare-strip {
  position: relative; height: 42px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.22));
  border: 0.5px solid rgba(255,255,255,0.12);
}
.compare-strip span { width: 7px; height: 7px; border-radius: 2px; background: rgba(0,0,0,0.4); }
.compare-scrim { position: absolute; inset: 0; background: #000; opacity: 0.84; }
.compare-label { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.compare-label b { color: var(--ink); font-weight: 600; }

/* ============================================================ FEATURES */
.page-features .feat-head { max-width: 620px; margin-bottom: clamp(20px, 3vh, 40px); }
.page-features .feat-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.page-features .feat-head p { font-size: 15.5px; color: var(--ink-2); margin-top: 14px; line-height: 1.55; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.page-features .feat-card {
  background: var(--bg-card); border: 0.5px solid var(--line); border-radius: 16px; padding: 18px 20px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.page-features .feat-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.page-features .feat-ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 0.5px solid var(--line);
  display: grid; place-items: center; color: var(--ink); margin-bottom: 14px;
}
.feat-card.accent .feat-ico { background: var(--umbra-soft); border-color: color-mix(in oklch, var(--umbra) 30%, transparent); }
.page-features .feat-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.page-features .feat-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; text-wrap: pretty; }
.page-features .feat-card .tag {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  background: rgba(255,255,255,0.04); border: 0.5px solid var(--line);
  padding: 3px 8px; border-radius: 6px;
}

/* ============================================================ LEVELS */
.levels-sec { border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); }
.levels-grid { display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 28px); max-width: 600px; }
.levels-sec .levels-head { text-align: left; margin: 0; max-width: none; }
.levels-sec .levels-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.levels-sec .levels-head p { font-size: 16px; color: var(--ink-2); margin-top: 14px; line-height: 1.55; }

.levels-interactive { padding: 20px 22px 22px; border-radius: 16px; background: var(--bg-card); border: 0.5px solid var(--line); }
.slider-preview-strip {
  position: relative; height: 30px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding: 0 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.22));
}
.slider-preview-strip span { width: 6px; height: 6px; border-radius: 2px; background: rgba(0,0,0,0.4); }
.slider-scrim { position: absolute; inset: 0; background: #000; opacity: 0.37; pointer-events: none; }
.real-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 3px;
  background: linear-gradient(to right, var(--umbra) 44%, rgba(255,255,255,0.14) 44%);
  outline: none; margin: 18px 0 4px;
}
.real-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.5); cursor: pointer; margin-top: -0.5px;
}
.real-slider::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; background: #fff; border: none; cursor: pointer; }
.real-slider::-moz-range-track { height: 4px; border-radius: 3px; background: rgba(255,255,255,0.14); }
.real-slider-readout { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.real-slider-readout b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }

.levels-sec .levels-row { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.levels-sec .level-item {
  display: flex; flex-direction: row; text-align: left; align-items: center; gap: 16px; padding: 13px 16px;
  border-radius: 14px; background: var(--bg-card); border: 0.5px solid var(--line);
  opacity: 0.42; transition: opacity 0.3s, background 0.3s, border-color 0.3s, transform 0.3s;
}
.level-bar { flex: none; width: 60px; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.12); overflow: hidden; }
.level-bar i { display: block; height: 100%; border-radius: 4px; background: var(--umbra); }
.level-name { font-size: 14px; font-weight: 560; }
.level-range { font-size: 12px; color: var(--ink-3); font-weight: 450; margin-left: 6px; }
.level-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.levels-sec .level-item.lit { opacity: 1; background: rgba(255,255,255,0.055); border-color: var(--line-strong); transform: translateX(5px); }

/* ============================================================ HONEST NOTE */
.honest-sec { border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); justify-content: center; }
.honest-wrap { max-width: 720px; }
.honest-sec h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.honest-sec p { font-size: 16.5px; color: var(--ink-2); margin-top: 22px; line-height: 1.65; text-wrap: pretty; }
.honest-sec strong { color: var(--ink); }

/* ============================================================ DOWNLOAD CTA + FOOTER */
.page-download { justify-content: center; text-align: center; position: relative; overflow: hidden; }
.page-download .glow {
  position: absolute; bottom: -260px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, var(--umbra-soft) 0%, transparent 70%);
  opacity: 0.5; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.page-download h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.page-download p { font-size: 18px; color: var(--ink-2); margin-top: 20px; }
.page-download .hero-cta { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.cta-reqs { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }

.page-download .footer { position: absolute; left: 0; right: 0; bottom: 0; border-top: 0.5px solid var(--line); padding: 28px 0; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-card); border: 0.5px solid var(--line-strong); display: grid; place-items: center; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 13.5px; color: var(--ink-3); transition: color 0.15s; }
.foot-links a:hover { color: var(--ink-2); }
.foot-copy { font-size: 13px; color: var(--ink-3); }

/* ============================================================ PAGE DOTS */
.pagedots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; gap: 14px; }
.pagedots a { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); transition: background 0.2s, transform 0.2s; }
.pagedots a:hover { background: rgba(255,255,255,0.4); }
.pagedots a.active { background: var(--umbra); transform: scale(1.3); }

.mobile-hint { display: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  .page-hero .wrap.hero-wrap { grid-template-columns: 1fr; padding-top: 96px; }
  .hero-mock-wrap { max-width: 520px; }
}

@media (max-width: 880px) {
  html.paged { scroll-snap-type: none; }

  .page { min-height: auto; padding: 56px 0 48px; overflow: visible; justify-content: flex-start; }
  .wrap { padding: 0 22px; }

  .page-hero { padding: 0; }
  .page-hero .wrap.hero-wrap { padding-top: 78px; padding-bottom: 36px; gap: 40px; }

  .topnav-links { display: none; }
  .topnav { padding: 0 16px; }

  .mech-sec .glow,
  .page-download .glow { display: none; }

  .page-hero h1 { font-size: clamp(34px, 8.4vw, 50px); }
  .page-hero h1 br { display: none; }
  .page-hero .hero-lead { font-size: 15.5px; margin-top: 16px; max-width: none; line-height: 1.52; }
  .page-hero .hero-cta { margin-top: 22px; gap: 12px; }
  .page-hero .hero-meta { margin-top: 14px; font-size: 12.5px; gap: 8px; }
  .mobile-hint { display: block; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); max-width: 360px; line-height: 1.45; }

  .mock-screen { height: clamp(140px, 44vw, 220px); }

  .mech-grid { grid-template-columns: 1fr; gap: 28px; }
  .mech-copy h2 { font-size: clamp(26px, 7vw, 34px); }
  .mech-copy p { font-size: 15.5px; margin-top: 14px; max-width: none; }
  .compare { max-width: 360px; }

  .feat-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-features .feat-head h2 { font-size: clamp(24px, 6vw, 32px); }
  .page-features .feat-head p { font-size: 15px; }
  .page-features .feat-card { padding: 16px 18px 18px; }

  .levels-sec .levels-head h2 { font-size: clamp(24px, 6vw, 30px); }
  .levels-sec .levels-head p { font-size: 15px; }
  .levels-sec .level-item { padding: 11px 14px; }
  .levels-interactive { padding: 18px; }

  .honest-sec h2 { font-size: clamp(24px, 6vw, 32px); }
  .honest-sec p { font-size: 15px; margin-top: 16px; }

  .page-download h2 { font-size: clamp(28px, 7vw, 40px); }
  .page-download p { font-size: 16px; margin-top: 14px; }
  .page-download .hero-cta { margin-top: 24px; }
  .cta-reqs { margin-top: 16px; font-size: 12.5px; gap: 8px; }
  .page-download .footer { position: static; margin-top: 40px; padding: 22px 0; }
  .footer .wrap { justify-content: flex-start; gap: 14px 24px; }
  .foot-links { gap: 16px 20px; flex-wrap: wrap; }

  .pagedots { display: none; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .btn { padding: 0 18px; }
  .dock-icon { width: 26px; height: 26px; border-radius: 7px; }
  .mock-dock { gap: 6px; padding: 7px 10px; }
}
