/* ==========================================================================
   MagoBot site — design system
   Soft Flow Night palette (same as the desktop app theme "Soft Flow Night"):
   accent #F26A1B, peach #FF9A55, neutral graphite surfaces. Plus Jakarta Sans + JetBrains Mono.
   ========================================================================== */
:root {
  --bg: #0e1014;
  --bg-2: #15181e;
  --surface: rgba(28, 31, 38, .66);
  --surface-solid: #1C1F26;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --ink: #F2F3F5;
  --ink-soft: #B7BCC7;
  --muted: #8a909c;
  --accent: #F26A1B;
  --accent-2: #FF9A55;
  --live: #FFC59A;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glow: 0 10px 40px -10px rgba(242, 106, 27, .55);
  --font: "Plus Jakarta Sans", "Poppins", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink-soft);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(242, 106, 27, .45); color: #fff; }

/* ---------- background layers (parallax via --px/--py set by site.js) ---------- */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-layers .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  transform: translate3d(calc(var(--px, 0) * 30px), calc(var(--py, 0) * 30px), 0); transition: transform .6s var(--ease); }
.bg-layers .o1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, rgba(242,106,27,.38), transparent 65%); }
.bg-layers .o2 { width: 520px; height: 520px; right: -180px; top: 30vh; background: radial-gradient(circle, rgba(255,154,85,.18), transparent 65%);
  transform: translate3d(calc(var(--px, 0) * -40px), calc(var(--py, 0) * -40px), 0); }
.bg-layers .grid { position: absolute; inset: -2px; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }

/* ---------- buttons & inputs ---------- */
.btn { --b: var(--line-strong); display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--b); background: transparent;
  color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, #FF8A3D, var(--accent)); border-color: transparent; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 14px 44px -10px rgba(242, 106, 27, .8); }
.btn-ghost { background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .4); }
.btn-live { background: var(--live); border-color: transparent; box-shadow: 0 10px 36px -10px rgba(242, 106, 27, .7); }
.btn-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .45); color: #fecaca; }
.btn-danger:hover { background: rgba(239, 68, 68, .22); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field small { color: var(--muted); font-size: 12.5px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: rgba(10, 11, 14, .6); color: var(--ink);
  font: 500 15px var(--font); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #6b7180; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 106, 27, .18); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.input-wrap .peek:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- chips & misc ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(242, 106, 27, .7); animation: ping 2s infinite; }
.chip-ok { color: #bbf7d0; border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .1); }
.chip-warn { color: #fde68a; border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); }
.chip-bad { color: #fecaca; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .1); }
.chip-blue { color: #FFE3D1; border-color: rgba(242, 106, 27, .45); background: rgba(242, 106, 27, .12); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242, 106, 27, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(242, 106, 27, 0); } }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font: 600 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 10px; width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-solid);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); color: var(--ink); font-size: 14.5px; animation: toastIn .45s var(--ease); }
.toast i { margin-top: 3px; }
.toast span { flex: 1; }
.toast-success i { color: var(--ok); } .toast-error i { color: var(--bad); } .toast-warn i { color: var(--warn); } .toast-info i { color: var(--accent-2); }
.toast-x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.toast.out { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- top bar ---------- */
.topbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; gap: 24px; padding: 10px 12px 10px 18px; border-radius: 999px;
  background: rgba(20, 22, 27, .55); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%);
  transition: background .3s, box-shadow .3s; }
.topbar.scrolled { background: rgba(20, 22, 27, .86); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand b { color: var(--accent-2); font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff;
  background: linear-gradient(145deg, #FF9A55, #C94E0C); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--glow); }
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 860px) { .topnav { display: none; } .topbar { gap: 10px; } .top-actions .btn-ghost { display: none; } }

/* ---------- sections ---------- */
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--muted); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: grid; align-items: center; padding: 130px 0 80px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; }
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(14, 16, 20,.86) 34%, rgba(14, 16, 20,.15) 62%, transparent 80%),
              linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero-in { position: relative; z-index: 2; max-width: 620px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 800; letter-spacing: -.035em; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, #FFE3D1, var(--accent-2) 40%, var(--accent) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { display: grid; gap: 2px; }
.hero-meta b { font: 600 26px var(--mono); color: var(--ink); letter-spacing: -.02em; }
.hero-meta span { font-size: 13px; color: var(--muted); }
.hero-hud { position: absolute; z-index: 2; right: max(20px, calc((100vw - 1180px) / 2)); bottom: 80px; width: 290px;
  padding: 16px 18px; border-radius: var(--r); background: rgba(20, 22, 27, .72); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 13px;
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px), 0); transition: transform .5s var(--ease); }
.hero-hud header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--ink); font-weight: 700; }
.hud-row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px dashed var(--line); }
.hud-row b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.hud-bar { height: 5px; border-radius: 9px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 10px; }
.hud-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--live)); transition: width 1s var(--ease); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--muted); font-size: 12px; display: grid; justify-items: center; gap: 6px; }
.scroll-cue i { animation: cue 1.8s infinite; }
@keyframes cue { 50% { transform: translateY(6px); opacity: .4; } }
@media (max-width: 980px) { .hero-hud { display: none; } .hero-fade { background: linear-gradient(0deg, var(--bg) 8%, rgba(14, 16, 20,.7) 60%, rgba(14, 16, 20,.35)); } }

