@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0a10;
  --bg-2: #100e17;
  --panel: #16131f;
  --panel-2: #1c1826;
  --ink: #f2efff;
  --muted: rgba(242, 239, 255, .55);
  --faint: rgba(242, 239, 255, .32);
  --line: rgba(242, 239, 255, .1);
  --violet: #7c5cff;
  --acid: #d7ff52;
  --orange: #ff7a4d;
  --blue: #5b8cff;
  --mint: #5fe3a1;
  --lilac: #c99aff;
  --amber: #ffc44d;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--violet); color: #fff; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
kbd { font-family: 'DM Mono', monospace; }

/* ---------- texture & cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-4%)} 60%{transform:translate(-3%,-2%)} 80%{transform:translate(4%,2%)} }

.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; }
.cursor { width: 8px; height: 8px; background: var(--acid); mix-blend-mode: difference; transform: translate(-50%, -50%); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(215, 255, 82, .5);
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease, border-color .18s ease;
}
body.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: rgba(124, 92, 255, .9); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ---------- shared ---------- */
.eyebrow {
  margin: 0 0 22px; display: flex; align-items: center; gap: 10px;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(215,255,82,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(215,255,82,.45)} 70%{box-shadow:0 0 0 12px rgba(215,255,82,0)} 100%{box-shadow:0 0 0 0 rgba(215,255,82,0)} }

h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.045em; }
.acid { color: var(--acid); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand-mark { position: relative; width: 26px; height: 26px; display: inline-block; transform: rotate(-8deg); }
.brand-mark i { position: absolute; width: 13px; height: 13px; border-radius: 4px 8px 4px 8px; background: var(--violet); }
.brand-mark i:nth-child(1) { left: 0; top: 2px; }
.brand-mark i:nth-child(2) { right: 0; top: 0; background: var(--orange); transform: rotate(90deg); }
.brand-mark i:nth-child(3) { left: 7px; bottom: 0; background: var(--mint); transform: rotate(45deg); }
.brand-mark.tiny { transform: rotate(-8deg) scale(.8); }
.brand-mark.big { width: 44px; height: 44px; transform: rotate(-8deg) scale(1.7); }

.switch { position: relative; width: 30px; height: 17px; border-radius: 20px; background: rgba(255,255,255,.14); transition: background .2s ease; flex: none; }
.switch::after { content: ''; position: absolute; width: 12px; height: 12px; left: 3px; top: 2.5px; border-radius: 50%; background: rgba(255,255,255,.75); transition: left .2s ease, background .2s ease; }
.on > .switch, .switch.on, button.on .switch { background: var(--violet); }
button.on .switch::after, .on > .switch::after { left: 15px; background: #fff; }

/* ---------- header ---------- */
.site-header {
  position: fixed; z-index: 90; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px)); height: 58px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(14, 12, 21, .68); backdrop-filter: blur(22px) saturate(140%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.site-header.hidden { transform: translate(-50%, -90px); }
.site-nav { display: flex; gap: 30px; font-family: 'DM Mono', monospace; font-size: 12px; }
.site-nav a { color: var(--muted); position: relative; transition: color .2s ease; }
.site-nav a::before { content: '· '; color: var(--violet); opacity: 0; transition: opacity .2s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::before { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.kbd-hint { display: inline-flex; gap: 4px; }
.kbd-hint kbd {
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px;
  background: var(--panel-2); color: var(--muted); font-size: 11px;
  transition: transform .1s ease, border-color .2s ease;
}
.kbd-hint:hover kbd { border-color: rgba(124,92,255,.6); color: var(--ink); }
.kbd-hint kbd.flash { transform: translateY(2px); border-color: var(--acid); color: var(--acid); }
.header-download {
  padding: 10px 18px; border-radius: 12px; background: var(--ink); color: #0b0a10;
  font-size: 13px; font-weight: 700; transition: background .2s ease;
}
.header-download:hover { background: var(--acid); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding-top: 60px; }
.hero h1 { font-size: clamp(64px, 11vw, 168px); line-height: .9; }
.noise-word {
  position: relative; display: inline-block; font-style: normal; color: var(--orange);
  animation: jitter 3.4s ease-in-out infinite;
}
.noise-word::after {
  content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: .07em;
  background: var(--acid); border-radius: 4px; transform: rotate(-2deg);
}
@keyframes jitter {
  0%, 88%, 100% { transform: translate(0,0) rotate(0); }
  90% { transform: translate(1px,-1px) rotate(.4deg); }
  92% { transform: translate(-2px,1px) rotate(-.5deg); }
  94% { transform: translate(2px,1px) rotate(.4deg); }
  96% { transform: translate(-1px,-1px) rotate(0); }
}
.hero-sub { margin: 30px 0 0; font-size: clamp(16px, 1.8vw, 21px); line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 42px; flex-wrap: wrap; }

.big-button {
  position: relative; display: inline-flex; align-items: center; gap: 15px;
  padding: 16px 26px 16px 18px; border-radius: 18px; overflow: hidden;
  background: var(--ink); color: #0b0a10; font-weight: 700;
  transition: transform .2s ease;
}
.big-button svg { flex: none; }
.big-button b, .big-button small { display: block; text-align: left; }
.big-button b { font-size: 15px; }
.big-button small { margin-top: 2px; font-size: 10px; font-weight: 500; opacity: .55; }
.big-button-glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(120px 60px at var(--gx, 50%) var(--gy, 50%), rgba(124,92,255,.35), transparent 70%);
}
.big-button:hover .big-button-glow { opacity: 1; }
.big-button.xl { padding: 20px 32px 20px 22px; border-radius: 22px; }
.big-button.xl b { font-size: 18px; }

.ghost-button { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s ease; }
.ghost-button:hover { color: var(--ink); }
.ghost-button span {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--line); border-radius: 50%; font-size: 12px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

.hero-hud {
  position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: min(1200px, calc(100% - 48px));
  display: flex; align-items: flex-end; gap: 18px;
  font-family: 'DM Mono', monospace;
}
.hud-cell b { display: block; font-size: 26px; font-weight: 500; color: var(--acid); letter-spacing: .04em; }
.hud-cell:last-of-type b { color: var(--orange); }
.hud-cell span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hud-line { flex: none; width: 1px; height: 34px; background: var(--line); }
.hud-hint { margin-left: auto; font-size: 10px; color: var(--faint); letter-spacing: .06em; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 100px; transform: translateX(-50%); width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--acid); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(12px);opacity:0} 100%{opacity:0} }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); padding: 16px 0; overflow: hidden; background: var(--bg-2); }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: tick 24s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 12px; font-family: 'DM Mono', monospace; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--acid); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.section-head { width: min(1200px, calc(100% - 48px)); margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(52px, 7vw, 110px); line-height: .92; }
.section-sub { max-width: 460px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- playground / browser window ---------- */
.playground { padding: 150px 0 120px; }
.demo-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; perspective: 1600px; }
.bw {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(242,239,255,.14);
  background: var(--panel);
  box-shadow: 0 60px 140px rgba(0,0,0,.55), 0 0 0 1px rgba(124,92,255,.06), 0 0 120px rgba(124,92,255,.07);
  transform: rotateX(1.2deg); transform-origin: center top;
}
.bw-titlebar {
  height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--faint);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.bw-title { font-weight: 600; letter-spacing: .02em; }
