:root {
  --bg: #fafaf9;
  --bg2: #f3f2ef;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --ink: #0d0d0f;
  --ink2: #3b3a40;
  --muted: #76747d;
  --line: rgba(13, 13, 15, 0.09);
  --line2: rgba(13, 13, 15, 0.16);
  --accent: #6d4aff;
  --accent2: #ff6a3d;
  --good: #11a36a;
  --warn: #c98a00;
  --bad: #d93a3a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(20, 10, 60, 0.06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 70px rgba(30, 10, 80, 0.12);
  --r: 18px;
  --r-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0e; --bg2: #121217; --card: rgba(24, 24, 30, 0.7); --card-solid: #17171c;
    --ink: #f4f3f7; --ink2: #cfcdd6; --muted: #8e8b98; --line: rgba(255, 255, 255, 0.08); --line2: rgba(255, 255, 255, 0.16);
    --accent: #8b6dff; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.35); --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0e; --bg2: #121217; --card: rgba(24, 24, 30, 0.7); --card-solid: #17171c;
  --ink: #f4f3f7; --ink2: #cfcdd6; --muted: #8e8b98; --line: rgba(255, 255, 255, 0.08); --line2: rgba(255, 255, 255, 0.16);
  --accent: #8b6dff; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.35); --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* glow background */
.aura { position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.aura i { position: absolute; border-radius: 50%; }
.aura i:nth-child(1) { width: 46vw; height: 46vw; left: 4vw; top: 0; background: radial-gradient(circle, #b9a6ff 0%, transparent 65%); }
.aura i:nth-child(2) { width: 40vw; height: 40vw; right: 2vw; top: 6vh; background: radial-gradient(circle, #ffc2a8 0%, transparent 65%); }
.aura i:nth-child(3) { width: 30vw; height: 30vw; left: 38vw; top: 26vh; background: radial-gradient(circle, #a8e6ff 0%, transparent 65%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aura { opacity: 0.22; } }
:root[data-theme="dark"] .aura { opacity: 0.22; }

/* header */
header.top { position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; text-decoration: none; }
.logo b { width: 26px; height: 26px; border-radius: 8px; background: conic-gradient(from 210deg, #6d4aff, #ff6a3d, #ffd84a, #36c6ff, #6d4aff); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 4px 14px rgba(109, 74, 255, 0.35); }
nav.links { display: flex; gap: 4px; margin-left: 10px; }
nav.links a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--ink2); font-size: 14px; }
nav.links a:hover, nav.links a.on { background: var(--line); color: var(--ink); }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 13.5px; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill .dot.on { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent); }
.pill .dot.busy { background: var(--warn); }
.h3badge { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--card-solid);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 550; font-size: 14px; text-decoration: none; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn.grad { color: #fff; border: 0; background: linear-gradient(135deg, #6d4aff 0%, #9b5cff 45%, #ff6a3d 100%); box-shadow: 0 8px 24px rgba(109, 74, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn.grad:hover { box-shadow: 0 12px 32px rgba(109, 74, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 24px; font-size: 16px; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card-solid); cursor: pointer; display: inline-grid; place-items: center; }

/* hero */
.hero { padding-top: 76px; padding-bottom: 40px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink2); padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.045em; margin: 18px 0 16px; font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #6d4aff, #c050ff 40%, #ff6a3d 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink2); max-width: 520px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.reel { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reel .tile { border-radius: 22px; overflow: hidden; background: #111; box-shadow: var(--shadow-lg); aspect-ratio: 9 / 16; position: relative; }
.reel .tile:nth-child(2) { transform: translateY(42px); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel .tag { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); padding: 4px 9px; border-radius: 999px; }

section.band { padding: 64px 0; }
section.band h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; margin: 0 0 10px; line-height: 1.1; }
section.band > .wrap > p.sub { color: var(--muted); margin: 0 0 30px; max-width: 620px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; backdrop-filter: blur(10px); }
.card h3 { margin: 10px 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--bg2); border: 1px solid var(--line); }

.price { display: flex; flex-direction: column; gap: 6px; }
.price .amt { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.price .cr { font-weight: 600; }
.price.best { border: 1.5px solid var(--accent); box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 22%, transparent); }
.ratetable { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.ratetable td { padding: 10px 4px; border-top: 1px solid var(--line); }
.ratetable td:last-child { text-align: right; font-weight: 600; }

details.faq { border-top: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink2); margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 48px; color: var(--muted); font-size: 13.5px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* studio */
.studio { display: grid; grid-template-columns: 430px 1fr; gap: 22px; padding-top: 26px; padding-bottom: 40px; align-items: start; }
.composer { position: sticky; top: 80px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; }
.tabs button { border: 0; background: transparent; padding: 9px 4px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 550; color: var(--ink2); line-height: 1.2; }
.tabs button.on { background: var(--card-solid); color: var(--ink); box-shadow: var(--shadow); }
.field { margin-top: 14px; }
.field label.lbl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink2); }
textarea.prompt { width: 100%; min-height: 150px; resize: vertical; border-radius: 14px; border: 1px solid var(--line2); background: var(--card-solid); padding: 12px 14px; outline: none; line-height: 1.5; }
textarea.prompt:focus, input.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input.inp { width: 100%; border-radius: 12px; border: 1px solid var(--line2); background: var(--card-solid); padding: 11px 13px; outline: none; }
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drops.one { grid-template-columns: 1fr; }
.drops.three { grid-template-columns: repeat(3, 1fr); }
.drop { position: relative; border: 1.5px dashed var(--line2); border-radius: 14px; min-height: 120px; display: grid; place-items: center; text-align: center; cursor: pointer; background: var(--card-solid); overflow: hidden; font-size: 13px; color: var(--muted); padding: 8px; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--ink); }
.drop img, .drop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.55); color: #fff; cursor: pointer; }
.drop .lbl2 { position: absolute; left: 6px; top: 6px; z-index: 2; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.55); padding: 2px 7px; border-radius: 999px; }
.drop .spin { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,0.6); z-index: 3; color: #222; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; gap: 4px; padding: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px 6px; border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--ink2); }
.seg button.on { background: var(--card-solid); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.range { display: flex; align-items: center; gap: 10px; }
.range input { flex: 1; accent-color: var(--accent); }
.range b { min-width: 34px; text-align: right; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-solid); cursor: pointer; font-size: 13.5px; }
.toggle input { width: 38px; height: 22px; appearance: none; border-radius: 999px; background: var(--line2); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { left: 19px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink2); margin-top: 12px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.gen { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.gen .btn { flex: 1; }
.costline { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err { color: var(--bad); font-size: 13.5px; margin-top: 10px; }

.feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.feed-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.job { border-radius: var(--r); background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.job .media { position: relative; background: linear-gradient(135deg, var(--bg2), color-mix(in srgb, var(--accent) 10%, var(--bg2))); aspect-ratio: 9 / 16; display: grid; place-items: center; overflow: hidden; }
.job .media.wide { aspect-ratio: 16 / 9; }
.job .media video, .job .media img { width: 100%; height: 100%; object-fit: cover; }
.job .status { position: absolute; inset: auto 10px 10px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(15, 12, 25, 0.62); backdrop-filter: blur(10px); color: #fff; font-size: 12.5px; }
.job .status .bar { height: 5px; background: rgba(255,255,255,0.22); border-radius: 99px; overflow: hidden; margin-top: 7px; }
.job .status .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8b6dff, #ff8a5c); border-radius: 99px; transition: width .6s; }
.job .status .bar.ind i { width: 35%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.job .shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%); background-size: 200% 100%; animation: sh 2.2s linear infinite; }
@keyframes sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.job .meta { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.job .meta .p { font-size: 13px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job .meta .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: 11.5px; color: var(--ink2); }
.chip.bad { color: var(--bad); }
.chip.good { color: var(--good); }
.job .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 40px 20px; text-align: center; color: var(--muted); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(10, 8, 20, 0.45); backdrop-filter: blur(6px); }
.modal .box { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card-solid); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 26px; position: relative; }
.modal .box.wide { width: min(760px, 100%); }
.modal h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.modal .close { position: absolute; top: 14px; right: 14px; }
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.pack { border: 1.5px solid var(--line2); border-radius: 16px; padding: 14px; cursor: pointer; background: var(--card-solid); text-align: left; }
.pack:hover, .pack.on { border-color: var(--accent); }
.pack .a { font-size: 22px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.player { width: 100%; max-height: 72vh; border-radius: 14px; background: #000; }
.ledger td { padding: 7px 4px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 30px; }
  .studio { grid-template-columns: 1fr; }
  .composer { position: static; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid5 { grid-template-columns: repeat(2, 1fr); }
  nav.links { display: none; }
}
@media (max-width: 640px) {
  .grid3, .grid4, .grid5 { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .logo span { display: none; }
  .btn.sm { padding: 6px 10px; }
  .reel .tile:nth-child(2) { transform: translateY(24px); }
  .packs { grid-template-columns: 1fr; }
  header.top .wrap { gap: 8px; }
}
#guestBtns, #userBtns { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
#guestBtns.hidden, #userBtns.hidden { display: none !important; }
@media (max-width: 360px) { .h3badge { font-size: 11px; padding: 4px 8px; } header.top .btn.sm { padding: 6px 9px; font-size: 12.5px; } }
/* prompt coach */
.coachbar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.builder { margin-top: 10px; padding: 14px; border: 1px solid var(--line2); border-radius: 14px; background: var(--bg2); display: grid; gap: 10px; }
.builder label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.builder .inp { font-weight: 400; font-size: 14px; padding: 9px 11px; }
.builder select.inp { appearance: auto; }
.bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coach { margin-top: 10px; }
.coach .head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.coach .meter { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.coach .meter i { display: block; height: 100%; border-radius: 99px; transition: width .4s, background .4s; }
.coach ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.coach li { font-size: 12.8px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; background: var(--card-solid); border: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; }
.coach li b { flex: none; }
.coach li.bad { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.coach li.warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.coach li.good { border-color: color-mix(in srgb, var(--good) 30%, var(--line)); }
.coach li button { margin-left: auto; flex: none; }
@media (max-width: 640px) { .bgrid { grid-template-columns: 1fr; } }

/* Robu mascot */
.logo img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(60, 40, 120, 0.25)); }
.mascot { display: flex; align-items: center; gap: 14px; margin-top: 26px; max-width: 520px; }
.mascot img { width: 108px; height: auto; flex: none; filter: drop-shadow(0 14px 22px rgba(40, 20, 90, 0.25)); animation: bob 3.6s ease-in-out infinite; }
.mascot .bubble { position: relative; background: var(--card-solid); color: var(--ink2); border: 1px solid var(--line2); border-radius: 18px; padding: 12px 15px;
  font-size: 14px; line-height: 1.45; box-shadow: var(--shadow); }
.mascot .bubble::before { content: ""; position: absolute; left: -8px; top: 50%; width: 14px; height: 14px; background: var(--card-solid);
  border-left: 1px solid var(--line2); border-bottom: 1px solid var(--line2); transform: translateY(-50%) rotate(45deg); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-7px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .mascot img { animation: none; } }
.empty img { display: block; }
@media (max-width: 640px) { .mascot img { width: 84px; } .mascot .bubble { font-size: 13px; } }