/* ---------- HOW (pipeline) ---------- */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pipeline::before { content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 12%, var(--accent) 60%, var(--live) 88%, transparent); opacity: .5; }
.pipeline .pulse { position: absolute; top: 30px; left: 6%; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 18px 4px var(--accent-2); animation: travel 5.5s linear infinite; }
@keyframes travel { from { left: 6%; } to { left: 94%; } }
.step { position: relative; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px;
  background: var(--surface-solid); border: 1px solid var(--line-strong); color: var(--ink); font-size: 24px; margin-bottom: 22px;
  box-shadow: 0 0 0 8px var(--bg); transition: transform .4s var(--ease), border-color .3s; }
.step:hover .step-n { transform: translateY(-4px) rotate(-4deg); border-color: var(--accent); }
.step-n small { position: absolute; top: -8px; right: -8px; font: 600 11px var(--mono); padding: 3px 7px; border-radius: 99px; background: var(--accent); color: #fff; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step code { font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } .pipeline::before, .pipeline .pulse { display: none; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

/* ---------- SIMULATOR ---------- */
.sim { display: grid; grid-template-columns: 360px 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.sim-ctrl { padding: 30px; border-right: 1px solid var(--line); display: grid; gap: 22px; align-content: start; background: rgba(10, 11, 14, .35); }
.sim-ctrl h3 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 10px; }
.rng { display: grid; gap: 10px; }
.rng-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.rng-top output { font: 600 15px var(--mono); color: var(--ink); }
.rng input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 9px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--fill, 30%), rgba(255, 255, 255, .1) var(--fill, 30%)); }
.rng input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 4px solid var(--accent); box-shadow: 0 0 0 5px rgba(242, 106, 27, .2); transition: transform .15s; }
.rng input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.rng input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.05); }
.seg button { border: 0; min-height: 36px; border-radius: 9px; background: none; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.seg button.on { background: var(--surface-solid); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.sim-view { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 520px; }
.sim-stage { position: relative; overflow: hidden; }
.sim-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim-legend { position: absolute; left: 20px; top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.sim-out { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.sim-out div { padding: 20px 22px; border-right: 1px solid var(--line); }
.sim-out div:last-child { border-right: 0; }
.sim-out b { display: block; font: 600 clamp(20px, 2.2vw, 28px) var(--mono); color: var(--ink); letter-spacing: -.02em; }
.sim-out span { font-size: 12.5px; color: var(--muted); }
.sim-note { font-size: 12.5px; color: var(--muted); margin: 14px 4px 0; }
@media (max-width: 980px) { .sim { grid-template-columns: 1fr; } .sim-ctrl { border-right: 0; border-bottom: 1px solid var(--line); } .sim-out { grid-template-columns: 1fr 1fr; } .sim-out div:nth-child(2) { border-right: 0; } .sim-out div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- FEATURES (bento, unequal weights) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; grid-column: span 2; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34, 37, 45, .72), rgba(24, 26, 32, .72)); overflow: hidden;
  transition: transform .5s var(--ease), border-color .3s; transform-style: preserve-3d; }
.tile:hover { border-color: var(--line-strong); }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 154, 85, .14), transparent 45%); }
.tile:hover::after { opacity: 1; }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; }
.tile h3 { font-size: 21px; margin: 16px 0 8px; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; }
.tile .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; font-size: 18px; color: #fff; background: rgba(242, 106, 27, .2); border: 1px solid rgba(242, 106, 27, .4); }
.tile .ico.live { background: rgba(242, 106, 27, .18); border-color: rgba(242, 106, 27, .45); color: #ffc49e; }
.tile ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.tile li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.tile li i { color: var(--accent-2); margin-top: 5px; font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.term { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #0b0c0f; border: 1px solid var(--line); font: 500 12.5px/1.8 var(--mono); color: #c9ccd4; }
.term .k { color: var(--accent-2); } .term .s { color: #fdba74; } .term .c { color: #6b7180; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile.w3, .tile.w4 { grid-column: span 2; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; color: var(--ink); font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary i { transform: rotate(45deg); color: var(--accent-2); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta { position: relative; padding: 70px 56px; border-radius: 32px; overflow: hidden; border: 1px solid var(--line-strong);
  background: radial-gradient(600px 300px at 85% 20%, rgba(242,106,27,.22), transparent 60%), radial-gradient(700px 360px at 10% 100%, rgba(242, 106, 27,.35), transparent 60%), var(--bg-2);
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0 0 10px; }
.cta p { margin: 0; color: var(--ink-soft); font-size: 17px; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 44px 26px; } }
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 80px; }
.foot-in { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--muted); font-size: 14px; }
.foot nav a:hover { color: var(--ink); }
.foot small { color: #6b7180; font-size: 13px; }

/* ---------- AUTH pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); display: grid; align-content: end; padding: 60px; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art .quote { position: relative; z-index: 1; max-width: 460px; }
.auth-art .quote h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.auth-art .quote p { color: var(--ink-soft); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 5%, transparent 55%); pointer-events: none; }
.auth-form { display: grid; place-items: center; padding: 110px 28px 60px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin-bottom: 30px; }
.auth-card .alt { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px; font-size: 14px; }
.pw-meter { height: 4px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 2px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bad); transition: width .3s, background .3s; }
.notice { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); margin-bottom: 22px; font-size: 14.5px; }
.notice i { color: var(--accent-2); font-size: 20px; margin-top: 2px; }
.notice.ok i { color: var(--ok); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* key chip (tile "Chave de acesso") */
.keychip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 14px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line); color: var(--ink-soft); overflow: hidden; }
.keychip > i:first-child { color: var(--accent); font-size: 15px; animation: keyturn 3.2s var(--ease) infinite; }
.keychip .mono { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; letter-spacing: .08em; font-size: 13px; }
.keychip .ok { color: var(--ok); font-size: 14px; }
@keyframes keyturn { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-35deg); } 90% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .keychip > i:first-child { animation: none; } }

