/* ============ PSAir — styles ============ */
:root {
  --bg: #05060d;
  --bg-2: #0a0c18;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1ff;
  --muted: #8d93b5;
  --dim: #5c6285;
  --blue: #3d7bff;
  --cyan: #2ee6ff;
  --violet: #8b5cf6;
  --pink: #ff4fd8;
  --gold: #ffcf5c;
  --green: #34e39b;
  --red: #ff5a7a;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 45%, var(--violet));
  --grad-pro: linear-gradient(120deg, var(--violet), var(--pink) 60%, var(--gold));
  --radius: 22px;
  --font-d: 'Unbounded', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
::selection { background: var(--violet); color: #fff; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 32px); }

/* ---------- background fx ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; animation: drift 22s ease-in-out infinite alternate; }
.b1 { width: 620px; height: 620px; background: #1d4ed8; top: -220px; left: -160px; }
.b2 { width: 560px; height: 560px; background: #7c3aed; top: 10%; right: -200px; animation-delay: -7s; }
.b3 { width: 480px; height: 480px; background: #0891b2; bottom: -240px; left: 30%; opacity: 0.3; animation-delay: -13s; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }
.grid-floor {
  position: absolute; inset: 0;
  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 at 50% 0%, #000 10%, transparent 65%);
  opacity: 0.55;
}
.noise {
  position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s, opacity 0.2s;
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(61, 123, 255, 0.8), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-pro { background: var(--grad-pro); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 79, 216, 0.8); }
.btn-pro:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-glass { background: rgba(255,255,255,0.06); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0b0d1a; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255,255,255,0.5); }
.arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 6, 13, 0.72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 800; font-size: 20px; letter-spacing: 0.08em; }
.logo-mark { width: 36px; height: 36px; filter: drop-shadow(0 4px 14px rgba(46, 230, 255, 0.45)); }
.logo.small { font-size: 16px; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.user-pill { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 700; font-size: 14px; transition: background 0.2s; }
.user-pill:hover { background: var(--panel-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-d); font-size: 13px; color: #fff; background: var(--grad); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 64px 0 80px; min-height: calc(100vh - 74px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 600; }
.eyebrow b { color: var(--text); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 227, 155, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 227, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 227, 155, 0); } }
.hero-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(42px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.03em; margin: 26px 0 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% 0; } }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-d); font-size: 24px; font-weight: 700; }
.hero-stats span { color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; perspective: 1200px; }
.screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(61, 123, 255, 0.6), 0 0 0 8px rgba(255,255,255,0.025);
  transform: rotateY(-10deg) rotateX(6deg); transform-style: preserve-3d; transition: transform 0.4s ease-out;
}
.screen-scene { position: absolute; inset: 0; background: linear-gradient(180deg, #1a0b3d 0%, #5b1a7a 42%, #ff6a88 62%, #120926 63%); }
.sun { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; left: 31%; top: 20%; background: linear-gradient(#ffe08a, #ff4fa0 70%); box-shadow: 0 0 80px #ff4fa0; -webkit-mask: repeating-linear-gradient(180deg, #000 0 10px, transparent 10px 14px); mask: linear-gradient(#000 55%, transparent 55%), repeating-linear-gradient(180deg, #000 0 9px, transparent 9px 13px); mask-composite: add; }
.mountains { position: absolute; left: -10%; right: -10%; bottom: 37%; height: 26%; }
.m1 { background: #2a0f4f; clip-path: polygon(0 100%, 10% 40%, 22% 80%, 35% 20%, 50% 70%, 62% 30%, 76% 75%, 88% 35%, 100% 80%, 100% 100%); }
.m2 { background: #170833; height: 16%; clip-path: polygon(0 100%, 8% 50%, 20% 90%, 32% 40%, 46% 85%, 58% 45%, 72% 90%, 85% 50%, 100% 70%, 100% 100%); }
.road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 37%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 79, 160, 0.35), transparent 60%) 0 0 / 100% 100%,
    repeating-linear-gradient(0deg, rgba(46,230,255,0.7) 0 2px, transparent 2px 26px),
    linear-gradient(90deg, rgba(46,230,255,0.6) 1px, transparent 1px) 0 0 / 60px 100%;
  transform: perspective(240px) rotateX(58deg); transform-origin: top; animation: roll 0.8s linear infinite;
}
@keyframes roll { to { background-position: 0 0, 0 26px, 0 0; } }
.screen-slides { position: absolute; inset: 0; }
.screen-slides > .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.2s ease, transform 7s linear; }
.screen-slides > .slide.active { opacity: 1; transform: scale(1); }
.screen-slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,13,0.35), transparent 30%, transparent 65%, rgba(5,6,13,0.6)); }
.speedlines { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 64%, transparent 30%, rgba(5,6,13,0.55) 100%); }
.hud { position: absolute; font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 10px; background: rgba(5, 6, 13, 0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.12); letter-spacing: 0.02em; }
.hud-tl { top: 16px; left: 16px; }
.hud-tr { top: 16px; right: 16px; font-variant-numeric: tabular-nums; }
.hud-bl { left: 16px; bottom: 16px; width: 44%; }
.hud-bl small { color: var(--muted); font-size: 11px; }
.hud-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,0.12); overflow: hidden; margin-bottom: 6px; }
.hud-bar i { display: block; height: 100%; background: var(--grad); animation: bar 3s ease-in-out infinite alternate; }
@keyframes bar { from { width: 55%; } to { width: 88%; } }
.live { color: var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.pad { position: absolute; width: 50%; right: -14%; bottom: -30%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-3deg); } }
.float-chip { position: absolute; padding: 10px 16px; border-radius: 14px; background: rgba(15, 17, 32, 0.8); backdrop-filter: blur(12px); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; box-shadow: 0 20px 40px -20px #000; animation: float 7s ease-in-out infinite; }
.chip-a { left: -28px; top: 58%; animation-delay: -2s; }
.chip-b { right: 6%; top: -22px; animation-delay: -4s; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(255,255,255,0.02); overflow: hidden; padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { font-family: var(--font-d); font-weight: 700; font-size: 20px; color: var(--dim); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: '✦'; color: var(--violet); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0 0; }
.section-head { margin-bottom: 44px; max-width: 680px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
h2 { font-family: var(--font-d); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.step:hover { transform: translateY(-6px); border-color: var(--line-2); }
.step::before { content: ''; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%); }
.step-num { font-family: var(--font-d); font-size: 52px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; line-height: 1; margin-bottom: 22px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan {
  --accent: var(--grad);
  position: relative; padding: 34px; border-radius: 28px; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform 0.35s, border-color 0.3s, box-shadow 0.35s;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px;
}
.plan.pro { --accent: var(--grad-pro); }
.plan::before { content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--accent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s; z-index: -1; }
.plan::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: 0.12; z-index: -2; transition: opacity 0.35s; }
.plan:hover { transform: translateY(-4px); }
.plan.selected { box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.55); }
.plan.selected::before { opacity: 1; }
.plan.selected::after { opacity: 0.28; }
.plan-badge { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--grad-pro); color: #fff; }
.plan-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; transition: border-color 0.2s; }
.radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.25s cubic-bezier(.3,1.6,.5,1); }
.plan.selected .radio { border-color: transparent; background: rgba(255,255,255,0.1); }
.plan.selected .radio::after { transform: scale(1); }
.plan-name { font-family: var(--font-d); font-size: 26px; font-weight: 700; }
.plan-price { grid-column: 1; display: flex; align-items: baseline; gap: 6px; margin: 6px 0 18px; }
.plan-price b { font-family: var(--font-d); font-size: 64px; font-weight: 800; line-height: 1; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-specs { grid-column: 1; list-style: none; display: grid; gap: 10px; }
.plan-specs li { display: flex; gap: 10px; align-items: center; color: #cfd4ee; font-weight: 500; }
.plan-specs li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 6px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.console-img { max-width: none; grid-column: 2; grid-row: 2 / 4; align-self: end; width: 170px; height: 240px; object-fit: contain; margin: -40px -10px -14px 0; filter: drop-shadow(0 30px 30px rgba(0,0,0,0.6)); transition: transform 0.5s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.plan:hover .console-img, .plan.selected .console-img { transform: translateY(-6px) scale(1.04); }
.console-art { grid-column: 2; grid-row: 2 / 4; align-self: end; width: 120px; height: 200px; position: relative; }
.console-art .body { position: absolute; inset: 0 18px; border-radius: 40px 40px 14px 14px; background: linear-gradient(90deg, #dfe5f5, #ffffff 45%, #c3cbe2); box-shadow: inset -6px 0 12px rgba(0,0,0,0.15), 0 30px 40px -20px #000; }
.console-art .core { position: absolute; top: 12px; bottom: 12px; left: 50%; width: 28px; transform: translateX(-50%); border-radius: 14px; background: #0f1220; }
.console-art .glow { position: absolute; top: 18px; bottom: 18px; left: 50%; width: 3px; transform: translateX(-50%); border-radius: 3px; background: var(--accent); box-shadow: 0 0 16px 2px rgba(46, 230, 255, 0.7); animation: breathe 3s ease-in-out infinite; }
.plan.pro .console-art .glow { box-shadow: 0 0 16px 2px rgba(255, 79, 216, 0.7); }
.plan.pro .console-art .body { background: linear-gradient(90deg, #dfe5f5, #ffffff 45%, #c3cbe2), repeating-linear-gradient(0deg, transparent 0 22px, rgba(0,0,0,0.12) 22px 24px); background-blend-mode: multiply; }
.console-art .stand { position: absolute; bottom: -8px; left: 22%; right: 22%; height: 10px; border-radius: 6px; background: #1b1f30; }
@keyframes breathe { 50% { opacity: 0.45; } }

/* calc */
.calc { margin-top: 22px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: rgba(10, 12, 24, 0.7); backdrop-filter: blur(16px); }
.calc-left { padding: 34px; }
.calc-right { padding: 34px; background: rgba(255,255,255,0.03); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.calc-label { font-family: var(--font-d); font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.preset { padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 700; color: var(--muted); transition: all 0.2s; }
.preset:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.preset.active { background: var(--text); color: #0b0d1a; border-color: transparent; }
.range-wrap { display: flex; align-items: center; gap: 14px; }
.step-btn { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); font-size: 22px; font-weight: 600; transition: background 0.2s; }
.step-btn:hover { background: var(--panel-2); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--cyan), var(--violet)) 0 / var(--fill, 10%) 100% no-repeat, rgba(255,255,255,0.1); outline: none; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--violet); box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.25); cursor: grab; transition: transform 0.15s; }
input[type='range']::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--violet); cursor: grab; }
.range-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--dim); font-size: 14px; font-weight: 600; }
.range-meta span:nth-child(2) { color: var(--text); display: flex; align-items: center; gap: 8px; }
.range-meta input { width: 76px; text-align: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,0.3); font-family: var(--font-d); font-weight: 700; font-size: 18px; -moz-appearance: textfield; }
.range-meta input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sum-row { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; }
.sum-row b { color: var(--text); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 4px; border-top: 1px dashed var(--line-2); }
.sum-total span { font-weight: 700; }
.sum-total b { font-family: var(--font-d); font-size: 46px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sum-hint { color: var(--muted); font-size: 14px; text-align: right; margin-top: -6px; margin-bottom: 10px; }
.bump { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }

/* ---------- games ---------- */
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); width: min(340px, 100%); transition: border-color 0.2s; }
.search:focus-within { border-color: var(--violet); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; background: none; border: 0; outline: none; font-size: 15px; min-width: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--muted); transition: all 0.2s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.chip.pro-toggle.active { background: var(--grad-pro); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.game {
  position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; text-align: left;
  border: 1px solid var(--line); transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s, border-color 0.3s;
  animation: fadeUp 0.5s both;
}
.game:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 30px 60px -20px var(--c1); border-color: rgba(255,255,255,0.25); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.game-art { position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 0%, var(--c1), transparent 60%), radial-gradient(100% 70% at 0% 100%, var(--c2), transparent 70%), linear-gradient(160deg, var(--c2), #05060d); }
.game-art svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; mix-blend-mode: screen; transition: transform 0.6s; }
.game:hover .game-art svg { transform: scale(1.08) rotate(2deg); }
.game-art .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.game-art .cover.ok { opacity: 1; }
.game:hover .game-art .cover { transform: scale(1.06); }
.gm-art .cover { object-position: center 20%; }
.game-mono { position: absolute; right: -8px; top: 6px; font-family: var(--font-d); font-weight: 900; font-size: 120px; line-height: 1; color: rgba(255,255,255,0.09); letter-spacing: -0.06em; }
.game-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(5,6,13,0.95)); }
.game-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.game-info h3 { font-family: var(--font-d); font-size: 17px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.game-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,0.12); backdrop-filter: blur(6px); letter-spacing: 0.02em; }
.tag.pro { background: var(--grad-pro); }
.tag.hot { position: absolute; top: 14px; left: 14px; background: #fff; color: #0b0d1a; }
.game-play { position: absolute; right: 16px; top: 50%; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #0b0d1a; display: grid; place-items: center; font-size: 18px; opacity: 0; transform: translateY(-30%) scale(0.7); transition: all 0.3s cubic-bezier(.3,1.5,.5,1); }
.game:hover .game-play { opacity: 1; transform: translateY(-50%) scale(1); }
.empty { color: var(--muted); text-align: center; padding: 40px; }

/* devices */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 32px; background: linear-gradient(135deg, rgba(61,123,255,0.12), rgba(139,92,246,0.08)); border: 1px solid var(--line); }
.devices-copy p { color: var(--muted); margin: 16px 0 22px; font-size: 17px; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.checks li::before { content: '✓'; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(52, 227, 155, 0.15); color: var(--green); font-weight: 900; flex: none; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.device { padding: 26px 20px; border-radius: 20px; background: rgba(5,6,13,0.5); border: 1px solid var(--line); font-weight: 700; display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s, border-color 0.3s; }
.device:hover { transform: translateY(-4px); border-color: var(--line-2); }
.device span { font-size: 34px; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.faq-item.open { border-color: var(--line-2); background: var(--panel-2); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font-weight: 700; font-size: 17px; text-align: left; }
.faq-q i { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; transition: transform 0.3s, background 0.3s; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--violet); border-color: transparent; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 26px 24px; color: var(--muted); }

/* cta */
.cta-band { margin: 110px 0 90px; padding: 64px 40px; border-radius: 36px; text-align: center; position: relative; overflow: hidden; background: var(--grad); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.35), transparent 50%), repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,0.05) 40px 80px); }
.cta-band > * { position: relative; }
.cta-band p { font-size: 18px; margin: 12px 0 30px; opacity: 0.9; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--dim); font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.footer-inner p { flex: 1; min-width: 260px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* ---------- cabinet ---------- */
.cabinet { padding: 50px 0 90px; min-height: 80vh; }
.cab-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.cab-head h1 { font-family: var(--font-d); font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
.cab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 50px; }
.stat { padding: 24px 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.stat span { color: var(--muted); font-weight: 600; font-size: 14px; }
.stat b { display: block; font-family: var(--font-d); font-size: 32px; font-weight: 700; margin-top: 6px; }
.cab-title { font-size: 24px; margin-bottom: 20px; }
.rentals { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-bottom: 54px; }
.rental { --accent: var(--grad); padding: 26px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.rental.pro { --accent: var(--grad-pro); }
.rental::after { content: ''; position: absolute; width: 260px; height: 260px; right: -100px; top: -120px; background: var(--accent); filter: blur(80px); opacity: 0.2; border-radius: 50%; }
.rental-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.rental h3 { font-family: var(--font-d); font-size: 22px; }
.status { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: rgba(52, 227, 155, 0.15); color: var(--green); }
.status.off { background: rgba(255,255,255,0.08); color: var(--muted); }
.countdown { font-family: var(--font-d); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.rental small { color: var(--muted); font-weight: 600; }
.progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.08); margin: 16px 0 22px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.rental-actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.rental-actions .btn { flex: 1; }
.rentals-empty { grid-column: 1 / -1; padding: 46px; border-radius: 24px; text-align: center; border: 1px dashed var(--line-2); color: var(--muted); }
.rentals-empty b { display: block; font-family: var(--font-d); color: var(--text); font-size: 20px; margin-bottom: 8px; }
.rentals-empty .btn { margin-top: 20px; }
.table-wrap { border-radius: 20px; border: 1px solid var(--line); overflow-x: auto; background: var(--panel); }
.orders { width: 100%; border-collapse: collapse; min-width: 640px; }
.orders th, .orders td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.orders th { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }
.orders tr:last-child td { border-bottom: 0; }
.orders td:first-child { font-family: ui-monospace, monospace; color: var(--muted); }
.orders .empty-row td { text-align: center; color: var(--muted); padding: 34px; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 10, 0.72); backdrop-filter: blur(10px); animation: fade 0.25s; }
.modal-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 34px; border-radius: 28px; background: linear-gradient(180deg, #121530, #0b0d1c); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(139,92,246,0.15); animation: pop 0.35s cubic-bezier(.2,1.3,.4,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
.modal-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; font-size: 24px; color: var(--muted); transition: background 0.2s, color 0.2s; z-index: 2; }
.modal-x:hover { background: var(--panel-2); color: var(--text); }
.modal-card h3 { font-family: var(--font-d); font-size: 24px; font-weight: 700; margin-bottom: 22px; }

.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: rgba(0,0,0,0.35); margin: 4px 40px 26px 0; }
.auth-tab { position: relative; z-index: 1; padding: 10px; font-weight: 700; color: var(--muted); transition: color 0.25s; }
.auth-tab.active { color: #fff; }
.auth-tab-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px; background: var(--grad); transition: transform 0.35s cubic-bezier(.3,1.3,.5,1); }
.auth-card[data-mode='register'] .auth-tab-ind { transform: translateX(100%); }
.auth-card[data-mode='login'] [data-only='register'] { display: none; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 14px; font-weight: 700; color: #c6cbe6; }
.field input, .field select { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,0.3); outline: none; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; }
.field select option { background: #0b0d1c; }
.field input:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2); }
.field.invalid input { border-color: var(--red); }
.pw { position: relative; }
.pw input { padding-right: 50px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; opacity: 0.6; }
.pw-toggle:hover { opacity: 1; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strength i { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); transition: background 0.3s; }
.strength[data-score='1'] i:nth-child(-n+1) { background: var(--red); }
.strength[data-score='2'] i:nth-child(-n+2) { background: var(--gold); }
.strength[data-score='3'] i:nth-child(-n+3) { background: var(--cyan); }
.strength[data-score='4'] i { background: var(--green); }
.err { font-style: normal; font-size: 13px; color: var(--red); min-height: 0; }
.err:empty { display: none; }
.form-err { display: block; margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; color: var(--muted); font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }
.auth-switch { text-align: center; color: var(--muted); margin-top: 18px; font-size: 14px; }
.auth-switch button { color: var(--cyan); font-weight: 700; }

