/* ==========================================================================
   AlphaVault — Telegram Earnings & Trading Hub
   assets/css/style.css
   Author: AlphaVault
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens (custom properties)
   02. Reset & base
   03. Typography
   04. Layout primitives (container, section, grid)
   05. Buttons & links
   06. Header / navigation
   07. Hero
   08. Trust bar / marquee
   09. Cards (feature, bot, stat, article)
   10. Sections (about, steps, comparison, testimonials, FAQ, CTA)
   11. Article / prose styling
   12. Tables
   13. Footer
   14. Floating UI (FAB, sticky mobile CTA, back-to-top, progress)
   15. Advertisement slots
   16. Reveal animations
   17. Utilities
   18. Responsive refinements
   19. Print
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  /* ---- Brand palette (dark is the default theme) ---- */
  --ink-950: #05070d;
  --ink-900: #080b14;
  --ink-850: #0b0f1a;
  --ink-800: #0f1523;
  --ink-750: #141b2c;
  --ink-700: #1a2336;
  --ink-600: #26314a;
  --ink-500: #3a4763;

  --text-hi:  #f4f7ff;
  --text-mid: #b7c1d6;
  --text-lo:  #8592ac;
  --text-faint: #5d6a85;

  /* ---- Accents ---- */
  --gold-300: #ffd98a;
  --gold-400: #f7bf4e;
  --gold-500: #eda227;
  --gold-600: #d1840c;
  --gold-grad: linear-gradient(135deg, #ffd98a 0%, #f7bf4e 38%, #f0892b 100%);

  --tg-300: #6fc7ff;
  --tg-400: #35a9ef;
  --tg-500: #229ed9;
  --tg-grad: linear-gradient(135deg, #35a9ef 0%, #229ed9 100%);

  --emerald-400: #34d97f;
  --emerald-500: #16b364;
  --emerald-grad: linear-gradient(135deg, #34d97f 0%, #10a35a 100%);

  --violet-400: #9b85ff;
  --violet-500: #7c5cff;
  --violet-grad: linear-gradient(135deg, #9b85ff 0%, #6f45f5 100%);

  --rose-400: #ff6b81;
  --rose-500: #e8384f;

  /* ---- Semantic ---- */
  --bg: var(--ink-950);
  --bg-alt: var(--ink-900);
  --surface: var(--ink-850);
  --surface-2: var(--ink-800);
  --surface-3: var(--ink-750);

  /* Chrome bars that stay dark in the dark theme but must flip in light mode. */
  --bg-deep: var(--ink-900);
  --bg-deep-2: var(--ink-800);
  --bg-deep-3: var(--ink-750);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: var(--gold-400);
  --accent-2: var(--tg-400);

  /* ---- Effects ---- */
  --glow-gold: 0 0 0 1px rgba(247, 191, 78, 0.28), 0 18px 50px -12px rgba(237, 162, 39, 0.42);
  --glow-tg: 0 18px 50px -12px rgba(34, 158, 217, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
  --ring: 0 0 0 3px rgba(53, 169, 239, 0.35);

  /* ---- Gradients ---- */
  --grad-brand: var(--gold-grad);
  --grad-page-fade: linear-gradient(180deg, transparent, var(--bg));

  /* ---- Typography scale (fluid) ---- */
  --ff-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, Consolas, monospace;

  --fs-xs: clamp(0.72rem, 0.69rem + 0.14vw, 0.8rem);
  --fs-sm: clamp(0.82rem, 0.79rem + 0.16vw, 0.92rem);
  --fs-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  --fs-md: clamp(1.05rem, 0.99rem + 0.3vw, 1.2rem);
  --fs-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-xl: clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --fs-2xl: clamp(1.8rem, 1.45rem + 1.7vw, 2.85rem);
  --fs-3xl: clamp(2.15rem, 1.6rem + 2.7vw, 4rem);
  --fs-hero: clamp(2.1rem, 1.4rem + 3.3vw, 4.1rem);

  /* ---- Spacing ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;
  --section-y: clamp(3.5rem, 2rem + 7vw, 7.5rem);

  /* ---- Shape & motion ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.18s var(--ease);
  --t-med: 0.32s var(--ease);
  --t-slow: 0.6s var(--ease);

  /* ---- Layout ---- */
  --container: 1240px;
  --container-narrow: 780px;
  --container-wide: 1440px;
  --nav-h: 68px;
  --gutter: clamp(1rem, 0.55rem + 2.2vw, 2.5rem);

  --z-base: 1;
  --z-sticky: 100;
  --z-nav: 200;
  --z-drawer: 250;
  --z-float: 300;
  --z-top: 400;
}

/* ---- Light theme ---- */
[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --surface-3: #e9eef6;
  --bg-deep: #eef2f8;
  --bg-deep-2: #ffffff;
  --bg-deep-3: #f7f9fc;
  --border: rgba(9, 16, 32, 0.10);
  --border-strong: rgba(9, 16, 32, 0.18);
  --text-hi: #0b1220;
  --text-mid: #3b4761;
  --text-lo: #5d6a85;
  --text-faint: #8492ad;
  --accent: var(--gold-600);
  --accent-2: var(--tg-500);
  --shadow-sm: 0 2px 8px rgba(16, 32, 64, 0.07);
  --shadow-md: 0 12px 28px -10px rgba(16, 32, 64, 0.16);
  --shadow-lg: 0 30px 60px -24px rgba(16, 32, 64, 0.26);
  --glow-gold: 0 0 0 1px rgba(209, 132, 12, 0.22), 0 16px 40px -14px rgba(209, 132, 12, 0.34);
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-mid);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  transition: background-color var(--t-med), color var(--t-med);
}

body.is-locked { overflow: hidden; }

img,
svg,
video,
canvas,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

svg { flex: none; }

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul,
ol { list-style: none; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--sp-6) 0;
}

::selection {
  background: var(--gold-400);
  color: #0b0f1a;
}

:focus-visible {
  outline: 2px solid var(--tg-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--ink-600), var(--ink-500));
  border-radius: 99px;
  border: 3px solid var(--ink-900);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--tg-500), var(--ink-500)); }

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(760px 480px at 12% -8%, rgba(237, 162, 39, 0.13), transparent 62%),
    radial-gradient(700px 460px at 88% 4%, rgba(34, 158, 217, 0.14), transparent 60%),
    radial-gradient(900px 600px at 50% 108%, rgba(124, 92, 255, 0.10), transparent 65%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 22%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 22%, #000 25%, transparent 78%);
}

