/* Nexus landing page. One dark theme, one sky-blue accent.
   Radius rule: containers 28px, everything you press is a full pill. Glass on every surface. */

:root {
  color-scheme: dark;
  --bg: #121417;
  --card: #1a1d21;
  --line: rgb(255 255 255 / .09);
  --text: #f2f4f7;
  --mute: #a0a7b2;
  --blue: #62cdf6;
  --ink: #062130;
  --pink: #ff8fb1;
  --gold: #f5c451;
  --green: #3ddc84;
  --r: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: min(1240px, 100% - 48px);
  --pane: linear-gradient(135deg, rgb(98 205 246 / .12), rgb(255 255 255 / .03) 55%);
  --edge: 1px solid rgb(255 255 255 / .12);
  --lip: inset 0 1px 0 rgb(255 255 255 / .16);
  --blur: blur(18px) saturate(165%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
code { font: 500 .9em 'Geist Mono', monospace; color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--ink); }

/* Soft colour behind everything, so the glass has something to blur. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 34% at 88% 16%, rgb(98 205 246 / .17), transparent),
    radial-gradient(32% 30% at 4% 60%, rgb(255 143 177 / .1), transparent),
    radial-gradient(30% 28% at 60% 104%, rgb(245 196 81 / .08), transparent);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 Geist, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background .2s, border-color .2s, box-shadow .3s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.05rem; }
.btn--primary {
  color: var(--ink); background: linear-gradient(135deg, rgb(130 216 249 / .97), rgb(98 205 246 / .78));
  border-color: rgb(255 255 255 / .38);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -10px 22px rgb(43 168 222 / .3), 0 8px 30px rgb(98 205 246 / .22);
}
.btn--primary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .55) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat;
  transition: background-position .9s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -10px 22px rgb(43 168 222 / .3), 0 12px 36px rgb(98 205 246 / .38); }
.btn--primary:hover::after { background-position: -30% 0; }
.btn--ghost { color: var(--text); background: rgb(255 255 255 / .04); border: var(--edge); box-shadow: var(--lip); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn--ghost:hover { border-color: rgb(255 255 255 / .3); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgb(98 205 246 / .06), transparent), rgb(18 20 23 / .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav__inner { width: var(--wrap); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; margin-right: auto; }
.brand img { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.1); }
.nav__links { display: flex; gap: 6px; }
.nav__links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--mute); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.nav__dash { color: var(--mute); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__dash:hover { color: var(--text); }
.nav__dash[hidden], .nav__user[hidden] { display: none; }
.nav__user { position: relative; }
.nav__me { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border: var(--edge); border-radius: 999px; background: rgb(255 255 255 / .04); color: var(--text); font: 500 .95rem Geist, system-ui, sans-serif; cursor: pointer; transition: background .2s; }
.nav__me:hover, .nav__me[aria-expanded="true"] { background: rgb(255 255 255 / .09); }
.nav__me img { width: 30px; height: 30px; border-radius: 50%; }
.nav__me span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 8px; border: var(--edge); border-radius: 18px; background: rgb(26 29 33 / .96); box-shadow: var(--lip), 0 18px 40px rgb(0 0 0 / .45); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.nav__menu p { padding: 6px 12px 8px; color: var(--mute); font-size: .85rem; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nav__menu a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.nav__menu a:hover { background: rgb(255 255 255 / .07); }
.nav__menu a[href="/auth/logout"] { color: #ff8a8a; }

/* ---------- hero ---------- */
.hero {
  --P: 150px;
  position: relative; width: var(--wrap); margin-inline: auto; min-height: calc(100dvh - 68px);
  display: grid; grid-template-columns: minmax(0, 1fr) 470px; align-items: center; gap: 56px;
  padding: 48px var(--P) 72px 0;
}
.hero__copy { position: relative; z-index: 1; }
h1 { font-size: clamp(2.9rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.lede { margin-top: 28px; max-width: 32ch; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--mute); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* The big robot behind the demo, with a dashed outline turning behind it. */
.hero__art, .close__art { position: absolute; inset: 0; pointer-events: none; }
.hero__art svg, .close__art svg { position: absolute; }
.hero__art .solid { width: 330px; top: 50%; margin-top: -150px; }
.hero__art .ghost { width: 400px; top: 50%; margin-top: -200px; }
.hero__art .solid { right: calc(var(--P) - 262px); }
.hero__art .ghost { right: calc(var(--P) - 250px); }
.solid { filter: drop-shadow(0 18px 50px rgb(98 205 246 / .3)); }
.ghost { fill: none; stroke: #6f7782; stroke-width: 1.2; stroke-dasharray: 3 3.5; }
.motion .solid { animation: bob 5s var(--ease) infinite; }
.motion .ghost { animation: spin 60s linear infinite reverse; }
@keyframes bob { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.motion .hero__copy > *, .motion .hero__demo { animation: rise .9s var(--ease) both; }
.motion .hero__copy h1 { animation-delay: .05s; }
.motion .hero__copy .lede { animation-delay: .18s; }
.motion .hero__cta { animation-delay: .3s; }
.motion .hero__demo { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- the live demo panel ---------- */
.hero__demo { position: relative; z-index: 1; justify-self: end; width: min(100%, 470px); }
.panel {
  position: relative; border-left: 5px solid var(--blue) !important; border-radius: var(--r); padding: 30px 26px 26px;
  background: var(--pane), rgb(24 27 31 / .86); border: var(--edge);
  box-shadow: var(--lip), 0 30px 80px rgb(0 0 0 / .45); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.panel h2 { font-size: 1.7rem; line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.panel h2::before {
  content: 'live demo'; display: block; width: max-content; margin-bottom: 14px; padding: 4px 11px 4px 24px; border-radius: 999px;
  font: 500 .72rem/1.4 'Geist Mono', monospace; letter-spacing: .04em; color: var(--blue);
  background: radial-gradient(circle at 12px 50%, var(--blue) 0 3px, transparent 4px), rgb(98 205 246 / .12); border: 1px solid rgb(98 205 246 / .3);
}
.motion .panel h2::before { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { background: radial-gradient(circle at 12px 50%, rgb(98 205 246 / .25) 0 3px, transparent 4px), rgb(98 205 246 / .12); } }
.panel__intro { margin-top: 8px; color: var(--mute); font-size: .95rem; line-height: 1.5; }
/* module switches inside the demo */
.mods { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mods button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px 9px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem;
  background: rgb(255 255 255 / .05); border: var(--edge); transition: background .3s var(--ease), border-color .3s;
}
.mods button:hover { border-color: rgb(255 255 255 / .22); }
.mods button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mods .sw { position: relative; width: 34px; height: 20px; border-radius: 20px; background: rgb(255 255 255 / .14); flex: none; transition: background .3s var(--ease); }
.mods .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.mods button.on { background: rgb(98 205 246 / .12); border-color: rgb(98 205 246 / .4); }
.mods button.on .sw { background: var(--blue); }
.mods button.on .sw::after { transform: translateX(14px); }

/* the little Discord channel the bot works in */
.chat { margin-top: 14px; border-radius: 18px; overflow: hidden; background: #2b2d31; border: 1px solid rgb(0 0 0 / .35); }
.chat__head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 600; font-size: .9rem; border-bottom: 1px solid rgb(0 0 0 / .25); }
.chat__head .hash { color: #80848e; font-size: 1.15rem; line-height: 1; }
.chat__head small { margin-left: auto; color: #80848e; font: 500 .72rem 'Geist Mono', monospace; }
.chat__log { -webkit-mask-image: linear-gradient(transparent, #000 34px); mask-image: linear-gradient(transparent, #000 34px); list-style: none; margin: 0; padding: 12px; height: 262px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.msg { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.4; }
.motion .msg { animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.msg .av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #1e1f22; }
.msg .who { font-weight: 600; font-size: .85rem; }
.msg .app { margin-left: 5px; padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: .6rem; font-weight: 700; vertical-align: 1px; }
.msg p { margin: 1px 0 0; color: #dbdee1; overflow-wrap: anywhere; }
.msg--bot { margin: 0 -6px; padding: 6px; border-radius: 10px; background: rgb(98 205 246 / .07); }
.msg--bot .av { background: var(--blue) url(/img/logo.svg) center / 84% no-repeat; }
.msg--bot .who { color: var(--blue); }
.msg--sys { align-items: center; }
.msg--sys .arrow { width: 30px; text-align: center; color: var(--green); font-weight: 700; }
.msg--sys p { color: #949ba4; }
.msg--sys b { color: #dbdee1; }
.msg.gone p { color: #ff8a8a; text-decoration: line-through; opacity: .6; transition: all .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-12deg); } }

.reset { position: absolute; top: 22px; right: 22px; background: rgb(255 255 255 / .05); border: var(--edge); box-shadow: var(--lip); color: var(--mute); font: 500 .82rem Geist, sans-serif; cursor: pointer; padding: 6px 14px; border-radius: 999px; }
.reset:hover { color: var(--text); background: rgb(255 255 255 / .08); }

/* ---------- lean words: upright and blurred, then they tip into italic behind a pane of glass ---------- */
em.lean {
  --tilt: skewX(-12deg);
  position: relative; display: inline-block; isolation: isolate; font-style: normal; color: var(--blue);
  padding: 0 .16em .08em; margin: 0 -.06em; transform: var(--tilt); transform-origin: 50% 85%;
}
em.lean::before, em.lean::after { content: ''; position: absolute; inset: .04em 0 0; border-radius: .3em; pointer-events: none; }
em.lean::before {
  z-index: -1;
  background: linear-gradient(135deg, rgb(98 205 246 / .3), rgb(98 205 246 / .06));
  border: 1px solid rgb(255 255 255 / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), inset 0 -10px 24px rgb(98 205 246 / .12), 0 10px 40px rgb(98 205 246 / .14);
  backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
}
em.lean::after {
  z-index: 1; clip-path: inset(0 round .3em);
  background: linear-gradient(90deg, transparent 40%, rgb(255 255 255 / .36) 50%, transparent 60%) 130% 0 / 260% 100% no-repeat;
}
@keyframes lean { from { transform: skewX(0); filter: blur(10px); } to { transform: var(--tilt); filter: none; } }
@keyframes pane { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes shine { 0%, 72% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes hop { 40% { transform: translateY(-.08em); } }
.motion em.hero-em { animation: lean 1.5s var(--ease) .8s both; }
.motion em.hero-em::before { animation: pane 1.2s var(--ease) .8s both; }
.motion em.lean:not(.hero-em) { transform: none; filter: blur(10px); transition: transform 1.3s var(--ease), filter 1.3s var(--ease); }
.motion em.lean:not(.hero-em)::before { opacity: 0; transform: scale(.8); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.motion em.lean.in { transform: var(--tilt); filter: none; }
.motion em.lean.in::before { opacity: 1; transform: none; }
.motion em.lean.in::after { animation: shine 8s ease-in-out -4.4s infinite; }
.motion em.lean.in:hover::after { animation: sheen 1.6s ease-in-out both; }
em.lean .ch { display: inline-block; }
.motion em.lean:hover .ch { animation: hop .8s ease-in-out calc(var(--i) * 55ms) both; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- statement ---------- */
.statement { width: var(--wrap); margin-inline: auto; padding: 120px 0 140px; }
.statement p { max-width: 22ch; font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.motion .statement .w { color: #464b53; transition: color .5s var(--ease); }
.motion .statement .w.lit { color: var(--text); }

/* ---------- sections ---------- */
.features, .how, .commands { width: var(--wrap); margin-inline: auto; padding-block: 72px; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 650; max-width: 18ch; text-wrap: balance; }

.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell {
  position: relative; overflow: hidden; border-radius: var(--r); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 340px;
  background: var(--pane), rgb(26 29 33 / .5); border: var(--edge); box-shadow: var(--lip), 0 20px 50px rgb(0 0 0 / .28);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.cell h3 { font-size: 1.6rem; line-height: 1.1; letter-spacing: -.03em; font-weight: 650; }
.cell p { margin-top: 12px; color: var(--mute); max-width: 44ch; font-size: 1rem; }
.cell__text { position: relative; z-index: 1; }
.cell--switch { grid-column: span 4; }
.cell--mod { grid-column: span 2; color: var(--ink); border: 1px solid rgb(255 255 255 / .34);
  background: linear-gradient(135deg, rgb(130 216 249 / .96), rgb(98 205 246 / .76));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -10px 22px rgb(43 168 222 / .3), 0 8px 30px rgb(98 205 246 / .22); }
.cell--mod p { color: rgb(6 33 48 / .78); }
.cell--auto { grid-column: span 2; }
.cell--levels { grid-column: span 4; flex-direction: row; align-items: stretch; background: linear-gradient(150deg, rgb(98 205 246 / .2), rgb(255 255 255 / .03) 60%), rgb(26 29 33 / .5); }
.cell--levels .cell__text { flex: 1 1 0; align-self: flex-end; }
.cell--rest { grid-column: span 6; flex-direction: row; align-items: flex-end; background: radial-gradient(90% 140% at 100% 0%, rgb(98 205 246 / .22), transparent 60%), var(--pane), rgb(26 29 33 / .5); }
.cell--rest .cell__text { flex: 1 1 0; }
.motion .cell { transition: opacity .8s var(--ease), transform .6s var(--ease), border-color .3s; }
.motion .cell.in:hover { transform: translateY(-6px) rotate(-.4deg); border-color: rgb(98 205 246 / .45); }

.motion [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* switches cell */
.switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.switches button {
  all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: 999px; font-weight: 600; font-size: 1.02rem;
  background: rgb(255 255 255 / .05); border: var(--edge); box-shadow: var(--lip);
  transition: background .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.switches button:hover { transform: translateY(-3px); }
.switches .sw { position: relative; width: 44px; height: 26px; border-radius: 26px; background: rgb(255 255 255 / .14); flex: none; transition: background .35s var(--ease); }
.switches .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); transition: transform .35s var(--ease); }
.switches button.on { background: rgb(98 205 246 / .14); border-color: rgb(98 205 246 / .4); }
.switches button.on .sw { background: var(--blue); }
.switches button.on .sw::after { transform: translateX(18px); }

/* moderation cell */
.case { font: 700 clamp(2.2rem, 3.6vw, 3.1rem)/1 'Geist Mono', monospace; letter-spacing: -.04em; }
.case-list { display: grid; gap: 6px; margin-top: 14px; }
.case-list span { display: flex; justify-content: space-between; padding: 8px 14px; border-radius: 999px; background: rgb(6 33 48 / .12); font: 500 .85rem 'Geist Mono', monospace; }

/* automod cell */
.cell__ghost { position: absolute; width: 360px; right: -140px; bottom: -140px; opacity: .8; }
.cell__ghost { fill: none; stroke: #6f7782; stroke-width: 1.2; stroke-dasharray: 3 3.5; }
.motion .cell__ghost { animation: spin 50s linear infinite; }
.zapped { display: grid; gap: 6px; }
.zapped s { width: max-content; max-width: 100%; padding: 6px 12px; border-radius: 12px; background: rgb(255 255 255 / .05); border: var(--edge); color: var(--mute); font: 500 .85rem 'Geist Mono', monospace; text-decoration-color: #ff8a8a; }

/* levels ladder */
.ladder { flex: 0 0 min(260px, 42%); display: grid; gap: 8px; align-content: center; }
.ladder li { display: flex; justify-content: space-between; padding: 13px 18px; border-radius: 999px; background: rgb(255 255 255 / .05); border: var(--edge); box-shadow: var(--lip); font-weight: 600; color: var(--mute);
  transition: background .5s var(--ease), color .5s, transform .6s var(--ease), border-color .5s; }
.ladder li small { font: 500 .8rem 'Geist Mono', monospace; opacity: .8; }
.ladder li.on { color: var(--ink); transform: translateX(14px); border: 1px solid rgb(255 255 255 / .34);
  background: linear-gradient(135deg, rgb(130 216 249 / .96), rgb(98 205 246 / .76)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 6px 22px rgb(98 205 246 / .25); }

/* everything-else chips */
.chips { flex: 0 0 min(520px, 52%); display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgb(255 255 255 / .05); border: var(--edge); box-shadow: var(--lip); font-weight: 600; font-size: .95rem;
  transition: transform .4s var(--ease), background .3s, border-color .3s; }
.chips span:hover { transform: translateY(-3px) rotate(-1deg); background: rgb(98 205 246 / .12); border-color: rgb(98 205 246 / .4); }
.motion .chips span { opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.motion .chips.in span { opacity: 1; transform: none; }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; padding-top: 96px; }
.how__head { position: sticky; top: 120px; display: grid; gap: 28px; justify-items: start; }
.flow { display: grid; gap: 14vh; padding: 4vh 0 10vh; }
.flow__item h3 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 650; }
.flow__item p { margin-top: 18px; max-width: 42ch; font-size: 1.15rem; color: var(--mute); }
.motion .flow__item { opacity: .28; transform: none; transition: opacity .6s var(--ease); }
.motion .flow__item.in { opacity: 1; }

/* ---------- commands ---------- */
.commands { position: relative; padding-top: 96px; }
.tabs { margin-top: 40px; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--pane), rgb(26 29 33 / .5); border: var(--edge); box-shadow: var(--lip); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.tabs button { min-height: 42px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--mute); font: 600 .95rem Geist, sans-serif; cursor: pointer; transition: background .25s, color .25s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected='true'] { color: var(--ink); border-color: rgb(255 255 255 / .34); background: linear-gradient(135deg, rgb(130 216 249 / .96), rgb(98 205 246 / .76)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 6px 22px rgb(98 205 246 / .22); }
.pane { margin-top: 20px; }
.cmds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cmds div { border-radius: var(--r); padding: 28px 30px; background: var(--pane), rgb(26 29 33 / .5); border: var(--edge); box-shadow: var(--lip), 0 20px 50px rgb(0 0 0 / .28); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .4s var(--ease), border-color .3s; }
.cmds div:hover { transform: translateY(-4px) rotate(.3deg); border-color: rgb(98 205 246 / .45); }
.cmds dt { font: 600 1.15rem 'Geist Mono', monospace; color: var(--blue); overflow-wrap: anywhere; }
.cmds dd { margin-top: 10px; color: var(--mute); max-width: 46ch; }
.motion .cmds div { animation: rise .6s var(--ease) both; }
.motion .cmds div:nth-child(2) { animation-delay: .06s; }
.motion .cmds div:nth-child(3) { animation-delay: .12s; }
.motion .cmds div:nth-child(4) { animation-delay: .18s; }
.motion .cmds div:nth-child(n+5) { animation-delay: .24s; }

/* ---------- closing ---------- */
.close { position: relative; overflow: hidden; width: var(--wrap); margin: 72px auto 96px; padding: clamp(48px, 8vw, 110px) clamp(28px, 6vw, 90px); border-radius: 40px;
  background: var(--pane), rgb(26 29 33 / .5); border: var(--edge); box-shadow: var(--lip), 0 20px 50px rgb(0 0 0 / .28); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.close h2 { position: relative; font-size: clamp(2.6rem, 6.4vw, 5.8rem); line-height: .98; letter-spacing: -.045em; font-weight: 700; max-width: 11ch; text-wrap: balance; }
.close p { position: relative; margin: 22px 0 36px; color: var(--mute); font-size: 1.2rem; }
.close .btn { position: relative; }
.close__art .solid { width: 460px; right: -70px; top: 50%; margin-top: -230px; }
.close__art .ghost { width: 480px; right: 60px; top: 50%; margin-top: -240px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot__inner { width: var(--wrap); margin-inline: auto; padding: 32px 0 44px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; color: var(--mute); font-size: .95rem; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--blue); }
.foot nav { display: flex; gap: 24px; }

/* ---------- hand-drawn arrows that draw themselves as you reach them ---------- */
main { position: relative; }
.note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; font: 500 .85rem/1.2 'Geist Mono', monospace; color: var(--mute); white-space: nowrap; pointer-events: none; }
.note svg { width: 92px; height: auto; flex: none; overflow: visible; fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.note path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.note.flip svg { transform: scaleX(-1); }
.note--hero { left: 4px; bottom: -92px; transform: rotate(-3deg); flex-direction: row-reverse; }
.note--switch { right: 56px; top: 120px; transform: rotate(-4deg); }
.note--levels { right: 310px; top: 34px; transform: rotate(-3deg); flex-direction: row-reverse; }
.note--how { left: 150px; top: calc(100% + 4px); transform: rotate(-3deg); }
.note--tabs { left: 380px; top: 184px; transform: rotate(2deg); }
.note--close { left: clamp(250px, 24vw, 330px); bottom: clamp(48px, 7vw, 100px); transform: rotate(-4deg); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
.motion .note path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.motion .note > span { opacity: 0; transition: opacity .7s var(--ease) .6s; }
.motion .note.in path { stroke-dashoffset: 0; }
.motion .note.in > span { opacity: 1; }
.motion .note--load path { transition: none; animation: draw 1.2s var(--ease) 2.2s both; }
.motion .note--load > span { opacity: 1; transition: none; animation: fade .7s var(--ease) 2.5s both; }

/* ---------- little shapes drifting in the margins ---------- */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: clip; }
.fl { position: absolute; top: var(--top); width: var(--size); height: var(--size); border-radius: 30%; opacity: .9; transform: translateY(calc(var(--d, 0) * 90px)) rotate(calc(var(--d, 0) * 45deg)); will-change: transform; }
.fl--l { left: clamp(10px, calc((100vw - 1240px) / 4), 150px); }
.fl--r { right: clamp(10px, calc((100vw - 1240px) / 4), 150px); }
.fl--blue { background: var(--blue); } .fl--pink { background: var(--pink); } .fl--gold { background: var(--gold); } .fl--grey { background: #4b525c; }
.fl--round { border-radius: 50%; }
@media (max-width: 1300px) { .floaters { display: none; } }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 32px 0 56px; }
  .hero__demo { justify-self: stretch; width: 100%; max-width: 520px; }
  .hero__art, .note { display: none; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .how { grid-template-columns: 1fr; gap: 32px; }
  .how__head { position: static; }
  .flow { gap: 56px; padding: 0 0 32px; }
  .motion .flow__item { opacity: 1; }
  .cell--switch, .cell--mod, .cell--auto, .cell--levels, .cell--rest { grid-column: 1 / -1; }
  .cell--levels, .cell--rest { flex-direction: column; align-items: stretch; }
  .ladder, .chips { flex: none; width: 100%; justify-content: flex-start; }
  .cmds { grid-template-columns: 1fr; }
  .switches { grid-template-columns: 1fr; }
  .close__art { opacity: .35; }
}
@media (max-width: 520px) {
  .btn--lg { width: 100%; }
  .nav__dash { display: none; }
  .nav__me span { display: none; }
  .nav__me { padding: 4px; }
  .mods { grid-template-columns: 1fr; }
  .cell { padding: 26px; }
  .foot nav { flex-wrap: wrap; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

.commands__all { margin-top: 22px; text-align: center; }
