/* Ведомир — Brand tokens (extended for marketing pages) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg-canvas: #4a5260;
  --bg-deep: #0E0D0F;
  --bg-section: #14121A;
  --bg-section-2: #1A1820;
  --bg-light: #E8E8E6;
  --bg-light-2: #F2F1ED;

  /* Glass / cards */
  --panel-bg: rgba(232, 232, 230, 0.92);
  --panel-radius: 28px;
  --card-light-bg: rgba(255, 255, 255, 0.55);
  --card-light-border: rgba(255, 255, 255, 0.7);
  --card-dark-bg: rgba(20, 18, 19, 0.92);
  --card-dark-border: rgba(255, 255, 255, 0.06);
  --card-dark-strong: #161417;

  /* Accent (red) */
  --accent: #CC1A28;
  --accent-hover: #E02030;
  --accent-soft: rgba(204,26,40,0.15);
  --accent-gradient: rgba(185, 18, 30, 0.82);
  --accent-border: rgba(220, 60, 70, 0.45);

  /* Market semantics */
  --up: #4ADE80;
  --up-soft: rgba(74, 222, 128, 0.14);
  --down: #F87171;
  --down-soft: rgba(248, 113, 113, 0.14);
  --neutral: #A8A8AC;

  /* Importance dots */
  --imp-low: #6E6E6A;
  --imp-mid: #FBBF24;
  --imp-high: #F8485E;

  /* Text */
  --t-light-1: #0F0F10;
  --t-light-2: #4A4A4D;
  --t-light-3: #8A8A8E;
  --t-dark-1: #F5F5F4;
  --t-dark-2: #B5B5B0;
  --t-dark-3: #6E6E6A;

  /* Spacing */
  --pad-screen: 16px;
  --gap-card: 12px;
}

/* Reset within marketing pages only — scoped to .vd-page so it doesn't fight the canvas chrome */
.vd-page, .vd-page *, .vd-page *::before, .vd-page *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.vd-page {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  color: var(--t-dark-1);
  background: var(--bg-deep);
  line-height: 1.5;
  overflow: hidden;
}

.vd-page .tabular {
  font-feature-settings: "tnum", "ss01", "cv11";
  font-variant-numeric: tabular-nums;
}

.vd-page .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: "tnum", "ss01";
}

.vd-page h1, .vd-page h2, .vd-page h3, .vd-page h4, .vd-page p, .vd-page ul, .vd-page ol {
  margin: 0;
  padding: 0;
}

.vd-page button {
  font-family: inherit;
}

/* Marketing type scale */
.vd-display { font-size: 112px; line-height: 0.94; font-weight: 800; letter-spacing: -0.045em; }
.vd-h1      { font-size: 72px;  line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.vd-h2      { font-size: 48px;  line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.vd-h3      { font-size: 32px;  line-height: 1.1;  font-weight: 700; letter-spacing: -0.02em; }
.vd-h4      { font-size: 22px;  line-height: 1.2;  font-weight: 600; letter-spacing: -0.01em; }
.vd-body    { font-size: 17px;  line-height: 1.55; font-weight: 400; }
.vd-small   { font-size: 14px;  line-height: 1.5;  font-weight: 400; }
.vd-eyebrow { font-size: 11px;  font-weight: 700;  letter-spacing: 1.6px; text-transform: uppercase; }

/* Common UI */
.vd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.vd-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(204, 26, 40, 0.6);
}
.vd-btn-primary:hover { background: var(--accent-hover); }
.vd-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--t-dark-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.vd-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.vd-btn-light {
  background: var(--t-light-1);
  color: #fff;
}
.vd-btn-light-ghost {
  background: transparent;
  color: var(--t-light-1);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Live red glow ornament */
.vd-glow {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 50% at 80% 100%,
    rgba(180, 30, 40, 0.42) 0%,
    rgba(80, 10, 15, 0.18) 35%,
    transparent 70%
  );
}

/* Animations */
@keyframes vd-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes vd-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@keyframes vd-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.vd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--vd-reveal-delay, 0ms);
}
.vd-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Sparkline draw-in */
@keyframes vd-draw {
  to { stroke-dashoffset: 0; }
}
.vd-spark-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: vd-draw 1.4s cubic-bezier(.2,.7,.3,1) forwards;
}
.vd-spark-fill {
  opacity: 0;
  animation: vd-fadein 1.6s 0.4s cubic-bezier(.2,.7,.3,1) forwards;
}

/* Heatmap live flash */
@keyframes vd-flash-up   { 0%, 100% { box-shadow: inset 0 0 0 0 var(--up); }   50% { box-shadow: inset 0 0 0 2px var(--up); } }
@keyframes vd-flash-down { 0%, 100% { box-shadow: inset 0 0 0 0 var(--down); } 50% { box-shadow: inset 0 0 0 2px var(--down); } }
.vd-flash-up   { animation: vd-flash-up   1s ease-out; }
.vd-flash-down { animation: vd-flash-down 1s ease-out; }

/* Ticker pause on hover */
.vd-ticker-track { animation: vd-ticker 90s linear infinite; }
.vd-ticker-wrap:hover .vd-ticker-track { animation-play-state: paused; }

/* Card hover lift */
.vd-card-lift {
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), border-color 0.25s, box-shadow 0.25s;
}
.vd-card-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 26, 40, 0.35) !important;
  box-shadow: 0 18px 40px -16px rgba(204, 26, 40, 0.25);
}

/* Number flash (price ticks) */
@keyframes vd-tick-up   { 0% { color: var(--up); }   100% { color: inherit; } }
@keyframes vd-tick-down { 0% { color: var(--down); } 100% { color: inherit; } }
.vd-tick-up   { animation: vd-tick-up   0.8s ease-out; }
.vd-tick-down { animation: vd-tick-down 0.8s ease-out; }

/* Page transition (route change) */
@keyframes vd-page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vd-page-in { animation: vd-page-in 0.5s cubic-bezier(.2,.7,.3,1); }

/* Stagger helper — set --vd-stagger on parent, --i on children */
.vd-stagger > * {
  --vd-reveal-delay: calc(var(--i, 0) * 80ms);
}

.vd-page hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 0; }
.vd-hairline-light { border-top: 1px solid rgba(0,0,0,0.08); }

/* Scrollbar hide inside artboards */
.vd-page ::-webkit-scrollbar { display: none; }

/* ───────────────────────────────────────────────────────────
   Mobile (≤768px) — responsive type scale + safety overrides.
   Structural layout (grids, paddings, nav) is branched in JSX
   via useIsMobile(); here we only down-scale class-based type
   and guard against horizontal overflow.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  .vd-display { font-size: 44px; line-height: 0.98; letter-spacing: -0.03em; }
  .vd-h1      { font-size: 34px; line-height: 1.06; letter-spacing: -0.025em; }
  .vd-h2      { font-size: 27px; line-height: 1.1; }
  .vd-h3      { font-size: 22px; }
  .vd-h4      { font-size: 19px; }
  .vd-body    { font-size: 16px; }
  .vd-small   { font-size: 13px; }

  .vd-page .vd-btn { padding: 12px 18px; font-size: 14px; }

  /* Decorative red glow is huge on desktop — keep it contained on phones. */
  .vd-glow { filter: blur(8px); }
}

@media (max-width: 420px) {
  .vd-display { font-size: 38px; }
  .vd-h1      { font-size: 29px; }
}
