/* ==========================================================================
   aitradesig — design system / base
   ========================================================================== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/unbounded-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/unbounded-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', 'Manrope', 'Segoe UI', sans-serif;

  --bg: #05080f;
  --bg-2: #070c16;
  --bg-elev: #0b1220;
  --surface: rgba(15, 24, 40, 0.66);
  --surface-solid: #0d1524;
  --surface-2: rgba(255, 255, 255, 0.035);
  --surface-3: rgba(255, 255, 255, 0.06);
  --line: rgba(158, 187, 255, 0.12);
  --line-strong: rgba(158, 187, 255, 0.22);
  --text: #eef4ff;
  --text-soft: #c3cfe4;
  --muted: #8798b3;
  --muted-2: #64748b;
  --brand: #5b7cff;
  --brand-2: #22d3ee;
  --brand-3: #8b5cf6;
  --lime: #c6f24d;
  --green: #35e0a1;
  --red: #ff5d7a;
  --amber: #ffb84d;
  --white: #ffffff;
  --grad-brand: linear-gradient(135deg, #5b7cff 0%, #22d3ee 100%);
  --grad-lime: linear-gradient(135deg, #c6f24d 0%, #67f5b4 100%);
  --grad-text: linear-gradient(100deg, #ffffff 0%, #b9c8ff 42%, #6ee7ff 100%);
  --grad-panel: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-glow: 0 0 0 1px rgba(91, 124, 255, 0.2), 0 24px 80px rgba(51, 98, 255, 0.22);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --container: 1240px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

html[data-theme='light'] {
  --bg: #f3f6fc;
  --bg-2: #eaf0fa;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-2: rgba(11, 28, 56, 0.035);
  --surface-3: rgba(11, 28, 56, 0.06);
  --line: rgba(18, 43, 82, 0.11);
  --line-strong: rgba(18, 43, 82, 0.2);
  --text: #0b1730;
  --text-soft: #31415f;
  --muted: #5e6e8c;
  --muted-2: #7b8aa4;
  --brand: #3358f4;
  --brand-2: #0891b2;
  --brand-3: #7c3aed;
  --lime: #a3d900;
  --green: #0d9f6e;
  --red: #e11d48;
  --amber: #b45309;
  --grad-text: linear-gradient(100deg, #0b1730 0%, #26418a 55%, #0e7490 100%);
  --grad-panel: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58));
  --shadow-sm: 0 10px 28px rgba(22, 51, 98, 0.08);
  --shadow-md: 0 26px 60px rgba(22, 51, 98, 0.12);
  --shadow-glow: 0 0 0 1px rgba(51, 88, 244, 0.15), 0 24px 70px rgba(51, 88, 244, 0.16);
  color-scheme: light;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--brand) transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.menu-open { overflow: hidden; }

/* Ambient page background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 760px at 76% -8%, rgba(74, 111, 255, 0.24), transparent 62%),
    radial-gradient(900px 640px at -8% 22%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(139, 92, 246, 0.12), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 58%, var(--bg) 100%);
  transition: background 0.4s ease;
}
html[data-theme='light'] .page-bg {
  background:
    radial-gradient(1100px 760px at 76% -8%, rgba(74, 111, 255, 0.16), transparent 62%),
    radial-gradient(900px 640px at -8% 22%, rgba(34, 211, 238, 0.11), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(139, 92, 246, 0.08), transparent 65%),
    linear-gradient(180deg, #f8faff 0%, var(--bg) 55%, #eef3fb 100%);
}
.page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 168, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 168, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 0%, transparent 78%);
}
html[data-theme='light'] .page-bg::before {
  background-image:
    linear-gradient(rgba(30, 64, 120, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 120, 0.05) 1px, transparent 1px);
}
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
html[data-theme='light'] .page-bg::after { opacity: 0.028; }

::selection { background: rgba(91, 124, 255, 0.35); color: var(--white); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.12; }
figure { margin: 0; }
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Layout */
.container {
  width: min(var(--container), calc(100% - clamp(2rem, 5vw, 4.5rem)));
  margin-inline: auto;
}
.container--wide { width: min(1440px, calc(100% - clamp(1.25rem, 4vw, 3.5rem))); }
.section { position: relative; padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section--tight { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }
.section--flush { padding-top: 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
  min-width: 0;
}
.section-head > * { min-width: 0; }
.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.section-head p { max-width: 520px; }
.section-head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 224, 161, 0.14);
  animation: pulse-dot 2.4s ease infinite;
}
.eyebrow--lime { color: var(--lime); border-color: rgba(198, 242, 77, 0.28); }
.eyebrow--brand { color: #9fb5ff; border-color: rgba(91, 124, 255, 0.3); }
html[data-theme='light'] .eyebrow--brand { color: #3358f4; }
.eyebrow svg { width: 14px; height: 14px; }

.display,
h1, h2, h3 { font-family: var(--font-display); }
.display {
  font-size: clamp(2.55rem, 5.6vw, 4.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.05rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.72;
  font-weight: 500;
}
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere;
}
.text-lime { color: var(--lime); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.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;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  isolation: isolate;
  overflow: hidden;
  user-select: none;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary {
  color: #061124;
  background: var(--grad-brand);
  box-shadow: 0 12px 32px rgba(54, 107, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn--primary:hover { box-shadow: 0 18px 44px rgba(54, 107, 255, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--primary:hover::after { opacity: 1; }
.btn--lime {
  color: #101c03;
  background: var(--grad-lime);
  box-shadow: 0 12px 32px rgba(174, 235, 45, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--lime:hover { box-shadow: 0 18px 42px rgba(174, 235, 45, 0.36); }
.btn--ghost {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  backdrop-filter: blur(14px);
}
.btn--ghost:hover { border-color: rgba(91, 124, 255, 0.55); background: rgba(91, 124, 255, 0.1); }
.btn--soft {
  background: rgba(91, 124, 255, 0.12);
  border-color: rgba(91, 124, 255, 0.2);
  color: var(--text);
}
.btn--soft:hover { background: rgba(91, 124, 255, 0.2); }
.btn--sm { min-height: 42px; padding: 0.6rem 1.1rem; font-size: 0.82rem; }
.btn--lg { min-height: 58px; padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--dark { background: #07101f; color: #fff; border-color: rgba(255, 255, 255, 0.08); }
html[data-theme='light'] .btn--dark { background: #0b1730; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-soft);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--square { border-radius: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--brand-2); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* Chips / tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--green { color: var(--green); background: rgba(53, 224, 161, 0.09); border-color: rgba(53, 224, 161, 0.22); }
.chip--red { color: var(--red); background: rgba(255, 93, 122, 0.09); border-color: rgba(255, 93, 122, 0.22); }
.chip--lime { color: var(--lime); background: rgba(198, 242, 77, 0.09); border-color: rgba(198, 242, 77, 0.22); }
.chip--brand { color: #a9bbff; background: rgba(91, 124, 255, 0.12); border-color: rgba(91, 124, 255, 0.26); }
html[data-theme='light'] .chip--brand { color: #2c50e8; }
.chip--neutral { color: var(--muted); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(53, 224, 161, 0.12);
  animation: pulse-dot 2s infinite;
}

/* Cards */
.glass {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--grad-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.card:hover { border-color: var(--line-strong); }
.card--solid { background: var(--surface-solid); }
.card-title { font-family: var(--font-body); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.card-text { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* Spotlight hover effect */
.spotlight { position: relative; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 124, 255, 0.16), transparent 65%);
  transition: opacity 0.4s ease;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* Divider */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 2px;
  width: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
  transition: width 0.1s linear;
}

/* Header */
.market-ticker {
  position: relative;
  z-index: 60;
  height: 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(15px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
html[data-theme='light'] .market-ticker { background: rgba(248, 250, 255, 0.8); }
.market-ticker__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  height: 100%;
  width: max-content;
  animation: marquee 44s linear infinite;
  will-change: transform;
}
.market-ticker:hover .market-ticker__track { animation-play-state: paused; }
.market-ticker__item { display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap; }
.market-ticker__sym { color: var(--text-soft); font-weight: 800; }
.market-ticker__price { color: var(--text); font-variant-numeric: tabular-nums; }
.market-ticker__change { color: var(--green); font-variant-numeric: tabular-nums; }
.market-ticker__change.is-down { color: var(--red); }
.market-ticker__sep { width: 1px; height: 10px; background: var(--line-strong); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  opacity: 1;
  transition: background 0.3s ease;
}
html[data-theme='light'] .site-header::before { background: rgba(248, 250, 255, 0.62); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.site-header.is-scrolled::before { background: rgba(5, 8, 15, 0.82); }
html[data-theme='light'] .site-header.is-scrolled::before { background: rgba(248, 250, 255, 0.9); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.72rem; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; filter: drop-shadow(0 6px 18px rgba(74, 111, 255, 0.35)); }
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; border-radius: 12px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  translate: -50% 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.header-actions .btn--sm { min-height: 40px; }
.header-theme { width: 40px; height: 40px; }
.header-actions .burger { display: none; }
.burger {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s ease, top 0.35s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.menu-open .burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) clamp(1.4rem, 4vw, 2.2rem) 2rem;
  background: var(--surface-solid);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.menu-open .mobile-menu { visibility: visible; pointer-events: auto; }
.menu-open .mobile-menu__backdrop { opacity: 1; }
.menu-open .mobile-menu__panel { transform: none; }
.mobile-menu__label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.mobile-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.mobile-nav a span { color: var(--muted-2); font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; }
.mobile-nav a.is-active { color: var(--brand-2); }
.mobile-menu__footer { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.75rem; }
.mobile-menu__socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.mobile-menu__socials .icon-btn { width: 44px; height: 44px; }

/* Footer */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(2, 6, 15, 0.6));
}
html[data-theme='light'] .site-footer { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5)); }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 3rem;
}
.footer-brand p { margin-top: 1.1rem; max-width: 300px; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.footer-socials .icon-btn { width: 38px; height: 38px; }
.footer-col h5 {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { color: var(--muted); font-size: 0.86rem; font-weight: 600; transition: color 0.2s ease, transform 0.2s ease; display: inline-block; }
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-newsletter p { color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.footer-form { display: flex; gap: 0.45rem; margin-top: 0.9rem; }
.footer-form input {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.footer-form input::placeholder { color: var(--muted-2); }
.footer-form input:focus { border-color: var(--brand); }
.footer-form .icon-btn { flex: 0 0 auto; width: 44px; height: 44px; background: var(--grad-brand); border: 0; color: #061124; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.74rem;
  flex-wrap: wrap;
}
.footer-bottom__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text); }
.risk-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(255, 184, 77, 0.18);
  border-radius: var(--radius-xs);
  background: rgba(255, 184, 77, 0.05);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}
.risk-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--amber); }

/* Toasts */
.toast-stack {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(380px, calc(100vw - 2.4rem));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  animation: toast-in 0.45s var(--ease) both;
  backdrop-filter: blur(18px);
}
.toast__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(53, 224, 161, 0.14);
  color: var(--green);
}
.toast__icon svg { width: 14px; height: 14px; }
.toast--error .toast__icon { background: rgba(255, 93, 122, 0.14); color: var(--red); }
.toast.is-leaving { animation: toast-out 0.35s ease forwards; }

/* Reveal animations */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal='left'] { transform: translateX(-30px); }
[data-reveal='right'] { transform: translateX(30px); }
[data-reveal='scale'] { transform: scale(0.94); }
[data-reveal].is-visible { transform: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(120, 146, 190, 0.35); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 146, 190, 0.55); }

/* Animations */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(53, 224, 161, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(53, 224, 161, 0.03); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}

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