[data-theme="light"] body::after { opacity: 0.5; background-image: linear-gradient(rgba(9,16,32,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(9,16,32,0.04) 1px, transparent 1px); }
[data-theme="light"] body::before { opacity: 0.55; }

/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--text-hi);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p { text-wrap: pretty; }

strong, b { color: var(--text-hi); font-weight: 650; }

code, kbd {
  font-family: var(--ff-mono);
  font-size: 0.88em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 0.14em 0.44em;
  border-radius: var(--r-xs);
  color: var(--gold-300);
}

mark, .hl {
  background: linear-gradient(180deg, transparent 58%, rgba(247, 191, 78, 0.32) 58%);
  color: var(--text-hi);
  padding: 0 0.15em;
  border-radius: 3px;
}

/* Gradient headline text */
.grad-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.grad-text--tg { background: var(--tg-grad); -webkit-background-clip: text; background-clip: text; }

[data-theme="light"] .grad-text {
  background-image: linear-gradient(135deg, #b46a05 0%, #d1840c 45%, #f0892b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  padding: 0.42em 0.95em;
  border: 1px solid rgba(247, 191, 78, 0.26);
  border-radius: var(--r-pill);
  background: rgba(247, 191, 78, 0.08);
  line-height: 1;
  white-space: nowrap;
}

[data-theme="light"] .eyebrow { color: var(--gold-600); border-color: rgba(209,132,12,0.3); background: rgba(209,132,12,0.07); }

.eyebrow--tg { color: var(--tg-300); border-color: rgba(53, 169, 239, 0.3); background: rgba(53, 169, 239, 0.1); }
[data-theme="light"] .eyebrow--tg { color: var(--tg-500); }

.eyebrow--em { color: var(--emerald-400); border-color: rgba(52, 217, 127, 0.3); background: rgba(52, 217, 127, 0.09); }
[data-theme="light"] .eyebrow--em { color: var(--emerald-500); }

/* Small status dot inside eyebrow */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse-dot 2.4s var(--ease-in-out) infinite;
  flex: none;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(52, 217, 127, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 217, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 217, 127, 0); }
}

/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }

.section__head {
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
}

.section__head--left {
  margin-inline: 0;
  text-align: left;
  justify-items: start;
}

.section__head p {
  font-size: var(--fs-md);
  color: var(--text-lo);
}

.section__title { font-size: var(--fs-2xl); }

.section__title small {
  display: block;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-lo);
  letter-spacing: 0;
  margin-top: 0.55em;
}

/* Grid helpers */
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr); }
.grid--split {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-items: center;
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
}
/* Article + sticky sidebar. The sidebar must be start-aligned: with
   `align-items: center` a short sidebar gets pushed to the vertical middle of a
   very tall article, and `position: sticky` then has nothing to stick against. */
.grid--split-start {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: start;
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
}

.stack { display: grid; gap: var(--sp-4); align-content: start; }
.stack--sm { gap: var(--sp-2); }
.stack--lg { gap: var(--sp-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.cluster--center { justify-content: center; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: 0;
  margin-block: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}

/* ==========================================================================
   05. BUTTONS & LINKS
   ========================================================================== */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text-hi);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.82em 1.5em;
  min-height: 48px;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  /* Labels must be able to wrap. A long label such as "Top Quality Hedging MT5
     Bot Channel" is wider than a phone, and nowrap would force the button to
     overflow its container instead of wrapping onto a second line. */
  white-space: normal;
  text-wrap: balance;
  transition: transform var(--t-fast), box-shadow var(--t-med), background-color var(--t-med),
    border-color var(--t-med), color var(--t-med), opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary {
  --btn-fg: #100c02;
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: var(--glow-gold);
  font-weight: 700;
}

.btn--primary:hover { box-shadow: 0 0 0 1px rgba(247,191,78,0.4), 0 24px 60px -14px rgba(237, 162, 39, 0.6); }

.btn--tg {
  --btn-fg: #ffffff;
  background: var(--tg-grad);
  border-color: transparent;
  box-shadow: var(--glow-tg);
  font-weight: 700;
}

.btn--tg:hover { box-shadow: 0 0 0 1px rgba(53,169,239,0.4), 0 24px 60px -14px rgba(34,158,217,0.62); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border-strong);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--gold-400); color: var(--gold-300); }
[data-theme="light"] .btn--ghost { background: #fff; }
[data-theme="light"] .btn--ghost:hover { background: #fff; color: var(--gold-600); border-color: var(--gold-500); }

.btn--em { --btn-fg: #04220f; background: var(--emerald-grad); border-color: transparent; font-weight: 700; box-shadow: 0 16px 44px -14px rgba(22, 179, 100, 0.6); }
.btn--violet { --btn-fg: #fff; background: var(--violet-grad); border-color: transparent; font-weight: 700; box-shadow: 0 16px 44px -14px rgba(124, 92, 255, 0.6); }

.btn--sm { padding: 0.62em 1.05em; min-height: 40px; font-size: var(--fs-xs); border-radius: var(--r-sm); }
.btn--lg { padding: 1em 1.9em; min-height: 56px; font-size: var(--fs-md); border-radius: var(--r-lg); }
.btn--block { display: flex; width: 100%; }

.btn[disabled],
.btn.is-loading { opacity: 0.6; pointer-events: none; }

/* Underline text link */
.link {
  color: var(--gold-400);
  font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--t-med), color var(--t-med);
  padding-bottom: 1px;
  overflow-wrap: anywhere;
}

.link:hover { background-size: 100% 1.5px; color: var(--gold-300); }
[data-theme="light"] .link { color: var(--gold-600); }
[data-theme="light"] .link:hover { color: var(--gold-500); }

/* Inline icon links row */
.link-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ==========================================================================
   06. HEADER / NAVIGATION
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: var(--z-top);
  padding: 0.7em 1.3em;
  background: var(--gold-400);
  color: #0b0f1a;
  font-weight: 700;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform var(--t-fast);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---- Announcement bar ---- */
.topbar {
  background: linear-gradient(90deg, var(--bg-deep-2), var(--bg-deep-3) 50%, var(--bg-deep-2));
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-mid);
  overflow: hidden;
  transition: margin var(--t-med), opacity var(--t-med);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 40px;
  padding-block: 0.4rem;
  text-align: center;
}

.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  flex: none;
}

.topbar__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: pulse-dot 2.4s var(--ease-in-out) infinite;
}

