/* Videogram — official site styles */

:root {
  --brand-1: #8e5cff;
  --brand-2: #3d5afe;
  --brand: #6a4dff;
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --danger: #ff5a6e;
  --success: #22c38e;
  --warning: #ffb547;

  --bg: #ffffff;
  --bg-soft: #f6f5ff;
  --surface: #ffffff;
  --surface-2: #f2f1fb;
  --border: rgba(30, 20, 80, 0.09);
  --text: #14112b;
  --text-2: #4d4a66;
  --text-3: #807d99;
  --shadow-sm: 0 1px 2px rgba(20, 10, 60, .06), 0 2px 8px rgba(20, 10, 60, .05);
  --shadow-md: 0 8px 30px rgba(40, 20, 120, .10);
  --shadow-lg: 0 30px 80px rgba(60, 30, 160, .18);

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --nav-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0a18;
  --bg-soft: #100e22;
  --surface: #15132b;
  --surface-2: #1c1a36;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f1ff;
  --text-2: #b7b3d6;
  --text-3: #8a86ab;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 650; font-size: 16px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #fff; background: var(--brand-grad); box-shadow: 0 10px 30px rgba(90, 70, 255, .35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(90, 70, 255, .45); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn small { font-weight: 500; opacity: .8; font-size: 13px; }
.btn .btn-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: 15px; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--text-2); transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-switch { display: flex; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.lang-switch button { padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .02em; }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.menu-btn { display: none; }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: none; }

.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(142, 92, 255, .28), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -20%; width: 800px; height: 800px; z-index: -1;
  background: radial-gradient(closest-side, rgba(61, 90, 254, .18), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.pill b { padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--brand-grad); font-size: 12px; letter-spacing: .03em; }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 6vw, 68px); font-weight: 850; letter-spacing: -0.035em; }
.hero .lead { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 560px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-3); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--success); }
.ios-note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--text); font-size: 15px; display: none; }
.ios-note.show { display: block; }

