/* Landing page /welcome (issue #118). Tokens, type scale and breakpoints follow
   the design plan in docs/landing/chatgpt-design-plan.txt; colours match the app
   (web/style.css). Light mode only swaps the tokens; the 3D hero keeps its own
   dark stage so the brand look stays the same. */
:root {
  color-scheme: dark;
  --bg: #050814;
  --surface: #0a1024;
  --card: #0e1630;
  --card-hover: #142043;
  --border: #1f2c57;
  --blue: #2f7bff;
  --violet: #7a3cff;
  --cyan: #26c6f9;
  --text: #eef1fb;
  --muted: #93a0c4;
  --faint: #5d6a91;
  --header-bg: rgba(5, 8, 20, .72);
  --content-width: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-space: 112px;
  --radius-card: 20px;
  --radius-button: 12px;
  --shadow-card: 0 18px 55px rgba(0, 0, 0, .24);
  --shadow-glow: 0 0 36px rgba(47, 123, 255, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f3f8;
  --surface: #e9ebf8;
  --card: #ffffff;
  --card-hover: #f2f3fb;
  --border: #d5d8ea;
  --text: #1c2033;
  --muted: #5b6280;
  --faint: #8088a3;
  --blue: #5845d6;
  --violet: #8267f3;
  --cyan: #17788a;
  --header-bg: rgba(241, 243, 248, .8);
  --shadow-card: 0 14px 40px rgba(28, 32, 51, .08);
  --shadow-glow: 0 0 30px rgba(88, 69, 214, .1);
}
@media (max-width: 1023px) { :root { --section-space: 80px; } }
@media (max-width: 767px) { :root { --section-space: 64px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0 0 14px; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.07; font-weight: 750; }
h2 { font-size: clamp(29px, 3.4vw, 46px); line-height: 1.15; font-weight: 700; }
h3, .h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.hint { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
.center .lead, .section-head .lead { margin-left: auto; margin-right: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--content-width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-button);
  font-size: 15.5px; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease-out), box-shadow .2s, background .2s;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 8px 26px rgba(47, 123, 255, .28); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
@media (max-width: 767px) { .btn { min-height: 52px; } .btn-sm { min-height: 44px; } }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.header-row { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-ring svg { width: 30px; height: 30px; stroke: var(--cyan); stroke-width: 5; filter: drop-shadow(0 0 6px rgba(38, 198, 249, .55)); }
.logo-word { font-family: Arial, Helvetica, sans-serif; font-size: 22px; font-weight: 300; letter-spacing: .02em; }
.logo-word b { font-weight: 700; }
.main-nav { display: flex; gap: 26px; margin: 0 auto; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 550; }
.main-nav a:hover { color: var(--text); }
.nav-login-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.lang { -webkit-appearance: none; appearance: none; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2393a0c4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--text); padding: 0 28px 0 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lang:hover { background-color: var(--card-hover); }
.lang option { background: var(--card); color: var(--text); }
/* Own language menu (landing.js); the native list would be grey on macOS. */
.lang-menu { position: relative; }
.lang-menu .lang[aria-expanded="true"] { background-color: var(--card-hover); }
.lang-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 100%; margin: 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-card); }
.lang-pop[hidden] { display: none; }
.lang-pop li { padding: 8px 12px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; outline: none; }
.lang-pop li:hover, .lang-pop li:focus { background: var(--card-hover); }
.lang-pop li[aria-selected="true"] { color: var(--cyan); }
.show-sm { display: none; }
@media (max-width: 1023px) {
  .header-row { height: 72px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
  .nav-login-mobile { display: block; }
  .show-sm { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 767px) { .header-row { height: 64px; gap: 10px; } .hide-sm { display: none; } }

/* ---- hero ---- */
.hero { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0 0 0 30%; z-index: -1; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 20, 0) 32%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 20, 0) 22%); z-index: 2; pointer-events: none; }
/* light mode: the 3D stage becomes its own dark panel on the right, never behind the text */
:root[data-theme="light"] .hero-art { inset: 28px 0 28px 50%; background: #050814; border-radius: 32px 0 0 32px; overflow: hidden; box-shadow: var(--shadow-card); }
:root[data-theme="light"] .hero-art::before { display: none; }
@media (min-width: 1024px) { :root[data-theme="light"] .hero-copy { max-width: 540px; } }
.hero-still, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-canvas { opacity: 0; transition: opacity .7s var(--ease-out); }
.hero.has-3d .hero-canvas { opacity: 1; }
.hero.has-3d .hero-still { opacity: 0; transition: opacity .7s .2s; }
.hero-grid { padding-top: 72px; padding-bottom: 80px; }
.hero-copy { max-width: 590px; }
.hero-copy h1 { text-wrap: balance; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.cta-row.center { justify-content: center; }
/* pilot phase note in the hero (13.11.2026) - remove once OnJam is open to everybody */
.pilot-note { margin: 22px 0 22px; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; color: var(--text); background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent); }
.pilot-tag { display: inline-block; margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.badges { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text); background: rgba(14, 22, 48, .55); border: 1px solid rgba(38, 198, 249, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
:root[data-theme="light"] .badges li { background: rgba(255, 255, 255, .7); }
.badges svg { width: 18px; height: 18px; color: var(--cyan); }
.hero-mobile-art { display: none; }
/* tablet: text first, the 3D stage below it (no overlap) */
@media (max-width: 1023px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-grid { order: 1; padding-bottom: 0; }
  .hero-copy { max-width: 640px; }
  .hero-art, :root[data-theme="light"] .hero-art { order: 2; position: relative; inset: auto; height: 460px; margin: 8px 0 24px; border-radius: 0; box-shadow: none; }
  .hero-art::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 8, 20, 0) 18%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 20, 0) 18%); }
  :root[data-theme="light"] .hero-art::before { display: block; background: linear-gradient(180deg, var(--bg) 0%, rgba(241, 243, 248, 0) 14%), linear-gradient(0deg, var(--bg) 0%, rgba(241, 243, 248, 0) 14%); }
}
@media (max-width: 767px) {
  .hero { min-height: 0; display: block; }
  .hero-art { display: none; }
  .hero-grid { padding-top: 40px; padding-bottom: 24px; }
  .hero-mobile-art { display: block; margin: 28px calc(-1 * var(--gutter)) 0; width: calc(100% + 2 * var(--gutter)); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; object-position: 78% 50%; mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 80%, transparent 100%); }
}

