/* ORRYX Landing v2 */
:root {
  --bg: #07090e;
  --card: #0b0e15;
  --card-2: #0f131c;
  --text: #eef1f6;
  --muted: #aab2c2;
  --dim: #7d869a;
  --mint: #56e39f;
  --mint-hover: #7cebb5;
  --ink: #04130b;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.08);
  --f-display: 'Geologica', system-ui, sans-serif;
  --f-body: 'Golos Text', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { font-family: var(--f-body); min-height: 100vh; overflow-x: hidden; }
a { color: var(--mint); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: #8af0bf; }
button { font-family: inherit; }
input[type=range] { accent-color: var(--mint); }
img { max-width: 100%; }

@keyframes orx-twinkle { 0%,100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: clamp(56px, 9vw, 96px); padding-bottom: 40px; }
.logo-svg { color: var(--mint); display: block; }

/* ---------- type ---------- */
.h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 5vw, 54px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.tag { font-family: var(--f-mono); font-size: 13px; color: var(--mint); }
.mono-dim { font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; line-height: 1.15; }
.mint { color: var(--mint); }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: var(--mint-hover); color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.14); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: var(--text); }
.btn-lg { padding: 17px 30px; border-radius: 12px; font-size: 16px; }
.btn-md { padding: 15px 24px; border-radius: 12px; font-size: 15px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7,9,14,0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; padding-left: clamp(16px, 3vw, 24px); padding-right: clamp(16px, 3vw, 24px); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; }
.nav { display: flex; gap: 26px; flex: 1 1 auto; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 10px; margin-left: auto; }
.header-actions .btn-ghost { font-weight: 500; }

@media (max-width: 760px) {
  .nav, .site-header .brand-name { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 80px); min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; }
.hero-mark { position: absolute; right: clamp(-80px, -6vw, -24px); top: 50%; transform: translateY(-50%); height: 88%; width: auto; color: var(--mint); opacity: .06; pointer-events: none; }
.hero-canvas { position: absolute; top: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); display: none; pointer-events: none; }
.hero.has-shader { overflow: visible; }
.hero.has-shader .hero-canvas { display: block; }
.hero.has-shader .hero-mark { display: none; }
.hero-body { position: relative; display: flex; flex-direction: column; gap: 30px; max-width: 900px; }
.hero h1 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 8vw, 92px); line-height: .98; letter-spacing: -0.03em; text-wrap: balance; }
.hero p { margin: 0; max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  /* на узких экранах знак шейдера оказывается за текстом — подкладываем затемнение и тень */
  .hero.has-shader .hero-body { padding: 28px 16px; margin: 0 -16px; }
  .hero.has-shader .hero-body::before { content: ''; position: absolute; inset: -40px -30px; z-index: -1; pointer-events: none; border-radius: 40%; background: radial-gradient(ellipse closest-side at 50% 50%, rgba(7,9,14,.92) 0%, rgba(7,9,14,.8) 45%, rgba(7,9,14,.35) 78%, rgba(7,9,14,0) 100%); filter: blur(22px); }
  .hero.has-shader h1, .hero.has-shader p { text-shadow: 0 2px 22px rgba(7,9,14,1), 0 0 6px rgba(7,9,14,.9); }
  .hero.has-shader .hero-canvas { opacity: .8; }
}

/* ---------- section head ---------- */
.sec-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; margin-bottom: 40px; }
.sec-head > .h2 { flex: 1 1 420px; }
.sec-head > .lead { flex: 1 1 300px; max-width: 440px; }

/* ---------- cards ---------- */
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 30px); display: flex; flex-direction: column; }
.card-lg { border-radius: 24px; }
.proto { flex: 1 1 300px; gap: 16px; min-height: 280px; }
.proto p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.proto .mono-dim { margin-top: auto; }

