/* Home page: near-black ground, white type, one lavender accent. Dark only. */
html:root:has(.home) { color-scheme: dark; }
:root:has(.home) [data-theme-toggle] { display: none; }
body.site {
    --accent: #c5c5fc;
    --accent-strong: #d7d5ff;
    --blue: #c5c5fc;
    --blue-hover: #d7d5ff;
    --ok: #2dd4bf;
    --bg: #07080c;
    --surface: #0f1118;
    --surface-2: #151822;
    --hair: rgb(255 255 255 / .08);
    --home-font: "Inter", "Poppins", system-ui, sans-serif;
}
body.site .btn-primary { color: #12141d; }

.site-nav + main.home { padding-top: 0; }
.home { overflow: clip; font-family: var(--home-font); }
.home h1, .home h2, .home h3 { font-family: var(--home-font); text-wrap: balance; }
.home figure { margin: 0; }
.home .tag { display: block; margin-bottom: 18px; color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.more-link { display: inline-block; margin-top: 18px; color: var(--accent); font-size: 14px; font-weight: 500; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dot { display: inline-block; margin-right: 10px; vertical-align: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* hero: centred, with slow diagonal light beams behind the headline */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 170px 150px; text-align: center; background: #07080c; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(transparent 60%, var(--bg)), radial-gradient(40% 28% at 50% 42%, rgb(7 8 12 / .5), transparent 100%); }
.aurora-still, .aurora { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.aurora-still { background: radial-gradient(55% 60% at 30% 28%, rgb(79 70 229 / .55), transparent 70%), radial-gradient(45% 50% at 72% 20%, rgb(197 197 252 / .30), transparent 70%), radial-gradient(40% 45% at 55% 55%, rgb(45 212 191 / .20), transparent 70%); }
.aurora { opacity: 0; transition: opacity 1.2s ease; }
.aurora.is-on { opacity: 1; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero h1 { max-width: 14ch; margin: 0 auto; font-size: clamp(42px, 7vw, 88px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; text-shadow: 0 2px 40px #07080c, 0 0 12px #07080c; }
.hero p { text-shadow: 0 2px 24px #07080c, 0 0 10px #07080c; max-width: 50ch; margin: 26px auto 34px; color: #b6b9c8; font-size: 18px; line-height: 1.55; }
.hero .actions { justify-content: center; }
.hero .live { display: block; text-align: center; max-width: none; margin: 32px 0 0; color: var(--muted); font: 400 13px/1.4 var(--mono); }

/* product stage: glowing glass frame, tab dock underneath */
.stage { position: relative; margin-top: -40px; padding-bottom: 24px; }
.glass { position: relative; padding: 10px; border-radius: 20px; background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(255 255 255 / .02)); box-shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 50px 140px -30px rgb(124 124 240 / .38), 0 0 120px rgb(124 124 240 / .12); }
.glass::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: linear-gradient(180deg, rgb(197 197 252 / .55), transparent 40%, transparent 70%, rgb(45 212 191 / .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.glass-shot { overflow: hidden; border-radius: 12px; background: var(--surface); }
.glass-shot img { display: block; width: 100%; height: auto; }
.dock { display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: -26px auto 0; padding: 8px; position: relative; overflow-x: auto; border-radius: 18px; background: rgb(24 26 38 / .85); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 20px 50px rgb(0 0 0 / .5); }
.dock button { display: grid; justify-items: center; gap: 4px; min-width: 76px; padding: 10px 12px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 500 11px/1.2 var(--home-font); cursor: pointer; transition: background-color .2s, color .2s; }
.dock button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock button:hover { color: #fff; }
.dock button[aria-selected="true"] { background: rgb(197 197 252 / .14); color: var(--accent); box-shadow: inset 0 0 0 1px rgb(197 197 252 / .3), 0 0 24px rgb(197 197 252 / .15); }
.stage-cap { max-width: 44ch; margin: 28px auto 0; font-size: 15px; line-height: 1.5; text-align: center; }
.stage-cap b { font-weight: 600; }
.stage-cap span { color: var(--muted); }

/* manifesto + keycap tiles */
.manifesto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; padding-block: 140px 96px; }
.manifesto p { max-width: 14em; margin: 0 0 28px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; line-height: 1.18; letter-spacing: -.03em; }
.manifesto p span { color: var(--muted); font-weight: 500; }
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.keys li { position: relative; display: grid; align-content: space-between; gap: 22px; min-height: 104px; padding: 14px; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset 0 -10px 20px rgb(0 0 0 / .25), 0 6px 14px rgb(0 0 0 / .3); font-size: 13px; font-weight: 500; transition: translate .2s, box-shadow .2s, opacity .6s, transform .6s; }
.keys li:hover { translate: 0 2px; box-shadow: inset 0 0 0 1px rgb(197 197 252 / .35), inset 0 -4px 10px rgb(0 0 0 / .25); }
.keys li:hover::before { opacity: 1; }
.keys svg { position: relative; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.keys span { position: relative; }

/* three columns split by hairlines */
/* command showcase: one big glass frame, tabs underneath */
.showcase { position: relative; padding-bottom: 24px; }
.cmd-shot { min-height: 520px; padding: 40px 28px 64px; background: radial-gradient(70% 80% at 50% 0%, rgb(124 124 240 / .22), transparent 70%), linear-gradient(180deg, #11131b, #0a0b11); }
.cmd-panel { max-width: 980px; margin: 0 auto; animation: panelIn .5s cubic-bezier(.2, .7, .2, 1) both; }
.cmd-intro { max-width: 60ch; margin: 0 auto 28px; color: var(--muted); font-size: 16px; line-height: 1.6; text-align: center; }
.cmd-groups { display: grid; gap: 18px; align-items: start; }
.cmd-groups.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmd-groups.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmd-groups.g1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.cmd-group { padding: 8px; border-radius: 14px; background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .015)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.cmd-group h3 { margin: 6px 10px 6px; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.cmd-group ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cmd-group li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 9px; transition: background-color .2s; }
.cmd-group li:hover { background: rgb(197 197 252 / .08); }
.cmd-group code { justify-self: start; padding: 0; background: none; color: var(--accent); font: 500 14px/1.3 var(--mono); }
.cmd-group span { color: #b6b9c8; font-size: 13.5px; line-height: 1.45; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* feature rows: text left, capture right, always the same way round */
.rows { padding-block: 96px 40px; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; padding-block: 72px; border-top: 1px solid var(--hair); }
.row h2 { max-width: 16ch; margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.row p { max-width: 44ch; margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row:nth-child(even) .row-shot, .row:nth-child(even) .row-stack { order: -1; }
.row-shot { overflow: hidden; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.row-shot img { display: block; width: 100%; height: auto; }
.row-shot.is-card { padding: 20px; }
.row-shot.is-card img { border-radius: 3.2% / 10.7%; }
.row-shot.is-cmd { max-width: 520px; justify-self: start; }
.events { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.events li { padding: 4px 10px; border: 1px solid var(--hair); border-radius: 999px; color: var(--muted); font-size: 12px; }

/* command captures: the real Discord message floats on a soft lavender glow, like a product shot */
.tile { position: relative; display: flex; flex-direction: column; justify-content: safe center; margin: 0; padding: 22px; overflow: hidden; border-radius: 16px; background: radial-gradient(80% 70% at 50% 0%, rgb(124 124 240 / .20), transparent 70%), linear-gradient(180deg, #11131b, #0a0b11); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 24px 60px -30px rgb(0 0 0 / .9); transition: translate .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.tile::before, .keys li::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -30%), rgb(197 197 252 / .18), transparent 70%); opacity: 0; transition: opacity .3s; }
.tile:hover { translate: 0 -5px; box-shadow: inset 0 0 0 1px rgb(197 197 252 / .4), 0 30px 70px -26px rgb(124 124 240 / .4); }
.tile:hover::before { opacity: 1; }
.tile img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 44px -12px rgb(0 0 0 / .75), 0 0 0 1px rgb(255 255 255 / .07); }
.tile.is-crop::after { content: ""; position: absolute; inset: auto 0 0; height: 100px; pointer-events: none; background: linear-gradient(transparent, #0a0b11 85%); border-radius: 0 0 16px 16px; }
.row-stack { display: grid; gap: 16px; }

.gallery { padding-block: 96px 80px; border-top: 1px solid var(--hair); }
.gallery h2 { max-width: 20ch; margin: 0 0 40px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }

.how { padding-block: 96px 40px; border-top: 1px solid var(--hair); }
.how h2, .closing h2 { margin: 0 0 40px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.how li { padding-right: 32px; }
.how li + li { padding-left: 32px; border-left: 1px solid var(--hair); }
.how h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.how p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.closing { padding-block: 120px 128px; }
.closing h2 { max-width: 16ch; margin-bottom: 16px; }
.closing p { max-width: 44ch; margin: 0 0 32px; color: var(--muted); font-size: 17px; }

/* reveal both ways: .is-in is added when an element scrolls into view and removed when it leaves, so scrolling back up plays it in reverse */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0) scale(.98); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), translate .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s; }
.js [data-reveal="left"] { transform: translate3d(-70px, 20px, 0) scale(.97) rotate(-1.2deg); }
.js [data-reveal="right"] { transform: translate3d(70px, 20px, 0) scale(.97) rotate(1.2deg); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .row[data-reveal] { opacity: 1; transform: none; }
.js .row .row-text, .js .row .row-shot, .js .row .row-stack { opacity: 0; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .row:nth-child(odd) .row-text { transform: translate3d(-60px, 0, 0); }
.js .row:nth-child(odd) .row-shot, .js .row:nth-child(odd) .row-stack { transform: translate3d(70px, 0, 0) scale(.96); transition-delay: .12s; }
.js .row:nth-child(even) .row-text { transform: translate3d(60px, 0, 0); }
.js .row:nth-child(even) .row-shot, .js .row:nth-child(even) .row-stack { transform: translate3d(-70px, 0, 0) scale(.96); transition-delay: .12s; }
.js .row.is-in .row-text, .js .row.is-in .row-shot, .js .row.is-in .row-stack { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal], .js .row .row-text, .js .row .row-shot, .js .row .row-stack { opacity: 1 !important; transform: none !important; transition: none; } }

@media (max-width: 880px) {
    .manifesto { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 80px 56px; }
    .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero { padding-block: 128px 96px; }
    .cmd-shot { min-height: 0; padding: 24px 12px 48px; }
    .cmd-groups.g2, .cmd-groups.g3, .cmd-groups.g1 { grid-template-columns: minmax(0, 1fr); }
    .rows { padding-block-start: 56px; }
    .row, .row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px; }
    .row:nth-child(even) .row-shot, .row:nth-child(even) .row-stack { order: 0; }
    .js .row .row-text, .js .row .row-shot, .js .row .row-stack { transform: translate3d(0, 28px, 0) !important; }
    .js .row.is-in .row-text, .js .row.is-in .row-shot, .js .row.is-in .row-stack { transform: none !important; }
    .how ol { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .how li, .how li + li { padding: 0; border-left: 0; }
    .closing { padding-block: 72px 80px; }
}
@media (max-width: 560px) {
    .hero p { font-size: 16px; }
    .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dock button { min-width: 64px; padding-inline: 8px; }
    .actions .btn { flex: 1 1 100%; }
    .site-wrap { padding-inline: 20px; }
}