.topbar__text { min-width: 0; }
.topbar__text b { color: var(--text-hi); }
.topbar__hide-sm { display: none; }
.topbar__inner > .link { flex: none; white-space: nowrap; }

@media (min-width: 640px) {
  .topbar__hide-sm { display: inline; }
}

/* ---- Sticky header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}

[data-theme="light"] .header { background: rgba(255, 255, 255, 0.82); }

.header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--nav-h);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  color: var(--text-hi);
  flex: none;
  transition: opacity var(--t-fast);
}

.logo:hover { opacity: 0.82; }

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  box-shadow: 0 8px 22px -8px rgba(237, 162, 39, 0.75);
  flex: none;
}

.logo__mark svg { width: 21px; height: 21px; }

.logo__text { display: grid; line-height: 1; gap: 2px; }
.logo__name { display: block; }
.logo__tag {
  font-family: var(--ff-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Desktop nav */
.nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: clamp(0.25rem, -0.1rem + 0.9vw, 1rem);
}

.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--text-mid);
  padding: 0.5em 0.75em;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.75em;
  right: 0.75em;
  bottom: 0.28em;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}

.nav__link:hover { color: var(--text-hi); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--gold-400); }
[data-theme="light"] .nav__link.is-active { color: var(--gold-600); }

.header__actions {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.4rem;
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__actions { display: flex; }
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-mid);
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
  flex: none;
}

.theme-toggle:hover { color: var(--gold-400); border-color: var(--border-strong); transform: rotate(-12deg); }
[data-theme="light"] .theme-toggle { background: #fff; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  flex: none;
  margin-left: auto;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

[data-theme="light"] .nav-toggle { background: #fff; }
.nav-toggle:hover { border-color: var(--border-strong); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle__bars {
  position: relative;
  width: 19px;
  height: 14px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text-hi);
  transition: transform var(--t-med), opacity var(--t-fast), width var(--t-med);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; width: 72%; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scroll progress bar */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(247, 191, 78, 0.7);
  transition: width 0.1s linear;
  z-index: 2;
}

/* ---- Mobile drawer ---- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
  z-index: var(--z-drawer);
}

.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(360px, 88vw);
  background: var(--ink-900);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--t-slow);
  z-index: calc(var(--z-drawer) + 1);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

[data-theme="light"] .drawer { background: #fff; }

.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 1rem var(--gutter);
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--border);
}

.drawer__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-mid);
  flex: none;
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.drawer__close:hover { color: var(--rose-400); border-color: var(--rose-500); transform: rotate(90deg); }
.drawer__close svg { width: 18px; height: 18px; }

.drawer__body {
  padding: 1.35rem var(--gutter) 1.75rem;
  overflow-y: auto;
  display: grid;
  gap: 1.5rem;
  align-content: start;
  flex: 1;
}

.drawer__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.55rem;
}

.drawer__nav { display: grid; gap: 0.15rem; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.8rem 0.85rem;
  border-radius: var(--r-md);
  font-family: var(--ff-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-mid);
  border: 1px solid transparent;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.drawer__link:hover,
.drawer__link:focus-visible {
  background: var(--surface-2);
  color: var(--text-hi);
  border-color: var(--border);
  transform: translateX(3px);
}

.drawer__link svg { width: 16px; height: 16px; color: var(--text-faint); }
.drawer__link.is-active { color: var(--gold-400); }
[data-theme="light"] .drawer__link.is-active { color: var(--gold-600); }

.drawer__foot {
  padding: 1rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
  background: var(--surface);
}

.drawer__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

/* ==========================================================================
   07. HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(2.75rem, 1.5rem + 6vw, 6rem) clamp(3rem, 2rem + 5vw, 5.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.038em;
  margin-top: 1.1rem;
}

.hero__title .line { display: block; }

.hero__lead {
  font-size: var(--fs-md);
  color: var(--text-lo);
  max-width: 56ch;
  margin-top: 1.35rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__cta .btn { flex: 1 1 220px; max-width: 360px; }
@media (min-width: 480px) {
  .hero__cta .btn { flex: 0 0 auto; max-width: none; }
}

/* Secondary actions sitting under the single primary hero CTA. */
.hero__alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.hero__alt .btn { flex: 1 1 210px; max-width: 300px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  color: var(--text-lo);
  font-weight: 550;
}

.hero__trust-item svg { width: 15px; height: 15px; color: var(--emerald-400); flex: none; }
[data-theme="light"] .hero__trust-item svg { color: var(--emerald-500); }

/* ---- Hero visual: Telegram chat mockup ---- */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__glow {
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(circle at 50% 40%, rgba(34, 158, 217, 0.28), transparent 62%);
  filter: blur(46px);
  z-index: -1;
  animation: float-slow 12s var(--ease-in-out) infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -18px, 0) scale(1.05); }
}

/* Chat mockup */
.chat {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float-y 7s var(--ease-in-out) infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tg-grad);
  color: #fff;
  flex: none;
  box-shadow: 0 4px 14px -4px rgba(34, 158, 217, 0.8);
}
.chat__avatar svg { width: 20px; height: 20px; }

.chat__title { font-family: var(--ff-display); font-weight: 700; font-size: 0.95rem; color: var(--text-hi); line-height: 1.2; }
.chat__sub { font-size: 0.72rem; color: var(--emerald-400); display: flex; align-items: center; gap: 0.35rem; }
.chat__sub .dot { width: 6px; height: 6px; }

.chat__actions { margin-left: auto; display: flex; gap: 0.3rem; }
.chat__actions span { width: 16px; height: 16px; border-radius: 50%; background: var(--border-strong); }

.chat__body {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(34, 158, 217, 0.07), transparent 70%),
    var(--surface);
  min-height: 300px;
}

.msg {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  animation: msg-in 0.5s var(--ease) both;
}

