/* =========================================================
   AI TRADING — foundations
   ========================================================= */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-cyrillic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #060a10;
  --bg-soft: #080d14;
  --surface: #0b131d;
  --surface-2: #0f1925;
  --surface-3: #142130;
  --line: rgba(153, 184, 211, 0.11);
  --line-strong: rgba(163, 195, 221, 0.2);
  --text: #f1f6fa;
  --text-2: #c0ceda;
  --muted: #8698aa;
  --dim: #5f7285;
  --long: #55e3b0;
  --long-bright: #82f4cf;
  --long-soft: rgba(85, 227, 176, 0.1);
  --short: #ff7c8b;
  --short-bright: #ff9ba6;
  --short-soft: rgba(255, 124, 139, 0.1);
  --blue: #5f8dff;
  --blue-soft: rgba(95, 141, 255, 0.12);
  --cyan: #53d7f8;
  --amber: #f2c97b;
  --white: #ffffff;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --gradient-brand: linear-gradient(115deg, #6e9aff 0%, #4fdcf0 48%, #5be3b4 100%);
}

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

html {
  /* iOS enlarges text in wide blocks (tables) on its own: sizes stay the ones the styles give */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 175, 201, .26) #060a10;
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #060a10; }
::-webkit-scrollbar-thumb {
  background: rgba(145, 175, 201, .24);
  border: 3px solid #060a10;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(165, 195, 220, .36); }

::selection { background: rgba(91, 227, 180, 0.26); color: #fff; }

h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg text { font-family: var(--font); }
.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--long);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #05100c;
  background: var(--long);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}
.container-wide { width: min(1360px, calc(100% - 48px)); margin-inline: auto; }

.mono { font-family: var(--mono); }
.text-muted { color: var(--muted); }
.positive { color: var(--long) !important; }
.negative { color: var(--short) !important; }
.neutral { color: var(--muted) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .tick {
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.accent { color: var(--long); }

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--long);
  box-shadow: 0 0 0 3px rgba(85, 227, 176, 0.1);
  animation: pulse 2.2s ease-out infinite;
  flex: 0 0 auto;
}
.live-dot.blue { background: var(--blue); box-shadow: 0 0 0 3px rgba(95, 141, 255, 0.1); }
.live-dot.red { background: var(--short); box-shadow: 0 0 0 3px rgba(255,124,139,.1); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(85, 227, 176, 0.32); }
  60% { box-shadow: 0 0 0 5px rgba(85, 227, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 227, 176, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary {
  color: #06110d;
  background: #edf5f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 20px rgba(0, 0, 0, .22);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.btn-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(15, 25, 37, 0.62);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover { border-color: rgba(177, 206, 229, 0.35); background: rgba(22, 35, 50, 0.8); transform: translateY(-1px); }
.btn-ghost { color: var(--text-2); min-height: 40px; padding-inline: 12px; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { min-height: 39px; padding: 0 15px; font-size: 13px; border-radius: 9px; }
.btn-danger { color: #ffdbe0; background: rgba(255, 124, 139, 0.12); border-color: rgba(255, 124, 139, 0.2); }
.btn-danger:hover { background: rgba(255, 124, 139, 0.18); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 20, 30, .7);
  font-size: 11px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
}
.pill.long { color: var(--long); background: var(--long-soft); border-color: rgba(85, 227, 176, 0.2); }
.pill.short { color: var(--short); background: var(--short-soft); border-color: rgba(255, 124, 139, 0.2); }
.pill.neutral { color: var(--muted); }
.pill.mono { font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(148, 177, 204, 0.07);
  border: 1px solid rgba(148, 177, 204, 0.08);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.asset-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  color: var(--asset-color, #fff);
  background: var(--asset-soft, rgba(255,255,255,.06));
  border: 1px solid color-mix(in srgb, var(--asset-color, #fff) 24%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  flex: 0 0 auto;
}
.asset-mark.lg { width: 46px; height: 46px; font-size: 20px; }
.asset-mark.sm { width: 28px; height: 28px; font-size: 12px; }
.asset-mark.has-coin { color: inherit; background: transparent; border-color: transparent; box-shadow: none; padding: 0; }
.asset-mark.has-coin .coin-glyph { width: 100%; height: 100%; display: block; }

.divider { width: 100%; height: 1px; background: var(--line); }

.section-head { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--text);
}
.section-head p {
  margin-top: 22px;
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.section { padding: 126px 0; position: relative; }
.section-tight { padding: 84px 0; }
.section-topline { border-top: 1px solid var(--line); }

.surface {
  background: linear-gradient(180deg, rgba(17, 29, 42, .82), rgba(10, 18, 27, .86));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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: screen;
}

.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;
}

@media (max-width: 900px) {
  .container { width: min(100% - 40px, 720px); }
  .container-wide { width: calc(100% - 32px); }
  .section { padding: 92px 0; }
  .section-tight { padding: 64px 0; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 76px 0; }
  .section-head h2 { font-size: clamp(34px, 10.5vw, 44px); }
  .btn { min-height: 46px; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}
