/* Cursorly website. Vanilla CSS, zero deps, CSP-safe. Dark page, one azure
   accent, hairlines, no glass. The embedded demo keeps a light palette so it
   reads as the real (light) product sitting on the dark page. */

:root {
  --bg:            #0a0d13;
  --bg-tint:       #0f131b;
  --surface:       #14181f;
  --surface-sunk:  #0f131a;
  --surface-hover: #1a1f29;
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --hairline-top:  rgba(255, 255, 255, 0.06);

  --text:        #e8eaef;
  --text-dim:    #aab2bd;
  --text-faint:  #8b929d;

  --accent:       #4f8cff;
  --accent-press: #6b9eff;
  --accent-weak:  rgba(79, 140, 255, 0.14);
  --accent-ring:  rgba(79, 140, 255, 0.42);

  --ink: #0b1322;          /* deep navy backdrop */

  --radius-lg: 18px;
  --radius:    12px;
  --radius-sm: 8px;

  --shadow-pop:
    0 24px 64px -22px rgba(17, 22, 34, 0.26),
    0 8px 20px -8px   rgba(17, 22, 34, 0.10);
  --shadow-soft:
    0 14px 36px -16px rgba(17, 22, 34, 0.20);

  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system,
          BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", "Consolas", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; font-weight: 640; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }

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

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

kbd {
  font-family: var(--mono); font-size: 0.78em; line-height: 1; color: var(--text-dim);
  background: var(--surface-sunk); border: 1px solid var(--border);
  border-bottom-color: var(--border-strong); border-radius: 5px;
  padding: 3px 6px; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: var(--radius); border: 1px solid transparent;
  transition: background .18s var(--ease), transform .16s var(--ease), border-color .18s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(79, 140, 255, 0.6); }
.btn--primary:hover { background: var(--accent-press); box-shadow: 0 14px 32px -10px rgba(79, 140, 255, 0.7); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.18); }

/* ---------- Nav (floating, individual capsules) ---------- */
.nav { position: sticky; top: 0; z-index: 60; padding: 20px 0; }
.nav__pill {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; box-shadow: none;
}
/* each element floats as its own glass button */
.wordmark, .nav__links a {
  background: rgba(15, 18, 25, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px -18px rgba(0, 0, 0, 0.65);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), color .18s var(--ease), box-shadow .25s var(--ease);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 8px; border-radius: 14px; font-weight: 680; letter-spacing: -0.02em; font-size: 15px; color: #fff; }
.wordmark__mark { width: 24px; height: 24px; border-radius: 7px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45)); }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a { padding: 10px 16px; border-radius: 12px; font-size: 14px; color: rgba(232, 234, 239, 0.72); font-weight: 500; }
.nav__links a:hover { color: #fff; background: rgba(30, 36, 48, 0.72); border-color: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.nav__cta {
  color: #fff !important; background: var(--accent) !important; border-color: transparent !important; font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(79, 140, 255, 0.6) !important;
}
.nav__cta:hover { background: var(--accent-press) !important; transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(79, 140, 255, 0.78) !important; }
.nav.is-scrolled .wordmark, .nav.is-scrolled .nav__links a:not(.nav__cta) { background: rgba(11, 14, 20, 0.82); border-color: rgba(255, 255, 255, 0.11); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 28px; }
.hero::before {
  content: ""; position: absolute; left: 26%; top: -60px; z-index: 0; pointer-events: none;
  width: 760px; height: 480px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(79, 140, 255, 0.18), rgba(79, 140, 255, 0) 70%);
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.1rem); font-weight: 680; letter-spacing: -0.03em; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lede { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 56ch; }
.hero__actions { margin-top: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--text-faint); }