.msg--in { background: var(--surface-3); border: 1px solid var(--border); border-bottom-left-radius: 5px; justify-self: start; }
.msg--out { background: linear-gradient(135deg, #2a7fd4, #1f6fbb); color: #fff; border-bottom-right-radius: 5px; justify-self: end; }
.msg--signal {
  background: linear-gradient(135deg, rgba(247, 191, 78, 0.16), rgba(237, 162, 39, 0.08));
  border: 1px solid rgba(247, 191, 78, 0.3);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  justify-self: stretch;
  max-width: 100%;
}
.msg__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.4rem;
}
.msg__value { font-family: var(--ff-mono); font-size: 1.35rem; font-weight: 700; color: var(--emerald-400); letter-spacing: -0.02em; }
.msg__sub { font-size: 0.72rem; color: var(--text-faint); margin-top: 0.15rem; }
.msg__time { font-size: 0.64rem; color: var(--text-faint); margin-top: 0.3rem; display: block; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.chat__typing {
  justify-self: start;
  display: flex;
  gap: 4px;
  padding: 0.75rem 0.9rem;
  background: var(--surface-3);
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  border: 1px solid var(--border);
}
.chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typing 1.3s var(--ease-in-out) infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.18s; }
.chat__typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Floating badges around the chat */
.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(15, 21, 35, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-hi);
  white-space: nowrap;
  z-index: 2;
}

[data-theme="light"] .float-badge { background: rgba(255, 255, 255, 0.92); }

.float-badge__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.float-badge__icon svg { width: 15px; height: 15px; }
.float-badge__icon--gold { background: rgba(247, 191, 78, 0.16); color: var(--gold-400); }
.float-badge__icon--em { background: rgba(52, 217, 127, 0.16); color: var(--emerald-400); }
.float-badge__icon--tg { background: rgba(53, 169, 239, 0.16); color: var(--tg-300); }

.float-badge--a { top: 20%; left: -5%; animation: float-y 6s var(--ease-in-out) infinite; }
.float-badge--b { bottom: 14%; right: -5%; animation: float-y 8s var(--ease-in-out) 0.6s infinite; }
.float-badge--c { bottom: -3%; left: 3%; animation: float-y 7s var(--ease-in-out) 0.3s infinite; }

@media (max-width: 1199px) {
  .float-badge--a { left: -2%; }
  .float-badge--b { right: -2%; }
}
/* Below the two-column hero breakpoint there is no room beside the chat mockup,
   and the badges would sit on top of its content. */
@media (max-width: 1023px) {
  .float-badge { display: none; }
}

/* Marquee strip under hero */
.marquee {
  --speed: 42s;
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 0.85rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  animation: marquee var(--speed) linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-lo);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.marquee__item:hover { color: var(--gold-400); }
.marquee__item svg { width: 16px; height: 16px; color: var(--gold-400); opacity: 0.85; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
}

/* ==========================================================================
   08. CARDS — shared surface
   ========================================================================== */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med), background-color var(--t-med);
  overflow: hidden;
  isolation: isolate;
}

.card--hover:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card--glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .card--glass { background: #fff; }

/* Hover glow edge */
.card--edge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(247, 191, 78, 0.65), transparent 40%, transparent 60%, rgba(53, 169, 239, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
  z-index: 2;
}
.card--edge:hover::before { opacity: 1; }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--border);
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--gold { background: rgba(247, 191, 78, 0.12); color: var(--gold-400); border-color: rgba(247, 191, 78, 0.24); }
.card__icon--tg { background: rgba(53, 169, 239, 0.12); color: var(--tg-400); border-color: rgba(53, 169, 239, 0.24); }
.card__icon--em { background: rgba(52, 217, 127, 0.12); color: var(--emerald-400); border-color: rgba(52, 217, 127, 0.24); }
.card__icon--violet { background: rgba(155, 133, 255, 0.12); color: var(--violet-400); border-color: rgba(155, 133, 255, 0.24); }

[data-theme="light"] .card__icon--gold { color: var(--gold-600); }
[data-theme="light"] .card__icon--tg { color: var(--tg-500); }
[data-theme="light"] .card__icon--em { color: var(--emerald-500); }
[data-theme="light"] .card__icon--violet { color: var(--violet-500); }

.card__title { font-size: var(--fs-lg); }
.card__text { color: var(--text-lo); font-size: var(--fs-sm); }

.card__list { display: grid; gap: 0.6rem; }

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.55;
}

.card__list li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.28em;
  color: var(--emerald-400);
}
[data-theme="light"] .card__list li svg { color: var(--emerald-500); }

.card__foot {
  margin-top: 0.35rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  justify-self: start;
  font-family: var(--ff-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-lo);
  border: 1px solid var(--border);
  line-height: 1;
}
.card__tag--gold { background: rgba(247,191,78,0.12); color: var(--gold-400); border-color: rgba(247,191,78,0.26); }
.card__tag--tg { background: rgba(53,169,239,0.12); color: var(--tg-300); border-color: rgba(53,169,239,0.26); }
.card__tag--em { background: rgba(52,217,127,0.12); color: var(--emerald-400); border-color: rgba(52,217,127,0.26); }
.card__tag--violet { background: rgba(155,133,255,0.12); color: var(--violet-400); border-color: rgba(155,133,255,0.26); }
[data-theme="light"] .card__tag--gold { color: var(--gold-600); }
[data-theme="light"] .card__tag--em { color: var(--emerald-500); }
[data-theme="light"] .card__tag--violet { color: var(--violet-500); }

/* ==========================================================================
   09. BOT FEATURE CARDS (highlighted)
   ========================================================================== */

.bot-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(1000px 420px at 0% 0%, rgba(247, 191, 78, 0.08), transparent 58%),
    var(--surface);
  overflow: hidden;
  isolation: isolate;
}

.bot-card--tg {
  background:
    radial-gradient(1000px 420px at 0% 0%, rgba(53, 169, 239, 0.1), transparent 58%),
    var(--surface);
}

.bot-card__num {
  position: absolute;
  top: clamp(-1.5rem, -2vw, -0.5rem);
  right: 1.5rem;
  font-family: var(--ff-display);
  font-size: clamp(6rem, 4rem + 8vw, 11rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
[data-theme="light"] .bot-card__num { color: rgba(11, 18, 32, 0.035); }

@media (min-width: 900px) {
  .bot-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .bot-card--reverse > .bot-card__media { order: -1; }
}

.bot-card__title { font-size: var(--fs-2xl); }
.bot-card__desc { color: var(--text-lo); font-size: var(--fs-md); }

.bot-card__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
}

.bot-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--text-mid);
}