.bw-live { justify-self: end; display: flex; align-items: center; gap: 7px; font-family: 'DM Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.bw-live span { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); animation: pulse 2s infinite; }

.bw-body { display: grid; grid-template-columns: 232px 1fr; min-height: 640px; }
.bw-sidebar {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 10px;
  background: linear-gradient(180deg, #17141f, #120f18);
  border-right: 1px solid var(--line);
}
.bw-side-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 16px; }
.bw-plus {
  width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.07);
  color: var(--ink); font-size: 17px; line-height: 1; transition: background .2s ease, transform .2s ease;
}
.bw-plus:hover { background: var(--violet); transform: rotate(90deg); }
.bw-label { margin: 4px 8px 8px; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.bw-label.tabs { margin-top: 20px; }
.bw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bw-grid button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px;
  border: 1px solid rgba(255,255,255,.05); border-radius: 12px; background: rgba(255,255,255,.03);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.bw-grid button:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); border-color: rgba(124,92,255,.4); }
.g-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.g-ic.red { background: rgba(255,122,77,.16); color: var(--orange); }
.g-ic.blue { background: rgba(91,140,255,.16); color: var(--blue); }
.g-ic.mint { background: rgba(95,227,161,.14); color: var(--mint); }
.g-ic.lilac { background: rgba(201,154,255,.16); color: var(--lilac); }
.bw-grid small { font-size: 9px; color: var(--muted); }
.bw-tabs { display: flex; flex-direction: column; gap: 3px; }
.bw-tab {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 10px; text-align: left;
  transition: background .18s ease;
}
.bw-tab:hover { background: rgba(255,255,255,.05); }
.bw-tab.active { background: rgba(124,92,255,.16); box-shadow: inset 0 0 0 1px rgba(124,92,255,.3); }
.bw-tab .fav { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 9px; font-weight: 700; }
.fav.red { background: rgba(255,122,77,.18); color: var(--orange); }
.fav.blue { background: rgba(91,140,255,.18); color: var(--blue); }
.fav.mint { background: rgba(95,227,161,.16); color: var(--mint); }
.fav.lilac { background: rgba(201,154,255,.18); color: var(--lilac); }
.fav.violet { background: rgba(124,92,255,.2); color: var(--lilac); }
.bw-tab b { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-tab i { font-style: normal; font-size: 12px; opacity: 0; transition: opacity .15s ease; }
.bw-tab:hover i, .bw-tab.active i { opacity: .45; }
.bw-tools { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.bw-tools button {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px;
  padding: 8px; border-radius: 10px; text-align: left; transition: background .18s ease;
}
.bw-tools button:hover { background: rgba(255,255,255,.05); }
.bw-tools span { color: var(--lilac); font-size: 12px; }
.bw-tools b { font-size: 10px; font-weight: 600; }
.bw-tools kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); font-size: 8px; }

