@font-face { font-family: Inter; src: url("assets/fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root { color-scheme: dark; font-family: Inter, "Segoe UI", sans-serif; color: #f6f7fb; background: #090b12; --panel: #111520; --line: #272d3c; --muted: #adb6c7; --accent: #70d7fa; --gradient: linear-gradient(90deg, #65bbff, #a68bff 55%, #dc62d4); }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 25% 0, #12202d, transparent 44%), radial-gradient(ellipse at 100% 10%, #211527, transparent 36%); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.top, .footer, nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.top, .footer { justify-content: space-between; min-height: 70px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #285877; border-radius: 12px; color: var(--accent); background: linear-gradient(145deg, #153247, #161c2c); }
.brand em { color: var(--accent); font-style: normal; }
.brand small { max-width: 95px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; white-space: normal; }
nav, .footer { color: var(--muted); font-size: 14px; }
.nav-login { padding: 8px 14px; border: 1px solid #2d5971; border-radius: 9px; color: var(--accent); }
.hero { padding-block: 36px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(36px, 5vw, 64px); }
h1 strong { background: var(--gradient); background-clip: text; color: transparent; }
p { line-height: 1.55; }
.intro { max-width: 800px; margin: 12px 0 26px; color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
figure { margin: 0; }
.demo-player, .sign-in { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #090b12; }
.demo-player { display: flex; flex-direction: column; justify-content: center; background: #090b12; }
.demo-player figcaption { background: var(--panel); }
figcaption { padding: 10px 14px; color: var(--muted); font-size: 14px; }
.sign-in { align-self: stretch; padding: clamp(20px, 3vw, 34px); background: linear-gradient(150deg, #171c29, var(--panel)); }
.sign-in p:not(.eyebrow) { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.sign-in p:empty { display: none; }
.sign-in #auth-error { color: #ff9da7; }
.sign-in label { display: block; margin: 19px 0 7px; font-size: 14px; font-weight: 600; }
.sign-in input { width: 100%; padding: 12px; border: 1px solid #475063; border-radius: 9px; background: #090b12; }
.primary { display: block; width: 100%; margin-top: 12px; padding: 12px; border: 1px solid transparent; border-radius: 9px; background: var(--gradient); color: #09101b; font-weight: 700; text-align: center; }
button:disabled { opacity: .55; cursor: default; }
.social-login { display: grid; gap: 8px; }
.social-login button { padding: 10px 12px; border: 1px solid #2d5971; border-radius: 9px; background: #111a28; color: inherit; }
.social-login button:hover { border-color: var(--accent); }
.code-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.code-actions button, .guide-trigger { padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
#local-return { display: inline-block; color: var(--accent); margin-top: 8px; }
.section { padding-block: 26px; border-top: 1px solid var(--line); }
.guide { text-align: center; }
.quick-steps, .templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-steps { padding: 0; margin: 18px 0; list-style: none; }
.guide h2 { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.guide h2::before, .guide h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.quick-steps li { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.2vw, 18px); padding: 12px 22px 12px 8px; }
.quick-steps li + li::before { content: ""; position: absolute; left: -13px; width: 8px; height: 8px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); }
.step-number { display: grid; flex: 0 0 34px; place-items: center; height: 34px; border: 1px solid #2d5971; border-radius: 50%; color: var(--accent); font-size: 14px; }
.step-icon { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.templates { margin-top: 14px; }
.templates figure, details { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.templates img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.faq h2 { margin-bottom: 16px; }
details + details { margin-top: 8px; }
summary { padding: 13px 16px; font-weight: 600; }
details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
.footer { border-top: 1px solid var(--line); border-bottom: 0; }
dialog { position: fixed; width: min(690px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: clamp(20px, 4vw, 34px); border: 1px solid #2d5971; border-radius: 18px; background: var(--panel); color: inherit; }
dialog::backdrop { background: #05070bd9; }
.close-guide { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #171c29; color: inherit; }
.full-steps { margin: 22px 0 0; padding-left: 24px; }
.full-steps li { padding-left: 7px; }
.full-steps li::marker { color: var(--accent); }
.full-steps p { margin: 4px 0 13px; color: var(--muted); }
@media (max-width: 720px) {
  .hero-grid, .templates { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
}
@media (max-width: 460px) {
  .top { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  nav { font-size: 12px; }
  .brand { gap: 5px; font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand small { display: none; }
  .quick-steps li { display: grid; grid-template-columns: auto auto; justify-items: center; padding: 2px; font-size: 13px; }
  .step-number { width: 28px; height: 28px; }
  .step-icon { width: 23px; height: 23px; }
  .step-label { grid-column: 1 / -1; }
}