/* RehearsalWare website: dark, quiet, product-first. */

:root {
  --bg: #000;
  --bg-raised: #0d0d0f;
  --card: #141416;
  --card-hi: #1c1c1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --blue: #2997ff;
  --blue-app: #3d9ee6;
  --green: #30d158;
  --orange: #ff9f0a;
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .btn { padding: 7px 15px; font-size: 14px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 980px; border: 0;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #fff; box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #47a6ff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 6px 14px 6px 10px; border-radius: 980px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.kicker { font-size: 17px; font-weight: 600; color: var(--orange); margin: 0 0 10px; letter-spacing: -0.01em; }
.kicker.blue { color: var(--blue); }
.kicker.green { color: var(--green); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
h1 { font-size: clamp(44px, 8vw, 96px); }
h2 { font-size: clamp(34px, 5.4vw, 64px); }
h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--muted); max-width: 720px; margin: 22px auto 0; letter-spacing: -0.015em; }
.lede b, .body b { color: var(--text); font-weight: 600; }
.body { color: var(--muted); font-size: 19px; line-height: 1.5; margin: 18px 0 0; }
.grad {
  background: linear-gradient(100deg, #64d2ff 0%, var(--blue) 40%, #30d158 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.small { font-size: 14px; color: var(--faint); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(64px, 11vw, 120px) 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(41, 151, 255, 0.22), transparent 70%),
    radial-gradient(35% 45% at 72% 50%, rgba(48, 209, 88, 0.12), transparent 70%);
  filter: blur(20px);
}
.hero h1 { margin-top: 22px; }
.hero .btn-row { margin-top: 36px; }
.hero .small { margin-top: 16px; }

.shot-stage { perspective: 1800px; margin-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(60px, 10vw, 120px); }
.window {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #1c1c1e;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 40px 120px rgba(0,0,0,0.8), 0 0 160px rgba(41,151,255,0.18);
}
.window-bar {
  display: flex; align-items: center; height: 30px; padding: 0 12px; gap: 8px;
  background: linear-gradient(#2c2c2e, #252527); border-bottom: 1px solid #111;
}
.window-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { flex: 1; text-align: center; font-size: 13px; color: #98989d; font-weight: 500; margin-right: 52px; }
.hero .window { transform: rotateX(18deg) scale(0.94); transform-origin: 50% 0; transition: transform .1s linear; will-change: transform; }
@media (max-width: 640px) { .window-bar span { font-size: 11px; margin-right: 40px; } .window-bar { height: 24px; } .window-bar i { width: 9px; height: 9px; } }

/* ---------------------------------------------------------------- stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 28px 12px; }
  .stat strong { font-size: 26px; white-space: nowrap; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head .lede { margin-top: 18px; }

.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature + .feature { margin-top: clamp(96px, 14vw, 180px); }
.feature ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; color: var(--muted); font-size: 17px; }
.feature li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(41,151,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='%232997ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.feature li b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
}

.media { position: relative; }
.media .glow { position: absolute; inset: 10%; z-index: -1; filter: blur(60px); opacity: .55; border-radius: 50%; }
.glow.blue { background: radial-gradient(var(--blue), transparent 70%); }
.glow.green { background: radial-gradient(var(--green), transparent 70%); }
.glow.orange { background: radial-gradient(var(--orange), transparent 70%); }
.panel { border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 30px 80px rgba(0,0,0,.7); background: #1c1c1e; }

/* stacked dialogs (host + join) */
.stack { position: relative; padding: 0 12% 18% 0; }
.stack .panel:last-child { position: absolute; right: 0; bottom: 0; width: 64%; }

/* side-by-side strips */
.strips { display: flex; gap: 2px; justify-content: center; align-items: flex-end; }
.strips .panel { border-radius: 10px; }

/* ---------------------------------------------------------------- mixer anatomy */
.anatomy-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 10px var(--gutter) 30px; margin: 0 calc(-1 * var(--gutter)); }
.anatomy-scroll::-webkit-scrollbar { display: none; }
.anatomy { display: flex; gap: 14px; justify-content: center; width: max-content; min-width: 100%; margin: 0 auto; }
.anatomy figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.anatomy img { height: clamp(420px, 52vw, 600px); width: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-strong), 0 30px 70px rgba(0,0,0,.6); }
.anatomy figcaption { margin-top: 18px; text-align: center; max-width: 200px; }
.anatomy figcaption strong { display: block; font-size: 15px; font-weight: 600; }
.anatomy figcaption span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.anatomy .sep { width: 1px; align-self: stretch; background: linear-gradient(transparent, var(--line-strong), transparent); margin: 0 6px 70px; }
.scroll-hint { display: none; text-align: center; font-size: 13px; color: var(--faint); margin-top: -10px; }
@media (max-width: 900px) { .scroll-hint { display: block; } }

/* ---------------------------------------------------------------- full-bleed image block */
.showcase { border-radius: var(--radius); background: linear-gradient(180deg, #0f0f12, #070708); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.showcase .panel { max-width: 980px; margin: clamp(32px, 5vw, 56px) auto 0; }
.showcase .section-head { margin-bottom: 0; }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; grid-column: span 2; border-radius: var(--radius); padding: 28px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: background .3s, transform .4s var(--ease);
}
.card:hover { background: var(--card-hi); }
.card.wide { grid-column: span 3; }
.card.full { grid-column: span 6; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 15px; margin: 8px 0 0; line-height: 1.45; }
.card .icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255,255,255,.07); }
.card .icon svg { width: 22px; height: 22px; }
.card .art { margin-top: auto; padding-top: 24px; }
.card .art img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line-strong); }
.card .art.bleed { margin: auto -28px -28px; padding-top: 24px; }
.card .art.bleed img { border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.typing .row { display: flex; gap: 6px; }
.typing .row + .row { margin-top: 6px; }
.typing .row.black { padding-left: 19px; }
.typing .row kbd, .typing .row span { width: 32px; height: 32px; display: grid; place-items: center; font-size: 13px; border-radius: 8px; }
.typing .row.black kbd { background: #2c2c2e; color: var(--muted); }
.typing .row:not(.black) kbd { background: #e8e8ed; color: #1d1d1f; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
kbd { font: 600 12px/1 var(--font); padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.1); box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); color: var(--text); }
@media (max-width: 960px) { .card, .card.wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card, .card.wide, .card.full { grid-column: auto; } }

/* ---------------------------------------------------------------- how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 30px 28px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-weight: 700; font-size: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue), #64d2ff); color: #000;
}
.step p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.step code, .faq code { font: 600 14px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.flow { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.flow .node { padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.flow .node small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.flow .arrow { color: var(--faint); font-size: 18px; }
.flow .node.hl { background: rgba(41,151,255,.12); box-shadow: inset 0 0 0 1px rgba(41,151,255,.45); }
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; }
.tech h4 { margin: 0; font-size: 17px; letter-spacing: -0.015em; }
.tech p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .tech { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tech { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); } .flow { flex-direction: column; } }

/* ---------------------------------------------------------------- download */
.download { position: relative; text-align: center; overflow: hidden; }
.download::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 600px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(50% 50% at 50% 40%, rgba(41,151,255,.2), transparent 70%);
}
.app-icon { width: 128px; height: 128px; margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(41,151,255,.25)); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; justify-content: center; margin-top: 48px; }
.platform { padding: 32px 28px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.platform svg.os { width: 40px; height: 40px; margin: 0 auto 14px; display: block; color: var(--text); }
.platform h3 { font-size: 22px; }
.platform p { margin: 6px 0 22px; font-size: 14px; color: var(--muted); }
.platform .btn { width: 100%; }
.platform.single { max-width: 420px; margin: 48px auto 0; padding: 36px 32px; }
.install { list-style: none; counter-reset: inst; padding: 0; margin: 40px auto 0; max-width: 880px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.install li { counter-increment: inst; position: relative; padding: 22px 22px 22px 60px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 15px; line-height: 1.45; }
.install li::before { content: counter(inst); position: absolute; left: 20px; top: 20px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text); background: rgba(255,255,255,.1); }
.install b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .install { grid-template-columns: 1fr; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px);
  padding: 13px 20px; border-radius: 14px; font-size: 15px;
  background: rgba(40, 40, 44, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--line-strong), 0 20px 50px rgba(0,0,0,.5);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 13px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer a { color: var(--muted); }
.footer .legal { flex-basis: 100%; font-size: 12px; line-height: 1.5; }

/* ---------------------------------------------------------------- FAQ */
.faq-hero { padding: clamp(64px, 10vw, 110px) 0 clamp(36px, 5vw, 56px); text-align: center; position: relative; }
.faq-hero::before { content: ""; position: absolute; inset: -40% 10% auto; height: 600px; z-index: -1; background: radial-gradient(40% 50% at 50% 50%, rgba(41,151,255,.18), transparent 70%); }
.search { position: relative; max-width: 560px; margin: 32px auto 0; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; padding: 15px 18px 15px 48px; border-radius: 14px; border: 0;
  background: var(--card); color: var(--text); font: inherit; font-size: 17px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chips a { font-size: 14px; color: var(--muted); padding: 7px 14px; border-radius: 980px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
.chips a:hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,.1); }

.faq { max-width: 820px; margin: 0 auto; padding-bottom: clamp(64px, 10vw, 120px); }
.faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 28px; letter-spacing: -0.025em; margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 22px 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23f5f5f7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq summary:hover::after { background-color: rgba(255,255,255,.14); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 24px; color: var(--muted); font-size: 17px; max-width: 720px; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer b { color: var(--text); font-weight: 600; }
.faq .answer ul { margin: 0 0 12px; padding-left: 20px; }
.faq .answer li { margin-bottom: 6px; }
.faq details[open] .answer { animation: reveal .35s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }
.no-results { display: none; text-align: center; color: var(--muted); padding: 40px 0; }
.help-cta { text-align: center; padding: 56px 28px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin-top: 80px; }
.help-cta p { color: var(--muted); margin: 10px 0 24px; }

/* ---------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .window { transform: none !important; }
  .eyebrow .dot { animation: none; }
}