/* ---- sections, cards ---- */
.section { padding: var(--section-space) 0; position: relative; }
.section-tight { padding: calc(var(--section-space) * .5) 0; }
.section-alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent) 18%, color-mix(in srgb, var(--surface) 70%, transparent) 82%, transparent); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-card); transition: background .25s, border-color .25s; }
.card:hover { background: var(--card-hover); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; color: var(--cyan); background: linear-gradient(145deg, rgba(47, 123, 255, .18), rgba(122, 60, 255, .1)); border: 1px solid rgba(38, 198, 249, .22); box-shadow: var(--shadow-glow); }
.ico svg { width: 24px; height: 24px; }
.ico.rec { color: #ff5b7a; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.note { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 32px auto 0; padding: 18px 22px; border-radius: 16px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px dashed var(--border); color: var(--muted); }
.note svg { color: var(--cyan); margin-top: 3px; }
.note b { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--cyan); background: rgba(38, 198, 249, .08); border: 1px solid rgba(38, 198, 249, .28); margin-bottom: 18px; }
.pill svg { width: 17px; height: 17px; }

/* what: three pillars joined by a glowing line */
.pillars { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: center; }
.pillar { height: 100%; }
.pillar-link { height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px var(--cyan); opacity: .7; }
@media (max-width: 1023px) {
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar-link { width: 2px; height: 28px; margin: 0 auto; background: linear-gradient(180deg, var(--blue), var(--cyan)); }
}

/* how: 3x2 numbered steps */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* sessions: four cards (horizontal scroll on phones) + four small items */
.scroller { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.mini { display: flex; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--border); }
.mini svg { color: var(--cyan); margin-top: 3px; }
.mini h3 { font-size: 16.5px; margin-bottom: 6px; }
.mini p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 1023px) { .scroller, .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller .session-card { flex: 0 0 82%; scroll-snap-align: start; }
  .mini-grid { grid-template-columns: 1fr; }
}