.co-plan { --accent: var(--grad); display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); margin-bottom: 18px; }
.co-plan.pro { --accent: var(--grad-pro); }
.co-plan .dot { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; font-size: 22px; }
.co-plan b { font-family: var(--font-d); font-size: 18px; display: block; }
.co-plan small { color: var(--muted); }
.co-rows { display: grid; gap: 10px; margin-bottom: 20px; }
.co-rows .sum-total b { font-size: 36px; }
.co-pay { margin: 4px 0 20px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-methods label { cursor: pointer; }
.pay-methods input { position: absolute; opacity: 0; }
.pay-methods span { display: block; text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; transition: all 0.2s; }
.pay-methods input:checked + span { border-color: var(--violet); background: rgba(139, 92, 246, 0.15); }
.pay-methods input:focus-visible + span { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.4); }
.demo-note { font-size: 13px; color: var(--gold); background: rgba(255, 207, 92, 0.08); border: 1px solid rgba(255, 207, 92, 0.2); padding: 10px 14px; border-radius: 12px; margin-top: 12px; }

.game-card-modal { width: min(560px, 100%); padding: 0; }
.gm-art { position: relative; height: 230px; overflow: hidden; }
.gm-art .game-art { position: absolute; inset: 0; }
.gm-body { padding: 26px 30px 30px; }
.gm-body h3 { margin-bottom: 10px; }
.gm-body p { color: var(--muted); margin: 14px 0 22px; }
.gm-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stream-card { text-align: center; }
.stream-ring { width: 86px; height: 86px; margin: 6px auto 22px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--cyan), var(--violet), var(--pink), var(--cyan)); animation: spin 1.2s linear infinite; }
.stream-ring div { width: 100%; height: 100%; border-radius: 50%; background: #0f1226; }
.stream-card.done .stream-ring { animation: none; background: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.stream-steps { list-style: none; text-align: left; display: grid; gap: 10px; margin-bottom: 20px; }
.stream-steps li { padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.04); color: var(--dim); font-weight: 600; display: flex; justify-content: space-between; transition: color 0.3s; }
.stream-steps li.run { color: var(--text); }
.stream-steps li.run::after { content: '…'; }
.stream-steps li.ok { color: var(--text); }
.stream-steps li.ok::after { content: '✓'; color: var(--green); font-weight: 900; }
.stream-card .demo-note { margin: 0 0 16px; text-align: left; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 14px 22px; border-radius: 14px; background: #fff; color: #0b0d1a; font-weight: 700; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6); transition: all 0.35s cubic-bezier(.2,1.3,.4,1); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--red); color: #fff; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; gap: 70px; }
  .hero-visual { max-width: 620px; }
  .screen { transform: none; }
  .plans, .calc, .devices { grid-template-columns: 1fr; }
  .calc-right { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .devices { padding: 30px; }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; padding: 16px; margin: 0; background: rgba(5, 6, 13, 0.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.35s; z-index: -1; }
  .nav.open .nav-links { transform: none; }
  .nav-links a { padding: 14px; font-size: 17px; }
  .burger { display: flex; }
  .nav-inner { gap: 12px; }
  .nav-actions [data-open-auth].btn-ghost { display: none; }
  .cab-stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 13px; }
  .user-pill .uname { display: none; }
  .user-pill { padding-right: 5px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 20px; }
  .plan { padding: 24px; }
  .console-img { position: static; max-width: none; width: 128px; height: 200px; margin: -6px -14px -18px -8px; grid-column: 2; grid-row: 2 / 4; }
  .plan { grid-template-columns: 1fr 110px; }
  .plan-badge { position: static; grid-column: 1 / -1; justify-self: start; margin-bottom: 4px; }
  .plan-price b { font-size: 52px; }
  .calc-left, .calc-right { padding: 24px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-info { padding: 12px; }
  .game-info h3 { font-size: 14px; }
  .game-mono { font-size: 80px; }
  .chip-a { left: 0; }
  .float-chip { font-size: 12px; padding: 8px 12px; }
  .modal-card { padding: 26px 20px; }
  .rentals { grid-template-columns: 1fr; }
  .cta-band { padding: 46px 22px; }
  .sum-total b { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* real covers already carry the title — keep only the chips over them */
.game:has(.cover.ok) .game-info h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.game:has(.cover.ok) .game-shade { background: linear-gradient(180deg, transparent 72%, rgba(5,6,13,0.85)); }
.game:has(.cover.ok) .game-mono { display: none; }
@media (min-width: 561px) { .console-img { width: 200px; height: 280px; margin-top: -70px; } }
.rental { padding-right: 150px; min-height: 250px; }
.rental-img { position: absolute; right: -10px; bottom: -20px; width: 150px; height: 230px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)); z-index: 0; pointer-events: none; }
.rental > *:not(.rental-img) { position: relative; z-index: 1; }
@media (max-width: 560px) { .rental { padding-right: 26px; } .rental-img { width: 90px; height: 140px; opacity: 0.35; } }
@media (max-width: 560px) {
  .eyebrow { font-size: 12px; padding: 7px 12px; white-space: nowrap; }
  #logoutBtn { padding: 8px 10px; font-size: 13px; }
  .pad { width: 62%; right: -6%; bottom: -26%; }
}
