/* Media Innovation — design system v2 ("dark console") */
:root {
  --bg: #0a0c10;
  --surface: #0d1015;
  --surface-2: #10141a;
  --card-grad: linear-gradient(145deg, #12151c, #10121a);
  --border: #1a1f28;
  --border-2: #1f242e;
  --border-3: #232936;
  --fg: #fafafa;
  --muted: #98a1b0;
  --dim: #6b7484;
  --faint: #5d6675;
  --nav: #b6bdc9;
  --orange: #ff671a;
  --orange-2: #ffa133;
  --green: #2ee06f;
  --blue: #58a6ff;
  --red: #ff5f57;
  --grad-primary: linear-gradient(135deg, #ff671a, #ffa133);
  --grad-hero: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,103,26,.14), transparent 60%);
  --shadow-btn: 0 6px 28px -6px rgba(255,103,26,.6);
  --shadow-card: 0 24px 64px -24px rgba(0,0,0,.8);
  --radius: 12px;
  --radius-lg: 16px;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--mono); }

/* ---------- Status bar ---------- */
.status-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--dim);
}
.status-bar .container { display: flex; justify-content: space-between; align-items: center; height: 2.4rem; gap: 1rem; }
.status-bar .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); display: inline-block; margin-right: .5rem; }
.status-bar .links { display: flex; gap: 1.5rem; }
.status-bar a { color: var(--dim); transition: color .2s; }
.status-bar a:hover { color: var(--orange-2); }
@media (max-width: 680px) { .status-bar .uptime, .status-bar .links a:nth-child(3) { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,12,16,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4.6rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .7rem; white-space: nowrap; }
.logo .logo-mark {
  width: 2.4rem; height: 2.4rem; border-radius: .65rem;
  background: var(--grad-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: .95rem;
  box-shadow: 0 4px 24px -4px rgba(255,103,26,.5);
}
.logo .logo-text { line-height: 1.15; }
.logo .logo-text b { font-size: 1.05rem; font-weight: 700; display: block; letter-spacing: -.01em; }
.logo .logo-text span { font-family: var(--mono); font-size: .6rem; color: var(--orange); letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 1.7rem; font-size: .95rem; }
.main-nav a { color: var(--nav); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.5rem; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { border-color: #2a303b; color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-2); }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }

.nav-toggle { display: none; background: none; border: 0; color: var(--fg); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5.5rem 0 4.5rem; background: var(--grad-hero), linear-gradient(180deg, #0a0c10, #0d0f16); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(255,103,26,.35); background: rgba(255,103,26,.08);
  border-radius: 999px; padding: .4rem 1rem;
  font-family: var(--mono); font-size: .75rem; color: var(--orange-2);
  margin-bottom: 1.7rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 1.4rem; font-weight: 700; }
.accent { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 33rem; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-stats { display: flex; gap: 2.2rem; align-items: center; flex-wrap: wrap; }
.hero-stats .divider { width: 1px; height: 2.6rem; background: var(--border); }
.stat .stat-value { font-size: 1.85rem; font-weight: 700; color: var(--orange-2); line-height: 1.2; }
.stat .stat-label { color: var(--dim); font-size: .82rem; }

/* ---------- Console card ---------- */
.console {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.console-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem 1.1rem; border-bottom: 1px solid var(--border);
  background: var(--surface-2); font-family: var(--mono); font-size: .7rem; color: var(--dim);
}
.console-bar .dots { display: inline-flex; gap: .35rem; }
.console-bar .dots span { width: .62rem; height: .62rem; border-radius: 50%; display: inline-block; }
.dots .r { background: #ff5f57; } .dots .y { background: #febc2e; } .dots .g { background: #28c840; }
.console-log { padding: 1.1rem 1.25rem; font-family: var(--mono); font-size: .74rem; line-height: 1.95; min-height: 13rem; }
.console-log .t { color: var(--faint); }
.console-log .ok { color: var(--green); }
.console-log .info { color: var(--blue); }
.console-log .warn { color: var(--red); }
.console-log .val { color: var(--orange-2); }
.console-log .d { color: var(--nav); }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.console-metrics > div { background: var(--surface-2); padding: .85rem 1.1rem; }
.console-metrics .k { font-family: var(--mono); font-size: .66rem; color: var(--dim); letter-spacing: .06em; }
.console-metrics .v { font-size: 1.2rem; font-weight: 700; }
.console pre { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: #c3cad4; }
.console pre .k { color: var(--orange-2); }
.console pre .s { color: #7ee0a3; }
.console pre .n { color: var(--blue); }
.console-status { padding: .55rem 1.25rem; border-top: 1px solid var(--border); font-family: var(--mono); font-size: .72rem; color: var(--dim); }

/* ---------- Standards strip ---------- */
.standards { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); padding: 1.4rem 0; }
.standards .container { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: .74rem; color: var(--dim);
  border: 1px solid var(--border-3); border-radius: 999px; padding: .45rem 1.1rem;
  transition: color .2s, border-color .2s;
}
a.chip:hover { color: var(--orange-2); border-color: rgba(255,103,26,.4); }

/* ---------- Sections ---------- */
.section { padding: 5.2rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { font-family: var(--mono); font-size: .78rem; color: var(--orange); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.section-head { max-width: 100%; margin-bottom: 3rem; }
.section-head.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.section-head .sub { color: var(--muted); font-size: 1.02rem; max-width: 26rem; }
.section-head.center { text-align: center; }
.section-head.center .sub { margin: .8rem auto 0; max-width: 40rem; }

.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-grad);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,103,26,.4); }
.card .card-icon { color: var(--orange); margin-bottom: 1.1rem; }
.card h3 { font-size: 1.22rem; margin-bottom: .6rem; font-weight: 600; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.65; }
.card .feature-list { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.card .feature-list span { font-size: .86rem; color: var(--nav); }
.card .feature-list span::before { content: "→ "; color: var(--orange); }
.card .badge { display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 600; padding: .22rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.badge-available { background: rgba(46,224,111,.12); color: var(--green); }
.badge-soon { background: var(--border); color: var(--dim); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { border-left: 1px solid var(--border-3); padding: .3rem 0 .3rem 1.5rem; }
.step .num { font-family: var(--mono); font-size: .8rem; color: var(--orange); margin-bottom: .7rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; font-weight: 600; }
.step p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; }
.check-list { list-style: none; margin: 1.3rem 0; }
.check-list li { padding: .32rem 0 .32rem 1.7rem; position: relative; color: var(--muted); font-size: .95rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* ---------- Metric panel ---------- */
.metric-panel { background: var(--card-grad); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-card); }
.bar-row { margin-bottom: 1.05rem; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.bar-row .bar-label .pct { color: var(--orange-2); font-weight: 600; }
.bar-track { height: .5rem; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad-primary); border-radius: 999px; }
.metric-highlights { display: flex; gap: 1rem; margin-top: 1.5rem; }
.metric-highlight { flex: 1; background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; padding: 1rem; text-align: center; }
.metric-highlight .val { font-size: 1.45rem; font-weight: 700; color: var(--orange-2); }
.metric-highlight .lbl { font-size: .78rem; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%; padding: 1.05rem 1.4rem; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .98rem; font-weight: 600; color: var(--fg); text-align: left;
}
.faq-q .faq-icon { color: var(--dim); font-size: 1.3rem; line-height: 1; transition: transform .2s, color .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--orange); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.4rem 1.15rem; font-size: .9rem; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 16rem; }

/* ---------- Insights cards ---------- */
.insight-card {
  display: flex; gap: 1.2rem; align-items: center;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 1.15rem; background: var(--card-grad); transition: border-color .2s, transform .2s;
}
.insight-card:hover { border-color: rgba(255,103,26,.4); transform: translateY(-2px); }
.insight-thumb { width: 6rem; height: 4.4rem; border-radius: 8px; flex-shrink: 0; }
.thumb-a { background: linear-gradient(135deg, rgba(255,103,26,.35), rgba(255,161,51,.12)); }
.thumb-b { background: linear-gradient(135deg, rgba(88,166,255,.3), rgba(255,103,26,.12)); }
.thumb-c { background: linear-gradient(135deg, rgba(46,224,111,.25), rgba(255,103,26,.12)); }
.insight-card .meta { font-family: var(--mono); font-size: .66rem; color: var(--dim); letter-spacing: .06em; margin-bottom: .4rem; text-transform: uppercase; }
.insight-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }

/* Article page */
.article { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.article .meta { font-family: var(--mono); font-size: .72rem; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.article h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.18; letter-spacing: -.02em; margin-bottom: 1.6rem; }
.article h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; }
.article p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.02rem; line-height: 1.75; }
.article ul { margin: 0 0 1.1rem 1.4rem; color: var(--muted); line-height: 1.75; }
.article li { margin-bottom: .4rem; }
.article strong { color: var(--fg); }
.article blockquote { border-left: 2px solid var(--orange); padding: .2rem 0 .2rem 1.2rem; margin: 1.5rem 0; color: var(--fg); font-size: 1.1rem; }
.article a { color: var(--orange); }
.article .back { font-family: var(--mono); font-size: .8rem; color: var(--dim); display: inline-block; margin-bottom: 2rem; }
.article .back:hover { color: var(--orange-2); }

/* ---------- CTA band ---------- */
.cta-band { padding: 4.5rem 0; }
.cta-inner {
  border-radius: 20px; padding: 3.8rem 2rem; text-align: center;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(255,103,26,.22), transparent 65%), var(--card-grad);
  border: 1px solid #2a2018;
}
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.02em; margin-bottom: .9rem; }
.cta-inner p { color: var(--muted); max-width: 33rem; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 4.2rem 0 3.4rem; background: var(--grad-hero), linear-gradient(180deg, #0a0c10, #0d0f16); }
.page-hero.center { text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.1rem; font-weight: 700; }
.page-hero p { color: var(--muted); max-width: 42rem; font-size: 1.08rem; }
.page-hero.center p { margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
.info-block { display: flex; gap: 1rem; margin-bottom: 1.35rem; align-items: flex-start; }
.info-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,103,26,.1); border: 1px solid rgba(255,103,26,.25);
  display: flex; align-items: center; justify-content: center; color: var(--orange);
}
.info-block h4 { font-size: .98rem; margin-bottom: .15rem; }
.info-block p, .info-block a { color: var(--muted); font-size: .9rem; }
.info-block a:hover { color: var(--orange-2); }
.trusted { border-top: 1px solid var(--border); padding-top: 1.4rem; margin-top: 1.8rem; }
.trusted .lbl { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--dim); margin-bottom: .9rem; }
.trusted .tags { display: flex; gap: .6rem; flex-wrap: wrap; }
.trusted .tags span { border: 1px solid var(--border-3); border-radius: 999px; padding: .35rem 1rem; font-size: .84rem; color: var(--muted); }

.form-card {
  background: var(--card-grad); border: 1px solid var(--border-2);
  border-radius: 18px; padding: 2.4rem; box-shadow: var(--shadow-card);
}
.form-tabs { display: flex; gap: .6rem; margin-bottom: 1.6rem; }
.form-tab {
  flex: 1; text-align: center; padding: .65rem; border-radius: 10px;
  border: 1px solid var(--border-3); font-size: .88rem; color: var(--muted);
  background: none; font-family: inherit; cursor: pointer; transition: all .2s;
}
.form-tab.active { background: rgba(255,103,26,.12); border-color: rgba(255,103,26,.4); color: var(--orange-2); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .84rem; margin-bottom: .4rem; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: rgba(26,31,40,.6); border: 1px solid var(--border-3);
  border-radius: 10px; padding: .78rem .95rem; color: var(--fg);
  font: inherit; font-size: .92rem; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--orange); }
.form-field select { appearance: none; }
.form-note { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .78rem; color: var(--dim); margin-top: .9rem; }
.form-note .ok-mark { color: var(--green); }
.form-status { margin-top: .9rem; font-size: .9rem; display: none; text-align: center; }
.form-status.success { display: block; color: var(--green); }
.form-status.error { display: block; color: var(--red); }

/* ---------- Legal pages ---------- */
.legal { max-width: 52rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.legal h1 { font-size: 2.2rem; margin-bottom: .4rem; letter-spacing: -.02em; }
.legal .updated { color: var(--dim); margin-bottom: 2.4rem; font-family: var(--mono); font-size: .85rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; }
.legal h3 { font-size: 1.12rem; margin: 1.6rem 0 .6rem; }
.legal h4 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.legal p { color: var(--muted); margin-bottom: .9rem; }
.legal ul { margin: 0 0 1rem 1.4rem; color: var(--muted); }
.legal li { margin-bottom: .35rem; }
.legal strong { color: var(--fg); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9rem; }
.legal th, .legal td { border: 1px solid var(--border-2); padding: .6rem .8rem; text-align: left; color: var(--muted); }
.legal th { color: var(--fg); background: var(--surface-2); }
.legal .table-wrap { overflow-x: auto; }
.legal a { color: var(--orange); }

/* ---------- Blog filters ---------- */
.blog-filters { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.6rem; }
.blog-filters button {
  border: 1px solid var(--border-3); background: transparent; color: var(--muted);
  border-radius: 999px; padding: .45rem 1.2rem; font: inherit; font-size: .86rem; cursor: pointer;
  transition: all .2s;
}
.blog-filters button.active, .blog-filters button:hover { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 3.6rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2.4rem; margin-bottom: 2.6rem; }
.footer-brand p { color: var(--dim); font-size: .86rem; margin-top: 1rem; line-height: 1.7; max-width: 18rem; }
.footer-col h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--dim); margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--orange-2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--faint); font-size: .82rem;
}
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--orange-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head.split-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
}
@media (max-width: 680px) {
  .main-nav {
    display: none; position: absolute; top: 4.6rem; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #0d1015;
    border-bottom: 1px solid var(--border); padding: .5rem 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 1.5rem; width: 100%; }
  .nav-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .hero-stats .divider { display: none; }
}

