/* ==========================================================================
   OrbitSMM — main.css
   Shared design system: tokens, base, components, corporate site sections.
   ========================================================================== */

:root {
  --bg: #0B0F19;
  --bg-2: #111827;
  --card: #1A2234;
  --card-2: #212B40;
  --glass: rgba(26, 34, 52, 0.62);
  --glass-strong: rgba(17, 24, 39, 0.82);
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);
  --hover: rgba(255, 255, 255, 0.04);
  --input-bg: rgba(11, 15, 25, 0.65);

  --violet: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-300: #C4B5FD;
  --cyan: #22D3EE;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --text: #F8FAFC;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  --muted-2: #64748B;

  --grad: linear-gradient(135deg, #8B5CF6 0%, #6366F1 48%, #22D3EE 100%);
  --grad-text: linear-gradient(90deg, #C4B5FD 0%, #8B5CF6 35%, #22D3EE 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.08));

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  --shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.45), 0 10px 34px -8px rgba(139, 92, 246, 0.65);
  --glow-cyan: 0 10px 34px -10px rgba(34, 211, 238, 0.55);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F4F6FB;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F1F5F9;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --hover: rgba(15, 23, 42, 0.04);
  --input-bg: #FFFFFF;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #475569;
  --muted-2: #64748B;
  --shadow: 0 12px 40px -16px rgba(15, 23, 42, 0.22);
  --shadow-sm: 0 4px 14px -8px rgba(15, 23, 42, 0.2);
  color-scheme: light;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
code, pre, kbd { font-family: var(--font-mono); }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .22); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, .38); }

/* Icons (hydrated by data.js) */
i[data-i] { display: inline-flex; width: 1.15em; height: 1.15em; flex-shrink: 0; font-style: normal; vertical-align: middle; }
i[data-i] svg, .ico { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section-head.left { margin-left: 0; text-align: left; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); } .text-cyan { color: var(--cyan); } .text-violet { color: var(--violet-300); }
.mono { font-family: var(--font-mono); font-size: .9em; }
.nowrap { white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--violet-300);
  background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .28); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); animation: pulse 2s infinite; }
.eyebrow-plain { padding: 6px 14px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); } 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--card); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r); font-weight: 600; font-size: .93rem; line-height: 1;
  border: 1px solid var(--border-strong); background: var(--btn-bg); color: var(--text);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s;
  white-space: nowrap; user-select: none; position: relative;
}
.btn:hover { border-color: rgba(148, 163, 184, .4); background: var(--card-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn i[data-i] { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(139, 92, 246, .8); }
.btn-primary:hover { background: var(--grad); box-shadow: var(--glow); transform: translateY(-1px); border-color: transparent; }
.btn-violet { background: var(--violet); border-color: transparent; color: #fff; }
.btn-violet:hover { background: var(--violet-600); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; color: var(--text); }
.btn-outline { background: transparent; }
.btn-success { background: rgba(16, 185, 129, .14); border-color: rgba(16, 185, 129, .35); color: #34D399; }
.btn-success:hover { background: rgba(16, 185, 129, .22); border-color: rgba(16, 185, 129, .5); }
.btn-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); color: #F87171; }
.btn-danger:hover { background: rgba(239, 68, 68, .2); border-color: rgba(239, 68, 68, .5); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .84rem; border-radius: 10px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: .78rem; border-radius: 8px; gap: 5px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative;
}
.card-solid { background: var(--card); }
.card-hover { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .35); box-shadow: var(--shadow); }
.card-glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, .7), rgba(34, 211, 238, .25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, .28); color: var(--violet-300);
}
.icon-box i[data-i] { width: 22px; height: 22px; }
.icon-box.cyan { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .28); color: var(--cyan); }
.icon-box.green { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .28); color: #34D399; }
.icon-box.amber { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .28); color: #FBBF24; }
.icon-box.red { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .28); color: #F87171; }
.icon-box.sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-box.sm i[data-i] { width: 18px; height: 18px; }

