
/* Waveline website — shared styles. © 2026 Imtayz Nayem */
:root {
  --bg: #07090d;
  --bg-2: #0d1016;
  --card: rgba(255, 255, 255, 0.04);
  --card-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: rgba(235, 235, 245, 0.64);
  --faint: rgba(235, 235, 245, 0.4);
  --accent: #34d399;
  --accent-hi: #4ee0a6;
  --accent-lo: #22b97c;
  --accent-ink: #032116;
  --accent-glow: rgba(52, 211, 153, 0.28);
  --blue: #5b8def;
  --red: #ff6b5e;
  --amber: #ffd60a;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 760; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; }
section { padding: 110px 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: 52px; }
.sec-head.center { text-align: center; justify-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 640; font-size: 15px; border: 1px solid var(--line-2); background: var(--card-2); transition: transform .12s, background .15s, filter .15s; cursor: pointer; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, 0.11); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); color: var(--accent-ink); border-color: rgba(255, 255, 255, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px var(--accent-glow); }
.btn.primary:hover { filter: brightness(1.07); }
.btn small { font-weight: 500; opacity: 0.7; font-size: 12.5px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 13, 0.72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 24px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav .btn { height: 38px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }

/* hero */
.hero { position: relative; padding: 96px 0 40px; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -200px 0 auto; height: 900px; z-index: -1;
  background: radial-gradient(700px 420px at 50% 30%, rgba(52, 211, 153, 0.20), transparent 70%), radial-gradient(500px 300px at 78% 10%, rgba(91, 141, 239, 0.13), transparent 70%); }
.hero h1 { font-size: clamp(42px, 7.4vw, 86px); font-weight: 800; letter-spacing: -0.05em; margin: 22px auto 22px; max-width: 980px; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #9bffd0, var(--accent) 55%, var(--accent-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 34px; font-size: clamp(17px, 2vw, 20px); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { color: var(--faint); font-size: 13.5px; margin-top: 18px; }
.fine b { color: var(--muted); font-weight: 600; }
.wave { display: flex; gap: 5px; justify-content: center; align-items: center; height: 46px; margin: 0 auto; }
.wave i { width: 6px; border-radius: 6px; background: linear-gradient(180deg, #9bffd0, var(--accent-lo)); animation: bar 1.6s ease-in-out infinite; }
@keyframes bar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } html { scroll-behavior: auto; } }

.shot { position: relative; margin: 64px auto 0; max-width: 1180px; border-radius: 18px; padding: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line); }
.shot img { border-radius: 12px; width: 100%; }
.editors { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 34px; margin-top: 46px; color: var(--faint); font-size: 14px; }
.editors b { color: var(--muted); font-weight: 600; font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 26px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font: 600 13px var(--mono); color: var(--accent); margin-bottom: 26px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* split feature rows */
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 110px; }
.row.flip > :first-child { order: 2; }
.row h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 750; margin: 14px 0 16px; }
.row p { color: var(--muted); margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032116' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.frame.tall { max-width: 380px; margin: 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.feat { background: var(--bg-2); padding: 30px 28px 32px; }
.feat svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.feat h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* pricing */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); margin-top: 8px; }
.toggle button { border: 0; background: none; color: var(--muted); font: 600 14px var(--sans); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.toggle .save { color: var(--accent); font-size: 12px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.plan.best { background: linear-gradient(180deg, rgba(52, 211, 153, 0.10), rgba(52, 211, 153, 0.02)); border-color: rgba(52, 211, 153, 0.45); box-shadow: 0 30px 80px rgba(52, 211, 153, 0.10); }
.badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--accent-ink); font: 700 11.5px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .for { color: var(--muted); font-size: 14.5px; margin: 6px 0 22px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.plan .note { color: var(--faint); font-size: 13px; min-height: 20px; }
.plan .ticks { margin: 24px 0 30px; }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }
.free { text-align: center; color: var(--muted); margin-top: 30px; font-size: 15px; }
.free b { color: var(--text); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: 18px; font-weight: 640; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -6px 0 24px; color: var(--muted); max-width: 720px; }

/* closing */
.closing { text-align: center; padding: 120px 0; position: relative; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 50% 60%, rgba(52, 211, 153, 0.16), transparent 70%); }
.closing h2 { font-size: clamp(34px, 5.6vw, 64px); margin: 24px 0 16px; }
.closing .lead { margin: 0 auto 34px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { margin: 0 0 14px; color: var(--text); font-size: 14px; font-weight: 640; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a:hover { color: var(--text); }
.foot .brand { color: var(--text); margin-bottom: 12px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .row, .row.flip { grid-template-columns: 1fr; gap: 36px; }
  .row.flip > :first-child { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav .wrap > .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: 64px; left: 0; right: 0; gap: 0; padding: 8px 16px 16px; background: rgba(7, 9, 13, 0.97); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 12px 8px; font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 76px 0; }
  .hero { padding-top: 64px; }
  .shot { margin-top: 44px; padding: 5px; border-radius: 14px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
}

.plans.two { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 0 auto; }
@media (max-width: 980px) { .plans.two { grid-template-columns: 1fr; } }

/* ---------- live sync demo ---------- */
.demo { border-radius: 18px; background: #12151c; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); padding: 16px 16px 20px; overflow: hidden; }
.demo-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 1.4s infinite; }
.demo.done .demo-dot { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
.demo-count { margin-left: auto; font: 600 12px var(--mono); color: var(--accent); }
.demo-tracks { position: relative; display: grid; gap: 8px; }
.demo-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; }
.demo-name { font: 600 11.5px var(--mono); color: var(--muted); }
.demo-lane { position: relative; height: 38px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.clip { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; opacity: 0.35; filter: grayscale(1);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 5px) center / 100% 60% no-repeat, linear-gradient(180deg, #6d9bf5, #4677dc);
  transition: left 0.9s cubic-bezier(.6,.05,.2,1), opacity .4s, filter .4s, box-shadow .4s; }
.clip.rec { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 2px, transparent 2px 5px) center / 100% 70% no-repeat, linear-gradient(180deg, #3fd391, #23a86c); }
.clip.on { opacity: 1; filter: none; }
.clip.hit { box-shadow: 0 0 0 2px #fff, 0 0 24px rgba(52, 211, 153, 0.8); }
.clip.heard { opacity: 0.6; filter: grayscale(0.4); }
.demo-head { position: absolute; top: -4px; bottom: -4px; left: 70px; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); opacity: 0; transition: left 1.6s linear, opacity .3s; pointer-events: none; }

/* ---------- the film ---------- */
.film-frame { position: relative; max-width: 1100px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(255,255,255,0.03); background: #07090d; aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film-sound { position: absolute; right: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.55); color: #fff; font: 600 13px var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 760px) {
  .demo-row { grid-template-columns: 52px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .clip, .demo-head, .hero .shot { transition: none; }
}

.frame.tall { max-width: 330px; }

/* ---------- inner pages ---------- */
.page-head { position: relative; padding: 88px 0 40px; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: -120px 0 auto; height: 520px; z-index: -1; background: radial-gradient(600px 300px at 30% 30%, rgba(52, 211, 153, 0.14), transparent 70%); }
.page-head h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; letter-spacing: -0.045em; margin: 18px 0 18px; max-width: 900px; }
.page-head .lead { max-width: 720px; }
.page-body { padding: 20px 0 90px; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.72; color: rgba(245, 245, 247, 0.86); }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 56px 0 14px; color: var(--text); scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; margin: 34px 0 8px; color: var(--text); letter-spacing: -0.02em; scroll-margin-top: 90px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(52, 211, 153, 0.4); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--text); }
.prose code, .prose kbd { font: 13.5px var(--mono); background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.prose img, .prose figure { margin: 30px 0; }
.prose figure img { border-radius: 14px; border: 1px solid var(--line-2); width: 100%; }
.prose figcaption { color: var(--faint); font-size: 13.5px; margin-top: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 26px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; background: var(--card); }
.prose td:not(:first-child), .prose th:not(:first-child) { text-align: center; }
.prose .yes { color: var(--accent); font-weight: 700; }
.prose .no { color: var(--faint); }
.note-box { padding: 18px 20px; border-radius: 14px; background: rgba(52, 211, 153, 0.07); border: 1px solid rgba(52, 211, 153, 0.25); margin: 0 0 24px; }
.note-box.warn { background: rgba(255, 214, 10, 0.06); border-color: rgba(255, 214, 10, 0.28); }
.note-box p:last-child { margin: 0; }
.toc { padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin: 0 0 40px; }
.toc b { display: block; color: var(--text); margin-bottom: 8px; font-size: 14px; }
.toc ol { margin: 0; columns: 2; column-gap: 30px; font-size: 15px; }
.steps-list { counter-reset: n; list-style: none; padding: 0 !important; }
.steps-list > li { counter-increment: n; position: relative; padding: 0 0 4px 52px; margin: 0 0 26px !important; }
.steps-list > li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--mono); color: var(--accent-ink); background: var(--accent); }
.steps-list > li > b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.updated { color: var(--faint); font-size: 14px; }
.release { padding: 26px 0; border-bottom: 1px solid var(--line); }
.release h2 { margin: 0 0 4px; font-size: 26px; }
.release .date { font: 600 12.5px var(--mono); color: var(--accent); }

/* download page */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; }
.dl { padding: 30px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.dl.main { background: linear-gradient(180deg, rgba(52, 211, 153, 0.09), rgba(52, 211, 153, 0.02)); border-color: rgba(52, 211, 153, 0.35); }
.dl h3 { font-size: 22px; margin: 14px 0 6px; }
.dl p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.dl .meta { color: var(--faint); font: 12.5px var(--mono); margin: 12px 0 0; }
.dl .btn { justify-content: center; }
.dl .os { width: 34px; height: 34px; color: var(--text); }
.req { max-width: 980px; margin-top: 50px; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } .toc ol { columns: 1; } .page-head { padding-top: 56px; } .prose { font-size: 16px; } .prose table { font-size: 13.5px; } .prose th, .prose td { padding: 10px 8px; } }
.dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl { min-width: 0; }
.dl .btn { white-space: normal; height: auto; min-height: 48px; padding: 12px 20px; text-align: center; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } .dl { padding: 24px 20px; } }