.bot-card__features svg { width: 17px; height: 17px; flex: none; margin-top: 0.25em; color: var(--gold-400); }
.bot-card--tg .bot-card__features svg { color: var(--tg-400); }

.bot-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.bot-card__handle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-mid);
  background: var(--surface-3);
  border: 1px dashed var(--border-strong);
  padding: 0.35em 0.75em;
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.bot-card__handle:hover { border-color: var(--gold-400); color: var(--gold-300); }
[data-theme="light"] .bot-card__handle:hover { color: var(--gold-600); }
.bot-card__handle svg { width: 15px; height: 15px; color: var(--tg-400); }

/* Mini terminal / bot UI */
.terminal {
  background: var(--ink-900);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--ff-mono);
}

[data-theme="light"] .terminal { background: var(--ink-900); }

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal__dots { display: flex; gap: 5px; }
.terminal__dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal__dots span:nth-child(1) { background: #ff5f57; }
.terminal__dots span:nth-child(2) { background: #febc2e; }
.terminal__dots span:nth-child(3) { background: #28c840; }

.terminal__title {
  font-size: 0.72rem;
  color: var(--text-lo);
  margin-inline: auto;
  padding-right: 1.4rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal__body {
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.85;
  color: var(--text-mid);
  /* Generous cap: the sample sessions are 13-15 rows, and a tight cap clips
     the last line mid-glyph which reads as a rendering bug. Overflow is still
     hidden as a guard in case more rows are added later. */
  max-height: 460px;
  overflow: hidden;
}

.terminal__line { display: flex; gap: 0.6rem; white-space: nowrap; }
.terminal__line span:first-child { color: var(--text-faint); flex: none; }
.t-ok { color: var(--emerald-400); }
.t-gold { color: var(--gold-400); }
.t-tg { color: var(--tg-300); }
.t-dim { color: var(--text-faint); }

.terminal__line--input { margin-top: 0.4rem; }
.terminal__caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  background: var(--emerald-400);
  vertical-align: text-bottom;
  animation: caret 1.1s steps(2) infinite;
}

@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ==========================================================================
   10. STATS
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: clamp(1.15rem, 0.9rem + 1vw, 1.75rem) 1rem;
  text-align: center;
  display: grid;
  gap: 0.3rem;
  transition: background-color var(--t-med);
}

.stat:hover { background: var(--surface-2); }

.stat__value {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.06em;
}

.stat__suffix { font-size: 0.62em; }

.stat__label {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   11. STEPS
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding-top: 2.6rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--ff-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  transition: -webkit-text-stroke-color var(--t-med), color var(--t-med);
}

.step:hover::before { -webkit-text-stroke-color: var(--gold-400); color: rgba(247, 191, 78, 0.06); }

.step__title { font-size: var(--fs-md); margin-bottom: 0.4rem; }
.step__text { font-size: var(--fs-sm); color: var(--text-lo); }

/* Connector line on wide screens */
@media (min-width: 900px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
    z-index: -1;
  }
  .step { padding-top: 2.9rem; }
}

/* ==========================================================================
   12. COMPARISON / VALUE GRID
   ========================================================================== */

.checklist { display: grid; gap: 0.85rem; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-mid);
  transition: border-color var(--t-med), transform var(--t-med), background-color var(--t-med);
}

.checklist li:hover { border-color: var(--border-strong); transform: translateX(4px); background: var(--surface-3); }

.checklist li svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 0.15em;
  color: var(--emerald-400);
}
[data-theme="light"] .checklist li svg { color: var(--emerald-500); }

/* ==========================================================================
   13. ARTICLE / PROSE
   ========================================================================== */

.prose {
  max-width: 74ch;
  font-size: var(--fs-md);
  color: var(--text-mid);
  line-height: 1.8;
}

.prose > * + * { margin-top: 1.35em; }

.prose h2 {
  font-size: var(--fs-xl);
  margin-top: 2.2em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.prose h3 {
  font-size: var(--fs-lg);
  margin-top: 1.8em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.prose h2 + p,
.prose h3 + p { margin-top: 0.7em; }

.prose > h2:first-child,
.prose > h3:first-child { margin-top: 0; }

.prose ul,
.prose ol {
  display: grid;
  gap: 0.7rem;
  padding-left: 0;
}

/* Markers are absolutely positioned rather than flex/grid items. Making the
   <li> a flex container would promote each child element (e.g. a leading
   <strong>) to its own flex item and split the sentence into columns. */
.prose ul li {
  position: relative;
  display: block;
  padding-left: 1.5rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(247, 191, 78, 0.12);
}

.prose ol { counter-reset: prose-ol; }

.prose ol li {
  position: relative;
  display: block;
  padding-left: 2.5rem;
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--ff-display);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(247, 191, 78, 0.14);
  border: 1px solid rgba(247, 191, 78, 0.3);
  color: var(--gold-400);
}

[data-theme="light"] .prose ol li::before { color: var(--gold-600); }

.prose blockquote {
  position: relative;
  padding: 1.35rem 1.5rem 1.35rem 1.75rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-400);
  font-size: var(--fs-md);
  color: var(--text-hi);
  font-style: italic;
}

.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 0.6rem; font-size: var(--fs-sm); font-style: normal; color: var(--text-faint); }

/* Callout boxes */
.callout {
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
}

.callout__icon { width: 22px; height: 22px; flex: none; margin-top: 0.1em; }
.callout strong { display: block; margin-bottom: 0.2rem; font-family: var(--ff-display); }

.callout--warn { background: rgba(232, 56, 79, 0.07); border-color: rgba(232, 56, 79, 0.28); }
.callout--warn .callout__icon { color: var(--rose-400); }
.callout--info { background: rgba(53, 169, 239, 0.07); border-color: rgba(53, 169, 239, 0.26); }
.callout--info .callout__icon { color: var(--tg-400); }
.callout--tip { background: rgba(52, 217, 127, 0.06); border-color: rgba(52, 217, 127, 0.26); }
.callout--tip .callout__icon { color: var(--emerald-400); }

/* Inline CTA link inside prose */
.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.8em;
  border-radius: var(--r-sm);
  background: rgba(53, 169, 239, 0.1);
  border: 1px solid rgba(53, 169, 239, 0.28);
  color: var(--tg-300);
  font-family: var(--ff-display);
  font-weight: 650;
  font-size: 0.9em;
  white-space: nowrap;
  transition: background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