/* Platform chip */
.pf { --pf: var(--violet); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--pf); background: color-mix(in srgb, var(--pf) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pf) 30%, transparent); flex-shrink: 0; }
.pf i[data-i] { width: 18px; height: 18px; }
.pf.sm { width: 28px; height: 28px; border-radius: 8px; }
.pf.sm i[data-i] { width: 14px; height: 14px; }
.pf.lg { width: 48px; height: 48px; border-radius: 14px; }
.pf.lg i[data-i] { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- Pills / badges */
.pill {
  --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; letter-spacing: .01em;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill-success { --c: #34D399; } .pill-warning { --c: #FBBF24; } .pill-danger { --c: #F87171; } .pill-info { --c: #60A5FA; }
.pill-violet { --c: #A78BFA; } .pill-cyan { --c: #22D3EE; } .pill-muted { --c: #94A3B8; } .pill-orange { --c: #FB923C; }
.pill-pulse::before { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: rgba(139, 92, 246, .15); color: var(--violet-300); }
.tag.cyan { background: rgba(34, 211, 238, .12); color: var(--cyan); }
.tag.green { background: rgba(16, 185, 129, .14); color: #34D399; }
.tag.amber { background: rgba(245, 158, 11, .14); color: #FBBF24; }

/* ---------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label, .label { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row a { font-size: .82rem; color: var(--violet-300); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--border-strong);
  background: var(--input-bg); color: var(--text); font-size: .93rem; transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(148, 163, 184, .38); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.select option, .select optgroup { background: #111827; color: #F8FAFC; }
[data-theme="light"] .select option, [data-theme="light"] .select optgroup { background: #fff; color: #0F172A; }
.input-sm { height: 38px; font-size: .86rem; border-radius: 10px; }
.input-wrap { position: relative; }
.input-wrap > i[data-i]:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 18px; height: 18px; pointer-events: none; }
.input-wrap > .input { padding-left: 42px; }
.input-wrap .input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.input-wrap .input-action:hover { color: var(--text); background: var(--hover); }
.input-wrap .input-action i[data-i] { width: 18px; height: 18px; }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 46px; }
.input-addon { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--card-2); color: var(--muted); font-size: .9rem; }
.input-addon + .input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.hint { font-size: .8rem; color: var(--muted); }
.error-msg { font-size: .8rem; color: #F87171; display: none; align-items: center; gap: 6px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field.has-error .error-msg { display: flex; }
.field.is-valid .input { border-color: rgba(16, 185, 129, .55); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--text-2); user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--input-bg); flex-shrink: 0; display: grid; place-items: center; transition: .15s; margin: 1px 0 0; cursor: pointer; }
.check input:checked { background: var(--violet); border-color: var(--violet); }
.check input:checked::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check a { color: var(--violet-300); }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 24px; border-radius: 999px; background: rgba(148, 163, 184, .25); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked + .track { background: var(--violet); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Password strength */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.strength span { height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .2); transition: background .25s; }
.strength[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.strength[data-score="3"] span:nth-child(-n+3) { background: #A3E635; }
.strength[data-score="4"] span { background: var(--success); }

/* ---------------------------------------------------------------- Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--glass); color: var(--text-2); font-size: .86rem; font-weight: 500;
  transition: .2s var(--ease);
}
.chip i[data-i] { width: 16px; height: 16px; }
.chip:hover { border-color: rgba(139, 92, 246, .5); color: var(--text); }
.chip.active, .chip[aria-pressed="true"] { background: rgba(139, 92, 246, .16); border-color: var(--violet); color: #fff; box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
[data-theme="light"] .chip.active, [data-theme="light"] .chip[aria-pressed="true"] { color: var(--violet-600); }
.chip .count { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--hover); color: var(--muted); }
.chip-sm { height: 32px; padding: 0 12px; font-size: .8rem; }

/* ---------------------------------------------------------------- Tables */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--glass); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 13px 16px; background: rgba(148, 163, 184, .05); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--hover); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .ellipsis { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table a.link { color: var(--cyan); }
.table a.link:hover { text-decoration: underline; }
.table .group-row td { background: rgba(139, 92, 246, .07); font-weight: 600; font-family: var(--font-head); font-size: .9rem; color: var(--text); padding: 10px 16px; }
.table-compare td, .table-compare th { text-align: center; }
.table-compare td:first-child, .table-compare th:first-child { text-align: left; }
.table-compare .yes { color: var(--success); display: inline-flex; }
.table-compare .no { color: var(--muted-2); display: inline-flex; }

/* ---------------------------------------------------------------- Toasts */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast {
  --c: var(--violet); pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px;
  background: var(--glass-strong); border: 1px solid var(--border-strong); border-left: 3px solid var(--c); border-radius: 14px;
  box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: toast-in .35s var(--ease); font-size: .9rem; position: relative; overflow: hidden;
}
.toast.out { animation: toast-out .3s var(--ease) forwards; }
.toast .t-icon { color: var(--c); width: 20px; height: 20px; margin-top: 1px; }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-title { font-weight: 600; margin-bottom: 2px; }
.toast .t-msg { color: var(--muted); font-size: .85rem; }
.toast .t-close { color: var(--muted-2); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.toast .t-close:hover { color: var(--text); background: var(--hover); }
.toast .t-close i[data-i] { width: 14px; height: 14px; }
.toast .t-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--c); opacity: .6; animation: toast-bar linear forwards; }
.toast-success { --c: var(--success); } .toast-error { --c: var(--danger); } .toast-warning { --c: var(--warning); } .toast-info { --c: var(--cyan); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes toast-bar { from { width: 100%; } to { width: 0; } }

/* ---------------------------------------------------------------- Modal */
.modal { position: fixed; inset: 0; z-index: 900; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 15, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
.modal-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); animation: pop .28s var(--ease); }
.modal-dialog.lg { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 1.15rem; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(11, 15, 25, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(139, 92, 246, .5)); }
.brand span b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--hover); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border-strong); place-items: center; }
.nav-toggle i[data-i] { width: 20px; height: 20px; }
.mobile-nav { display: none; }

/* ---------------------------------------------------------------- Background FX */
.bg-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.bg-fx .orb.v { width: 560px; height: 560px; background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 65%); top: -180px; left: -120px; }
.bg-fx .orb.c { width: 520px; height: 520px; background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 65%); top: 40px; right: -160px; }
.bg-fx .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); }
.relative { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; padding: 72px 0 96px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .88rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }
.stars { color: #FBBF24; display: inline-flex; gap: 2px; }
.stars i[data-i] { width: 14px; height: 14px; }
.stars svg { fill: currentColor; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; position: relative; z-index: 1; }
.stat { padding: 22px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.stat .v { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .86rem; margin-top: 4px; }

/* Hero mock dashboard */
.mock { position: relative; }
.mock-window { border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(26, 34, 52, .9), rgba(17, 24, 39, .9)); border: 1px solid var(--border-strong); box-shadow: 0 40px 100px -30px rgba(139, 92, 246, .45), var(--shadow); overflow: hidden; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.mock:hover .mock-window { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mock-bar span:nth-child(1) { background: #F87171; } .mock-bar span:nth-child(2) { background: #FBBF24; } .mock-bar span:nth-child(3) { background: #34D399; }
.mock-bar em { margin-left: 12px; font-style: normal; font-size: .75rem; color: var(--muted-2); font-family: var(--font-mono); }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { padding: 12px; border-radius: 12px; background: rgba(148, 163, 184, .06); border: 1px solid var(--border); }
.mock-kpi small { color: var(--muted); font-size: .7rem; display: block; }
.mock-kpi b { font-family: var(--font-head); font-size: 1.1rem; }
.mock-kpi .up { color: #34D399; font-size: .7rem; font-weight: 600; }
.mock-chart { height: 120px; display: flex; align-items: flex-end; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(148, 163, 184, .05); border: 1px solid var(--border); }
.mock-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--violet), rgba(139, 92, 246, .25)); animation: grow 1.2s var(--ease) both; transform-origin: bottom; }
.mock-chart i:nth-child(3n) { background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, .2)); }
@keyframes grow { from { transform: scaleY(0); } }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(148, 163, 184, .05); border: 1px solid var(--border); font-size: .8rem; }
.mock-row .grow { flex: 1; min-width: 0; }
.mock-row .grow b { display: block; font-weight: 600; font-size: .8rem; }
.mock-row .grow small { color: var(--muted); font-size: .72rem; }
.mock-row .bar { height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .15); margin-top: 6px; overflow: hidden; }
.mock-row .bar span { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.float-card { position: absolute; padding: 12px 14px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--border-strong); backdrop-filter: blur(14px); box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-size: .8rem; animation: float 6s ease-in-out infinite; }
.float-card b { display: block; font-size: .85rem; }
.float-card small { color: var(--muted); }
.float-card.one { left: -36px; bottom: -26px; }
.float-card.two { right: -20px; top: -18px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- Logos row */
.logos { padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(17, 24, 39, .5); }
.logos p { text-align: center; color: var(--muted-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 22px; }
.logos-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo-item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; transition: color .2s, transform .2s; }
.logo-item i[data-i] { width: 26px; height: 26px; }
.logo-item:hover { color: var(--pf, var(--text)); transform: translateY(-2px); }

/* ---------------------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { padding: 32px 28px; }
.step .num { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--violet-300); letter-spacing: .1em; margin: 20px 0 8px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- Features */
.feature { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.feature h3 { margin: 0; font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ---------------------------------------------------------------- Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.svc-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; animation: fade-up .4s var(--ease) both; }
.svc-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pf) 45%, transparent); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--pf) 45%, transparent); }
.svc-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.svc-card h3 { font-size: 1rem; font-family: var(--font); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.4; min-height: 2.8em; }
.svc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-meta div { padding: 10px 12px; border-radius: 10px; background: rgba(148, 163, 184, .06); border: 1px solid var(--border); }
.svc-meta small { display: block; color: var(--muted-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.svc-meta b { font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.price small { font-family: var(--font); font-size: .78rem; color: var(--muted); font-weight: 500; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .icon-box { margin: 0 auto 14px; }
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar .input-wrap { flex: 1; min-width: 220px; max-width: 380px; }
.usd-note { margin: -8px 0 14px; }
.svc-catalog { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--glass); overflow: auto; }
.svc-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 920px; }
.svc-table th { text-align: left; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; background: var(--bg, #0b0f19); border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.svc-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.svc-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.svc-table .svc-id { color: var(--muted); font-weight: 600; width: 72px; }
.svc-table .svc-rate { font-weight: 700; color: var(--cyan); white-space: nowrap; }
.svc-table tbody tr.svc-row:hover td { background: var(--hover); }
.svc-table .cat-row td { background: color-mix(in srgb, var(--pf, #8B5CF6) 18%, transparent); padding: 0; border-top: 1px solid color-mix(in srgb, var(--pf, #8B5CF6) 40%, transparent); }
.cat-label { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
.svc-table .cat-count { margin-left: auto; font-family: var(--font); font-size: .75rem; font-weight: 600; color: var(--muted); background: rgba(148, 163, 184, .12); border-radius: 999px; padding: 2px 8px; }
.svc-name-cell { display: flex; align-items: flex-start; gap: 10px; min-width: 280px; }
.svc-name-cell b { display: block; font-weight: 600; line-height: 1.35; }
.svc-name-cell small { display: block; color: var(--muted); margin-top: 2px; }
.svc-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.detail-row td { background: rgba(148, 163, 184, .05); color: var(--muted); }
.detail-row p { margin: 0; max-width: 760px; }
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-btn { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--glass); color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.lang-btn:hover { border-color: rgba(139, 92, 246, .55); background: var(--card); }
.lang-switch.open .lang-btn { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.lang-caret { width: 14px; height: 14px; color: var(--muted); transition: transform .18s var(--ease); }
.lang-switch.open .lang-caret { transform: rotate(180deg); color: var(--text); }
.flag { width: 22px; height: 16px; border-radius: 4px; overflow: hidden; display: inline-grid; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .28); }
.flag svg { width: 22px; height: 16px; display: block; }
.lang-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 140; width: 248px; max-height: min(360px, 70vh); overflow: auto; padding: 8px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--bg-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.lang-panel[hidden] { display: none; }
.lang-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--text-2); text-align: left; cursor: pointer; }
.lang-opt:hover { background: var(--hover); color: var(--text); }
.lang-opt.is-current { background: rgba(139, 92, 246, .16); color: var(--text); }
.lang-opt-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lang-opt-copy b { font-size: .86rem; font-weight: 650; }
.lang-opt-copy small { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.lang-opt-code { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--muted-2); }
.lang-opt.is-current .lang-opt-code { color: var(--violet-300); }
.lang-float { position: fixed; top: 16px; right: 16px; z-index: 120; }
@media (max-width: 1100px) {
  .lang-current-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lang-btn { padding-right: 8px; }
}
@media (max-width: 900px) {
  .svc-table th { position: static; }
}

/* ---------------------------------------------------------------- Pricing */
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border-strong); margin-bottom: 40px; }
.billing-toggle button { height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--muted); transition: .2s; display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px rgba(139, 92, 246, .9); }
.billing-toggle .save { font-size: .7rem; padding: 2px 7px; border-radius: 999px; background: rgba(16, 185, 129, .18); color: #34D399; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-2xl); background: var(--glass); border: 1px solid var(--border); position: relative; transition: transform .25s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan.featured { background: linear-gradient(180deg, rgba(139, 92, 246, .16), rgba(26, 34, 52, .7) 40%); border-color: rgba(139, 92, 246, .55); box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .6); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--grad); font-size: .74rem; font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan .desc { color: var(--muted); font-size: .92rem; min-height: 3em; }
.plan .amount { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 6px; }
.plan .amount b { font-family: var(--font-head); font-size: 3rem; letter-spacing: -.04em; line-height: 1; }
.plan .amount span { color: var(--muted); }
.plan .discount { display: inline-flex; align-self: flex-start; margin-bottom: 22px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.plan li { display: flex; gap: 10px; font-size: .92rem; color: var(--text-2); }
.plan li i[data-i] { color: var(--success); width: 18px; height: 18px; margin-top: 2px; }
.plan li.off { color: var(--muted-2); }
.plan li.off i[data-i] { color: var(--muted-2); }
.plan .btn { margin-top: auto; }
.payg { display: flex; align-items: center; gap: 20px; padding: 24px 28px; margin-top: 32px; border-radius: var(--r-xl); background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, .25); }
.payg p { margin: 0; color: var(--text-2); }
.payg .btn { margin-left: auto; }

/* Pay-as-you-go deposit bonus tiers (replaces subscription plan cards) */
.deposit-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.deposit-tier {
  display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-2xl);
  background: var(--glass); border: 1px solid var(--border); position: relative;
  transition: transform .25s var(--ease), border-color .25s;
}
.deposit-tier:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.deposit-tier.featured {
  background: linear-gradient(165deg, rgba(139,92,246,.16), rgba(34,211,238,.06) 55%, var(--glass));
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 24px 48px -28px rgba(139,92,246,.55);
}
.deposit-tier .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; background: var(--grad);
  font-size: .74rem; font-weight: 700; color: #fff; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
}
.deposit-tier .amount { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 6px; }
.deposit-tier .amount b { font-family: var(--font-head); font-size: 2.75rem; letter-spacing: -.04em; line-height: 1; }
.deposit-tier .amount span { color: var(--muted); font-size: .92rem; }
.deposit-tier .bonus {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.deposit-tier p { color: var(--muted); font-size: .92rem; margin: 0 0 22px; flex: 1; }
.deposit-tier .btn { margin-top: auto; }


/* ---------------------------------------------------------------- Testimonials */
.testimonial { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.testimonial blockquote { margin: 0; color: var(--text-2); font-size: .98rem; line-height: 1.7; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; background: var(--grad); font-size: .9rem; }
.who b { display: block; font-size: .95rem; }
.who small { color: var(--muted); }

/* ---------------------------------------------------------------- Accordion */
.accordion { display: grid; gap: 12px; }
.acc-item { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--glass); transition: border-color .2s, background .2s; }
.acc-item.open { border-color: rgba(139, 92, 246, .4); background: rgba(139, 92, 246, .06); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 18px 22px; font-weight: 600; font-size: .98rem; border-radius: inherit; }
.acc-trigger .chev { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--hover); transition: transform .3s var(--ease), background .2s; flex-shrink: 0; }
.acc-trigger .chev i[data-i] { width: 16px; height: 16px; }
.acc-item.open .chev { transform: rotate(180deg); background: rgba(139, 92, 246, .2); color: var(--violet-300); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.faq-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.faq-nav a:hover, .faq-nav a.active { color: var(--text); background: var(--hover); }
.faq-nav a.active { color: var(--violet-300); background: rgba(139, 92, 246, .1); }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

/* ---------------------------------------------------------------- CTA */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: 64px 56px; background: linear-gradient(120deg, rgba(139, 92, 246, .3), rgba(99, 102, 241, .18) 45%, rgba(34, 211, 238, .2)); border: 1px solid rgba(139, 92, 246, .4); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-banner::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 70%); }
.cta-banner h2 { margin-bottom: 10px; position: relative; }
.cta-banner p { color: var(--text-2); margin: 0; position: relative; max-width: 520px; }
.cta-banner .hero-cta { margin: 0; position: relative; }

/* ---------------------------------------------------------------- Page hero (inner) */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 64px) 0 64px; margin-top: calc(var(--header-h) * -1); text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted-2); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb i[data-i] { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- Prose (legal) */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 12px; font-family: var(--font); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .88rem; color: var(--muted); }
.toc a:hover { color: var(--text); }
.prose { max-width: 760px; color: var(--text-2); }
.prose h2 { font-size: 1.4rem; margin: 40px 0 14px; color: var(--text); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--text); }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.prose a { color: var(--cyan); }
.prose strong { color: var(--text); }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .25); margin: 24px 0; font-size: .92rem; }
.callout i[data-i] { color: var(--cyan); width: 20px; height: 20px; margin-top: 2px; }
.callout.violet { background: rgba(139, 92, 246, .08); border-color: rgba(139, 92, 246, .3); }
.callout.violet i[data-i] { color: var(--violet-300); }
.callout.amber { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); }
.callout.amber i[data-i] { color: #FBBF24; }

/* ---------------------------------------------------------------- Team / trust */
.team-card { text-align: center; padding: 28px 22px; }
.team-card .avatar { width: 84px; height: 84px; font-size: 1.5rem; margin: 0 auto 16px; font-family: var(--font-head); box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .6); }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card .role { color: var(--violet-300); font-size: .85rem; font-weight: 500; }
.team-card p { color: var(--muted); font-size: .87rem; margin: 12px 0 0; }
.badge-card { display: flex; gap: 14px; align-items: center; padding: 20px; }
.badge-card b { display: block; font-size: .95rem; }
.badge-card small { color: var(--muted); font-size: .82rem; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--border-strong); margin-left: 8px; }
.timeline > div { position: relative; padding: 0 0 28px 28px; }
.timeline > div::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
.timeline b { font-family: var(--font-head); color: var(--violet-300); }
.timeline p { margin: 4px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- Contact */
.channel { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.channel b { display: block; margin-bottom: 2px; }
.channel small { color: var(--muted); display: block; }
.channel a { color: var(--cyan); font-size: .9rem; font-weight: 500; }

/* ---------------------------------------------------------------- Auth */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #161033, #0B0F19 55%, #062330); border-right: 1px solid var(--border); }
.auth-side .quote { position: relative; z-index: 1; max-width: 460px; }
.auth-side .quote h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.auth-side .quote p { color: var(--muted); }
.auth-points { display: grid; gap: 14px; margin-top: 28px; }
.auth-points div { display: flex; gap: 12px; align-items: center; color: var(--text-2); font-size: .95rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; position: relative; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: .8rem; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.auth-foot a { color: var(--violet-300); font-weight: 600; }
.demo-hint { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(34, 211, 238, .07); border: 1px dashed rgba(34, 211, 238, .35); font-size: .84rem; color: var(--text-2); margin-bottom: 22px; }
.demo-hint i[data-i] { color: var(--cyan); }
.demo-hint button { color: var(--cyan); font-weight: 600; margin-left: auto; white-space: nowrap; }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(17, 24, 39, .4), rgba(11, 15, 25, 1)); padding: 72px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 16px 0 20px; max-width: 300px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--muted); transition: .2s; }
.socials a:hover { color: var(--text); border-color: var(--violet); background: rgba(139, 92, 246, .12); }
.socials i[data-i] { width: 17px; height: 17px; }
.footer-col h4 { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--violet-300); }
.newsletter p { color: var(--muted); font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .85rem; }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; }