/* two-column layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { grid-template-columns: 1.15fr 1fr; align-items: start; }
@media (max-width: 1023px) { .split, .split-media { grid-template-columns: 1fr; } }
.media { margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card), 0 0 60px rgba(47, 123, 255, .14); }
.media img { width: 100%; }
.feature-list { display: grid; gap: 22px; }
.feature { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.feature-list .feature, .grid-2 .feature { margin-bottom: 0; }
.feature > svg { width: 24px; height: 24px; color: var(--cyan); margin-top: 3px; }
.feature h3 { font-size: 18.5px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin-bottom: 6px; }

/* ---- illustrations built in HTML/CSS (texts stay translatable) ---- */
.metro-art { position: relative; aspect-ratio: 5 / 4; border-radius: 24px; display: grid; place-items: center; align-content: center; gap: 14px; background: radial-gradient(circle at 50% 40%, rgba(122, 60, 255, .22), transparent 60%), var(--card); border: 1px solid var(--border); }
.metro-icon { width: 120px; height: 120px; stroke-width: 1.1; color: var(--cyan); filter: drop-shadow(0 0 14px rgba(38, 198, 249, .5)); }
.metro-dots { display: flex; gap: 14px; }
.metro-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--border); }
.metro-dots i.on { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.metro-bpm { font-size: 46px; font-weight: 750; letter-spacing: -.02em; }
.metro-bpm small { font-size: 16px; color: var(--muted); font-weight: 600; }
.metro-meter { font-size: 15px; color: var(--muted); padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; }
.motion .metro-dots i { animation: beat 2s steps(1) infinite; }
.motion .metro-dots i:nth-child(1) { animation-delay: 0s; }
.motion .metro-dots i:nth-child(2) { animation-delay: .5s; }
.motion .metro-dots i:nth-child(3) { animation-delay: 1s; }
.motion .metro-dots i:nth-child(4) { animation-delay: 1.5s; }
@keyframes beat { 0% { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); } 25%, 100% { background: var(--border); box-shadow: none; } }

.player { display: grid; gap: 18px; }
.player-now { display: flex; align-items: center; gap: 14px; }
.cover { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--violet)); flex: none; }
.cover.c2 { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.cover.c3 { background: linear-gradient(135deg, var(--violet), #ff5b7a); }
.lines { display: grid; gap: 8px; flex: 1; }
.lines i, .player-list i, .bubble i { display: block; height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.lines i.short, .bubble i.short { width: 55%; }
.player-play { width: 46px; height: 46px; color: var(--cyan); }
.player-wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.player-wave i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--blue)); height: 30%; }
.player-wave i:nth-child(3n) { height: 70%; } .player-wave i:nth-child(4n) { height: 50%; } .player-wave i:nth-child(5n) { height: 90%; } .player-wave i:nth-child(7n) { height: 40%; }
.player-wave i:nth-child(n+14) { background: var(--border); }
.player-bar { height: 4px; border-radius: 2px; background: var(--border); }
.player-bar span { display: block; width: 54%; height: 100%; border-radius: 2px; background: var(--cyan); }
.player-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.player-list li { display: flex; align-items: center; gap: 12px; }
.player-list .cover { width: 36px; height: 36px; border-radius: 9px; }
.player-list i { flex: 1; }

.songcard { display: grid; gap: 10px; }
.songcard-head { display: flex; gap: 8px; margin-bottom: 6px; }
.chip, .chips span { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(47, 123, 255, .12); color: var(--text); border: 1px solid var(--border); }
.songcard-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); }
.songcard-row.active { border-color: var(--cyan); background: rgba(38, 198, 249, .08); box-shadow: 0 0 20px rgba(38, 198, 249, .12); }
.part { font-weight: 650; }
.chords { font-family: ui-monospace, Menlo, monospace; color: var(--muted); }

.audience-art { display: grid; gap: 22px; padding: 30px; }
.stage-mini { display: flex; justify-content: center; gap: 18px; padding: 26px 0 30px; border-radius: 16px; background: radial-gradient(ellipse at 50% 100%, rgba(122, 60, 255, .35), transparent 70%); border-bottom: 2px solid var(--violet); }
.stage-mini .m { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--cyan); }
.stage-mini svg { width: 30px; height: 30px; }
.listeners { display: flex; justify-content: center; gap: 16px; color: var(--muted); }
.bubbles { display: grid; gap: 8px; }
.bubbles span { height: 12px; width: 60%; border-radius: 6px; background: color-mix(in srgb, var(--muted) 30%, transparent); }
.bubbles span.r { justify-self: end; width: 45%; background: rgba(38, 198, 249, .3); }