.tunnel-row { margin-top: 16px; }
.tunnel-col { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tunnel-note { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.tunnel-art { flex: none; width: 100%; position: relative; min-height: clamp(220px, 55vw, 340px); background: radial-gradient(ellipse at 55% 50%, rgba(86,227,159,0.16), rgba(11,14,21,0) 65%), var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tunnel-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.split-card { flex: 1 1 320px; gap: 18px; }
.split-card > p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.split-card > p.note { margin-top: auto; font-size: 14px; color: var(--dim); line-height: 1.5; }
.list { display: flex; flex-direction: column; font-size: 15px; }
.list > div { padding: 13px 0; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; }
.list > div:last-child { border-bottom: 0; }
.list .v { color: var(--dim); font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.list .v.on { color: var(--mint); }

/* ---------- servers ---------- */
.servers { position: relative; padding-top: clamp(56px, 9vw, 96px); padding-bottom: 24px; overflow: hidden; }
.servers-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.servers-head .lead { max-width: 520px; }
.globe-stage { position: relative; max-width: 1240px; margin: 0 auto; height: clamp(360px, 72vw, 780px); }
.globe-glow { position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(86,227,159,0.1), rgba(7,9,14,0) 70%); pointer-events: none; }
.stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stars span { position: absolute; border-radius: 50%; animation-name: orx-twinkle; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.globe { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.globe-fallback { position: absolute; inset: 24px; display: flex; align-items: center; justify-content: center; }
.globe-fallback svg { width: min(100%, 620px); height: auto; }
.globe-pin { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(238,241,246,.9); box-shadow: 0 2px 10px rgba(0,0,0,.5); transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; background: var(--card); }
.globe-pin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chips { padding-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: var(--muted); transition: all .15s; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.chip.is-active { border-color: var(--mint); background: rgba(86,227,159,0.1); color: var(--text); }
.chip .flag { width: 20px; height: 20px; border-radius: 50%; display: block; background-color: #121724; background-size: cover; background-position: center; }

/* ---------- pricing ---------- */
.periods { flex: 1.4 1 460px; padding: clamp(12px, 3vw, 24px); gap: 8px; }
.period { color: var(--text); text-align: left; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px clamp(12px, 3vw, 20px); border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); transition: border-color .15s, background .15s; }
.period:hover { border-color: rgba(255,255,255,0.18); }
.period .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; flex: none; }
.period .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.period .info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.period .label { font-size: 16px; font-weight: 600; }
.period .per { font-size: 13px; color: var(--muted); text-wrap: pretty; }
.period .badge { padding: 4px 9px; border-radius: 6px; background: rgba(86,227,159,0.14); color: var(--mint); font-family: var(--f-mono); font-size: 12px; }
.period .price { font-family: var(--f-display); font-weight: 600; font-size: clamp(15px, 4vw, 18px); white-space: nowrap; }
.period.is-active { border-color: var(--mint); background: rgba(86,227,159,0.07); }
.period.is-active .radio { border-color: var(--mint); }
.period.is-active .radio::after { background: var(--mint); }
.checkout { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.checkout .lbl { font-size: 13px; color: var(--muted); display: block; }
.checkout .sum { font-family: var(--f-display); font-weight: 700; font-size: 32px; }
.pricing-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.includes { flex: 1; gap: 14px; font-size: 15px; }
.includes > div { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.includes > div:last-child { border-bottom: 0; }
.refund { background: var(--mint); color: var(--ink); border-radius: 24px; padding: clamp(22px, 4vw, 30px); display: flex; flex-direction: column; gap: 8px; }
.refund strong { font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.refund p { margin: 0; font-size: 15px; line-height: 1.5; }

/* ---------- connect ---------- */
.connect-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; }
.seg button { font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 8px; cursor: pointer; border: 0; background: transparent; color: var(--muted); transition: all .15s; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--mint); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.step { gap: 14px; min-height: 260px; }
.step .num { font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--mint); }
.step h3 { margin: 8px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.step a { margin-top: auto; font-size: 14px; font-weight: 500; }

/* ---------- partner ---------- */
.partner-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; padding: 24px 0; }
.partner-copy .lead { max-width: 480px; }
.partner-copy .btn { align-self: flex-start; }
.calc { flex: 1 1 420px; padding: clamp(22px, 4vw, 36px); gap: 22px; }
.calc-users { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc-users strong { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 9vw, 48px); line-height: 1; }
.calc-users span { font-size: 15px; color: var(--muted); }
.calc input[type=range] { width: 100%; height: 24px; margin: 0; }
.calc-rows > div { padding: 16px 0; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.calc-rows > div:last-child { border-bottom: 0; }
.calc-rows span:first-child { color: var(--muted); }
.calc-rows .v { font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.calc-rows .v.big { font-weight: 700; font-size: 30px; color: var(--mint); }
.calc .fine { margin: 0; font-size: 12px; color: var(--dim); }

/* ---------- faq ---------- */
.faq-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.faq-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; }
.faq-side .lead { max-width: 340px; }
.faq-side .btn { align-self: flex-start; padding: 14px 22px; border-radius: 12px; font-size: 15px; }
.faq-list { flex: 2 1 520px; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.1); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-q { width: 100%; color: var(--text); background: transparent; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; text-align: left; font-size: 17px; font-weight: 600; }
.faq-q .sign { flex: none; font-family: var(--f-mono); font-size: 18px; color: var(--mint); font-weight: 400; }
.faq-a { padding: 0 0 24px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.faq-a p { margin: 0; }
.faq-a .b { display: flex; gap: 12px; align-items: baseline; }
.faq-a .b::before { content: '—'; font-family: var(--f-mono); color: var(--mint); font-size: 13px; }

/* ---------- cta ---------- */
.cta { padding-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(48px, 8vw, 80px); }
.cta-box { position: relative; overflow: hidden; background: var(--mint); color: var(--ink); border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-box .mark { position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; color: var(--ink); opacity: .08; pointer-events: none; }
.cta-box h2 { position: relative; margin: 0; max-width: 640px; font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.cta-box .btn { position: relative; padding: 18px 32px; border-radius: 12px; background: var(--ink); color: var(--text); font-size: 16px; }
.cta-box .btn:hover { background: #16261d; color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { padding-top: 56px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.55; }
.footer-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h4 { margin: 0; font-family: var(--f-mono); font-weight: 500; font-size: 12px; color: var(--dim); letter-spacing: 0.08em; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-bottom: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copyright { font-size: 13px; color: var(--dim); }

/* ---------- language switcher ---------- */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); border-color: rgba(255,255,255,0.3); }
.lang .flag { width: 22px; height: 22px; border-radius: 50%; display: block; flex: none; background-color: #121724; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.lang .chev { color: var(--dim); transition: transform .15s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; bottom: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 180px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); z-index: 30; }
.lang-menu li { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 8px; border-radius: 9px; font-size: 14px; color: var(--muted); cursor: pointer; }
.lang-menu li:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-menu li[aria-selected="true"] { color: var(--text); }
.lang-menu li[aria-selected="true"]::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* ---------- cookie consent ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 560px; padding: 16px 18px; background: rgba(15,19,28,0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.45); animation: cookie-in .35s cubic-bezier(.22,1,.36,1) both; }
.cookie p { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie p a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { flex: none; }
.cookie.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@media (min-width: 640px) { .cookie { left: 24px; right: auto; bottom: 24px; } }
body.has-cookie .site-footer { padding-bottom: 150px; }
@media (min-width: 640px) { body.has-cookie .site-footer { padding-bottom: 0; } }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars span { animation: none; opacity: .5; }
}

/* ---------- split-tunnel animation ---------- */
.tunnel-art { aspect-ratio: 3 / 2; container-type: size; }
.tunnel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.tunnel-art.has-shader { background: var(--card); }
.tunnel-art.has-shader .tunnel-canvas { display: block; }
.tunnel-art.has-shader > img { display: none; }
.flow { position: absolute; inset: 0; display: none; direction: ltr; pointer-events: none; font-family: var(--f-mono); line-height: 1; }
.tunnel-art.has-shader .flow { display: block; }
.flow-chip { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translate(-200%, -200%); background: #131826; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 6px 16px rgba(0,0,0,.45); will-change: transform, opacity; transition: box-shadow .2s, border-color .2s; }
.flow-chip img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.flow-chip.is-gate { border-color: rgba(117,252,200,.9); box-shadow: 0 0 18px rgba(86,227,159,.6), 0 6px 16px rgba(0,0,0,.45); }
.flow-burst { position: absolute; left: 0; top: 0; width: 38px; height: 38px; opacity: 0; transform: translate(-200%, -200%); will-change: transform, opacity; pointer-events: none; }
.flow-slice { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; will-change: transform, opacity; }
.flow-spark { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #9dffd6; box-shadow: 0 0 6px 1px rgba(86,227,159,.9); opacity: 0; will-change: transform, opacity; }
.flow-cipher { position: absolute; left: 0; top: 0; opacity: 0; transform: translate(-200%, -200%); font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--mint); text-shadow: 0 0 10px rgba(86,227,159,.7); white-space: nowrap; will-change: transform, opacity; }
.flow-chip, .flow-cipher, .flow-burst { z-index: 1; }
.flow-switch { position: absolute; z-index: 2; left: 19%; top: 50%; width: 15cqh; height: 15cqh; border-radius: 2.2cqh; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; color: var(--mint); background: #141926; border: 1px solid rgba(86,227,159,.55); box-shadow: 0 0 0 1px rgba(7,9,14,.6); animation: switch-pulse 3.1s ease-in-out infinite; }
.flow-switch svg { width: 58%; height: 58%; filter: drop-shadow(0 0 6px rgba(86,227,159,.5)); }
@keyframes switch-pulse { 0%, 100% { border-color: rgba(86,227,159,.5); } 50% { border-color: rgba(86,227,159,.9); } }
@media (prefers-reduced-motion: reduce) { .flow-switch { animation: none; } }
.flow-end { position: absolute; padding: 5px 9px; border-radius: 6px; font-size: 11px; letter-spacing: .04em; background: rgba(7,9,14,.72); white-space: nowrap; transform: translate(-50%, -50%); }
.flow-end-v { left: 84%; top: 13%; color: var(--mint); border: 1px solid rgba(86,227,159,.35); }
.flow-end-d { left: 84%; top: 87%; color: var(--dim); border: 1px solid rgba(255,255,255,.12); }
@media (max-width: 480px) { .flow-chip, .flow-burst { width: 28px; height: 28px; } .flow-cipher { font-size: 10px; } .flow-end { font-size: 10px; padding: 4px 7px; } }

/* ---------- language suggestion bar ---------- */
.lang-suggest { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px clamp(16px, 3vw, 24px); background: #10161f; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.lang-suggest p { margin: 0; flex: 1 1 200px; }
.lang-suggest .btn { padding: 7px 14px; font-size: 13px; }
.lang-suggest-close { border: 0; background: transparent; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.lang-suggest-close:hover { color: var(--text); }
.lang-menu { max-height: min(70vh, 520px); overflow-y: auto; min-width: 210px; }
.lang-menu li { padding: 0; }
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 8px; color: inherit; flex: 1; }
.lang-menu li[aria-selected="true"] { padding-right: 12px; }

/* ---------- legal pages ---------- */
.legal { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(48px, 8vw, 96px); }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--dim); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--dim); }
.legal-grid { display: flex; gap: 48px; align-items: flex-start; }
.legal-side { flex: 0 0 260px; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.legal-toc h2 { margin: 0 0 12px; font-family: var(--f-mono); font-weight: 500; font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); line-height: 1.35; }
.legal-toc a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.legal-other { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-other a { color: var(--muted); }
.legal-other a[aria-current] { color: var(--mint); }
.legal-doc { flex: 1 1 0; min-width: 0; max-width: 760px; }
.legal-doc h1 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.legal-meta { margin: 0 0 28px; font-family: var(--f-mono); font-size: 13px; color: var(--dim); }
.legal-summary { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; margin-bottom: 36px; border-radius: 18px; background: var(--card); border: 1px solid rgba(86,227,159,.28); }
.legal-summary p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.legal-doc section { padding: 8px 0 20px; }
.legal-doc h2 { margin: 24px 0 14px; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.legal-doc p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.legal-doc ul { margin: 0 0 14px; padding-inline-start: 22px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc li::marker { color: var(--mint); }
.legal-doc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(86,227,159,.5); }
.legal-cta { margin-top: 32px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-cta p { margin: 0; color: var(--text); }
@media (max-width: 900px) {
  .legal-grid { flex-direction: column; gap: 28px; }
  .legal-side { position: static; flex: none; width: 100%; }
  .legal-toc ol { display: none; }
  .legal-toc h2 { display: none; }
  .legal-other { flex-direction: row; gap: 18px; padding-top: 0; border-top: 0; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .hero-mark { right: auto; left: clamp(-80px, -6vw, -24px); }
[dir="rtl"] .cta-box .mark { right: auto; left: -60px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-btn { padding: 8px 8px 8px 12px; }
[dir="rtl"] .lang-menu li a { padding: 9px 8px 9px 12px; }
[dir="rtl"] .lang-menu li[aria-selected="true"] { padding-right: 0; padding-left: 12px; }
[dir="rtl"] .lang-menu li[aria-selected="true"]::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] .chip { padding: 9px 10px 9px 16px; }
[dir="rtl"] .faq-q, [dir="rtl"] .period { text-align: right; }
[dir="rtl"] .mono-dim, [dir="rtl"] .legal-meta { direction: ltr; display: inline-block; }
[dir="rtl"] .crumbs { direction: rtl; }
@media (min-width: 640px) { [dir="rtl"] .cookie { left: auto; right: 24px; } }