/* ---------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { max-width: 560px; margin: 0 auto; width: 100%; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand, .newsletter { grid-column: span 3; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .hide-m { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: rgba(11, 15, 25, .97); backdrop-filter: blur(18px); padding: 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease); overflow-y: auto; }
  .mobile-nav.open { transform: none; opacity: 1; visibility: visible; }
  .mobile-nav a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--border); font-size: 1.05rem; font-weight: 500; color: var(--text-2); }
  .mobile-nav a.active { color: var(--violet-300); }
  .mobile-nav .btn { display: flex; margin-top: 14px; border-bottom: 1px solid transparent; }
  .grid-3, .steps, .plans, .deposit-tiers { grid-template-columns: 1fr; }
  .deposit-tiers { max-width: 460px; margin: 0 auto; }
  .plans { max-width: 460px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .faq-layout, .legal-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; display: flex; overflow-x: auto; }
  .faq-nav a { white-space: nowrap; }
  .toc { position: static; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .float-card.one { left: 0; } .float-card.two { right: 0; }
  .payg { flex-direction: column; align-items: flex-start; }
  .payg .btn { margin-left: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-4, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .newsletter { grid-column: span 2; }
  .hero-stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat .v { font-size: 1.55rem; }
  .mock-window { transform: none; }
  .float-card { display: none; }
  .oauth { grid-template-columns: 1fr; }
  .modal { padding: 10px; align-items: flex-end; }
  .modal-dialog { max-height: 92vh; }
}
@media (max-width: 640px) {
  .logos-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .logo-item { justify-content: flex-start; }
}

/* ---------------------------------------------------------------- Phones */
@media (max-width: 640px) {
  /* 16px stops iOS from zooming the page when a field gets focus. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  /* Data tables become one labelled block per row (labels come from assets/js/mobile.js). */
  table.m-stack, table.m-stack tbody, table.m-stack tr, table.m-stack td { display: block; width: 100%; min-width: 0; }
  table.m-stack thead { display: none; }
  table.m-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  table.m-stack tbody tr:last-child { border-bottom: 0; }
  table.m-stack tbody tr:hover, table.m-stack tbody tr.svc-row:hover td { background: transparent; }
  table.m-stack td { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 5px 0 !important; border: 0 !important; text-align: right; width: auto !important; }
  table.m-stack td::before { content: attr(data-label); flex: 0 0 auto; max-width: 42%; text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  table.m-stack td[data-label=""] { justify-content: flex-start; text-align: left; }
  table.m-stack td[data-label=""]::before { content: none; }
  table.m-stack td > * { min-width: 0; overflow-wrap: anywhere; }
  table.m-stack td > details { flex-basis: 100%; text-align: right; }
  table.m-stack td > details[open] { text-align: left; }
  table.m-stack td.num { text-align: right; }
  table.m-stack .ellipsis { max-width: 58vw; }
  table.m-stack tr.m-full { padding: 0; }
  table.m-stack tr.m-full td { display: block; text-align: left; }
  table.m-stack tr.m-full td::before { content: none; }
  table.m-stack tr.m-full td > * { padding-left: 16px; padding-right: 16px; }
  .table-wrap:has(> table.m-stack), .svc-catalog:has(> table.m-stack) { overflow: visible; }
  /* Long filter chip lists scroll sideways in one row instead of filling the screen. */
  #pfChips, #typeChips, #svcFilters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  #pfChips::-webkit-scrollbar, #typeChips::-webkit-scrollbar, #svcFilters::-webkit-scrollbar { display: none; }
  #pfChips > *, #typeChips > *, #svcFilters > * { flex-shrink: 0; }
}