/* ---------- hero: animated Waveline window ---------- */
.hero .shot { transform: perspective(1600px) rotateX(9deg) translateY(30px); opacity: 0; transition: transform 1.3s cubic-bezier(.2,.7,.2,1), opacity 1s; }
.hero .shot.in { transform: none; opacity: 1; }
.mock-scale { position: relative; width: 100%; overflow: hidden; border-radius: 12px; }
.mock { position: absolute; left: 0; top: 0; width: 1160px; height: 680px; transform-origin: 0 0; background: #0e1117; color: #e9e9ee; font: 13px/1.4 var(--sans); text-align: left; display: grid; grid-template-rows: 48px 1fr; }
.mk-bar { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.07); background: #141820; }
.mk-tl { width: 12px; height: 12px; border-radius: 50%; }
.mk-tl.r { background: #ff5f57; } .mk-tl.y { background: #febc2e; } .mk-tl.g { background: #28c840; margin-right: 12px; }
.mk-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.mk-brand img { width: 22px; height: 18px; }
.mk-proj { color: rgba(235,235,245,0.55); margin-left: 8px; }
.mk-sp { flex: 1; }
.mk-b { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); font-weight: 600; font-size: 12.5px; }
.mk-sync { background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); color: var(--accent-ink); border-color: transparent; transition: transform .15s, box-shadow .3s; }
.mk-sync.press { transform: scale(0.92); box-shadow: 0 0 0 6px rgba(52,211,153,0.25); }
.mk-body { display: grid; grid-template-columns: 210px 1fr; gap: 12px; padding: 12px; min-height: 0; }
.mk-side { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 14px 12px; }
.mk-h { display: block; font-size: 15px; margin-bottom: 10px; }
.mk-dev { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 6px; border-radius: 10px; background: rgba(255,255,255,0.05); font-weight: 600; }
.mk-dev span { font: 600 10.5px var(--mono); color: rgba(235,235,245,0.5); width: 20px; }
.mk-dev em { margin-left: auto; font-style: normal; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: rgba(91,141,239,0.18); color: #8fb2ff; }
.mk-dev em.rec { background: rgba(52,211,153,0.16); color: var(--accent); }
.mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mk-stats div { padding: 8px 9px; border-radius: 10px; background: rgba(255,255,255,0.05); font-size: 10.5px; color: rgba(235,235,245,0.55); line-height: 1.25; }
.mk-stats b { display: block; font-size: 20px; color: var(--accent); letter-spacing: -0.03em; }
.mk-stats b.amber { color: var(--amber); } .mk-stats b.red { color: var(--red); }
.mk-main { display: grid; grid-template-rows: 300px 1fr; gap: 12px; min-height: 0; }
.mk-top { display: grid; grid-template-columns: 500px 1fr; gap: 16px; }
.mk-view { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.mk-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 7s linear; }
.mk-view img.on { opacity: 1; transform: scale(1); }
.mk-label { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.6); font-weight: 600; font-size: 11.5px; }
.mk-ctl { padding-top: 6px; }
.mk-play { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); vertical-align: middle; }
.mk-play i { width: 0; height: 0; border-left: 12px solid var(--accent-ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.mk-tc { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.06); font: 600 17px var(--mono); }
.mk-listen { display: inline-flex; margin-top: 16px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 12px; color: rgba(235,235,245,0.6); }
.mk-listen span { padding: 5px 12px; border-radius: 999px; }
.mk-listen span.on { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.mk-status { margin: 16px 0 0; color: rgba(235,235,245,0.6); font-size: 12.5px; min-height: 18px; }
.mk-tl-wrap { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 10px 12px; min-height: 0; }
.mk-blocks { position: relative; height: 20px; margin-left: 76px; }
.mk-blocks span { position: absolute; top: 0; height: 18px; padding: 0 8px; border-radius: 4px; background: rgba(52,211,153,0.12); color: var(--accent); font-size: 10.5px; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; opacity: 0; transition: opacity .5s; }
.mock.done .mk-blocks span { opacity: 1; }
.mk-lanes { position: relative; display: grid; gap: 6px; margin-top: 6px; }
.mk-lane { display: grid; grid-template-columns: 70px 1fr; gap: 6px; align-items: center; }
.mk-lane b { font: 600 11px var(--mono); color: rgba(235,235,245,0.6); }
.mk-lane > div { position: relative; height: 40px; border-radius: 7px; background: rgba(255,255,255,0.025); }
.mk-lane .clip { top: 3px; bottom: 3px; }
.clip.drone { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 5px) center / 100% 30% no-repeat, linear-gradient(180deg, #ff8a7a, #e0574a); }
.mk-head { position: absolute; top: -4px; bottom: -4px; left: 76px; width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: left .25s linear; }

/* ---------- drift animation ---------- */
.drift { border-radius: 18px; background: #12151c; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); padding: 18px 18px 20px; }
.dr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.dr-sw { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.dr-sw i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,0.16); transition: background .3s; }
.dr-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s; }
.drift.fixed .dr-sw i { background: var(--accent); }
.drift.fixed .dr-sw i::after { transform: translateX(16px); }
.dr-rows { position: relative; display: grid; gap: 8px; }
.dr-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; }
.dr-row b { font: 600 11px var(--mono); color: var(--muted); }
.dr-wave { position: relative; height: 54px; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, rgba(91,141,239,0.28), rgba(91,141,239,0.16)); }
.dr-wave.rec { background: linear-gradient(180deg, rgba(52,211,153,0.26), rgba(52,211,153,0.14)); }
.dr-in { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; padding: 0 2px; transform-origin: 0 50%; transition: transform 1.4s cubic-bezier(.5,0,.2,1); }
.dr-in i { flex: 1; border-radius: 2px; background: #8fb2ff; }
.dr-wave.rec .dr-in i { background: #4ee0a6; }
.dr-in i.peak { background: #fff !important; }
.drift:not(.fixed) #drRec { transform: scaleX(1.028); }
.dr-guide { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: rgba(255,255,255,0.75); pointer-events: none; }
.dr-guide.b { background: var(--red); box-shadow: 0 0 10px var(--red); transition: background .4s, box-shadow .4s; }
.drift.fixed .dr-guide.b { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dr-scale { display: flex; justify-content: space-between; margin: 8px 0 0 72px; font: 11px var(--mono); color: var(--faint); }
.dr-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.dr-meter div { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.05); }
.dr-meter small { display: block; color: var(--faint); font-size: 11.5px; }
.dr-meter b { color: var(--accent); font-size: 15px; }
#drEndBox b { color: var(--red); transition: color .3s; }
.drift.fixed #drEndBox b { color: var(--accent); }
.dr-out { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dr-out span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); opacity: 0.35; transition: opacity .4s, color .4s; }
.dr-out span::before { content: "✓ "; color: var(--accent); }
.drift.fixed .dr-out span { opacity: 1; color: var(--text); }
.key-box { font: 14px/1.6 var(--mono); word-break: break-all; padding: 16px 18px; border-radius: 14px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.35); color: var(--text); }
[hidden] { display: none !important; }