.bw-main { min-width: 0; display: flex; flex-direction: column; background: #efece6; }
.bw-toolbar {
  position: relative; z-index: 6; display: grid; grid-template-columns: auto minmax(180px, 560px) auto;
  justify-content: center; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  background: rgba(247,245,240,.96); border-bottom: 1px solid rgba(20,16,40,.09);
}
.bw-nav { display: flex; gap: 2px; }
.bw-nav button {
  width: 30px; height: 30px; border-radius: 9px; color: #2a2438; font-size: 15px;
  transition: background .15s ease, transform .15s ease;
}
.bw-nav button:hover { background: rgba(20,16,40,.07); }
.bw-nav button:active { transform: scale(.88); }
.bw-nav button.spin { animation: spin .5s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
.bw-address {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px;
  height: 34px; padding: 0 11px; border-radius: 11px; text-align: left;
  background: rgba(20,16,40,.06); border: 1px solid rgba(20,16,40,.05);
  color: #4a4360; transition: box-shadow .2s ease;
}
.bw-address:hover { box-shadow: 0 0 0 2px rgba(124,92,255,.35); }
.addr-lock { color: var(--violet); font-size: 10px; }
.address-text { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-address kbd { color: rgba(20,16,40,.35); font-size: 8px; }
.bw-shield-pill {
  display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px;
  background: rgba(124,92,255,.1); color: var(--violet); font-size: 9px; font-weight: 600;
  font-family: 'DM Mono', monospace; white-space: nowrap;
}
.bw-shield-pill b { font-size: 11px; }

.bw-page { position: relative; flex: 1; min-height: 588px; overflow: hidden; background: #f2efe9; }
.pg { position: absolute; inset: 0; overflow: auto; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.995); transition: opacity .3s ease, transform .3s ease, visibility .3s; color: #17131f; }
.pg.active { opacity: 1; visibility: visible; transform: none; }
.bw-page.reloading .pg.active { animation: reloadflash .5s ease; }
@keyframes reloadflash { 0%{opacity:1} 30%{opacity:.15} 100%{opacity:1} }

/* schoolbox */
.sb-nav { display: flex; align-items: center; gap: 22px; height: 50px; padding: 0 22px; background: #6d1a2b; color: #fff; font-size: 12px; }
.sb-nav b { margin-right: 8px; }
.sb-nav span { font-size: 9px; opacity: .7; }
.avatar { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 8px; font-weight: 700; font-style: normal; }
.avatar.blue { background: #d9e5ff; color: #315aa8; }
.sb-body { padding: 26px; }
.sb-hi small { font-family: 'DM Mono', monospace; font-size: 7px; letter-spacing: .14em; color: rgba(20,16,40,.45); }
.sb-hi h4 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.03em; }
.sb-cards { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 18px; }
.sb-card { padding: 15px; border-radius: 15px; background: rgba(255,255,255,.75); border: 1px solid rgba(20,16,40,.08); }
.sb-card-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.sb-card-head b { font-size: 11px; }
.sb-card-head small { font-size: 7px; color: rgba(20,16,40,.45); }
.sb-row { display: grid; grid-template-columns: 32px 3px 1fr; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(20,16,40,.07); }
.sb-row time { font-family: 'DM Mono', monospace; font-size: 8px; color: rgba(20,16,40,.6); }
.bar { width: 3px; height: 24px; border-radius: 3px; }
.bar.v { background: var(--violet); } .bar.o { background: var(--orange); } .bar.m { background: var(--mint); }
.sb-row b, .sb-row small { display: block; }
.sb-row b { font-size: 9px; }
.sb-row small { margin-top: 2px; font-size: 7px; color: rgba(20,16,40,.5); }
.sb-due { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(20,16,40,.07); }
.due-chip { padding: 6px 7px; border-radius: 7px; background: rgba(124,92,255,.12); color: var(--violet); font-family: 'DM Mono', monospace; font-size: 6px; }
.sb-due b { display: block; font-size: 8px; margin-bottom: 5px; }
.sb-due em { font-style: normal; font-size: 7px; color: var(--violet); font-family: 'DM Mono', monospace; }
.sb-wide { margin-top: 12px; }
.week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 108px; align-items: end; }
.wc-day { display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.wc-day i { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: rgba(124,92,255,.28); }
.wc-day.hot i { background: var(--violet); }
.wc-day.free i { background: rgba(95,227,161,.45); }
.wc-day span { font-family: 'DM Mono', monospace; font-size: 6px; text-transform: uppercase; letter-spacing: .08em; color: rgba(20,16,40,.45); }
.meter { height: 4px; border-radius: 4px; background: rgba(20,16,40,.08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--violet); transition: width .4s ease; }

/* docs */
.doc-top { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; background: #fff; border-bottom: 1px solid rgba(20,16,40,.09); }
.doc-ic { display: grid; place-items: center; width: 24px; height: 28px; border-radius: 4px; background: #4a72f2; color: #fff; font-size: 11px; }
.doc-top b, .doc-top small { display: block; color: #17131f; }
.doc-top b { font-size: 10px; }
.doc-top small { font-size: 7px; color: rgba(20,16,40,.45); margin-top: 2px; }
.share { margin-left: auto; padding: 7px 13px; border-radius: 14px; background: #3473e8; color: #fff; font-size: 8px; font-weight: 700; font-style: normal; }
.doc-tools { display: flex; justify-content: center; gap: 16px; height: 34px; align-items: center; background: #fff; border-bottom: 1px solid rgba(20,16,40,.09); color: #3c3552; font-size: 8px; }
.doc-canvas { min-height: 504px; padding: 24px; background: #e4e6eb; }
.paper { width: 72%; min-height: 440px; margin: 0 auto; padding: 38px 44px; background: #fff; box-shadow: 0 10px 26px rgba(20,25,40,.14); }
.paper > small { font-family: 'DM Mono', monospace; font-size: 6px; letter-spacing: .18em; color: #4774ef; }
.paper h4 { margin: 10px 0 16px; font-family: Georgia, serif; font-size: 19px; font-weight: 600; color: #17131f; }
.paper p { font-family: Georgia, serif; font-size: 9px; line-height: 1.9; color: #33384a; }
.typed-target { min-height: 60px; color: var(--violet) !important; }
.caret { display: inline-block; width: 2px; height: 11px; margin-left: 1px; vertical-align: -1px; background: var(--violet); animation: blink .85s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* drive */
.drv-top { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px; background: #fff; border-bottom: 1px solid rgba(20,16,40,.09); }
.drv-top b { font-size: 12px; color: #17131f; }
.drv-crumb { font-size: 8px; color: rgba(20,16,40,.45); }
.drv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 22px; }
.drv-file { padding: 16px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(20,16,40,.08); transition: transform .18s ease, box-shadow .18s ease; }
.drv-file:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(20,25,40,.1); }
.f-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; margin-bottom: 12px; }
.f-ic.blue { background: rgba(91,140,255,.14); color: #3f63d8; }
.f-ic.red { background: rgba(255,122,77,.16); color: #d85a2e; }
.f-ic.mint { background: rgba(95,227,161,.18); color: #2c9961; }
.f-ic.lilac { background: rgba(201,154,255,.2); color: #8b58c9; }
.f-ic.amber { background: rgba(255,196,77,.2); color: #b8842a; }
.drv-file b, .drv-file small { display: block; color: #17131f; }
.drv-file b { font-size: 9px; }
.drv-file small { margin-top: 3px; font-size: 7px; color: rgba(20,16,40,.45); }

/* notes */
.note-sheet {
  position: relative; min-height: 588px; padding: 44px 54px;
  background: #f6f0d9; background-image: linear-gradient(rgba(93,133,179,.16) 1px, transparent 1px);
  background-size: 100% 26px; color: #17131f;
}
.note-sheet > small { font-family: 'DM Mono', monospace; font-size: 7px; letter-spacing: .14em; color: rgba(20,16,40,.45); }
.note-sheet h4 { margin: 8px 0 30px; font-family: Georgia, serif; font-size: 27px; }
.hand { margin-bottom: 20px; font-family: 'Comic Sans MS', 'Chalkboard SE', cursive; font-size: 14px; transform: rotate(-.4deg); }
.sticker {
  position: absolute; right: 42px; bottom: 56px; padding: 15px 17px;
  background: var(--amber); box-shadow: 4px 7px 16px rgba(63,48,20,.18);
  transform: rotate(4deg); font-family: 'Comic Sans MS', 'Chalkboard SE', cursive; font-size: 9px;
}
.sticker b { display: block; margin-top: 4px; font-size: 10px; }

/* start page */
.start-page { min-height: 588px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: linear-gradient(180deg, #151220, #1a1626); color: var(--ink); }
.start-search {
  display: flex; align-items: center; gap: 14px; width: min(420px, 80%); padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: var(--faint); font-size: 12px; transition: border-color .2s ease, background .2s ease;
}
.start-search:hover { border-color: rgba(124,92,255,.5); background: rgba(255,255,255,.08); }
.start-search kbd { margin-left: auto; font-size: 8px; color: var(--faint); }
.start-tiles { display: flex; gap: 10px; }
.start-tiles button {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: 9px; color: var(--muted); transition: transform .18s ease, border-color .18s ease;
}
.start-tiles button:hover { transform: translateY(-3px); border-color: rgba(124,92,255,.5); }
.start-hint { font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }

/* junk ads (shield off) */
.junk-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.junk {
  position: absolute; pointer-events: auto; cursor: pointer;
  border-radius: 12px; box-shadow: 0 18px 44px rgba(10,8,20,.35);
  animation: junkin .35s cubic-bezier(.2,1.4,.4,1), junkwobble 2.6s ease-in-out .4s infinite;
}
.junk.pop { background: #f8ff52; color: #111; border: 3px solid #111; padding: 14px 16px; font-weight: 800; font-size: 13px; text-align: center; }
.junk.pop small { display: block; font-weight: 500; font-size: 7px; margin-bottom: 4px; }
.junk.pop button { margin-top: 9px; padding: 5px 9px; background: #111; color: #f8ff52; font-size: 7px; border-radius: 5px; }
.junk.banner { left: 8% !important; right: 8%; width: auto !important; padding: 12px 16px; background: linear-gradient(90deg, #ff5db1, #ff9a4d); color: #fff; font-size: 11px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.junk.video { background: #17131f; border: 1px solid rgba(255,255,255,.15); padding: 10px; width: 150px; }
.junk.video .thumb { height: 64px; border-radius: 8px; background: linear-gradient(135deg, #3a2f63, #71354d); display: grid; place-items: center; color: #fff; font-size: 17px; }
.junk.video b { display: block; margin-top: 8px; color: #fff; font-size: 8px; }
.junk.video small { color: rgba(255,255,255,.4); font-size: 6px; }
@keyframes junkin { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
@keyframes junkwobble { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.junk.zapped { animation: zap .3s ease forwards; }
@keyframes zap { 40% { transform: scale(1.15) rotate(3deg); filter: brightness(3); } 100% { transform: scale(0) rotate(12deg); opacity: 0; filter: brightness(4); } }

/* focus flashlight */
.focus-veil {
  position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 50%), transparent 0%, rgba(8, 6, 14, .82) 260px);
}
.bw[data-focus="true"] .focus-veil { opacity: 1; }
.focus-chip {
  position: absolute; z-index: 10; left: 50%; bottom: 18px; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 13px; padding: 9px 10px 9px 15px;
  border-radius: 14px; background: rgba(10, 8, 16, .92); color: #fff;
  opacity: 0; visibility: hidden; transition: .3s ease;
  border: 1px solid rgba(124,92,255,.4);
}
.bw[data-focus="true"] .focus-chip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.focus-chip span { font-family: 'DM Mono', monospace; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--lilac); }
.focus-chip b { font-size: 9px; font-weight: 600; }
.focus-chip button { padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.12); font-size: 8px; }
.focus-chip button:hover { background: var(--violet); }

/* type panel */
.type-panel {
  position: absolute; z-index: 12; right: 16px; bottom: 16px; width: 300px; padding: 16px;
  border-radius: 16px; background: rgba(16, 13, 24, .96); color: var(--ink);
  border: 1px solid rgba(124,92,255,.35); box-shadow: 0 26px 70px rgba(5,3,12,.5);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: .28s cubic-bezier(.2,.9,.3,1.2);
}
.type-panel.open { opacity: 1; visibility: visible; transform: none; }
.type-head { display: flex; justify-content: space-between; align-items: start; }
.type-head small { font-family: 'DM Mono', monospace; font-size: 7px; letter-spacing: .14em; color: var(--lilac); }
.type-head b { display: block; margin-top: 4px; font-size: 11px; }
.type-head button { font-size: 15px; color: var(--faint); }
.type-head button:hover { color: var(--ink); }
.type-copy { margin: 14px 0; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-family: Georgia, serif; font-size: 9px; line-height: 1.7; color: var(--muted); }
.type-speed { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 14px; font-family: 'DM Mono', monospace; font-size: 8px; color: var(--faint); }
.type-speed input { width: 100%; accent-color: var(--violet); }
.type-go { width: 100%; padding: 10px; border-radius: 10px; background: var(--violet); font-size: 10px; font-weight: 700; transition: background .2s ease; }
.type-go:hover { background: #8d72ff; }
.type-go:disabled { opacity: .55; cursor: default; }

/* demo strip */
.demo-strip { display: flex; align-items: center; gap: 16px; margin-top: 22px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.strip-tag { padding: 6px 10px; border-radius: 8px; background: var(--acid); color: #0b0a10; font-family: 'DM Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.demo-strip p { margin: 0; }
.demo-strip kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 9px; }
.linklike { color: var(--lilac); border-bottom: 1px dashed rgba(201,154,255,.5); padding-bottom: 1px; font-size: 12px; transition: color .2s ease; }
.linklike:hover { color: var(--acid); border-color: var(--acid); }
.strip-count { margin-left: auto; font-family: 'DM Mono', monospace; font-size: 10px; color: var(--faint); }
.strip-count b { color: var(--acid); }

/* ---------- habits ---------- */
.habits { padding: 60px 0 140px; }
.habit-grid { width: min(1200px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.habit {
  display: flex; flex-direction: column; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: border-color .25s ease, transform .25s ease;
}
.habit:hover { border-color: rgba(124,92,255,.4); transform: translateY(-4px); }
.habit header { margin-bottom: 18px; }
.habit-no { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--faint); }
.habit h3 { margin: 8px 0 2px; font-size: 34px; letter-spacing: -.04em; }
.habit header p { margin: 0; font-size: 12px; color: var(--muted); }
.habit footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.habit-toggle { display: flex; align-items: center; gap: 9px; font-family: 'DM Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.habit-stats { display: flex; gap: 14px; font-family: 'DM Mono', monospace; font-size: 9px; color: var(--faint); }
.habit-stats b { color: var(--acid); font-weight: 500; }

.zap-field {
  position: relative; flex: 1; min-height: 300px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #171327 0%, #0e0c15 70%);
  border: 1px solid var(--line);
}
.zap-beam {
  position: absolute; left: 6%; right: 6%; top: 34%; height: 3px; border-radius: 3px;
  background: var(--acid); box-shadow: 0 0 18px rgba(215,255,82,.8), 0 0 44px rgba(215,255,82,.35);
  opacity: 0; transition: opacity .3s ease;
}
#zap.shield-on .zap-beam { opacity: 1; animation: beam 3s ease-in-out infinite; }
@keyframes beam { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
.zap-ad {
  position: absolute; left: var(--x); top: -40px; padding: 8px 10px; border-radius: 9px;
  font-size: 9px; font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none;
  animation: fall var(--t) linear forwards;
}
.zap-ad.ugly { background: #f8ff52; color: #111; border: 2px solid #111; }
.zap-ad.spam { background: linear-gradient(90deg,#ff5db1,#ff9a4d); color: #fff; }
.zap-ad.track { background: #241f38; color: var(--lilac); border: 1px solid rgba(201,154,255,.4); font-family: 'DM Mono', monospace; font-weight: 400; }
@keyframes fall { to { transform: translateY(400px); } }
.zap-ad.zapped { animation: zap .28s ease forwards; }
.zap-ad.stuck { animation: stickjit 1.6s ease-in-out infinite; top: auto; bottom: var(--b); }
@keyframes stickjit { 0%,100%{transform:rotate(-2deg)} 50%{transform:rotate(2deg) translateY(-2px)} }
.zap-spark {
  position: absolute; width: 26px; height: 26px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--acid); animation: spark .4s ease-out forwards;
}
@keyframes spark { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hush-field {
  position: relative; flex: 1; min-height: 300px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #131a24 0%, #0d0e14 70%);
  border: 1px solid var(--line);
}
.noisy {
  position: absolute; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: drift 4.5s ease-in-out var(--d) infinite;
  transition: filter .3s ease, opacity .3s ease;
}
.noisy i {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, #2a2340, #1b1c2e); border: 1px solid rgba(242,239,255,.14);
  font-style: normal; font-size: 18px; color: var(--ink); position: relative;
}
.noisy i::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: #ff5f57; box-shadow: 0 0 0 0 rgba(255,95,87,.6); animation: pulse 1.6s infinite;
}
.noisy span { font-family: 'DM Mono', monospace; font-size: 7px; color: var(--muted); }
.noisy:hover i { border-color: var(--acid); }
@keyframes drift { 0%,100%{transform:translate(0,0) rotate(-2deg)} 33%{transform:translate(7px,-9px) rotate(2deg)} 66%{transform:translate(-6px,5px) rotate(-1deg)} }
.noisy.hushed { animation: none; filter: grayscale(1); opacity: .3; }
.noisy.hushed i::after { display: none; }
.noise-meter { align-items: center; }
.noise-meter .meter { width: 70px; background: rgba(255,255,255,.1); }
.noise-meter .meter i { background: var(--orange); width: 100%; }
.noise-meter b { color: var(--orange); }

.vanish-field { flex: 1; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0e0c15; }
.vanish-tab { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #171327; border-bottom: 1px solid var(--line); font-size: 9px; }
.vanish-tab .priv-dot { color: var(--lilac); }
.vanish-tab b { font-weight: 600; }
.vanish-tab button { margin-left: auto; font-size: 13px; color: var(--faint); width: 22px; height: 22px; border-radius: 6px; }
.vanish-tab button:hover { background: rgba(255,95,87,.2); color: #ff8f89; }
.vanish-page { position: relative; flex: 1; min-height: 196px; display: grid; place-items: center; padding: 18px; overflow: hidden; }
.vanish-empty { font-family: 'DM Mono', monospace; font-size: 9px; line-height: 1.9; color: var(--faint); text-align: center; transition: opacity .3s ease; }
.vanish-text { position: absolute; inset: 14px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 1px; pointer-events: none; }
.vanish-text span { display: inline-block; font-size: 21px; font-weight: 700; color: var(--lilac); white-space: pre; }
.vanish-text span.fly { transition: transform .9s cubic-bezier(.3,-.2,.6,1), opacity .9s ease; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); opacity: 0; }
.vanish-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.vanish-input-row input {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--ink); font-size: 11px; outline: none; transition: border-color .2s ease;
}
.vanish-input-row input:focus { border-color: rgba(124,92,255,.6); }
.vanish-input-row input::placeholder { color: var(--faint); }
.vanish-input-row button { padding: 0 16px; border-radius: 10px; background: var(--violet); font-size: 10px; font-weight: 700; }
.vanish-input-row button:hover { background: #8d72ff; }
.vanish-log { color: var(--faint); }

/* ---------- standalone Nomae Type ---------- */
.type-extension {
  position: relative; width: min(1200px, calc(100% - 48px)); margin: 0 auto 26px;
  padding: 82px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 76px;
  border-radius: 32px; overflow: hidden; color: #0b0a10; background: var(--acid);
}
.type-extension::before {
  content: ''; position: absolute; width: 520px; height: 520px; left: -250px; bottom: -390px;
  border: 1px solid rgba(11,10,16,.15); border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(11,10,16,.035), 0 0 0 144px rgba(11,10,16,.025);
}
.type-extension-copy { position: relative; z-index: 1; }
.type-extension .eyebrow { color: rgba(11,10,16,.58); }
.type-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 6px rgba(124,92,255,.16); }
.type-extension h2 { font-size: clamp(58px, 7vw, 108px); line-height: .88; }
.type-extension h2 .acid { color: #0b0a10; }
.type-extension-copy > p:not(.eyebrow) { max-width: 560px; margin: 28px 0; color: rgba(11,10,16,.65); font-size: 17px; line-height: 1.65; }
.type-extension-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.type-download { background: #0b0a10; color: var(--ink); }
.type-key { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.1); font-size: 17px; }
.type-source { padding-bottom: 3px; border-bottom: 1px dashed rgba(11,10,16,.45); font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; }
.extension-card { position: relative; z-index: 1; padding: 26px; border-radius: 24px; background: #100e17; color: var(--ink); box-shadow: 0 36px 70px rgba(31,38,10,.24); transform: rotate(1.1deg); }
.extension-card-head { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.extension-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--violet); font-size: 20px; font-weight: 700; }
.extension-card-head b, .extension-card-head small { display: block; }
.extension-card-head b { font-size: 14px; }
.extension-card-head small { margin-top: 3px; color: var(--faint); font-family: 'DM Mono', monospace; font-size: 8px; }
.extension-badge { padding: 7px 9px; border: 1px solid rgba(215,255,82,.25); border-radius: 9px; color: var(--acid); font-family: 'DM Mono', monospace; font-size: 7px; }
.extension-card ol { margin: 0; padding: 10px 0 2px; list-style: none; }
.extension-card li { min-height: 82px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.extension-card li > span { color: var(--faint); font-family: 'DM Mono', monospace; font-size: 8px; }
.extension-card li b, .extension-card li small { display: block; }
.extension-card li b { font-size: 11px; }
.extension-card li small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.extension-card code { color: var(--acid); font-family: 'DM Mono', monospace; font-size: .9em; }
.extension-note { margin: 18px 0 0; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.extension-note span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-family: Georgia, serif; }

/* ---------- download ---------- */
.download {
  position: relative; margin: 0 auto 26px; width: min(1200px, calc(100% - 48px));
  padding: 130px 24px 120px; border-radius: 32px; overflow: hidden; text-align: center;
  background: #0e0c15; border: 1px solid var(--line);
}
.download h2 { font-size: clamp(72px, 11vw, 170px); line-height: .88; }
.download .eyebrow { justify-content: center; }
.dl-actions { margin-top: 48px; display: flex; justify-content: center; }
.dl-meta { margin-top: 44px; display: flex; justify-content: center; gap: 30px; font-family: 'DM Mono', monospace; font-size: 11px; flex-wrap: wrap; }
.dl-meta a { color: var(--muted); border-bottom: 1px dashed rgba(242,239,255,.25); padding-bottom: 2px; transition: color .2s ease; }
.dl-meta a:hover { color: var(--acid); }
.dl-meta span { color: var(--faint); }
.dl-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.dl-orbs i:nth-child(1) { width: 420px; height: 420px; left: -140px; top: -160px; background: rgba(124,92,255,.5); animation: orb 11s ease-in-out infinite; }
.dl-orbs i:nth-child(2) { width: 360px; height: 360px; right: -120px; bottom: -150px; background: rgba(255,122,77,.4); animation: orb 13s ease-in-out -4s infinite; }
.dl-orbs i:nth-child(3) { width: 260px; height: 260px; right: 16%; top: -120px; background: rgba(95,227,161,.3); animation: orb 15s ease-in-out -8s infinite; }
@keyframes orb { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,24px) scale(1.12)} }

/* ---------- footer ---------- */
.site-footer {
  width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 11px;
}
.site-footer p { margin: 0; font-family: 'DM Mono', monospace; font-size: 10px; }

/* ---------- command palette ---------- */
.palette-veil { position: fixed; inset: 0; z-index: 150; background: rgba(5,4,10,.6); backdrop-filter: blur(6px); animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; } }
.palette {
  position: fixed; z-index: 160; left: 50%; top: 16vh; width: min(560px, calc(100% - 32px));
  transform: translateX(-50%); border-radius: 20px; overflow: hidden;
  background: rgba(22, 19, 31, .97); border: 1px solid rgba(124,92,255,.35);
  box-shadow: 0 50px 120px rgba(0,0,0,.6); animation: pal .22s cubic-bezier(.2,1.2,.3,1);
}
@keyframes pal { from { transform: translateX(-50%) translateY(-14px) scale(.97); opacity: 0; } }
.palette-input { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input span { color: var(--lilac); }
.palette-input input { border: 0; outline: 0; background: none; color: var(--ink); font-size: 14px; }
.palette-input input::placeholder { color: var(--faint); }
.palette-input kbd { font-size: 9px; color: var(--faint); }
.palette-list { max-height: 330px; overflow: auto; padding: 8px; }
.palette-group { padding: 10px 12px 6px; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.palette-list button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 12px; text-align: left; transition: background .15s ease;
}
.palette-list button:hover, .palette-list button.sel { background: rgba(124,92,255,.16); }
.c-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.c-ic.acid { background: rgba(215,255,82,.14); color: var(--acid); }
.c-ic.violet { background: rgba(124,92,255,.16); color: var(--lilac); }
.c-ic.blue { background: rgba(91,140,255,.14); color: var(--blue); }
.palette-list b, .palette-list small { display: block; }
.palette-list b { font-size: 12px; font-weight: 600; }
.palette-list small { margin-top: 2px; font-size: 9px; color: var(--faint); }
.palette-list kbd { font-size: 9px; color: var(--faint); }
.palette-list button[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .bw-body { grid-template-columns: 190px 1fr; }
  .habit-grid { grid-template-columns: 1fr; max-width: 560px; }
  .zap-field, .hush-field { min-height: 260px; }
  .type-extension { padding: 62px; gap: 46px; }
}
@media (max-width: 820px) {
  .site-nav { display: none; }
  .hero-hud { bottom: 22px; }
  .hud-hint { display: none; }
  .bw-body { grid-template-columns: 64px 1fr; min-height: 560px; }
  .bw-sidebar { padding: 12px 7px; }
  .bw-side-top { justify-content: center; padding-bottom: 12px; }
  .bw-plus, .bw-label, .bw-grid small, .bw-tab b, .bw-tab i, .bw-tools b, .bw-tools kbd, .bw-tools .switch { display: none; }
  .bw-grid { grid-template-columns: 1fr; }
  .bw-grid button { align-items: center; padding: 8px; }
  .bw-tab { grid-template-columns: 1fr; justify-items: center; }
  .bw-tools button { grid-template-columns: 1fr; justify-items: center; }
  .bw-toolbar { grid-template-columns: auto 1fr; }
  .bw-shield-pill { display: none; }
  .sb-cards, .drv-grid { grid-template-columns: 1fr 1fr; }
  .paper { width: 92%; padding: 26px; }
  .type-panel { width: calc(100% - 32px); }
  .demo-strip .strip-count { width: 100%; margin-left: 0; }
  .type-extension { padding: 52px 34px; grid-template-columns: 1fr; }
  .extension-card { transform: none; }
  .download { padding: 90px 18px 80px; }
  .scroll-cue { display: block; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(56px, 17vw, 90px); }
  .hero-sub br { display: none; }
  .hero-actions { gap: 16px; }
  .sb-cards, .drv-grid { grid-template-columns: 1fr; }
  .sb-card:last-child { display: none; }
  .doc-tools { display: none; }
  .note-sheet { padding: 30px 26px; }
  .sticker { right: 18px; bottom: 30px; }
  .hud-cell b { font-size: 19px; }
  .type-extension { width: calc(100% - 28px); padding: 40px 22px; }
  .type-extension-actions { align-items: flex-start; flex-direction: column; }
  .extension-card { padding: 20px; }
  .extension-badge { display: none; }
  .site-footer { flex-direction: column; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor, .cursor-ring, .grain { display: none; }
  .bw { transform: none; }
}
