/* Asciimood home page. */
.wrap, .sec, .hero-copy, .creators, .foot { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 40; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav-wrap.scrolled { background: rgba(9, 9, 11, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav { width: min(1160px, 100% - 32px); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { all: unset; cursor: pointer; font: 600 12px var(--mono); color: var(--muted); padding: 8px 9px; border-radius: 8px; }
.lang:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.lang:focus-visible { outline: 2px solid var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5.5vh, 64px) 0 40px; isolation: isolate; }
.hero::before { /* faint dot grid that fades out */
  content: ""; position: absolute; inset: -64px 0 30%; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%);
}
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 11px; border-radius: 99px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.025); font: 500 13px var(--sans); color: var(--muted); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(240, 162, 74, 0.18); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(240, 162, 74, 0); } }
h1 { margin-top: 22px; font-size: clamp(44px, 6.1vw, 86px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
h1 br { display: none; }
.scramble { white-space: nowrap; }
.hl { background: linear-gradient(95deg, #f7c27a 0%, var(--accent) 38%, var(--accent-hot) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.04em; }
.scramble .gl { color: var(--faint); font-family: var(--mono); font-weight: 400; -webkit-text-fill-color: var(--faint); }
.lead { margin-top: 20px; max-width: 640px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); }
.lead-big { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; color: var(--text, #f3f0e9); letter-spacing: -0.01em; line-height: 1.25; }
.lead-small { margin-top: 8px; font-size: 15px; color: var(--faint); }
.get { margin-top: 28px; width: min(620px, 100%); display: grid; gap: 14px; }
.get-note { font-size: 14px; color: var(--faint); }
.get-note a { color: var(--accent); text-decoration: none; margin-left: 4px; white-space: nowrap; }
.get-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

.stagewrap { position: relative; width: min(1100px, 100% - 32px); margin: clamp(36px, 6vh, 56px) auto 0; }
.ambient { position: absolute; inset: 6% -4% -4%; width: 108%; height: 98%; z-index: -1; filter: blur(60px) saturate(1.8) brightness(1.6); opacity: 0.7; pointer-events: none; transition: opacity 1.2s; }
.stagewrap.off .ambient { opacity: 0.08; }
#hero-tty .mood { height: clamp(260px, 34vw, 420px); }
#hero-tty.off .mood { border-color: transparent; }
.tty-note { font-size: 12.5px; min-height: 1.5em; transition: opacity .4s, transform .4s var(--ease); }
.tty-note.gone { opacity: 0; transform: translateY(-3px); }
.tty-note.err { color: var(--err); }
.tty-note.ok { color: var(--ok); }
@keyframes note-in { from { opacity: 0; transform: translateY(-4px); } }
#hero-tty.off .mood-label { opacity: 0; }
.compare { width: min(1240px, 100% - 32px); }
.compare-video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 726; border-radius: 18px; border: 1px solid var(--line); background: #0f1013; box-shadow: 0 40px 90px -40px #000; }
.stage-hint { margin-top: 18px; text-align: center; font-size: 13px; color: var(--faint); }
.hint-key { color: var(--accent); margin-right: 4px; }

/* ---------- sections ---------- */
.sec { padding: clamp(84px, 12vh, 128px) 0 0; }
.sec-head { max-width: 720px; }
.kicker { font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h2 { margin-top: 16px; font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.045em; line-height: 1.02; }
.sec-sub { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 600px; }

/* ---------- how: scroll story ---------- */
.how { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.how-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.rail { position: absolute; left: 16px; width: 2px; border-radius: 2px; background: var(--line); }
.rail i { position: absolute; inset: 0; border-radius: 2px; clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0); box-shadow: 0 0 12px rgba(255,255,255,0.15); }
.how-ic { position: relative; z-index: 1; }
.how-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; min-height: 36vh; padding: 22px 0 0; opacity: 0.32; transition: opacity .5s var(--ease); }
.how-steps li:last-child { min-height: 40vh; }
.how-steps li.on { opacity: 1; }
.how-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 600 15px var(--mono); border: 1px solid var(--line-strong); color: var(--c, var(--muted)); background: var(--bg); transition: box-shadow .5s, border-color .5s; }
.how-steps li.on .how-ic { border-color: var(--c); box-shadow: 0 0 24px -4px var(--c); }
.how-steps h3 { font-size: 26px; letter-spacing: -0.03em; line-height: 34px; }
.how-steps p { margin-top: 8px; color: var(--muted); font-size: 16.5px; }
.how-steps .how-def { margin-top: 12px; font: 12.5px var(--mono); color: var(--faint); }
.how-def b { color: var(--ink); font-weight: 500; }
.how-stage { position: relative; }
.how-stage .tty { position: sticky; top: calc(50vh - 210px); }
#how-tty .mood { height: 340px; margin-top: 8px; }

.never { margin-top: 64px; padding: 28px clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.never h3 { font-size: 20px; letter-spacing: -0.02em; }
.never ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.never li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.nv-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 600 12px var(--mono); background: var(--panel-2); border: 1px solid var(--line); }
.nv-ic.err { color: var(--err); } .nv-ic.ask { color: #93c5fd; } .nv-ic.ok { color: var(--ok); }
.never > p { grid-column: 1 / -1; color: var(--faint); font-size: 14px; }

/* ---------- moods ---------- */
.moods { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mood-card { all: unset; box-sizing: border-box; cursor: pointer; position: relative; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.mood-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mood-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mood-card[aria-checked="true"] { border-color: rgba(240, 162, 74, 0.7); box-shadow: 0 0 0 1px rgba(240, 162, 74, 0.7), 0 30px 60px -30px rgba(240, 162, 74, 0.35); }
.mood-card canvas { display: block; width: 100%; aspect-ratio: 16 / 8.2; background: #0a0a0d; }
.mood-card .mc-txt { padding: 14px 16px 16px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.mood-card b { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; }
.mood-card .mc-sub { font-size: 13.5px; color: var(--muted); }
.mood-card .mc-name { font-style: normal; }
.mood-card .tick { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 11px; color: transparent; transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--spring); }
.mood-card[aria-checked="true"] .tick { background: var(--accent); border-color: var(--accent); color: #1a1206; transform: scale(1.08); }

.mixer { margin-top: 26px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 16px; }
.mixer-head { font-size: 14px; color: var(--faint); padding-left: 2px; }
.mixer-head b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.strip li { min-width: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #0a0a0d; transition: border-color .3s; }
.strip canvas { display: block; width: 100%; aspect-ratio: 16 / 10; }
.strip .sp { padding: 7px 9px 8px; display: grid; gap: 1px; border-top: 1px solid var(--line); background: var(--panel); }
.strip .sp i { font: normal 500 11px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .sp b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip.one { grid-template-columns: minmax(0, 300px); }
.strip[hidden] { display: none; }
.cmdbar-setup .cmd-prompt { align-self: flex-start; padding-top: 6px; }
.cmdbar-setup .cmd-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.55; font-size: 13px; color: var(--muted); }
.cmdbar-setup .cmd-text .k { color: var(--ink); }
.mixer-note { font-size: 13.5px; color: var(--faint); padding-left: 2px; margin: 0; line-height: 1.5; }
.mixer-go { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mixer-go .btn { flex: none; }
.mixer-go .mixer-note { flex: 1 1 260px; }

.lab-card { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 32px); border-radius: 20px; border: 1px solid var(--line); text-decoration: none; background: radial-gradient(ellipse 60% 90% at 0% 50%, rgba(240, 162, 74, 0.08), transparent 70%), var(--bg-2); transition: border-color .3s, transform .4s var(--ease); }
.lab-card:hover { border-color: var(--line-strong); }
.lab-card:hover .lab-go { gap: 12px; color: var(--ink); }
.lab-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lab-mosaic canvas { width: 100%; aspect-ratio: 1.4; display: block; border-radius: 7px; background: #0a0a0d; border: 1px solid var(--line); }
.lab-card:hover .lab-mosaic canvas { border-color: var(--line-strong); }
.lab-art { height: 220px; overflow: hidden; font-size: 10px; line-height: 1.15; border-radius: 12px; border: 1px solid var(--line); background: #0a0a0d; padding: 10px; display: flex; align-items: center; justify-content: center; background-clip: padding-box; }
.lab-art span { background: linear-gradient(135deg, #f7c27a, #f2733a 60%, #e0559a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lab-card h3 { margin-top: 12px; font-size: clamp(26px, 3vw, 34px); }
.lab-card p:not(.kicker) { margin-top: 12px; color: var(--muted); font-size: 16.5px; max-width: 460px; }
.lab-go { margin-top: 20px; display: inline-flex; gap: 8px; font-weight: 600; color: var(--accent); transition: gap .3s var(--ease), color .3s; }

/* ---------- install ---------- */
.install { margin-top: 44px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); padding: clamp(18px, 3vw, 32px); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #0a0a0d; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 9px; font: 500 14px var(--sans); color: var(--muted); transition: color .2s, background-color .25s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.tabs button:focus-visible { outline: 2px solid var(--accent); }
.isteps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.isteps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: start; }
.isteps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(240, 162, 74, 0.3); }
.isteps p { padding-top: 3px; font-size: 16.5px; }
.isteps li > div { display: grid; gap: 12px; min-width: 0; }
.isteps .cmdbar { max-width: 640px; }
kbd { font-size: 13px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--panel-2); }
.isteps p code, .faq code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--accent); }

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 22px var(--mono); color: var(--faint); transition: transform .3s var(--ease), color .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 720px; }
.faq a { color: var(--accent); }

/* ---------- creators ---------- */
.creators { margin-top: clamp(96px, 14vh, 150px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.cr-art { font-size: 11px; line-height: 1.15; height: 200px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cr-art span { background: linear-gradient(160deg, #f7c27a, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.creators h2 { margin-top: 0; font-size: clamp(28px, 3.4vw, 40px); }
.creators p { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 480px; }
.creators .btn { margin-top: 24px; }

/* ---------- footer ---------- */
.foot { margin-top: 88px; padding: 28px 0 40px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--ink); }
.foot-small { font-size: 13px; color: var(--faint); }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lab-card, .creators { grid-template-columns: 1fr; }
  .never { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .how { grid-template-columns: 1fr; gap: 0; }
  .how-stage { order: -1; position: sticky; top: 64px; z-index: 5; padding: 10px 0 14px; background: linear-gradient(var(--bg) 82%, transparent); }
  .how-stage .tty { position: static; }
  #how-tty .mood { height: 30vh; min-height: 170px; }
  .how-steps li { min-height: 38vh; }
  .how-steps li:last-child { min-height: 30vh; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav-tools .btn { padding: 8px 11px; font-size: 13px; }
  h1 { font-size: clamp(40px, 12.4vw, 60px); }
  h1 br { display: inline; }
  .scramble { white-space: normal; }
  .get .cmdbar { padding-left: 12px; }
  .get .cmd-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
  .strip li { flex: 0 0 132px; scroll-snap-align: start; }
  .cr-art { height: 150px; }
  #how-tty .tty-bar { display: none; }
  .cmd-text { font-size: 12.5px; }
  .btn-copy { min-width: 0; padding: 10px 12px; }
  .stagewrap { width: calc(100% - 20px); }
  .tty-body { padding: 12px 10px 10px; font-size: 11.5px; }
  #hero-tty .mood { height: 300px; }
  .tty-bar { gap: 8px; }
  .tty-title { display: none; }
  .switch { margin-left: auto; }
  .moods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mood-card .mc-txt { padding: 10px 12px 12px; }
  .mood-card .mc-sub { display: none; }
  .mood-card b { font-size: 14px; }
  .how-steps h3 { font-size: 22px; }
  .tabs { display: flex; }
  .tabs button { flex: 1; text-align: center; padding: 8px 6px; font-size: 13px; }
  .isteps li { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
  .isteps .n { width: 26px; height: 26px; }
}

/* conversion: what to do after copying, why to trust it, and Pro */
.get-next { font-size: 14px; color: var(--text, #f3f0e9); background: rgba(95, 211, 138, 0.08); border: 1px solid rgba(95, 211, 138, 0.3); border-radius: 10px; padding: 10px 14px; }
.get-next kbd, .get-next code { font: 12px var(--mono); padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 5px; }
.trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; color: var(--faint); }
.trust li::before { content: "✓ "; color: #86efac; }
.pro-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(24px, 4vw, 44px); border-radius: 22px; border: 1px solid rgba(245, 197, 66, 0.35); background: radial-gradient(ellipse 60% 120% at 100% 50%, rgba(245, 197, 66, 0.1), transparent 70%), var(--bg-2); }
.pro-box > div { max-width: 640px; min-width: 0; }
.pro-box h2 span { color: #f5c542; }
.pro-box .star { color: #f5c542; }

.pov-box { margin-top: 28px; max-width: 760px; min-height: 120px; padding: clamp(20px, 3vw, 32px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--bg-2); transition: border-color 0.3s; }
.pov-box.go { border-color: var(--accent); }
.pov-prompt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 clamp(16px, 2.2vw, 20px) var(--mono); word-break: break-word; }
.pov-caret { display: inline-block; width: 0.6ch; height: 1.1em; margin-left: 2px; background: var(--accent); animation: pov-blink 1s steps(1) infinite; }
@keyframes pov-blink { 50% { opacity: 0; } }
.pov-state { margin-top: 18px; min-height: 1.6em; font: 600 14px var(--mono); color: var(--accent); }
.pov-hint { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