.video-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); }
.tile { aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgba(38, 198, 249, .4); color: var(--muted); background: linear-gradient(160deg, #111c40, #0a1024); }
:root[data-theme="light"] .tile { background: linear-gradient(160deg, #e9ebf8, #ffffff); }
.tile svg { width: 34px; height: 34px; }
.tile.t2 { border-color: var(--violet); box-shadow: 0 0 18px rgba(122, 60, 255, .25); }
.video-wave { grid-column: 1 / -1; height: 26px; border-radius: 13px; background: repeating-linear-gradient(90deg, var(--cyan) 0 3px, transparent 3px 8px); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); opacity: .55; }

.keys-art { display: grid; gap: 18px; padding: 26px; border-radius: 24px; background: radial-gradient(ellipse at 50% 0%, rgba(47, 123, 255, .25), transparent 70%), var(--card); border: 1px solid var(--border); }
.sound-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sound-chips span { padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--border); }
.sound-chips span:first-child { color: var(--text); border-color: var(--cyan); background: rgba(38, 198, 249, .1); }
.keys { display: flex; height: 150px; position: relative; }
.keys i { flex: 1; background: #eef1fb; border: 1px solid #b9c1dc; border-radius: 0 0 6px 6px; }
.keys i.b { flex: 0 0 0; width: 0; position: relative; border: 0; z-index: 1; }
.keys i.b::after { content: ""; position: absolute; left: -11px; top: 0; width: 22px; height: 92px; background: #090e1b; border-radius: 0 0 4px 4px; }
.keys i:nth-child(5) { background: linear-gradient(180deg, #eef1fb 40%, var(--cyan)); }

.strip { display: flex; gap: 22px; align-items: flex-start; }
.strip .ico { flex: none; margin: 0; }
.strip .h3 { margin-bottom: 8px; }

.teacher-cards { display: grid; gap: 16px; }
.tcard { display: flex; align-items: center; gap: 16px; padding: 20px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.avatar.a2 { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.stars { display: flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.stars .dim { color: var(--border); }

.chat-art { display: grid; gap: 14px; }
.msg { display: flex; align-items: flex-end; gap: 10px; }
.msg .avatar { width: 34px; height: 34px; }
.msg.me { justify-content: flex-end; }
.bubble { display: grid; gap: 7px; min-width: 46%; padding: 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--border); }
.msg.me .bubble { border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, rgba(47, 123, 255, .35), rgba(122, 60, 255, .3)); }

.bot-art { display: grid; place-items: center; padding: 30px; border-radius: 24px; background: radial-gradient(circle at 50% 45%, rgba(38, 198, 249, .22), transparent 62%); }
.bot-art img { width: min(320px, 80%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.motion .bot-art img { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.box-art { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(47, 123, 255, .2), transparent 65%), var(--card); border: 1px dashed var(--border); }
.concept-tag { position: absolute; top: 16px; left: 16px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); }
.box-device { position: relative; width: 64%; aspect-ratio: 3 / 1; border-radius: 18px; background: linear-gradient(180deg, #1a2550, #0b1229); border: 1px solid #2a3a70; box-shadow: 0 30px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); display: flex; align-items: center; gap: 7%; padding: 0 8%; }
.jack { width: 13%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #050814 35%, #3a4a80 37%, #1a2550 60%); }
.knob { width: 11%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4a5a90, #151f45); }
.ring { margin-left: auto; width: 16%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--cyan); box-shadow: 0 0 18px var(--cyan), inset 0 0 10px rgba(38, 198, 249, .5); }

.req h3 { font-size: 18.5px; }
.os { display: flex; flex-direction: column; }
.os .btn { margin-top: auto; align-self: flex-start; }
.os p:not(.chips) { margin-bottom: 20px; }
.chips { margin-bottom: 10px !important; }
#downloads .center.hint { margin-top: 22px; }

.latency-art { display: flex; align-items: center; justify-content: center; gap: 0; padding: 50px 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); }
.latency-art .node { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--surface); border: 1px solid var(--border); color: var(--cyan); }
.latency-art .node.hub { width: 84px; height: 84px; border: 2px solid var(--cyan); box-shadow: 0 0 26px rgba(38, 198, 249, .35); }
.latency-art .node svg { width: 28px; height: 28px; }
.latency-art .path { position: relative; flex: 1; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); overflow: hidden; }
.latency-art .path i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--cyan); }
.motion .latency-art .path i { animation: travel 2.2s linear infinite; }
.motion .latency-art .path.back i { animation-direction: reverse; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 8px); } }
.metric { font-size: clamp(40px, 5vw, 58px); font-weight: 750; letter-spacing: -.02em; margin: 8px 0 4px; background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.trial { display: flex; gap: 22px; align-items: flex-start; background: linear-gradient(145deg, rgba(47, 123, 255, .12), rgba(122, 60, 255, .06) 65%), var(--card); }
.trial .ico { flex: none; margin: 0; }
.trial b { color: var(--text); font-weight: 600; }
@media (max-width: 767px) { .strip, .trial { flex-direction: column; } }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

.final { position: relative; padding: calc(var(--section-space) * 1.2) 0; text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgba(122, 60, 255, .45), transparent 60%), radial-gradient(ellipse at 50% 0%, rgba(38, 198, 249, .16), transparent 55%), var(--surface); border-top: 1px solid var(--border); }
.final-inner .lead { margin: 0 auto 28px; }

.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer nav a { text-decoration: none; color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer .hint { margin-top: 14px; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---- scroll reveal: only once landing.js runs, so content never stays hidden ---- */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