[data-theme="light"] .inline-cta { color: var(--tg-500); }
.inline-cta:hover { background: rgba(53, 169, 239, 0.2); transform: translateY(-1px); box-shadow: var(--glow-tg); }
.inline-cta svg { width: 1em; height: 1em; }

/* Article meta bar */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-faint);
}

.article-meta__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta__item svg { width: 15px; height: 15px; }

/* Table of contents */
.toc {
  padding: 1.35rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid;
  gap: 0.75rem;
}

.toc__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.toc__list { display: grid; gap: 0.15rem; counter-reset: toc; }

.toc__list a {
  display: flex;
  gap: 0.7rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-mid);
  transition: background-color var(--t-fast), color var(--t-fast);
}

.toc__list a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--gold-400);
  flex: none;
  padding-top: 0.15em;
}

.toc__list a:hover { background: var(--surface-3); color: var(--text-hi); }

/* The TOC lives inside .prose on the homepage article, where `.prose ol li`
   adds its own counter. Neutralise it so each entry shows one number only. */
.prose .toc__list { counter-reset: toc; padding-left: 0; }
.prose .toc__list li { display: block; }
.prose .toc__list li::before { content: none; }

/* ==========================================================================
   14. TABLES
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text-hi);
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.table tbody td,
.table tbody th {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  color: var(--text-mid);
}

.table tbody th { font-family: var(--ff-display); color: var(--text-hi); font-weight: 650; }
.table tbody tr { transition: background-color var(--t-fast); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td,
.table tbody tr:last-child th { border-bottom: 0; }

.table .col-hi { color: var(--gold-400); font-weight: 650; }
[data-theme="light"] .table .col-hi { color: var(--gold-600); }
.table .num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

.badge-yes, .badge-no, .badge-part {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-xs);
  font-weight: 650;
  padding: 0.28em 0.65em;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.badge-yes { background: rgba(52, 217, 127, 0.13); color: var(--emerald-400); border-color: rgba(52, 217, 127, 0.28); }
.badge-no { background: rgba(232, 56, 79, 0.11); color: var(--rose-400); border-color: rgba(232, 56, 79, 0.26); }
.badge-part { background: rgba(247, 191, 78, 0.12); color: var(--gold-400); border-color: rgba(247, 191, 78, 0.26); }
[data-theme="light"] .badge-yes { color: var(--emerald-500); }
[data-theme="light"] .badge-no { color: var(--rose-500); }
[data-theme="light"] .badge-part { color: var(--gold-600); }

.table__scroll-hint {
  display: none;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-top: 0.6rem;
  align-items: center;
  gap: 0.4rem;
}
.table__scroll-hint svg { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .table__scroll-hint { display: flex; }
}

/* ==========================================================================
   15. TESTIMONIALS
   ========================================================================== */

.quote {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  position: relative;
  overflow: hidden;
}

.quote:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

.quote::before {
  content: "\201C";
  position: absolute;
  top: 0.15em;
  right: 0.45em;
  font-family: var(--ff-display);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(247, 191, 78, 0.09);
  pointer-events: none;
}

/* Keeps every author row flush with the bottom of its card, so a row of three
   testimonials lines up instead of ending at three different heights. */
.quote__text { flex: 1; }

.quote__stars { display: flex; gap: 2px; color: var(--gold-400); position: relative; z-index: 1; }
.quote__stars svg { width: 16px; height: 16px; }

.quote__text {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.quote__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b0f1a;
  background: var(--gold-grad);
  flex: none;
}

.quote__avatar--tg { background: var(--tg-grad); color: #fff; }
.quote__avatar--em { background: var(--emerald-grad); color: #04220f; }
.quote__avatar--violet { background: var(--violet-grad); color: #fff; }

.quote__name { font-family: var(--ff-display); font-weight: 650; font-size: var(--fs-sm); color: var(--text-hi); line-height: 1.3; }
.quote__role { font-size: var(--fs-xs); color: var(--text-faint); }

/* ==========================================================================
   16. FAQ ACCORDION
   ========================================================================== */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 880px;
  margin-inline: auto;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-med), background-color var(--t-med);
}

.faq__item.is-open { border-color: rgba(247, 191, 78, 0.36); background: var(--surface-2); }
.faq__item:has(.faq__btn[aria-expanded="true"]) { border-color: rgba(247, 191, 78, 0.36); }

.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 650;
  color: var(--text-hi);
  transition: color var(--t-fast);
}

.faq__btn:hover { color: var(--gold-400); }
[data-theme="light"] .faq__btn:hover { color: var(--gold-600); }

.faq__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform var(--t-med), background-color var(--t-med), border-color var(--t-med), color var(--t-med);
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}

.faq__icon::before { width: 11px; height: 2px; }
.faq__icon::after { width: 2px; height: 11px; }

.faq__btn[aria-expanded="true"] .faq__icon {
  background: var(--gold-grad);
  border-color: transparent;
  color: #0b0f1a;
  transform: rotate(180deg);
}

.faq__btn[aria-expanded="true"] .faq__icon::after { opacity: 0; transform: scaleY(0); }

.faq__panel {
  /* Height is driven from JS (`--faq-max` = measured content height) rather
     than the `grid-template-rows: 0fr -> 1fr` trick. Animating `fr` needs
     Chrome 107+ / Safari 16+; where it is unsupported the answer text would
     stay permanently collapsed and become unreadable. A max-height swap
     degrades to an instant open on old engines instead of losing content. */
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease);
}

.faq__panel.is-open { max-height: var(--faq-max, 40rem); }

.faq__panel > div { min-height: 0; }

.faq__panel p {
  padding: 0 1.25rem 1.2rem;
  font-size: var(--fs-sm);
  color: var(--text-lo);
  line-height: 1.75;
  max-width: 72ch;
}

.faq__panel p + p { padding-top: 0.85rem; }

.faq__panel .inline-cta { margin-top: 0.9rem; }

/* ==========================================================================
   17. FINAL CTA
   ========================================================================== */

.cta-panel {
  position: relative;
  padding: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(247, 191, 78, 0.16), transparent 62%),
    radial-gradient(700px 340px at 90% 110%, rgba(53, 169, 239, 0.14), transparent 60%),
    var(--surface);
  text-align: center;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.cta-panel__title { font-size: var(--fs-2xl); max-width: 20ch; }
