/* Revyo design system — dark, neon magenta #CB1ADB, liquid glass. Shared by every page. */
:root {
  --bg: #07050b; --bg-2: #0d0913; --ink: #f6f2fa; --muted: #b3a9c0; --faint: #7d7290;
  --accent: #cb1adb; --accent-2: #e36cf0; --accent-3: #7b2cff; --accent-ink: #fff;
  --ok: #3ee08f; --bad: #ff5c7a; --warn: #ffc857;
  --glass: rgba(255, 255, 255, .045); --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .18);
  --r: 22px; --r-sm: 14px; --r-xs: 10px;
  --w: 1200px; --m: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; word-spacing: .08em; overflow-x: clip; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--m); }

/* ---------- background: drifting orbs + faint grid ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; transform: translateZ(0); contain: strict; }
.bg-fx::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; opacity: .55; background: radial-gradient(closest-side, var(--c), transparent); }
.orb.a { --c: var(--accent); width: 900px; height: 900px; top: -420px; left: 50%; margin-left: -700px; }
.orb.b { --c: var(--accent-3); width: 800px; height: 800px; top: -300px; left: 50%; margin-left: -80px; opacity: .45; }
.orb.c { --c: #ff3d9a; width: 640px; height: 640px; top: 55vh; left: -260px; opacity: .16; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, 40px) scale(1.08); } 66% { transform: translate(-40px, 70px) scale(.95); } }

/* ---------- liquid glass ---------- */
.glass {
  position: relative; border-radius: var(--r);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 45%, rgba(255,255,255,.04));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.03), 0 14px 34px -16px rgba(0,0,0,.55);
  isolation: isolate;
}
/* specular edge + pointer shine */
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(203,26,219,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(203,26,219,.16), transparent 55%); opacity: 0; transition: opacity .4s; }
.glass:hover::after, .glass.lit::after { opacity: 1; }
.glass.flat { box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .3s, background-color .2s, color .2s; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #d93be8, var(--accent) 45%, #9a12d6); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 10px 30px -6px rgba(203,26,219,.65), 0 0 60px -10px rgba(203,26,219,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset, 0 16px 40px -8px rgba(203,26,219,.8), 0 0 80px -6px rgba(203,26,219,.7); }
.btn-glass { color: var(--ink); background: rgba(255,255,255,.07); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.btn-glass:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- navbar ---------- */
.nav { backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); background: rgba(18, 11, 26, .62); position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(calc(100% - 24px), 1180px); display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 20px; border-radius: 999px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: 14px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); font-weight: 600; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); cursor: pointer; }
.nav-burger span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px; transition: transform .25s; }

/* language switcher */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); }
.lang-btn:hover { background: rgba(255,255,255,.09); }
.lang-btn .flag, .lang-menu .flag { font-size: 16px; line-height: 1; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 6px; border-radius: 16px; display: none; z-index: 60; background: rgba(20, 14, 28, .82); }
.lang.open .lang-menu { display: grid; }
.lang-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14.5px; font-weight: 600; }
.lang-menu button:hover, .lang-menu button[aria-checked="true"] { background: rgba(203,26,219,.18); }

/* ---------- typography helpers ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #f3d0f7; }
.kicker .dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(203,26,219,.25); display: grid; place-items: center; }
.kicker .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.grad { background: linear-gradient(100deg, #fff 10%, #f0a8f7 45%, var(--accent) 75%, #8a4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-sec { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 620px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec { padding: clamp(80px, 11vw, 140px) 0 0; }
.sec-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: 56px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.input, .select, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(203,26,219,.18); }
.select option { background: #1a1222; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.12); transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--accent); box-shadow: 0 0 18px rgba(203,26,219,.6); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- chips / tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--muted); white-space: nowrap; }
.tag.ok { background: rgba(62,224,143,.14); color: #7ff0b6; }
.tag.bad { background: rgba(255,92,122,.15); color: #ff9aae; }
.tag.warn { background: rgba(255,200,87,.15); color: #ffd98a; }
.tag.pro { background: rgba(203,26,219,.2); color: #f5b4fb; }

/* ---------- cookie bar ---------- */
.cookie { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 70; width: min(calc(100% - 24px), 760px); padding: 18px 20px; display: flex; gap: 18px; align-items: center; transition: transform .5s var(--ease); background: rgba(20, 14, 28, .78); }
.cookie.show { transform: translate(-50%, 0); }
.cookie p { font-size: 14px; color: var(--muted); flex: 1; }
.cookie p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie .btns { display: flex; gap: 8px; flex: none; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(90px, 12vw, 150px); border-top: 1px solid var(--line); background: rgba(0,0,0,.25); }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.foot h4 { font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.foot ul a:hover { color: var(--ink); }
.foot .about { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin-top: 14px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 20px; background: rgba(20, 14, 28, .9); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--line); margin: 0; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-burger { display: block; }
  .nav .login-txt { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie .btns { justify-content: stretch; }
  .cookie .btns .btn { flex: 1; }
}
@media (max-width: 520px) {
  .nav { padding-left: 14px; gap: 8px; }
  .lang-btn .lang-name { display: none; }
}