/* ---------- Interactive demo ("device") ---------- */
.demo { padding: 18px 0 34px; }
.demo--alt { padding-top: 0; }
.section__head--demo { max-width: 620px; margin: 0 auto 26px; text-align: center; }
.device {
  /* The demo shows the real (light) product, so its overlays keep a light
     palette even though the page around it is dark. */
  --surface: #fcfcfd; --surface-sunk: #f3f4f7;
  --border: rgba(22, 26, 34, 0.10); --border-strong: rgba(22, 26, 34, 0.16);
  --hairline-top: rgba(255, 255, 255, 0.9);
  --text: #1d2127; --text-dim: #5b626d; --text-faint: #9aa1ac;
  --accent: #2f6bff; --accent-weak: rgba(47, 107, 255, 0.10); --accent-ring: rgba(47, 107, 255, 0.34);

  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 360px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-pop);
  background:
    radial-gradient(1000px 700px at 72% -10%, #25324a 0%, transparent 58%),
    radial-gradient(900px 620px at 8% 112%, #1a2740 0%, transparent 52%),
    linear-gradient(160deg, #11161f 0%, #0c0f15 100%);
  color-scheme: dark;
}
.dwin { position: absolute; border-radius: 8px; overflow: hidden; background: #fcfcfd;
  box-shadow: 0 26px 64px -28px rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.06); }
.dwin__bar { height: 30px; display: flex; align-items: center; padding-left: 12px; background: #f1f3f5; border-bottom: 1px solid #e3e6e9; }
.dwin__name { font-size: 11px; color: #5b626d; font-weight: 500; }
.dwin__ctrls { margin-left: auto; display: flex; align-self: stretch; }
.dwin__ctrls i { width: 30px; display: grid; place-items: center; }
.dwin__ctrls i::before { content: ""; width: 9px; height: 9px; border: 1px solid #9aa1ac; border-radius: 1px; }
.dwin__ctrls i:first-child::before { height: 0; width: 9px; border: 0; border-top: 1px solid #9aa1ac; border-radius: 0; }
.dwin__ctrls i.x::before { content: "\2715"; width: auto; height: auto; border: 0; color: #9aa1ac; font-size: 11px; line-height: 1; }

/* scene elements toggle in/out as the demo plays */
[data-scene] { opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .22s var(--ease); }
[data-scene].show { opacity: 1; }
/* swap panes share one slot: the hidden one must not hold layout space */
.startmenu__pinned:not(.show), .startmenu__results:not(.show), .winpane:not(.show) { display: none; }

/* Start button (taskbar) */
.dstart { aspect-ratio: 1; height: 64%; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,0.06); transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.dstart svg { width: 56%; height: 56%; }
.dstart.lit { box-shadow: 0 0 0 2px var(--accent-ring), 0 6px 16px rgba(0,0,0,0.35); transform: translateY(-3px); }

/* Windows dark-mode scene: Settings app + Start menu */
.winset { top: 5%; left: 6%; right: 6%; bottom: 17%; }
.winset__body { display: flex; height: calc(100% - 30px); }
.winset__nav { width: 38%; max-width: 220px; background: #eef0f3; padding: 12px 10px; border-right: 1px solid #e3e6e9; overflow: hidden; }
.winset__me { display: flex; align-items: center; gap: 9px; padding: 4px 8px 12px; }
.winset__avatar { width: 28px; height: 28px; border-radius: 50%; background: #5b6bd0; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.winset__metext { display: flex; flex-direction: column; line-height: 1.25; }
.winset__metext strong { font-size: 12px; color: #1d2127; }
.winset__metext small { font-size: 10px; color: #80868b; }
.winset__find { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #e1e4e8; border-radius: 6px; padding: 7px 10px; font-size: 11px; color: #80868b; margin-bottom: 8px; }
.winset__findic { color: #9aa1ac; }
.winnav { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 6px; font-size: 12px; color: #3c4043; }
.winnav svg { width: 16px; height: 16px; color: #5b6bd0; flex: none; }
.winnav.lit { background: #fff; box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.winset__main { flex: 1; padding: 18px 22px; overflow: hidden; background: #fbfbfc; }
.winpane h5 { font-size: 15px; font-weight: 650; color: #1d2127; margin: 0 0 14px; }
.wincard { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #ebedf0; border-radius: 8px; padding: 11px 14px; margin-bottom: 8px; }
.wincard__ic { width: 26px; height: 26px; border-radius: 6px; color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.wincard__t { font-size: 12.5px; color: #1d2127; }
.wincard i { margin-left: auto; color: #9aa1ac; font-style: normal; }
.wincard.lit, .wincard.selected { box-shadow: 0 0 0 2px var(--accent-ring); border-color: var(--accent); }
.winset__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid #ebedf0; border-radius: 8px; padding: 14px 16px; }
.winset__rowtext { display: flex; flex-direction: column; }
.winset__rowtext strong { font-size: 12.5px; color: #1d2127; }
.winset__rowtext span { font-size: 11px; color: #80868b; }
.windrop { position: relative; background: #fff; border: 1px solid #cfd4da; border-radius: 6px; padding: 7px 12px; font-size: 12px; color: #1d2127; min-width: 100px; flex: none; }
.windrop i { font-style: normal; color: #80868b; float: right; margin-left: 8px; }
.windrop__list { position: absolute; left: 0; top: calc(100% + 4px); width: 100%; background: #fff; border: 1px solid #d8dce1; border-radius: 6px; box-shadow: 0 16px 36px -14px rgba(0,0,0,0.35); padding: 4px; z-index: 3; }
.windrop__list span { display: block; padding: 7px 10px; font-size: 12px; border-radius: 5px; color: #1d2127; }
.windrop__list span.selected { background: var(--accent-weak); }

/* Start menu (Windows 11) */
.startmenu { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%) translateY(8px); width: 62%; max-width: 460px; background: rgba(243,244,247,0.97); border: 1px solid rgba(255,255,255,0.55); border-radius: 12px; box-shadow: 0 34px 80px -26px rgba(0,0,0,0.65); padding: 16px; }
.startmenu.show { transform: translateX(-50%) translateY(0); }
.startmenu__search { background: #fff; border: 1px solid #e1e4e8; border-radius: 999px; padding: 8px 14px; font-size: 12px; color: #3c4043; display: flex; align-items: center; gap: 9px; }
.startmenu__glyph { color: #80868b; }
.startmenu__ph { color: #9aa1ac; }
.startmenu__ph.typed { color: #1d2127; }
.startmenu__label { font-size: 11px; font-weight: 600; color: #5b626d; margin: 14px 2px 8px; }
.startmenu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; }
.pin { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pin__ic { width: 32px; height: 32px; border-radius: 8px; color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.pin__ic--set { background: linear-gradient(135deg, #6b7686, #474f5c); }
.pin__lb { font-size: 9.5px; color: #3c4043; }
.startmenu__best { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; background: var(--accent-weak); }
.startmenu__bestic { width: 30px; height: 30px; font-size: 15px; }
.startmenu__besttext { display: flex; flex-direction: column; }
.startmenu__besttext strong { font-size: 12px; color: #1d2127; }
.startmenu__besttext span { font-size: 10.5px; color: #80868b; }
.startmenu__sresults { display: flex; flex-direction: column; margin-top: 6px; }
.startmenu__sr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 11.5px; color: #3c4043; }
.sr__dot { width: 16px; height: 16px; border-radius: 4px; background: #d3d8de; flex: none; }
.startmenu__recs { display: flex; flex-direction: column; gap: 3px; }
.startmenu__rec { display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 7px; }
.rec__ic { width: 24px; height: 24px; border-radius: 5px; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.rec__t { display: flex; flex-direction: column; line-height: 1.25; }
.rec__t strong { font-size: 11.5px; color: #1d2127; }
.rec__t span { font-size: 10px; color: #80868b; }
.startmenu__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.startmenu__user { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #1d2127; font-weight: 500; }
.startmenu__uava { width: 24px; height: 24px; border-radius: 50%; background: #5b6bd0; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.startmenu__power { color: #5b626d; display: grid; place-items: center; padding: 6px; }
.startmenu__power svg { width: 16px; height: 16px; }

/* dark-mode payoff: flip the Settings app dark */
.device.scene-dark .winset, .device.scene-dark .winset__main { background: #1b1f26; }
.device.scene-dark .winset .dwin__bar, .device.scene-dark .winset__nav { background: #20252e; border-color: #2a2f38; }
.device.scene-dark .winset .dwin__name, .device.scene-dark .winset__metext strong, .device.scene-dark .winpane h5, .device.scene-dark .winset__rowtext strong, .device.scene-dark .wincard__t { color: #e8eaef; }
.device.scene-dark .winnav { color: #c6cdd8; }
.device.scene-dark .wincard, .device.scene-dark .winset__row, .device.scene-dark .winset__find, .device.scene-dark .windrop { background: #262b34; border-color: #2f343d; }
.device.scene-dark .winset__rowtext span, .device.scene-dark .winset__metext small { color: #99a1ad; }

/* Excel scene */
.device--light { background: linear-gradient(160deg, #e9edf3 0%, #dde3eb 100%); }
.dwin--excel { top: 6%; left: 5%; right: 5%; }
.excel__title { background: #217346; }
.excel__title .dwin__name { color: #eaf3ee; }
.excel__title .dwin__ctrls i::before { border-color: #cfe3d8; }
.excel__title .dwin__ctrls i:first-child::before { border-top-color: #cfe3d8; }
.excel__title .dwin__ctrls i.x::before { color: #cfe3d8; }
.excel__logo { width: 18px; height: 18px; margin-right: 8px; border-radius: 3px; background: #fff; color: #217346; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.excel__ribbon { display: flex; gap: 2px; padding: 4px 8px 0; background: #f3f4f6; border-bottom: 1px solid #e3e6e9; }
.excel__tab { font-size: 10.5px; color: #5b626d; padding: 6px 9px; border-radius: 6px 6px 0 0; white-space: nowrap; }
.excel__tab--on, .excel__tab.lit { background: #fff; color: #217346; font-weight: 600; box-shadow: inset 0 -2px 0 #217346; }
.excel__ribbonbar { position: relative; }
.excel__bar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #fff; border-bottom: 1px solid #eceef1; min-height: 52px; }
.excel__bar--insert { position: absolute; inset: 0; }
.excel__bigbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: #3c4043; padding: 2px 8px; border-radius: 6px; }
.excel__bigbtn-ic { font-size: 17px; color: #217346; line-height: 1; }
.excel__divider { width: 1px; align-self: stretch; background: #e6e8eb; margin: 4px 2px; }
.excel__fontgrp { display: flex; gap: 2px; }
.excel__fbtn { width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; color: #3c4043; border-radius: 4px; }
.excel__formula { display: flex; align-items: center; background: #fff; border-bottom: 1px solid #e3e6e9; }
.excel__namebox { width: 56px; padding: 5px 10px; font-size: 11px; color: #3c4043; border-right: 1px solid #e3e6e9; }
.excel__fx { padding: 0 11px; font-style: italic; color: #80868b; font-size: 11px; border-right: 1px solid #e3e6e9; }
.excel__fxval { padding: 5px 11px; font-size: 11px; color: #3c4043; }
.excel__grid { position: relative; }
.excel__row { display: grid; grid-template-columns: 30px 1.3fr 1fr 1fr; }
.excel__row span { padding: 6px 11px; font-size: 11px; color: #3c4043; border-right: 1px solid #eef0f2; border-bottom: 1px solid #eef0f2; }
.excel__row--head span, .excel__rn, .excel__corner { background: #f6f7f9; color: #80868b; font-weight: 600; text-align: center; }
.excel__c--h { font-weight: 600; color: #1d2127; }
.excel__sel { position: absolute; left: 30px; top: 25px; right: 0; bottom: 0; border: 2px solid #217346; background: rgba(33,115,70,0.08); }
.excel__sheets { display: flex; gap: 2px; padding: 4px 10px; background: #f3f4f6; border-top: 1px solid #e3e6e9; }
.excel__sheet { font-size: 10.5px; color: #5b626d; padding: 4px 12px; border-radius: 4px 4px 0 0; }
.excel__sheet--on { background: #fff; color: #217346; font-weight: 600; }
.excel__sheet--add { color: #9aa1ac; }
.excel__dialog .dpanel__card { width: 320px; }
.excel__dialog h4 { font-size: 14px; font-weight: 640; margin: 2px 2px 12px; color: #1d2127; }
.pvt__row { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; }
.pvt__lbl { font-size: 11px; color: #5b626d; flex: none; }
.pvt__inp { flex: 1; background: #f1f3f4; border: 1px solid #d8dce1; border-radius: 5px; padding: 5px 10px; font-size: 11px; color: #1d2127; font-family: var(--mono); }
.pvt__sub { font-size: 11.5px; color: #3c4043; margin: 0 2px 8px; }
.pvt__opt { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #1d2127; padding: 4px 2px; }
.pvt__radio { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #9aa1ac; flex: none; }
.pvt__radio--on { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }
.dconfirm__msg { font-size: 13px; color: var(--text); margin: 2px 2px 0; }

.dtaskbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 12%; min-height: 44px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: rgba(22, 26, 34, 0.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.dtray { position: absolute; right: 16px; display: flex; align-items: center; gap: 10px; }
.dtray > svg { width: 15px; height: 15px; }
.dtray__clock { display: flex; flex-direction: column; align-items: flex-end; color: #cfd6e2; font-size: 9.5px; line-height: 1.35; margin-left: 2px; }
.dtask {
  aspect-ratio: 1; height: 64%; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.dtask svg { width: 62%; height: 62%; }
.dtask--chrome {
  border-radius: 50%;
  background:
    radial-gradient(circle, #4285F4 0 27%, #fff 27% 35%, rgba(255,255,255,0) 35%),
    conic-gradient(from -30deg, #EA4335 0 120deg, #FBBC05 120deg 240deg, #34A853 240deg 360deg);
}
.dtask.lit { box-shadow: 0 0 0 2px var(--accent-ring), 0 6px 16px rgba(0,0,0,0.35); transform: translateY(-3px); }

/* overlays inside the device */
.d-overlay { position: absolute; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .24s var(--ease); }
.d-overlay.show { opacity: 1; }

.dcmd { left: 50%; top: 30%; transform: translate(-50%, 8px); width: min(74%, 460px); }
.dcmd.show { transform: translate(-50%, 0); }
.dcmd__card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop), inset 0 1px 0 var(--hairline-top); padding: 5px; }
.dcmd__row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
.dcmd__glyph { width: 17px; height: 17px; color: var(--text-faint); flex: none; }
.dcmd__text { flex: 1; font-size: clamp(13px, 2.4vw, 16px); font-weight: 500; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; }
.dcmd__text.empty { color: var(--text-faint); }
.dcmd__foot { display: flex; align-items: center; justify-content: space-between; padding: 7px 13px 5px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-dim); }
.dcmd__brand { display: flex; align-items: center; gap: 6px; }
.dcmd__brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.dcursor { width: 26px; height: 26px; z-index: 6; filter: drop-shadow(0 5px 8px rgba(10,20,40,0.4)); }

/* targeting reticle — azure corner brackets that frame the element to click */
.dreticle { position: absolute; opacity: 0; z-index: 5; pointer-events: none;
  transition: opacity .2s var(--ease), left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.dreticle.show { opacity: 1; }
.dreticle .db { position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); filter: drop-shadow(0 0 5px rgba(47,107,255,0.5)); }
.dreticle .db.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 5px; }
.dreticle .db.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 5px; }
.dreticle .db.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 5px; }
.dreticle .db.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 5px; }
.dreticle .dscan { position: absolute; left: 3px; right: 3px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 8px rgba(47,107,255,0.5); opacity: 0; }
.dreticle.show .dscan { animation: dscan 1s var(--ease) .1s 1; }
@keyframes dscan { 0% { top: 3px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 5px); opacity: 0; } }

/* HUD corner-frame on the command bar + confirm panel */
.dcmd__card, .dpanel__card { position: relative; }
.dcmd__card::before, .dcmd__card::after, .dpanel__card::before, .dpanel__card::after {
  content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none; border: 2px solid rgba(47,107,255,0.38); }
.dcmd__card::before, .dpanel__card::before { top: 4px; left: 4px; border-right: 0; border-bottom: 0; border-top-left-radius: 5px; }
.dcmd__card::after, .dpanel__card::after { bottom: 4px; right: 4px; border-left: 0; border-top: 0; border-bottom-right-radius: 5px; }

.dbubble { z-index: 7; transform: translateY(6px); }
.dbubble.show { transform: translateY(0); }
.dbubble__card { background: var(--surface); border-radius: 11px; box-shadow: var(--shadow-soft), inset 0 1px 0 var(--hairline-top); padding: 9px 12px; max-width: 230px; font-size: 12.5px; font-weight: 500; color: var(--text); line-height: 1.35; }
.dbubble__meta { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.ddots span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); margin-right: 4px; animation: ddot 1.2s infinite var(--ease); }
.ddots span:nth-child(2) { animation-delay: .15s; } .ddots span:nth-child(3) { animation-delay: .3s; margin-right: 0; }
@keyframes ddot { 0%,100%{opacity:.3;transform:translateY(0)} 50%{opacity:1;transform:translateY(-2px)} }

.dpanel { left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 8px)); width: min(76%, 360px); z-index: 8; }
.dpanel.show { transform: translate(-50%, -50%); }
.dpanel__card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop), inset 0 1px 0 var(--hairline-top); padding: 14px; }
.dpanel h4 { font-size: 14px; font-weight: 640; margin: 2px 2px 11px; }
.dopt { display: block; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 11px 12px; margin-bottom: 7px; font-family: var(--font); }
.dopt .t { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
.dopt .d { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.dopt.rec { border-color: var(--accent-ring); background: var(--accent-weak); }
.dtag { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: #fff; border: 1px solid var(--accent-ring); border-radius: 999px; padding: 1px 6px; }
.dconfirm__row { display: flex; gap: 7px; margin-top: 12px; }
.dbtn { flex: 1; font-family: var(--font); font-size: 12.5px; font-weight: 600; padding: 9px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.dbtn.primary { background: var(--accent); border-color: transparent; color: #fff; }

.device__fallback { position: absolute; inset: 0; z-index: 2; }
.device__fallback video { width: 100%; height: 100%; object-fit: cover; }
/* JS upgrades the device to the live demo; the video/poster is the no-JS path. */
.device.js-ready .device__fallback { display: none; }

.device__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: #fff;
  background: var(--accent); border: 0; padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(47,107,255,0.6);
  transition: background .16s var(--ease), transform .12s var(--ease), opacity .2s var(--ease);
}
.device__play:hover { background: var(--accent-press); transform: translate(-50%, -50%) scale(1.03); }
.device.is-live .device__play { opacity: 0; pointer-events: none; }

.device__replay {
  position: absolute; right: 12px; bottom: 12px; z-index: 10; opacity: 0;
  font-family: var(--font); font-size: 12px; font-weight: 600; color: #fff; cursor: pointer;
  background: rgba(20,24,32,0.7); border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; padding: 7px 12px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .2s var(--ease);
}
.device.is-live .device__replay { opacity: 1; }
.demo__caption { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--text-dim); }

/* ---------- Generic section ---------- */
.section { padding: 72px 0; }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section__lede { margin-top: 14px; font-size: 1.05rem; color: var(--text-dim); }

/* steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease); }
.step:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.16); background: var(--surface-hover); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-weak); border: 1px solid var(--accent-ring); color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.step h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.step p { font-size: 14.5px; color: var(--text-dim); }
.step kbd { font-size: 12px; }

/* scope (two columns) */
.scope { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.scope__col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.scope__col--doesnt { background: var(--bg-tint); }
.scope h3 { font-size: 1.25rem; margin-bottom: 16px; }
.scope__col--doesnt h3 { color: var(--text-dim); }
.scope li { display: flex; gap: 11px; padding: 11px 0; font-size: 14.5px; color: var(--text-dim); border-top: 1px solid var(--border); }
.scope li:first-of-type { border-top: 0; }
.scope li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 9px; background: var(--accent); }
.scope__col--doesnt li::before { background: var(--text-faint); border-radius: 1px; }

/* privacy */
.privacy__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px 28px; }
.privacy__row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--border); }
.privacy__row:first-child { border-top: 0; }
.privacy__row dt { font-weight: 620; font-size: 15px; }
.privacy__row dd { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* faq */
.faq__list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq__item h3 { font-size: 1.05rem; }
.faq__item p { margin-top: 10px; color: var(--text-dim); font-size: 14.5px; max-width: 72ch; }

/* waitlist */
.waitlist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; }
.waitlist h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.waitlist p { margin: 14px auto 0; color: var(--text-dim); max-width: 52ch; }
.wl-form { margin: 26px auto 0; display: flex; gap: 10px; max-width: 460px; }
.wl-form input { flex: 1; font-family: var(--font); font-size: 15px; color: var(--text); background: var(--surface-sunk); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 16px; outline: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.wl-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--surface); }
.wl-status { margin-top: 14px; font-size: 13.5px; min-height: 20px; }
.wl-status.ok { color: #4ade80; } .wl-status.err { color: #ff7a7a; }
.waitlist__or { margin-top: 18px; font-size: 13.5px; color: var(--text-faint); }
.waitlist__or a { color: var(--accent); font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 38px; margin-top: 36px; }
.site-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__brand { max-width: 380px; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 680; font-size: 15px; color: #fff; letter-spacing: -0.02em; }
.site-footer__logo svg { border-radius: 6px; }
.site-footer__tag { margin-top: 13px; font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.site-footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { font-size: 13.5px; color: var(--text-faint); transition: color .15s var(--ease); }
.site-footer nav a:hover { color: #fff; }
.site-footer__copy { font-size: 13px; color: var(--text-faint); }

/* prose (legal pages) */
.prose { padding: 60px 0; }
.prose__panel { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; }
.prose__panel h1 { font-size: 2rem; }
.prose__panel h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.prose__panel p, .prose__panel li { color: var(--text-dim); margin-top: 10px; }
.prose__panel ul { padding-left: 20px; list-style: disc; }
.prose__updated { color: var(--text-faint); font-size: 13.5px; }
.prose__panel code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-sunk); padding: 2px 6px; border-radius: 5px; }
.prose__panel a { color: var(--accent); font-weight: 550; }

/* ---------- Cookie consent banner ---------- */
.consent {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 12px); z-index: 120;
  width: min(640px, calc(100% - 32px)); opacity: 0; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.consent.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.consent__text { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--text-dim); }
.consent__text a { color: var(--accent); font-weight: 600; }
.consent__actions { display: flex; gap: 8px; }
.consent .btn { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .btn:active, .nav__cta:hover, .step:hover, .device__play:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .scope { grid-template-columns: 1fr; }
  .privacy__row { grid-template-columns: 1fr; gap: 6px; }
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 18px; }
  .wl-form { flex-direction: column; }
  .waitlist { padding: 28px 20px; }
  .prose__panel { padding: 28px 22px; }
  .device { aspect-ratio: 4 / 3; }
  .site-footer__inner { flex-direction: column; gap: 14px; }
}