.cta-panel__text { font-size: var(--fs-md); color: var(--text-lo); max-width: 58ch; }

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.cta-panel__actions .btn { flex: 1 1 240px; max-width: 340px; }
@media (min-width: 560px) {
  .cta-panel__actions .btn { flex: 0 0 auto; }
}

.cta-panel__note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.cta-panel__note svg { width: 14px; height: 14px; color: var(--emerald-400); }

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem) 0;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 2vw, 3rem);
}

@media (min-width: 560px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; } }

.footer__brand { display: grid; gap: 1rem; align-content: start; max-width: 40ch; }
.footer__desc { font-size: var(--fs-sm); color: var(--text-lo); }

.footer__col-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.footer__links { display: grid; gap: 0.65rem; }

.footer__links a {
  font-size: var(--fs-sm);
  color: var(--text-lo);
  transition: color var(--t-fast), transform var(--t-fast);
  display: inline-block;
}

.footer__links a:hover { color: var(--gold-400); transform: translateX(3px); }
[data-theme="light"] .footer__links a:hover { color: var(--gold-600); }

.footer__cta-card {
  padding: 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(53, 169, 239, 0.24);
  background: rgba(53, 169, 239, 0.07);
  display: grid;
  gap: 0.85rem;
}

.footer__cta-card .btn { width: 100%; }

.socials { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-lo);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), background-color var(--t-fast);
}

.socials a:hover { color: var(--tg-300); border-color: var(--tg-400); transform: translateY(-3px); }
.socials a svg { width: 18px; height: 18px; }

.footer__bottom {
  margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

.footer__bottom a { color: var(--text-lo); }
.footer__bottom a:hover { color: var(--gold-400); }

.footer__legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; }

.risk-note {
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(232, 56, 79, 0.055);
  border: 1px solid rgba(232, 56, 79, 0.2);
  font-size: var(--fs-xs);
  color: var(--text-lo);
  line-height: 1.7;
  margin-top: 2rem;
}

.risk-note strong { color: var(--rose-400); font-family: var(--ff-display); }

/* ==========================================================================
   19. FLOATING UI
   ========================================================================== */

/* Site-owner Telegram pill — the main redirect target, always reachable. */
.owner-fab {
  position: fixed;
  right: clamp(0.85rem, 0.4rem + 1.2vw, 1.5rem);
  bottom: calc(clamp(0.85rem, 0.4rem + 1.2vw, 1.5rem) + var(--float-bottom, 0px));
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 50px;
  padding-inline: 1.1rem;
  border-radius: var(--r-pill);
  background: var(--gold-grad);
  color: #100c02;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--glow-gold), var(--shadow-lg);
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-med);
  -webkit-tap-highlight-color: transparent;
}

.owner-fab svg { width: 19px; height: 19px; }
.owner-fab:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(247,191,78,.45), 0 26px 60px -16px rgba(237,162,39,.7); }

/* Mobile: the sticky CTA bar owns the bottom, so the pill rides above it. */
@media (max-width: 1023px) {
  .owner-fab {
    bottom: calc(clamp(0.85rem, 0.4rem + 1.2vw, 1.5rem) + 78px);
    height: 44px;
    padding-inline: 0.95rem;
  }
  .owner-fab span { display: none; }
  .owner-fab { width: 44px; padding-inline: 0; justify-content: center; }
}

@media (max-width: 419px) {
  .owner-fab { display: none; }
}

.scroll-top {
  position: fixed;
  right: clamp(0.85rem, 0.4rem + 1.2vw, 1.5rem);
  bottom: calc(clamp(0.85rem, 0.4rem + 1.2vw, 1.5rem) + var(--float-bottom, 0px));
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-mid);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.85);
  transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med), color var(--t-fast);
  z-index: var(--z-float);
}

.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { color: var(--gold-400); border-color: var(--gold-400); }
.scroll-top svg { width: 20px; height: 20px; }

/* Mobile sticky CTA bar */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-float);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(8, 11, 20, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px -10px rgba(0, 0, 0, 0.8);
  transform: translateY(110%);
  transition: transform var(--t-slow);
}

[data-theme="light"] .mobile-cta { background: rgba(255, 255, 255, 0.93); }

.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { min-height: 46px; }

.mobile-cta__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  color: var(--text-lo);
  background: var(--surface-2);
  transition: color var(--t-fast);
}
.mobile-cta__icon:hover { color: var(--tg-300); }
.mobile-cta__icon svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .mobile-cta { display: none; }
  .scroll-top { bottom: clamp(0.85rem, 0.4rem + 1.2vw, 1.5rem); }
}

body { padding-bottom: 0; }
@media (max-width: 1023px) {
  body.has-mobile-cta { padding-bottom: 74px; }
}

/* ==========================================================================
   20. ADVERTISEMENT SYSTEM
   --------------------------------------------------------------------------
   Built around the real creative sizes the network serves, so a slot is
   either the right size for its unit or hidden entirely. Never shrink a
   banner to fit: a 728x90 scaled down reads as a broken ad and gets clipped
   by the network's own frame.

     .ad--728        728 x 90   leaderboard      shown >= 800px
     .ad--468        468 x 60   medium rectangle shown >= 520px
     .ad--300        300 x 250  medium rectangle all widths
     .ad--160x300    160 x 300  wide skyscraper  shown >= 1024px
     .ad--160x600    160 x 600  half page       shown >= 1024px
     .ad--320        320 x 50   mobile banner   shown < 768px
     .ad--native     responsive native/container unit

   Markup contract:
     <div class="ad ad--728 ad--placeholder">
       <span class="ad__label">Advertisement</span>
       <div class="ad__frame"> ...ad code... </div>
     </div>

   main.js watches each .ad__frame and sets "is-filled" on the slot the moment
   a creative is injected, which removes the dashed placeholder. The :has()
   rules below are a no-JS fallback.
   ========================================================================== */

.ad {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
  position: relative;
  margin-block: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem);
}

.ad__label {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0.65;
  margin-bottom: 0.45rem;
  line-height: 1;
}

.ad__frame {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  max-width: 100%;
  min-width: 0;
}

.ad__frame > iframe { display: block; border: 0; }

