/* Flare website. Dark, bold, orange. No frameworks, no web fonts (system font stack). */

:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --bg-2: #111117;
  --panel: #16161d;
  --panel-2: #1c1c25;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #a3a3ad;
  --faint: #6f6f7a;
  --flare: #f38020;
  --flare-2: #faae40;
  --flare-glow: rgba(243, 128, 32, 0.35);
  --green: #3ad07a;
  --radius: 18px;
  --radius-small: 12px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--flare); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--flare-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--flare-2), var(--flare)); color: #fff; box-shadow: 0 10px 30px var(--flare-glow); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(243, 128, 32, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-small { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.btn-large { padding: 18px 30px; font-size: 18px; border-radius: 16px; }
.btn svg { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav { position: relative; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links .btn { margin-left: 8px; }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(243, 128, 32, 0.12); color: var(--flare-2); border: 1px solid rgba(243, 128, 32, 0.3);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flare); box-shadow: 0 0 10px var(--flare); }
.section-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.section-lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 52px; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.gradient-text { background: linear-gradient(120deg, #fff 20%, var(--flare-2) 60%, var(--flare)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 380px at 75% 30%, rgba(243, 128, 32, 0.28), transparent 70%),
    radial-gradient(500px 300px at 15% 10%, rgba(250, 174, 64, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 82px); font-weight: 850; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { margin-top: 18px; color: var(--faint); font-size: 14px; }
.hero-meta strong { color: var(--muted); font-weight: 600; }

/* ---------- app mockup ---------- */
.mock { position: relative; perspective: 1600px; }
.mock-window {
  border-radius: 16px; background: #1b1b22; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.6); overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg); transform-origin: center;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-10px); } }
.mock-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #24242c; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar b { margin-left: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mock-side { background: #202028; border-right: 1px solid var(--line); padding: 14px 10px; font-size: 12.5px; color: var(--muted); }
.mock-side .logo-row { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 800; font-size: 14px; margin: 0 6px 14px; }
.mock-side .logo-row img { width: 20px; height: 20px; }
.mock-side small { display: block; font-size: 10.5px; color: var(--faint); margin: 12px 8px 4px; font-weight: 600; }
.mock-side span { display: block; padding: 5px 8px; border-radius: 7px; }
.mock-side span.on { background: #3d63d6; color: #fff; }
.mock-main { padding: 14px; }
.mock-chips { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.mock-chips span { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.mock-chips span.on { background: var(--flare); color: #fff; }
.mock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mock-card { border-radius: 10px; overflow: hidden; background: #24242d; border: 1px solid var(--line); }
.mock-card .thumb { aspect-ratio: 16 / 9; position: relative; }
.mock-card .meta { padding: 7px 9px 9px; font-size: 11px; }
.mock-card .meta b { display: block; font-size: 11.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-card .meta span { color: var(--faint); }
.app-pill { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); font-size: 9.5px; font-weight: 700; color: #fff; }
.app-pill i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.time-pill { position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.65); font-size: 9.5px; font-weight: 700; color: #fff; font-family: var(--mono); }
.scene-blocks { background: linear-gradient(180deg, #7ec4ff 0 42%, #5fae3f 42% 52%, #8a5a33 52%), #5fae3f; }
.scene-blocks::after { content: ""; position: absolute; inset: 42% 0 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 14px, transparent 14px 28px), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0 12px, transparent 12px 24px); }
.scene-obby { background: radial-gradient(circle at 70% 30%, #ffd84d 0 8%, transparent 9%), linear-gradient(160deg, #3fb5ff, #8a5cff 70%); }
.scene-obby::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 18%; height: 18%; background: repeating-linear-gradient(90deg, #ff4d6d 0 18%, transparent 18% 26%); border-radius: 3px; }
.scene-race { background: linear-gradient(180deg, #ffb35c 0, #ff5e62 44%, #2b2b33 44%), #2b2b33; }
.scene-race::after { content: ""; position: absolute; inset: 45% 0 0; background: repeating-linear-gradient(90deg, transparent 0 46%, #ffd84d 46% 54%, transparent 54% 100%) center / 100% 8% no-repeat; }
.scene-video { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0 9%, transparent 10%), linear-gradient(135deg, #ff3b30, #8e0e00); }
.mock-toast {
  z-index: 2;
  position: absolute; right: -14px; bottom: 34px; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; background: rgba(28, 28, 36, 0.92); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: toast 6s ease-in-out infinite;
}
.mock-toast .check { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #08130c; font-size: 13px; font-weight: 900; }
@keyframes toast { 0%, 12% { opacity: 0; transform: translateY(12px); } 20%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
.mock-menubar {
  z-index: 2;
  position: absolute; left: -18px; top: -44px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: rgba(30, 30, 38, 0.92); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); font-size: 13px; color: var(--muted); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.mock-menubar img { width: 18px; height: 18px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 8px #ff453a; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- strip of games ---------- */
.strip { padding: 34px 0 10px; }
.strip p { text-align: center; color: var(--faint); font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--muted); font-weight: 700; font-size: clamp(15px, 2vw, 19px); }
.strip-row span { opacity: 0.75; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.step::before { counter-increment: step; content: counter(step); position: absolute; right: 18px; top: 4px; font-size: 92px; font-weight: 900; color: rgba(255, 255, 255, 0.04); line-height: 1; }
.step h3 { font-size: 22px; margin-top: 14px; }
.step p { color: var(--muted); margin: 0; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(243, 128, 32, 0.14); color: var(--flare-2); }
.step-icon svg { width: 26px; height: 26px; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 8px; background: linear-gradient(#2b2b35, #1f1f27); border: 1px solid var(--line-strong);
  box-shadow: 0 2px 0 #0a0a0e; font: 600 15px/1 var(--font); color: var(--text);
}
.keys { display: inline-flex; gap: 6px; vertical-align: middle; }

/* ---------- feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.feature-row.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.feature-text p { color: var(--muted); font-size: 18px; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 32px; color: var(--muted); }
.feature-list li strong { color: var(--text); font-weight: 600; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: rgba(243, 128, 32, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23faae40' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.feature-visual { border-radius: var(--radius); background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); padding: 28px; min-height: 320px; display: grid; place-items: center; position: relative; overflow: hidden; }
.feature-visual::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(var(--flare-glow), transparent 70%); top: -120px; right: -120px; opacity: 0.6; }
.feature-visual img.shot { border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: relative; }

.keycap-demo { display: grid; gap: 14px; position: relative; width: 100%; max-width: 360px; }
.keycap-demo .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.keycap-demo .row b { font-size: 22px; color: var(--flare-2); }

.app-badges { display: grid; gap: 12px; position: relative; width: 100%; max-width: 380px; }
.app-badge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.app-badge i { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.app-badge b { display: block; }
.app-badge span { color: var(--faint); font-size: 14px; }
.app-badge em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--green); font-weight: 700; }
.i-minecraft { background: linear-gradient(180deg, #5fae3f 0 40%, #8a5a33 40%); }
.i-roblox { background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18.926 23.998 0 18.892 5.075.002 24 5.108ZM15.348 10.09l-5.282-1.453-1.414 5.273 5.282 1.453z'/%3E%3C/svg%3E") center / 60% no-repeat; }
.i-safari { background: radial-gradient(circle, #fff 0 18%, transparent 19%), conic-gradient(#1e90ff, #5ac8fa, #1e90ff); }
.i-steam { background: #1b2838 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='15' cy='9' r='3' fill='%23fff'/%3E%3C/svg%3E") center / 64% no-repeat; }
.i-game { background: linear-gradient(135deg, #8a5cff, #3fb5ff); }

.share-demo { position: relative; width: 100%; max-width: 400px; display: grid; gap: 12px; }
.share-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 14px; color: var(--muted); }
.share-link span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-link b { font-family: var(--font); font-size: 13px; padding: 6px 10px; border-radius: 9px; background: var(--flare); color: #fff; }
.visibility { display: grid; gap: 8px; }
.visibility > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.visibility > div.on { border-color: rgba(243, 128, 32, 0.5); background: rgba(243, 128, 32, 0.1); }
.visibility b { display: block; font-size: 15px; }
.visibility span { font-size: 13px; color: var(--faint); }
.visibility svg { width: 20px; height: 20px; color: var(--flare-2); flex: none; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color 0.2s ease, transform 0.2s ease; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin: 14px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(243, 128, 32, 0.14); color: var(--flare-2); }
.card .icon svg { width: 24px; height: 24px; }

/* ---------- community clips ---------- */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.clip { display: block; text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform 0.2s ease, border-color 0.2s ease; }
.clip:hover { transform: translateY(-3px); border-color: rgba(243, 128, 32, 0.5); }
.clip .thumb { aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; position: relative; }
.clip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.clip .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s; background: rgba(0, 0, 0, 0.25); }
.clip:hover .play { opacity: 1; }
.clip .play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; }
.clip .play span::before { content: ""; border-left: 16px solid #111; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.clip .info { padding: 12px 14px 14px; }
.clip .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.clip .by { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.clip .by img, .clip .by .initial { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.clip .by .initial { display: grid; place-items: center; background: linear-gradient(135deg, var(--flare-2), var(--flare)); color: #fff; font-weight: 800; font-size: 11px; }
.clip .app-pill img { width: 12px; height: 12px; border-radius: 3px; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 20px; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 14px; aspect-ratio: 16 / 12; }
@keyframes shimmer { to { background-position: -200% 0; } }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- stats band ---------- */
.band { border-radius: 28px; padding: 56px; background: radial-gradient(500px 260px at 85% 0%, rgba(243, 128, 32, 0.32), transparent 70%), linear-gradient(160deg, #1d1d26, #121218); border: 1px solid var(--line-strong); overflow: hidden; position: relative; }
.band h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 850; }
.band p { color: var(--muted); font-size: 19px; max-width: 560px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.band img.band-logo { position: absolute; right: 48px; top: 50%; width: 220px; transform: translateY(-50%) rotate(-6deg); opacity: 0.9; filter: drop-shadow(0 20px 50px rgba(243, 128, 32, 0.4)); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--flare-2); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { color: var(--muted); padding: 0 0 20px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- download ---------- */
.download-hero { text-align: center; padding-bottom: 48px; }
.download-card { margin: 34px auto 0; max-width: 620px; padding: 36px; border-radius: 26px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); text-align: center; }
.download-card .app-icon { width: 108px; height: 108px; margin: 0 auto 18px; filter: drop-shadow(0 18px 40px rgba(243, 128, 32, 0.35)); }
.download-card h2 { font-size: 32px; margin-bottom: 4px; }
.version-line { color: var(--muted); margin-bottom: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 0; }
.facts div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.facts small { display: block; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.facts b { font-size: 15px; }
.sha { margin-top: 16px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.sha code { font-family: var(--mono); background: rgba(255, 255, 255, 0.05); padding: 4px 8px; border-radius: 6px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sha button { background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 7px; padding: 4px 9px; font: inherit; cursor: pointer; }
.install-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: install; }
.install-steps li { list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.install-steps li::before { counter-increment: install; content: counter(install); width: 32px; height: 32px; border-radius: 50%; background: var(--flare); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.install-steps h3 { font-size: 17px; margin-bottom: 6px; }
.install-steps p { color: var(--muted); font-size: 15px; margin: 0; }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: rgba(250, 174, 64, 0.08); border: 1px solid rgba(250, 174, 64, 0.3); color: var(--muted); margin-top: 22px; }
.notice b { color: var(--text); }
.release-notes { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.release-notes h3, .release-notes h4 { margin-top: 1.2em; }
.release-notes ul { padding-left: 20px; color: var(--muted); }
.release-notes code { font-family: var(--mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 5px; }
.thanks { display: none; margin: 22px auto 0; max-width: 620px; padding: 16px 20px; border-radius: 14px; background: rgba(58, 208, 122, 0.1); border: 1px solid rgba(58, 208, 122, 0.35); color: var(--text); }
.thanks.show { display: block; }

/* ---------- pricing / cloud ---------- */
.plan { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: 24px; padding: 34px; }
.plan.highlight { border-color: rgba(243, 128, 32, 0.55); box-shadow: 0 20px 60px rgba(243, 128, 32, 0.15); }
.plan .price { font-size: 52px; font-weight: 850; letter-spacing: -0.03em; }
.plan .price small { font-size: 18px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--flare-2); font-weight: 800; margin-right: 10px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.tag.orange { background: rgba(243, 128, 32, 0.16); color: var(--flare-2); }

.providers { display: flex; gap: 14px; flex-wrap: wrap; }
.provider { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-weight: 600; }
.provider i { width: 32px; height: 32px; border-radius: 9px; }
.i-discord { background: #5865f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20.3 4.4a19.8 19.8 0 0 0-4.9-1.5l-.7 1.3a18.3 18.3 0 0 0-5.5 0L8.6 2.9a19.7 19.7 0 0 0-4.9 1.5C.5 9 -.3 13.6.1 18a19.9 19.9 0 0 0 6 3.1l1.3-2a13 13 0 0 1-2-.9l.4-.3a14.2 14.2 0 0 0 12.2 0l.4.3c-.6.4-1.3.7-2 .9l1.2 2a19.8 19.8 0 0 0 6-3.1c.5-5.2-.8-9.6-3.5-13.6ZM8 15.3c-1.2 0-2.1-1.1-2.1-2.4S6.8 10.5 8 10.5s2.2 1.1 2.2 2.4-1 2.4-2.2 2.4Zm8 0c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4Z'/%3E%3C/svg%3E") center / 62% no-repeat; }

/* ---------- legal / prose ---------- */
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 850; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 680px; }
.prose { color: var(--muted); font-size: 16.5px; }
.prose h2 { color: var(--text); font-size: 26px; margin-top: 2em; }
.prose h3 { color: var(--text); font-size: 19px; margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--flare-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); }
.updated { color: var(--faint); font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--line-strong); }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.screen { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.screen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; background: #000; }
.screen div { padding: 16px 18px; }
.screen b { display: block; margin-bottom: 4px; }
.screen span { color: var(--muted); font-size: 14.5px; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 120px 0; }
.lost .big { font-size: clamp(90px, 18vw, 180px); font-weight: 900; line-height: 1; background: linear-gradient(120deg, var(--flare-2), var(--flare)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 36px; }
.footer-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; }
.footer-grid a:not(.btn):not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 15px; }
.footer-grid a:not(.btn):not(.brand):hover { color: var(--text); }
.footer-brand p { color: var(--muted); margin: 14px 0 18px; }
.footer-lang { margin-top: 22px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--faint); font-size: 14px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.flip .feature-text { order: 0; }
  .steps, .cards, .screens { grid-template-columns: 1fr 1fr; }
  .cards.four { grid-template-columns: 1fr 1fr; }
  .install-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band img.band-logo { display: none; }
  .mock-window { transform: none; animation: none; }
}
@media (max-width: 760px) {
  section { padding: 68px 0; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; cursor: pointer; border-radius: 10px; }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--flare); outline-offset: 2px; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; }
  .nav-toggle:checked ~ .nav-links { display: flex; position: absolute; left: -16px; right: -16px; top: 68px; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: rgba(11, 11, 15, 0.97); border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-links a:not(.btn) { padding: 12px 14px; font-size: 17px; }
  .nav-toggle:checked ~ .nav-links .btn { margin: 10px 0 0; }
  .steps, .cards, .cards.two, .cards.four, .screens, .install-steps, .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .band { padding: 36px 24px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-toast { right: 8px; }
  .mock-menubar { left: 8px; }
  .download-card { padding: 26px 18px; }
}

/* ---------- small additions ---------- */
.more-link { text-align: center; margin-top: 28px; }
.lost .hero-actions { justify-content: center; margin-top: 26px; }
.btn.disabled { opacity: 0.45; pointer-events: none; }
.section-lead.center { margin-left: auto; margin-right: auto; }
.narrow h2 { margin-top: 1.6em; }
.notice code { font-family: var(--mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 5px; }
.band a:not(.btn) { color: var(--flare-2); }

.faq + p { margin-top: 22px; }

/* ====================================================================== accounts */

/* navigation: Log in / your picture */
.nav-account { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-account:hover { background: rgba(255, 255, 255, 0.06); }
.nav-account.signed-in { padding: 4px 12px 4px 4px; border: 1px solid var(--line-strong); border-radius: 999px; max-width: 200px; }
.nav-account.signed-in span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initial { display: grid; place-items: center; background: linear-gradient(135deg, var(--flare-2), var(--flare)); color: #fff; font-weight: 800; }
.nav-avatar.avatar-initial { font-size: 13px; }

/* service tiles: centred square logos */
.tile-logo { display: block; width: 52px; height: 52px; border-radius: 14px; flex: none; background-repeat: no-repeat; background-position: center, center; background-size: 56%, cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.35); }
.logo-steam { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M 11.979 0 C 5.678 0 .511 4.86 .022 11.037 l 6.432 2.658 c .545 -.371 1.203 -.59 1.912 -.59 .063 0 .125 .004 .188 .006 l 2.861 -4.142 V 8.91 c 0 -2.495 2.028 -4.524 4.524 -4.524 2.494 0 4.524 2.031 4.524 4.527 s -2.03 4.525 -4.524 4.525 h -.105 l -4.076 2.911 c 0 .052 .004 .105 .004 .159 0 1.875 -1.515 3.396 -3.39 3.396 -1.635 0 -3.016 -1.173 -3.331 -2.727 L .436 15.27 C 1.862 20.307 6.486 24 11.979 24 c 6.627 0 11.999 -5.373 11.999 -12 S 18.605 0 11.979 0 z M 7.54 18.21 l -1.473 -.61 c .262 .543 .714 .999 1.314 1.25 1.297 .539 2.793 -.076 3.332 -1.375 .263 -.63 .264 -1.319 .005 -1.949 s -.75 -1.121 -1.377 -1.383 c -.624 -.26 -1.29 -.249 -1.878 -.03 l 1.523 .63 c .956 .4 1.409 1.5 1.009 2.455 -.397 .957 -1.497 1.41 -2.454 1.012 H 7.54 z m 11.415 -9.303 c 0 -1.662 -1.353 -3.015 -3.015 -3.015 -1.665 0 -3.015 1.353 -3.015 3.015 0 1.665 1.35 3.015 3.015 3.015 1.663 0 3.015 -1.35 3.015 -3.015 z m -5.273 -.005 c 0 -1.252 1.013 -2.266 2.265 -2.266 1.249 0 2.266 1.014 2.266 2.266 0 1.251 -1.017 2.265 -2.266 2.265 -1.253 0 -2.265 -1.014 -2.265 -2.265 z'/%3E%3C/svg%3E"), linear-gradient(160deg, #2a4a62, #15181f); }
.logo-discord { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M 20.317 4.3698 a 19.7913 19.7913 0 0 0 -4.8851 -1.5152 .0741 .0741 0 0 0 -.0785 .0371 c -.211 .3753 -.4447 .8648 -.6083 1.2495 -1.8447 -.2762 -3.68 -.2762 -5.4868 0 -.1636 -.3933 -.4058 -.8742 -.6177 -1.2495 a .077 .077 0 0 0 -.0785 -.037 19.7363 19.7363 0 0 0 -4.8852 1.515 .0699 .0699 0 0 0 -.0321 .0277 C .5334 9.0458 -.319 13.5799 .0992 18.0578 a .0824 .0824 0 0 0 .0312 .0561 c 2.0528 1.5076 4.0413 2.4228 5.9929 3.0294 a .0777 .0777 0 0 0 .0842 -.0276 c .4616 -.6304 .8731 -1.2952 1.226 -1.9942 a .076 .076 0 0 0 -.0416 -.1057 c -.6528 -.2476 -1.2743 -.5495 -1.8722 -.8923 a .077 .077 0 0 1 -.0076 -.1277 c .1258 -.0943 .2517 -.1923 .3718 -.2914 a .0743 .0743 0 0 1 .0776 -.0105 c 3.9278 1.7933 8.18 1.7933 12.0614 0 a .0739 .0739 0 0 1 .0785 .0095 c .1202 .099 .246 .1981 .3728 .2924 a .077 .077 0 0 1 -.0066 .1276 12.2986 12.2986 0 0 1 -1.873 .8914 .0766 .0766 0 0 0 -.0407 .1067 c .3604 .698 .7719 1.3628 1.225 1.9932 a .076 .076 0 0 0 .0842 .0286 c 1.961 -.6067 3.9495 -1.5219 6.0023 -3.0294 a .077 .077 0 0 0 .0313 -.0552 c .5004 -5.177 -.8382 -9.6739 -3.5485 -13.6604 a .061 .061 0 0 0 -.0312 -.0286 z M 8.02 15.3312 c -1.1825 0 -2.1569 -1.0857 -2.1569 -2.419 0 -1.3332 .9555 -2.4189 2.157 -2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332 -.9555 2.4189 -2.1569 2.4189 z m 7.9748 0 c -1.1825 0 -2.1569 -1.0857 -2.1569 -2.419 0 -1.3332 .9554 -2.4189 2.1569 -2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332 -.946 2.4189 -2.1568 2.4189 Z'/%3E%3C/svg%3E"), linear-gradient(160deg, #6875fa, #4f5ce6); }
.logo-roblox { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M 18.926 23.998 0 18.892 5.075 .002 24 5.108 Z M 15.348 10.09 l -5.282 -1.453 -1.414 5.273 5.282 1.453 z'/%3E%3C/svg%3E"), linear-gradient(160deg, #2b2b2e, #050505); }
.provider-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.provider-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; transition: transform 0.15s, border-color 0.2s, background 0.2s; }
.provider-tile:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.provider-tile[hidden] { display: none; }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field-row { display: flex; justify-content: space-between; gap: 12px; }
.field-row a { color: var(--flare-2); text-decoration: none; font-weight: 500; }
.field-row a:hover { text-decoration: underline; }
.field .hint { font-weight: 400; color: var(--faint); font-size: 13px; }
.input, .field input { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: #0e0e14; color: var(--text); font: 500 16px/1.3 var(--font); transition: border-color 0.2s, box-shadow 0.2s; }
.input:focus, .field input:focus { outline: none; border-color: var(--flare); box-shadow: 0 0 0 4px rgba(243, 128, 32, 0.18); }
.with-prefix, .with-reveal { position: relative; display: block; }
.with-prefix > span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 600; pointer-events: none; }
.with-prefix input { padding-left: 32px; }
.with-reveal input { padding-right: 52px; }
.reveal-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.reveal-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.reveal-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reveal-btn[aria-pressed="true"] { color: var(--flare-2); }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check-field input { margin-top: 3px; accent-color: var(--flare); width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-danger:hover { background: #f05a5f; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; margin: 0 0 18px; }
.alert[hidden] { display: none; }
.alert-error { background: rgba(229, 72, 77, 0.12); border: 1px solid rgba(229, 72, 77, 0.38); color: #ffb8ba; }
.alert-ok { background: rgba(58, 208, 122, 0.1); border: 1px solid rgba(58, 208, 122, 0.35); color: #a9f0c8; }
.form-status { margin: 0; }
.form-status.alert { margin: 4px 0 0; }

/* log in, create account, password pages */
.auth { padding: 56px 0 100px; overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: -20% -10% auto; height: 620px; background: radial-gradient(closest-side, rgba(243, 128, 32, 0.16), transparent); pointer-events: none; }
.auth-grid { position: relative; display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 56px; align-items: center; }
.auth-grid.single { grid-template-columns: minmax(0, 470px); justify-content: center; }
.auth-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: 26px; padding: 38px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 850; margin-bottom: 8px; }
.auth-card .lead { color: var(--muted); margin-bottom: 26px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.auth-switch { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.auth-switch a, .legal-note a { color: var(--flare-2); font-weight: 600; text-decoration: none; }
.auth-switch a:hover, .legal-note a:hover { text-decoration: underline; }
.legal-note { font-size: 13px; color: var(--faint); text-align: center; margin: 4px 0 0; }
.auth-visual { position: relative; min-height: 600px; }
.auth-visual .scene-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.auth-visual .scene-fallback img { width: 240px; filter: drop-shadow(0 30px 60px rgba(243, 128, 32, 0.45)); }
.auth-perks { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px; border-radius: 20px; background: rgba(17, 17, 23, 0.72); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 2; }
.auth-perks h2 { font-size: 20px; margin-bottom: 4px; }
.auth-perks .feature-list { margin-top: 10px; gap: 6px; font-size: 15px; }
.step-center { text-align: center; }
.mail-orb { position: relative; width: 96px; height: 96px; margin: 4px auto 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #ffb75c, var(--flare)); box-shadow: 0 18px 50px var(--flare-glow); }
.mail-orb svg { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mail-orb.waiting::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(243, 128, 32, 0.18); border-top-color: var(--flare-2); animation: spin 1.1s linear infinite; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* my account */
.account { padding: 48px 0 100px; }
.account-loading .spinner, .spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--flare); animation: spin 0.8s linear infinite; margin: 120px auto; }
.profile-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.avatar-edit { position: relative; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; color: inherit; }
.avatar-xl { display: block; width: 104px; height: 104px; }
.avatar-md { display: block; width: 64px; height: 64px; }
[data-avatar] .avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-xl .avatar-initial { font-size: 42px; }
.avatar-md .avatar-initial { font-size: 26px; }
.avatar-xl .avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(243, 128, 32, 0.6), 0 20px 50px rgba(0, 0, 0, 0.5); }
.avatar-badge { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--flare); border: 3px solid var(--bg); display: grid; place-items: center; transition: transform 0.15s; }
.avatar-badge svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.avatar-edit:hover .avatar-badge { transform: scale(1.08); }
.profile-id { min-width: 0; }
.profile-id h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 850; margin: 0 0 4px; overflow-wrap: anywhere; }
.profile-id p { color: var(--muted); margin: 0 0 10px; }
.badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.profile-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.usage-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 30px; }
.usage-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.usage-top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.usage-card p { margin: 10px 0 0; color: var(--faint); font-size: 14px; }
.meter { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter > span { display: block; height: 100%; width: calc(var(--share, 0) * 100%); min-width: 4px; background: linear-gradient(90deg, var(--flare-2), var(--flare)); border-radius: inherit; transition: width 0.4s ease; }
.meter > span.full { background: linear-gradient(90deg, #ff8a5c, #e5484d); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font: 650 16px var(--font); padding: 12px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--flare); }
.tabs .count { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.clips-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--muted); font: 600 14px var(--font); cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--flare); border-color: var(--flare); color: #fff; }
.upload-btn { cursor: pointer; }
.upload-btn input { display: none; }
.drop-zone { border: 2px dashed var(--flare); border-radius: var(--radius); padding: 42px; text-align: center; color: var(--flare-2); font-weight: 700; margin-bottom: 20px; background: rgba(243, 128, 32, 0.06); }
.drop-zone[hidden] { display: none; }
.upload-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.upload-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.upload-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-status { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.upload-card.done .upload-status { color: var(--green); }
.upload-card.failed .upload-status { color: #ff8b8e; flex: 1; text-align: right; }
.my-clips { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.my-clip { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.2s; }
.my-clip:hover { border-color: var(--line-strong); }
.my-clip .thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, #24242e, #16161d); }
.my-clip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-clip .play, .clip .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s; background: rgba(0, 0, 0, 0.25); }
.my-clip .thumb:hover .play, .my-clip .thumb:focus-visible .play { opacity: 1; }
.my-clip .play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; }
.my-clip .play span::before { content: ""; border-left: 16px solid #111; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.my-clip .app-pill, .clip .app-pill { left: 10px; bottom: 10px; font-size: 12px; padding: 3px 10px 3px 4px; gap: 6px; }
.my-clip .app-pill img, .clip .app-pill img { width: 16px; height: 16px; border-radius: 4px; }
.my-clip .time-pill, .clip .time-pill { right: 10px; bottom: 10px; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.my-clip-body { padding: 14px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.title-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.title-row .title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; }
.my-clip .meta { color: var(--faint); font-size: 13px; }
.clip-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.visibility { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; padding: 8px 30px 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #101016 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23a3a3ad' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 12px no-repeat; color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.visibility.v-public { border-color: rgba(58, 208, 122, 0.5); color: #a9f0c8; }
.visibility.v-private { color: var(--muted); }
.icon-btn { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.icon-btn.danger:hover { color: #ff8b8e; border-color: rgba(229, 72, 77, 0.45); }
.title-row .icon-btn { width: 28px; height: 28px; border: 0; background: none; opacity: 0.6; }
.title-row .icon-btn:hover { opacity: 1; }
.rename-input { flex: 1; min-width: 0; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--flare); background: #0e0e14; color: var(--text); font: 600 15px var(--font); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.setting-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.setting-card h2 { font-size: 20px; margin-bottom: 6px; }
.setting-card > p { color: var(--muted); font-size: 15px; }
.setting-card .form { margin-top: 16px; }
.setting-card.danger { border-color: rgba(229, 72, 77, 0.35); }
.setting-card.danger h2 { color: #ff8b8e; }
.avatar-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar-row .buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.email-line { font-weight: 600; overflow-wrap: anywhere; color: var(--text) !important; }
.connections { display: grid; gap: 10px; margin-top: 16px; }
.connection { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.connection .tile-logo { width: 44px; height: 44px; border-radius: 12px; }
.connection-text { flex: 1; min-width: 0; display: grid; }
.connection-text span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection.on .connection-text span { color: var(--green); }
.modal { border: 1px solid var(--line-strong); border-radius: 22px; background: var(--panel-2); color: var(--text); padding: 28px; width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(5, 5, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal h2 { font-size: 22px; }
.modal p { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modal.player { width: min(1040px, calc(100% - 32px)); padding: 0; overflow: hidden; background: #000; }
.modal.player video { display: block; width: 100%; max-height: 72vh; background: #000; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--panel-2); }
.player-bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { padding: 12px 18px; border-radius: 14px; background: rgba(28, 28, 36, 0.97); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: none; }
.toast-error { border-color: rgba(229, 72, 77, 0.55); color: #ffc2c4; }

/* profiles */
.profile-page { padding-top: 0; padding-bottom: 100px; }
.profile-hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 64px 0 36px; }
.profile-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 850; margin: 0 0 4px; overflow-wrap: anywhere; }
.profile-hero p { color: var(--muted); margin: 0; }
.profile-stats { margin-left: auto; text-align: right; }
.profile-stats b { display: block; font-size: 40px; font-weight: 850; line-height: 1; }
.profile-stats span { color: var(--muted); }

/* 3D scenes (three.js): the canvas covers its host; the 2D picture under it shows until the first frame */
[data-scene-host] { position: relative; }
canvas[data-scene] { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 0.9s ease; z-index: 1; }
.has-3d > canvas[data-scene] { opacity: 1; pointer-events: auto; }
.has-3d > .scene-fallback { opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.hero-stage { min-height: 560px; display: grid; align-items: center; }
.hero-stage canvas[data-scene] { inset: -40px -48px -20px 0; width: calc(100% + 48px); height: calc(100% + 60px); cursor: pointer; }
.scene-hint { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2; display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(17, 17, 23, 0.75); border: 1px solid var(--line); color: var(--muted); font-size: 13px; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.has-3d > .scene-hint { display: inline-flex; }
.scene-hint kbd { font-size: 11px; padding: 2px 6px; }
.band-scene { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; }
.band-scene .scene-fallback { position: absolute; right: 48px; top: 50%; transform: translateY(-50%) rotate(-6deg); width: 220px; opacity: 0.9; filter: drop-shadow(0 20px 50px rgba(243, 128, 32, 0.4)); }

/* accounts teaser on the home page */
.accounts-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 28px; background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(243, 128, 32, 0.1)); border: 1px solid var(--line-strong); }
.accounts-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 850; }
.accounts-band p { color: var(--muted); font-size: 18px; }
.accounts-band .provider-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.accounts-band .provider-tile { background: rgba(11, 11, 15, 0.5); padding: 22px 8px 16px; }
.accounts-band .tile-logo { width: 64px; height: 64px; border-radius: 18px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(30px, 4vw, 40px); font-weight: 850; letter-spacing: -0.03em; background: linear-gradient(135deg, #fff, var(--flare-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-visual { min-height: 340px; }
  .auth-visual .auth-perks { display: none; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .accounts-band { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stage { min-height: 440px; }
  .hero-stage canvas[data-scene] { inset: -10px -16px; width: calc(100% + 32px); height: calc(100% + 20px); }
  .band-scene { display: none; }
}
@media (max-width: 600px) {
  .auth { padding-top: 24px; }
  .auth-card { padding: 26px 20px; border-radius: 22px; }
  .auth-visual { display: none; }
  .profile-actions { margin-left: 0; width: 100%; }
  .profile-actions .btn { flex: 1; }
  .profile-stats { margin-left: 0; text-align: left; }
  .hero-stage { min-height: 360px; }
}
