@font-face { font-family: "Inter X"; src: url("/font/inter-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #111110;
  --bg-2: #181816;
  --bg-3: #20201d;
  --line: #2b2b27;
  --line-2: #3a3a35;
  --text: #ecebe6;
  --mute: #9a9990;
  --dim: #6c6b64;
  --acc: #ff6a2b;
  --acc-ink: #1f0a00;
  --paper: #ecebe6;
  --paper-ink: #151513;
  --err: #ff7a6b;
  --warn: #f2c14e;
  --display: "Inter X", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --frost: rgba(24, 24, 22, .72);
  /* names used by the auth and admin stylesheets */
  --glass: var(--bg-2); --glass-2: var(--bg-3); --stroke: var(--line); --stroke-2: var(--line-2);
  --hi: 0 0 0 transparent; --acc-soft: rgba(255, 106, 43, .1); --acc-2: #ffc53d; --r: 14px;
  --blur: blur(14px) saturate(140%);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { margin: 0; font: 15.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: clip; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.d { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }
.label { font: 12px var(--mono); color: var(--dim); }
.hl { color: var(--acc); }

/* surfaces: flat panels; frosted glass only for things that float over content */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.glass { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.modal > .glass { width: min(520px, 100%); padding: 24px; max-height: 90vh; overflow: auto; background: var(--frost); backdrop-filter: var(--blur); }
.frost { background: var(--frost); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(17, 17, 16, .78); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: -.025em; }
.brand img { width: 26px; height: 26px; }
.nav .links { display: flex; gap: 2px; margin-left: 10px; }
.nav .links a { text-decoration: none; color: var(--mute); padding: 7px 10px; border-radius: 8px; font-size: 14.5px; }
.nav .links a:hover { color: var(--text); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 9px 15px; font-size: 14.5px; text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); transition: background .12s, border-color .12s; white-space: nowrap; }
.btn:hover { border-color: #55554d; }
.btn.primary { background: var(--paper); border-color: var(--paper); color: var(--paper-ink); font-weight: 600; }
.btn.primary:hover { background: #fff; }
.btn.go { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 650; }
.btn.go:hover { filter: brightness(1.06); }
.btn.big { padding: 12px 20px; font-size: 15.5px; border-radius: 10px; }
.btn.ghost { background: none; border-color: transparent; color: var(--mute); }
.btn.ghost:hover { color: var(--text); background: var(--bg-3); }
.btn.danger { color: var(--err); background: none; border-color: rgba(255, 122, 107, .35); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 15px; height: 15px; flex: none; }

/* forms */
.input { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 13px; outline: 0; transition: border-color .12s; }
.input:focus { border-color: var(--text); }
.input::placeholder { color: var(--dim); }
textarea.input { resize: vertical; min-height: 84px; }
label.f { display: grid; gap: 6px; font-size: 13.5px; color: var(--mute); }
.msg { font-size: 14px; padding: 10px 13px; border-radius: 9px; margin: 0; }
.msg.err { color: var(--err); background: rgba(255, 122, 107, .07); border: 1px solid rgba(255, 122, 107, .25); }
.msg.ok { color: var(--acc); background: rgba(255, 106, 43, .07); border: 1px solid rgba(255, 106, 43, .25); }
.msg.note { color: var(--text); background: var(--bg-3); border: 1px solid var(--line-2); }

/* segmented control */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; padding: 2px; gap: 2px; background: var(--bg); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 7px; font-size: 13.5px; color: var(--mute); cursor: pointer; white-space: nowrap; }
.seg button:hover:not(:disabled) { color: var(--text); }
.seg button.on, .seg button.on:hover { background: var(--paper); color: var(--paper-ink); }
[id] { scroll-margin-top: 76px; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.pro-tag { font: 700 10px var(--mono); color: var(--acc-ink); background: var(--acc); padding: 1px 5px; border-radius: 4px; margin-left: 5px; vertical-align: 1px; }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(8, 8, 7, .6); backdrop-filter: blur(4px); }
.modal > .box { width: min(520px, 100%); padding: 24px; max-height: 90vh; overflow: auto; border-radius: 14px; }
.modal h3 { margin: 0 0 6px; font: 800 21px var(--display); letter-spacing: -.02em; }
.modal p { color: var(--mute); margin: 0 0 14px; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; padding: 11px 16px; border-radius: 10px; font-size: 14px; }

/* caption preview stage (shared by landing and app) */
.stage { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; container-type: size; user-select: none; }
.stage .bg { position: absolute; inset: -6%; background: center / cover no-repeat; filter: blur(18px) brightness(.62) saturate(1.15); }
.stage .fg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; aspect-ratio: 16 / 9; background: center / cover no-repeat; }
.stage .fg.full { top: 0; transform: none; height: 100%; aspect-ratio: auto; }
.stage.push .fg { animation: push 6s ease-in-out infinite alternate; }
@keyframes push { to { scale: 1.07; } }
.stage .cap, .stage .head { position: absolute; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; text-align: center; line-height: 1.02; }
.stage .cap span { display: inline-block; }
.stage .cap.box, .stage .head { padding: .16em .36em .2em; border-radius: .32em; }
.stage .head { top: 22%; font: 800 calc(60 * 100cqh / 1920) var(--display); color: #fff; background: rgba(11, 15, 13, .9); white-space: normal; width: max-content; max-width: 82%; }
.stage .mark { position: absolute; top: 6.5%; left: 50%; transform: translateX(-50%); font: 800 calc(34 * 100cqh / 1920) var(--display); color: rgba(255, 255, 255, .62); white-space: nowrap; }
.stage .bar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(12 * 100cqh / 1920); background: rgba(255, 255, 255, .25); }
.stage .bar.top { top: 0; bottom: auto; }
.stage .bar i { display: block; height: 100%; width: 0; transition: width .3s linear; }
.stage.outro .bg { filter: blur(10px) brightness(.8) saturate(1.15); }
.stage.outro .dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.stage.outro .oc { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: calc(30 * 100cqh / 1920); text-align: center; padding: 0 8%; }
.stage.outro .ologo { width: calc(300 * 100cqw / 1080); max-height: 22cqh; object-fit: contain; }
.stage.outro .ot { font-size: calc(92 * 100cqh / 1920); color: #fff; line-height: 1.05; }
.stage.outro .oh { font-size: calc(62 * 100cqh / 1920); }
.stage.outro .ob { font-size: calc(58 * 100cqh / 1920); color: #fff; padding: .45em 1.1em; border-radius: 999px; margin-top: .3em; }
/* switched off: keep the card readable, just mark it, so people can see what they would get */
.stage.outro .state { position: absolute; top: 10px; left: 10px; z-index: 2; font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--acc); color: var(--acc-ink); }
.stage.outro.off .state { background: rgba(17, 17, 16, .85); color: var(--mute); border: 1px solid var(--line-2); }
.stage.outro.off .oc { opacity: .55; }
.cap.pop { animation: cap-pop .17s ease-out; }
.cap.bounce { animation: cap-bounce .23s ease-out; }
@keyframes cap-pop { from { transform: translate(-50%, -50%) scale(.84); } 65% { transform: translate(-50%, -50%) scale(1.04); } }
@keyframes cap-bounce { from { transform: translate(-50%, -50%) scale(.7); } 40% { transform: translate(-50%, -50%) scale(1.14); } 75% { transform: translate(-50%, -50%) scale(.95); } }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 90px; padding: 30px 0 44px; color: var(--mute); font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: start; }
.foot .cols { display: flex; gap: 26px; flex-wrap: wrap; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .by { grid-column: 1 / -1; color: var(--dim); font-size: 13.5px; }
.foot .by a { color: var(--text); }
.renders { font: 13px var(--mono); color: var(--mute); }
.renders b { color: var(--text); font-weight: 600; }

@media (max-width: 820px) { .nav .links { display: none; } .foot .wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