/* ---------- página de download ---------- */
.dl-hero { padding-top: 150px; }
.dl-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.dl-title { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; }
.dl-title em { font-style: normal; background: linear-gradient(95deg, #FFE3D1, var(--accent-2) 40%, var(--accent) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.dl-card { margin-top: 30px; padding: 26px; border-radius: 24px; border: 1px solid var(--line-strong); background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--shadow); max-width: 480px; }
.dl-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dl-meta b { display: block; color: var(--ink); font-size: 17px; }
.dl-meta small { color: var(--muted); font-size: 13.5px; }
.dl-os { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; color: #fff;
  background: linear-gradient(145deg, #FF9A55, #C94E0C); box-shadow: var(--glow); flex: none; }
.btn-block { width: 100%; }
.dl-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.dl-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; font-size: 14px; }
.dl-checks i { color: var(--ok); margin-right: 8px; }

.dl-stage { position: relative; perspective: 1400px; min-height: 420px; }
.dl-win { position: relative; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #1C1F26, #15171c);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03), 0 30px 80px -40px rgba(242,106,27,.45);
  transform: rotateY(-14deg) rotateX(8deg); transform-style: preserve-3d; animation: dlfloat 7s var(--ease) infinite alternate; overflow: hidden; }
@keyframes dlfloat { to { transform: rotateY(-6deg) rotateX(4deg) translateY(-10px); } }
.dl-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.dl-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e48; }
.dl-bar i:first-child { background: #F26A1B; }
.dl-bar span { margin-left: 10px; font: 600 12px var(--mono); color: var(--muted); }
.dl-body { display: grid; grid-template-columns: 64px 1fr; min-height: 330px; }
.dl-side { display: grid; align-content: start; gap: 12px; padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(0,0,0,.18); }
.dl-side span { height: 34px; border-radius: 10px; background: rgba(255,255,255,.05); }
.dl-side span.on { background: rgba(242,106,27,.35); box-shadow: inset 0 0 0 1px rgba(242,106,27,.6); }
.dl-main { padding: 20px; display: grid; gap: 18px; align-content: start; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-row b { height: 12px; border-radius: 99px; background: rgba(255,255,255,.1); }
.dl-row em { font: 600 12px var(--mono); font-style: normal; color: var(--accent-2); }
.dl-row em.ok { color: var(--ok); }
.dl-bots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.dl-bots span { aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.06); animation: dlbot 2.4s var(--d, 0ms) infinite; }
@keyframes dlbot { 0%, 100% { background: rgba(255,255,255,.06); } 35% { background: rgba(242,106,27,.75); box-shadow: 0 0 14px rgba(242,106,27,.55); } 60% { background: rgba(255,154,85,.3); } }
.dl-prog { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.dl-prog i { display: block; height: 100%; width: 30%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: dlprog 3.4s var(--ease) infinite; }
@keyframes dlprog { 0% { width: 8%; } 70% { width: 92%; } 100% { width: 100%; opacity: .4; } }
.dl-float { position: absolute; display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: rgba(28,31,38,.9); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px), 0); transition: transform .6s var(--ease); }
.dl-float i { color: var(--accent); }
.dl-float.f1 { left: -22px; bottom: 34px; }
.dl-float.f2 { right: -10px; top: -18px; transform: translate3d(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -24px), 0); }
.dl-float.f2 i { color: var(--ok); }
.dl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-steps .tile { position: relative; grid-column: auto; }
.dl-n { position: absolute; top: 24px; right: 26px; font: 600 13px var(--mono); color: var(--muted); }
.dl-req { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl-req > div { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.dl-req h3 { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.dl-req h3 i { color: var(--accent); }
.dl-req ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
@media (max-width: 980px) {
  .dl-grid, .dl-req { grid-template-columns: 1fr; }
  .dl-steps { grid-template-columns: 1fr; }
  .dl-hero { padding-top: 120px; }
  .dl-stage { min-height: 0; margin: 10px 12px 0; }
  .dl-float.f1 { left: 0; } .dl-float.f2 { right: 0; }
}
@media (prefers-reduced-motion: reduce) { .dl-win, .dl-bots span, .dl-prog i { animation: none; } }