/* ---------- Phone mockup ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 320px; aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2b2840, #0f0d1c); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: #fff; color: #14112b; font-size: 13px; display: flex; flex-direction: column;
}
[data-theme="dark"] .phone-screen { background: #17152b; color: #f3f1ff; }
.phone-notch { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 24px; border-radius: 20px; background: #0f0d1c; z-index: 3; }
.app-bar { padding: 46px 16px 10px; display: flex; align-items: center; gap: 10px; }
.app-bar .t { font-weight: 800; font-size: 19px; flex: 1; }
.ghost-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px;
  background: var(--surface-2); color: var(--text-3); transition: background-color .3s, color .3s;
}
.ghost-chip svg { width: 16px; height: 16px; }
.ghost-chip.on { background: var(--brand-grad); color: #fff; }
.search-bar { margin: 0 14px 6px; padding: 9px 12px; border-radius: 12px; background: rgba(120, 110, 180, .1); color: #8a86ab; font-size: 13px; }
.chat-list { list-style: none; margin: 0; padding: 4px 6px; overflow: hidden; flex: 1; }
.chat { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 14px; }
.chat .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.chat .mid { flex: 1; min-width: 0; }
.chat .row { display: flex; justify-content: space-between; gap: 6px; }
.chat .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat .time { color: #8a86ab; font-size: 11px; }
.chat .msg { color: #8a86ab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.chat .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.chat .deleted { color: var(--danger); }
.chat.typing .msg { color: var(--brand); }
.status-toast {
  position: absolute; left: 14px; right: 14px; bottom: 16px; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 12.5px;
  background: rgba(20, 17, 43, .92); color: #fff; display: flex; gap: 10px; align-items: center;
  transform: translateY(20px); opacity: 0; transition: transform .35s ease, opacity .35s ease;
}
.status-toast.show { transform: none; opacity: 1; }
.status-toast svg { width: 20px; height: 20px; flex: none; }
.float-card {
  position: absolute; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); font-size: 14px; font-weight: 650; display: flex; gap: 10px; align-items: center;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; }
.fc-1 { top: 14%; left: -6%; }
.fc-2 { bottom: 16%; right: -8%; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { padding: 8px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat .n { font-size: 38px; font-weight: 850; letter-spacing: -0.03em; }
.stat .l { color: var(--text-2); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 850; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 19px; }

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.feature .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; font-weight: 750; }
.feature p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.feature .tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); text-transform: uppercase; }
.c-purple { background: linear-gradient(135deg, #9b6bff, #6a3cff); }
.c-blue { background: linear-gradient(135deg, #4c8dff, #3d5afe); }
.c-red { background: linear-gradient(135deg, #ff7a8a, #ff4560); }
.c-green { background: linear-gradient(135deg, #3bdba5, #12a874); }
.c-orange { background: linear-gradient(135deg, #ffb547, #ff7a2f); }
.c-teal { background: linear-gradient(135deg, #2ee6c5, #1597d6); }
.c-pink { background: linear-gradient(135deg, #ff6fb5, #c23cff); }
.c-dark { background: linear-gradient(135deg, #4b4870, #1c1a36); }

/* ---------- Spotlights ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot + .spot { margin-top: 120px; }
.spot.reverse .spot-text { order: 2; }
.spot-text h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 850; }
.spot-text > p { margin-top: 16px; color: var(--text-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--success); margin-top: 2px; }

.demo { padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.demo-title { font-weight: 800; font-size: 15px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .lbl { font-weight: 600; }
.switch-row .lbl small { display: block; color: var(--text-3); font-weight: 500; font-size: 13px; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: #c9c6dd; flex: none; transition: background-color .25s; }
[data-theme="dark"] .switch { background: #3a3757; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.3,1.4,.6,1); }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch-row.master { padding: 16px; margin-bottom: 8px; border-radius: 16px; background: var(--surface-2); border: 0; }
.switch-row.master.on { background: var(--brand-grad); color: #fff; }
.switch-row.master.on small { color: rgba(255,255,255,.8); }
.switch-row.master.on .switch { background: rgba(255,255,255,.35); }
.sub-switches { transition: opacity .3s ease; }
.sub-switches.disabled { opacity: .4; pointer-events: none; }

.peek { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); display: flex; gap: 12px; align-items: center; font-size: 15px; }
.peek .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); }
.peek.offline .dot { background: var(--text-3); box-shadow: none; }

.history-item { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.history-item + .history-item { margin-top: 10px; }
.history-item .meta { font-size: 12.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.history-item .who { font-weight: 750; font-size: 15px; }
.history-item .txt { margin-top: 4px; color: var(--text-2); }
.history-item .old { text-decoration: line-through; color: var(--text-3); }
.m-del { color: var(--danger); }
.m-edit { color: var(--brand); }

.pin-demo { text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 10px 0 22px; }
.pin-dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-3); transition: background-color .2s, border-color .2s, transform .2s; }
.pin-dots span.filled { background: var(--brand); border-color: var(--brand); transform: scale(1.1); }
.pin-dots.error span { border-color: var(--danger); background: var(--danger); animation: shake .4s; }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; justify-content: center; }
.pin-pad button { height: 60px; border-radius: 18px; background: var(--surface-2); font-size: 22px; font-weight: 650; transition: background-color .15s, transform .1s; }
.pin-pad button:hover { background: color-mix(in srgb, var(--brand) 14%, var(--surface-2)); }
.pin-pad button:active { transform: scale(.95); }
.pin-hint { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.hidden-chats { margin-top: 16px; display: none; text-align: left; }
.hidden-chats.show { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

.kw-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.kw { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brand-grad); color: #fff; font-weight: 650; font-size: 14px; }
.notif { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: flex; gap: 12px; }
.notif .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.notif .ic svg { width: 20px; height: 20px; }
.notif .h { font-weight: 750; font-size: 15px; }
.notif .b { color: var(--text-2); font-size: 14.5px; }
.notif mark { background: color-mix(in srgb, var(--warning) 45%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; }

/* ---------- Compare ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--surface-2); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 160px; }
.compare td:first-child { font-weight: 600; }
.yes, .no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.yes { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.no { background: var(--surface-2); color: var(--text-3); }
.yes svg, .no svg { width: 16px; height: 16px; }
.compare .vg-col { background: color-mix(in srgb, var(--brand) 6%, transparent); }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.sec-card h3 { font-size: 19px; margin-top: 16px; }
.sec-card p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.sec-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.sec-card .ic svg { width: 24px; height: 24px; }
.hash-box { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hash-box .lbl { font-weight: 700; }
.hash-box code { flex: 1 1 320px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; word-break: break-all; color: var(--text-2); }
.copy-btn { padding: 8px 14px; border-radius: 10px; background: var(--surface-2); font-weight: 650; font-size: 14px; }
.copy-btn:hover { background: color-mix(in srgb, var(--brand) 14%, var(--surface-2)); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-grad); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 18px; }
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.install-cta { margin-top: 36px; text-align: center; }
.req { margin-top: 14px; color: var(--text-3); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2.5px solid var(--text-3); border-bottom: 2.5px solid var(--text-3); rotate: 45deg; translate: 0 -3px; transition: rotate .25s, translate .25s; flex: none; }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq .ans { padding: 0 24px 22px; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; padding: 64px 48px; border-radius: 32px; text-align: center; color: #fff;
  background: radial-gradient(circle at 20% 0%, #a37bff 0%, transparent 50%), radial-gradient(circle at 100% 100%, #2f6bff 0%, transparent 55%), linear-gradient(135deg, #6a3cff, #3d5afe);
  box-shadow: var(--shadow-lg);
}
.cta img { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.cta h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 850; }
.cta p { margin-top: 12px; font-size: 19px; opacity: .9; }
.cta .btn { margin-top: 30px; background: #fff; color: #3a2bd6; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.cta .btn:hover { transform: translateY(-1px); }
.cta .meta { margin-top: 14px; font-size: 14px; opacity: .8; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--border); margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--text-3); font-size: 15px; margin-top: 14px; max-width: 380px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-weight: 550; }
.footer ul a:hover { color: var(--brand); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 40px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 850; }
.legal .updated { margin-top: 10px; color: var(--text-3); }
.legal h2 { margin-top: 40px; font-size: 24px; }
.legal p, .legal li { color: var(--text-2); margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--brand); font-weight: 600; }
.legal .note { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--border); }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .big { font-size: clamp(90px, 18vw, 180px); font-weight: 900; line-height: 1; }
.notfound p { margin-top: 12px; color: var(--text-2); font-size: 19px; }
.notfound .btn { margin-top: 28px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 20px; opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
  padding: 12px 18px; border-radius: 14px; background: #14112b; color: #fff; font-weight: 600; box-shadow: var(--shadow-lg);
  transition: opacity .25s, translate .25s;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu.open {
    display: grid; gap: 4px; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49; padding: 12px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .mobile-menu a { padding: 14px 12px; border-radius: 12px; font-weight: 650; font-size: 17px; }
  .mobile-menu a:hover { background: var(--surface-2); }
}
@media (max-width: 880px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 72px; }
  .hero-grid, .spot { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .spot.reverse .spot-text { order: 0; }
  .spot + .spot { margin-top: 88px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .section { padding: 76px 0; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
}
@media (max-width: 600px) {
  .features, .sec-grid { grid-template-columns: 1fr; }
  .nav .btn-download-nav { display: none; }
  .lang-switch button { padding: 6px 8px; }
  .phone { width: 280px; }
  .float-card { display: none; }
  .cta { padding: 48px 22px; border-radius: 24px; }
  .hero-cta .btn { width: 100%; }
  .pin-pad { grid-template-columns: repeat(3, 64px); }
  .demo { padding: 20px; }
}
@media (max-width: 440px) {
  .nav-inner { gap: 12px; }
  .nav .logo span { display: none; }
  .nav-actions { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
