/* Base skeleton. Redesign per project from the logo: change the tokens below first, then fonts, art and layout.
   Performance rules (phones under viral traffic):
   - animate only transform and opacity; never box-shadow, background-position, left/top, width/height, filter
   - no full-screen animated layers (grain, moving grids); keep textures static
   - every looping animation lives in a section that pauseOffscreen() watches (.offscreen pauses it) */
:root {
  --bg: #060a1c; --bg2: #0b1230; --card: #0f1838; --line: rgba(150, 180, 255, .14);
  --text: #f4f7ff; --mute: #9fb0d8; --accent: #ffc928; --accent-ink: #2a1500; --blue: #3d7bff; --ok: #3ddc84; --warn: #ffb547;
  --r: 18px; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --f-display: 'Archivo Black', 'Inter', sans-serif; --f-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
@font-face { font-family: 'Archivo Black'; src: url('/fonts/archivo-black.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 400; src: url('/fonts/inter-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 600; src: url('/fonts/inter-600.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 800; src: url('/fonts/inter-800.woff2') format('woff2'); font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--f-body); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 55% at 50% 0%, rgba(61, 123, 255, .28), transparent 70%), radial-gradient(40% 40% at 85% 30%, rgba(255, 201, 40, .1), transparent 70%), var(--bg); }

.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 20px/1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; }
.brand img { border-radius: 50%; }
.nav-r { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; font: 600 12.5px/1 var(--f-mono); color: var(--mute); }
.chip b { color: var(--text); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(180deg, #ffe37a, #ffc928 48%, #ff9d14); color: var(--accent-ink); font: 400 15px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 0 rgba(160, 70, 0, .45), 0 4px 0 #2a1500; transition: transform .2s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.wait { opacity: .6; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.big { width: 100%; padding: 18px 22px; font-size: 17px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.offscreen, .offscreen * { animation-play-state: paused !important; }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 40px 0 60px; color: var(--mute); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.brand b, .btn.small { white-space: nowrap; }
@media (max-width: 480px) { .brand { font-size: 15px; gap: 8px; } .brand img { width: 30px; height: 30px; } .nav-r { gap: 8px; } .nav-r .btn.small { padding: 8px 12px; font-size: 12px; } .nav-r .chip { padding: 7px 10px; } }
.btn.small { min-height: 38px; }
.foot a, .icon-btn { display: inline-flex; align-items: center; min-height: 38px; min-width: 38px; justify-content: center; }
