/* Antelope — Trading OS website (light + dark) */
:root {
  /* Light by default */
  --ink: #FAFAF7;
  --ink-2: #F4F4EE;
  --ink-3: #EDEDE5;
  --ink-4: #E4E4DA;
  --line: rgba(11,11,24,0.08);
  --line-2: rgba(11,11,24,0.14);
  --text: #0B0B18;
  --text-dim: #4A4A60;
  --text-mute: #7A7A90;
  --surface: linear-gradient(180deg, rgba(11,11,24,0.02), rgba(11,11,24,0.005));
  --surface-2: rgba(11,11,24,0.03);
  --surface-hover: rgba(11,11,24,0.05);
  --gradient-text: linear-gradient(110deg, #0B0B18 0%, #5A2DF4 45%, #F118B2 75%, #FF7A45 100%);

  --purple: #5A2DF4;
  --purple-2: #7A52FF;
  --purple-glow: rgba(90,45,244,0.35);
  --pink: #F118B2;
  --orange: #FF7A45;
  --gold: #FFB000;
  --green: #2BD974;
  --teal: #24A1DE;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-sans: "Inter", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --bg-radial:
    radial-gradient(900px 500px at 80% -10%, rgba(241,24,178,0.06), transparent 60%),
    radial-gradient(1100px 600px at -10% 0%, rgba(90,45,244,0.10), transparent 55%);
}

[data-theme="dark"] {
  --ink: #0B0B18;
  --ink-2: #11111F;
  --ink-3: #15152A;
  --ink-4: #1C1C36;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #ECECF6;
  --text-dim: #9999AE;
  --text-mute: #6B6B80;
  --surface: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  --surface-2: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.06);
  --gradient-text: linear-gradient(110deg, #FFFFFF 0%, #C9BFFF 35%, #F89BD6 65%, #FFB07A 100%);

  --bg-radial:
    radial-gradient(900px 500px at 80% -10%, rgba(241,24,178,0.10), transparent 60%),
    radial-gradient(1100px 600px at -10% 0%, rgba(90,45,244,0.18), transparent 55%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100vw; }
html { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }

body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Site bg gradient */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-radial), var(--ink);
  transition: background .3s ease;
}

/* Type */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 680; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 660; line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.2; }
p { margin: 0; color: var(--text-dim); line-height: 1.55; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 560;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #6E44FF 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 10px 30px -10px var(--purple-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 16px 40px -10px var(--purple-glow); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-hover); }
.btn-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover { color: var(--purple-2); }

/* Card primitives */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(43,217,116,0.18);
  animation: pulse 2s infinite ease-out;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(43,217,116,0.5); }
  60% { box-shadow: 0 0 0 6px rgba(43,217,116,0); }
}

/* Section spacing */
section { position: relative; z-index: 1; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head p { font-size: 18px; margin-top: 16px; max-width: 620px; }

/* Subtle grid bg utility */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Ticker */
@keyframes drift-up {
  0% { opacity: 0; transform: translateY(8px); }
  10%,90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* Scrollbar - subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* Utility */
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }

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

/* Page hero default */
.page-hero {
  position: relative;
  padding: 168px 0 80px;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask: radial-gradient(900px 600px at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask: radial-gradient(900px 600px at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1080px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}

/* Global responsive layer */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 1080px) {
  .section-pad { padding: 80px 0; }
  .section-pad-sm { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }
  .page-hero { padding: 120px 0 60px; }
}
@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 60px 0; }
  .section-pad-sm { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15px; }
  .page-hero { padding: 92px 0 40px; }
  .page-hero-cta { gap: 10px; }
  .page-hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  h1 { font-size: clamp(32px, 8vw, 44px) !important; }
  h2 { font-size: clamp(26px, 6vw, 36px) !important; line-height: 1.15 !important; }
  h3 { font-size: clamp(20px, 5vw, 26px) !important; }
  .btn { font-size: 14px; }
}

/* Mobile responsive grid collapse — applies to all multi-column visuals/sections */
@media (max-width: 900px) {
  .fx-grid, .orbit-stats, .prop-stats-bar, .ob-foot, .bm-watch,
  .ph-quickrow, .me-stats, .cc-stats, .ac-bottom, .ig-grid,
  .sol-featured-grid, .sol-secondary-grid,
  .ab-leaders, .ab-investors, .crm-cols, .ca-grid, .part-flow,
  .part-econ, .pf-rule-grid, .pf-abuse-grid, .press-kit,
  .cc-diff-grid, .cc-ex-stats, .cc-ex-pct, .cc-list-flow, .cc-custody,
  .lc-track, .crypto-pay-coins, .fx-pain-grid, .fx-timeline,
  .stats-row, .int-grid, .footer-top {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer-top { gap: 28px !important; }
  .pf-engine-body { grid-template-columns: 1fr !important; }
  .crypto-pay-grid { grid-template-columns: 1fr !important; }
  /* Hide complex hero visuals (they don't fit / shrink well) */
  .hero-visual, .cc-frame { display: none !important; }
  /* Site nav mega-menus already hidden; ensure mobile mega doesn't try to grid */
  .prod-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 700px) {
  .ab-investors, .ig-grid, .press-kit, .cc-list-flow, .fx-timeline,
  .stats-row, .lc-track, .ob-foot, .bm-watch, .prop-stats-bar, .cc-stats,
  .fx-grid, .orbit-stats, .ph-quickrow, .me-stats, .ac-bottom,
  .sol-featured-grid, .sol-secondary-grid,
  .ab-leaders, .crm-cols, .ca-grid, .part-flow,
  .part-econ, .pf-rule-grid, .pf-abuse-grid,
  .cc-diff-grid, .cc-ex-stats, .cc-custody,
  .crypto-pay-coins, .fx-pain-grid, .int-grid, .footer-top {
    grid-template-columns: 1fr !important;
  }
  .footer-top { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-brand { grid-column: auto !important; }
  .container { padding: 0 18px; }
  .card { padding: 18px !important; }
  .section-pad { padding: 48px 0 !important; }
  .section-pad-sm { padding: 36px 0 !important; }
  /* Hero h1 cap — was 68px, way too big on phones */
  .page-hero h1, .hero-copy h1 { font-size: clamp(30px, 8.5vw, 40px) !important; line-height: 1.1 !important; }
  .page-hero-sub, .hero-sub { font-size: 16px !important; }
  /* Generic safety: cards that contain visuals should never overflow */
  .card, .split-visual, .page-hero-visual { max-width: 100%; overflow: hidden; }
}
@media (max-width: 480px) {
  /* Stats bands and other 4-col things that should be 2-col on phones */
  .ob-foot, .bm-watch, .prop-stats-bar, .cc-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}

.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  margin-bottom: 22px;
}
.page-hero-sub { font-size: 19px; max-width: 560px; }
.page-hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