/* ---- Placeholder look, only while the slot is empty ---- */
.ad--placeholder .ad__frame {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px),
    var(--surface-2);
  color: var(--text-faint);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
}

[data-theme="light"] .ad--placeholder .ad__frame {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(9, 16, 32, 0.02) 10px, rgba(9, 16, 32, 0.02) 20px),
    var(--surface-2);
}

.ad--placeholder.is-filled .ad__frame {
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.ad--placeholder.is-filled .ad__frame:empty { display: none; }

/* No-JS fallback: any real markup inside means "filled". */
.ad--placeholder:has(.ad__frame > iframe),
.ad--placeholder:has(.ad__frame > ins),
.ad--placeholder:has(.ad__frame > div:not(:empty)) {
  border: 0;
  background: none;
}

/* ---- Unit sizes ---- */
.ad--728 .ad__frame { width: 728px; height: 90px; }
.ad--468 .ad__frame { width: 468px; height: 60px; }
.ad--300 .ad__frame { width: 300px; min-height: 250px; }
.ad--160x300 .ad__frame { width: 160px; height: 300px; }
.ad--160x600 .ad__frame { width: 160px; height: 600px; }
.ad--320 .ad__frame { width: 320px; height: 50px; }
.ad--native .ad__frame { width: 100%; max-width: 728px; min-height: 120px; }
.ad--native .ad__frame > div { width: 100%; }

/* ---- Visibility by breakpoint ---- */
@media (max-width: 799px)  { .ad--728 { display: none; } }
@media (max-width: 519px)  { .ad--468 { display: none; } }
@media (max-width: 1023px) { .ad--160x300, .ad--160x600 { display: none; } }
@media (min-width: 768px)  { .ad--320 { display: none; } }

/* ---- Placement variants ---- */
.ad--leaderboard { max-width: 980px; }
.ad--inarticle { max-width: 728px; }
.ad--sidebar {
  max-width: 300px;
  margin-block: 0;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

/* ---- Skyscraper rail (160x300 stacked over 160x600) ---- */
.ad-rail {
  display: none;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .ad-rail { display: flex; }
}

/* ---- Owner / advertising section ---- */
.owner__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .owner__grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

.owner__card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.owner__id {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.owner__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  color: #0b0f1a;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex: none;
  box-shadow: 0 8px 22px -8px rgba(237, 162, 39, 0.7);
}

.owner__name { font-family: var(--ff-display); font-weight: 700; color: var(--text-hi); font-size: var(--fs-md); line-height: 1.25; }
.owner__role { font-size: var(--fs-xs); color: var(--text-faint); }

.owner__disclosure {
  font-size: var(--fs-sm);
  color: var(--text-lo);
  display: grid;
  gap: 0.75rem;
}

.owner__disclosure strong { color: var(--text-hi); }

/* Push floating buttons above the sticky mobile bar */
@media (max-width: 1023px) {
  .scroll-top { bottom: calc(clamp(0.85rem, 0.4rem + 1.2vw, 1.5rem) + 78px); }
}

/* ==========================================================================
   21. SUBPAGES (About, Privacy, Terms, Contact, 404)
   ========================================================================== */

.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 380px at 15% -20%, rgba(247, 191, 78, 0.12), transparent 62%),
    radial-gradient(700px 340px at 85% -10%, rgba(53, 169, 239, 0.12), transparent 60%);
}

.page-hero__inner {
  max-width: 74ch;
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.page-hero h1 { font-size: var(--fs-2xl); }

.page-hero__lead {
  font-size: var(--fs-md);
  color: var(--text-lo);
  max-width: 62ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.breadcrumb a { color: var(--text-lo); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb span[aria-current] { color: var(--text-faint); }
.breadcrumb .sep { opacity: 0.5; }

.page-section { padding-block: clamp(2.5rem, 1.75rem + 3vw, 4.5rem); }

.page-aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.page-aside__toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.page-aside .toc__list a { font-size: var(--fs-sm); }

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .page-grid--narrow { grid-template-columns: minmax(0, 1fr); }
}

/* Definition-style rows used on About / Contact */
.def-list { display: grid; gap: 0.9rem; }

.def-list__row {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-med), transform var(--t-med);
}

.def-list__row:hover { border-color: var(--border-strong); transform: translateX(3px); }

.def-list__key {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--gold-400);
  letter-spacing: -0.01em;
}
[data-theme="light"] .def-list__key { color: var(--gold-600); }

.def-list__val { font-size: var(--fs-sm); color: var(--text-lo); }

/* Timeline */
.timeline { display: grid; gap: 0; }

.timeline__item {
  position: relative;
  padding: 0 0 1.85rem 2.1rem;
  border-left: 1px solid var(--border);
}

.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px rgba(247, 191, 78, 0.14);
}

.timeline__title { font-size: var(--fs-base); font-family: var(--ff-display); color: var(--text-hi); font-weight: 700; }
.timeline__meta { font-size: var(--fs-xs); color: var(--gold-400); font-weight: 600; margin-bottom: 0.3rem; }
[data-theme="light"] .timeline__meta { color: var(--gold-600); }
.timeline__text { font-size: var(--fs-sm); color: var(--text-lo); margin-top: 0.35rem; }

/* Contact cards */
.contact-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}

.contact-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card__title { font-size: var(--fs-md); display: flex; align-items: center; gap: 0.6rem; }
.contact-card__title svg { width: 20px; height: 20px; color: var(--gold-400); }
[data-theme="light"] .contact-card__title svg { color: var(--gold-600); }
.contact-card__text { font-size: var(--fs-sm); color: var(--text-lo); }

/* 404 */
.error-hero {
  min-height: clamp(340px, 60vh, 560px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-9);
}

.error-code {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 3rem + 12vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

/* Last-updated stamp */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  padding: 0.4em 0.85em;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-2);
}
.stamp svg { width: 13px; height: 13px; }

/* ==========================================================================
   22. REVEAL ANIMATIONS
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

[data-reveal="left"] { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="scale"] { transform: scale(0.95); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .chat, .float-badge, .hero__glow, .msg { animation: none !important; }
  .msg { opacity: 1 !important; }
}

/* Print: light theme, no chrome */
@media print {
  .header, .topbar, .drawer, .drawer-backdrop, .scroll-top, .mobile-cta,
  .ad, .marquee, .hero__visual, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .card, .bot-card, .quote, .faq__item { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
}