/* ======================================================================
   Audio Lab
   ====================================================================== */
.lab-tag { display: inline-block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; padding: .22rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.tag-game { background: rgba(255,103,26,.12); color: var(--orange-2); }
.tag-tool { background: rgba(88,166,255,.12); color: var(--blue); }
.lab-card { position: relative; display: flex; flex-direction: column; }
.lab-card .lab-num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.lab-card .lab-cta { margin-top: auto; padding-top: 1.2rem; }

.game { max-width: 62rem; margin: 0 auto; padding: 2.4rem 1.5rem 5rem; }
.game-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.game-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; }
.game-head p { color: var(--muted); max-width: 40rem; margin-top: .5rem; }
.game-head .back { font-family: var(--mono); font-size: .78rem; color: var(--dim); display: inline-block; margin-bottom: .8rem; }
.game-head .back:hover { color: var(--orange-2); }

.panel { background: var(--card-grad); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 1.4rem; }
.panel-title { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; margin-bottom: .9rem; }
.game-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.hud > div { background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; padding: .75rem .9rem; }
.hud .k { font-family: var(--mono); font-size: .64rem; color: var(--dim); letter-spacing: .08em; }
.hud .v { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.hud .v.good { color: var(--green); } .hud .v.warn { color: var(--orange-2); } .hud .v.bad { color: var(--red); }

.meter { margin-bottom: .9rem; }
.meter .lbl { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.meter .lbl b { color: var(--fg); }
.meter .track { height: .55rem; background: var(--border); border-radius: 999px; overflow: hidden; }
.meter .fill { height: 100%; border-radius: 999px; background: var(--grad-primary); transition: width .35s ease; }
.meter .fill.green { background: linear-gradient(90deg, #1fb85a, #2ee06f); }
.meter .fill.blue { background: linear-gradient(90deg, #3b82f6, #58a6ff); }
.meter .fill.red { background: linear-gradient(90deg, #d63a34, #ff5f57); }

.choice-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.choice {
  border: 1px solid var(--border-3); background: var(--surface); color: var(--fg);
  border-radius: 10px; padding: .6rem 1rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .15s; text-align: left;
}
.choice:hover { border-color: rgba(255,103,26,.5); }
.choice.active { background: rgba(255,103,26,.12); border-color: rgba(255,103,26,.5); color: var(--orange-2); }
.choice:disabled { opacity: .45; cursor: not-allowed; }
.choice.sm { padding: .4rem .75rem; font-size: .8rem; }
.choice .sub { display: block; font-family: var(--mono); font-size: .62rem; color: var(--dim); font-weight: 400; margin-top: .15rem; }

.range { width: 100%; accent-color: var(--orange); margin: .3rem 0 .2rem; }
.range-row { margin-bottom: 1rem; }
.range-row .lbl { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.range-row .lbl b { color: var(--orange-2); font-family: var(--mono); }

.log { font-family: var(--mono); font-size: .74rem; line-height: 1.85; min-height: 9rem; max-height: 14rem; overflow-y: auto; }
.log .t { color: var(--faint); } .log .ok { color: var(--green); } .log .info { color: var(--blue); }
.log .warn { color: var(--red); } .log .val { color: var(--orange-2); } .log .d { color: var(--nav); }

.big-score { text-align: center; padding: 2rem 1rem; }
.big-score .val { font-size: 3.2rem; font-weight: 700; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.big-score .lbl { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.big-score .best { font-family: var(--mono); font-size: .75rem; color: var(--dim); margin-top: .6rem; }

.req-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.req-card .req-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-family: var(--mono); font-size: .68rem; color: var(--dim); }
.req-card .req-fmt { font-size: 1.25rem; font-weight: 700; margin-bottom: .35rem; }
.req-card .req-sig { display: flex; gap: .45rem; flex-wrap: wrap; }
.req-card .sig { font-family: var(--mono); font-size: .68rem; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--border-3); color: var(--muted); }
.req-card .sig.on { border-color: rgba(46,224,111,.4); color: var(--green); }
.req-card .sig.off { border-color: rgba(255,95,87,.4); color: var(--red); }
.req-card .timer { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad-primary); transition: width .1s linear; }

.timeline { position: relative; height: 4.6rem; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; margin: .8rem 0 1rem; overflow: hidden; }
.timeline .track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: var(--border-3); }
.timeline .prog { position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; background: var(--grad-primary); width: 0; }
.timeline .slot { position: absolute; top: .55rem; bottom: .55rem; width: 3.4rem; margin-left: -1.7rem; border-radius: 8px; border: 1px dashed var(--border-3); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .62rem; color: var(--dim); text-align: center; line-height: 1.2; cursor: pointer; background: rgba(13,16,21,.85); transition: all .15s; padding: 0 .2rem; }
.timeline .slot:hover { border-color: rgba(255,103,26,.5); }
.timeline .slot.filled { border-style: solid; border-color: rgba(255,103,26,.6); color: var(--orange-2); background: rgba(255,103,26,.1); }
.timeline .slot.playing { box-shadow: 0 0 0 3px rgba(255,103,26,.35); }
.timeline .head { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .8; }

.companion { display: none; align-items: center; gap: 1rem; border-radius: 12px; padding: 1rem 1.2rem; margin-top: 1rem; border: 1px solid var(--border-3); background: var(--surface); }
.companion.show { display: flex; }
.companion .art { width: 3.4rem; height: 3.4rem; border-radius: 10px; flex-shrink: 0; }
.companion b { display: block; font-size: .95rem; }
.companion span { color: var(--muted); font-size: .82rem; }
.companion .cta { margin-left: auto; }

.toast { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%) translateY(20px); background: var(--surface-2); border: 1px solid var(--border-3); color: var(--fg); padding: .7rem 1.2rem; border-radius: 10px; font-size: .9rem; opacity: 0; transition: all .25s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.chart { width: 100%; height: 230px; display: block; background: var(--surface); border-radius: 10px; border: 1px solid var(--border-2); }
.overlay { position: absolute; inset: 0; background: rgba(10,12,16,.9); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; border-radius: var(--radius-lg); z-index: 5; }
.overlay h2 { font-size: 1.8rem; margin-bottom: .6rem; letter-spacing: -.02em; }
.overlay p { color: var(--muted); max-width: 30rem; margin-bottom: 1.4rem; }
.rel { position: relative; }
.kbd { font-family: var(--mono); font-size: .7rem; border: 1px solid var(--border-3); border-radius: 5px; padding: .1rem .4rem; color: var(--dim); }

@media (max-width: 900px) { .game-grid { grid-template-columns: 1fr; } .hud { grid-template-columns: repeat(2, 1fr); } }

/* Floating sound control (injected by lab.js) */
.lab-sound { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; display: flex; gap: .45rem; }
.lab-sound button {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface-2); color: var(--fg); border: 1px solid var(--border-3);
  border-radius: 999px; padding: .55rem .95rem; font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 8px 24px -8px rgba(0,0,0,.7); transition: all .15s;
}
.lab-sound button:hover { border-color: rgba(255,103,26,.5); }
.lab-sound .lab-mute.off { color: var(--dim); }
.lab-sound .lab-stop { color: var(--red); }
@media (max-width: 680px) { .lab-sound { right: .7rem; bottom: .7rem; } .lab-sound button { padding: .5rem .75rem; font-size: .76rem; } }
