/* ===================================================================
   MestarX — Premium Crypto Exchange (Light / Swiss Tactile Bento)
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg-primary: #f7f7f5;
  --bg-secondary: #ffffff;
  --bg-ink: #0a0a0a;
  --text-primary: #0a0a0a;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --accent: #002fa7;
  --accent-hover: #001d6b;
  --up: #059669;
  --up-bg: #d1fae5;
  --down: #e11d48;
  --down-bg: #ffe4e6;
  --border: rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.14);
  --glass: rgba(255, 255, 255, 0.72);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;

  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --sp-32: 128px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 24px 48px rgba(0, 0, 0, 0.09);

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent); color: #fff; }
.accent-text { color: var(--accent); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; border-radius: var(--r-pill);
  padding: 12px 22px; transition: transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0, 47, 167, 0.22); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 47, 167, 0.3); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-outline { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--text-primary); }
.btn-ghost { color: var(--text-primary); padding: 10px 16px; }
.btn-ghost:hover { color: var(--accent); }
.btn-light { background: #fff; color: var(--bg-ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.25); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; flex-shrink: 0; display: block;
  border-radius: 10px; overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.nav { display: flex; gap: var(--sp-8); }
.nav-link { position: relative; font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); transition: color 0.3s var(--ease); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.menu-toggle { display: none; font-size: 1.3rem; color: var(--text-primary); padding: 8px; }
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); display: none;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: 0;
  background:
    radial-gradient(50% 40% at 78% 18%, rgba(0, 47, 167, 0.10), transparent 70%),
    radial-gradient(40% 40% at 12% 30%, rgba(5, 150, 105, 0.08), transparent 70%),
    radial-gradient(45% 45% at 60% 85%, rgba(6, 182, 212, 0.07), transparent 70%);
  filter: blur(10px); animation: meshFloat 18s ease-in-out infinite alternate;
}
@keyframes meshFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.08); } }
.particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.particles span {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(0, 47, 167, 0.28); animation: pFloat linear infinite;
}
@keyframes pFloat { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-16); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: var(--sp-6); box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px var(--up-bg); }
.hero-title { font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: var(--sp-6); }
.hero-sub { font-size: 1.15rem; color: var(--text-secondary); max-width: 30rem; margin-bottom: var(--sp-8); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-12); }
.hero-trust { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.trust-item span { font-size: 0.82rem; color: var(--text-tertiary); }
.trust-divider { width: 1px; height: 34px; background: var(--border-strong); }

/* Hero visual */
.hero-visual { position: relative; height: 520px; }
.viz-card {
  position: absolute; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-float);
}
.viz-chart { top: 40px; left: 0; right: 40px; padding: var(--sp-6); }
.viz-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.viz-pair { display: flex; align-items: center; gap: 12px; }
.viz-pair img { width: 40px; height: 40px; }
.viz-pair-name { display: block; font-weight: 700; letter-spacing: -0.01em; }
.viz-pair-tag { font-size: 0.78rem; color: var(--text-tertiary); }
.viz-price { text-align: right; }
.viz-price-val { display: block; font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.viz-price-chg { font-size: 0.85rem; font-weight: 600; color: var(--up); font-variant-numeric: tabular-nums; }
.viz-price-chg.down { color: var(--down); }
.viz-chart-body { height: 200px; position: relative; }
.viz-chart-body canvas { width: 100%; height: 100%; display: block; }
.viz-chart-foot { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-tertiary); margin-top: var(--sp-3); }
.viz-chart-foot i { color: var(--up); }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 16px 10px 10px; box-shadow: var(--shadow-md);
}
.float-card img { width: 34px; height: 34px; }
.fc-sym { display: block; font-size: 0.72rem; color: var(--text-tertiary); font-weight: 600; }
.fc-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.float-btc { top: 0; right: 0; }
.float-eth { bottom: 96px; right: 12px; }
.float-usdt { bottom: 40px; left: 24px; }

.viz-stat {
  position: absolute; bottom: 0; right: 60px; z-index: 2; background: var(--bg-ink); color: #fff;
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-6); min-width: 190px; box-shadow: var(--shadow-float);
}
.vs-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.vs-val { display: block; font-size: 1.4rem; font-weight: 700; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.vs-bar { height: 5px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.vs-bar i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--up), #06b6d4); border-radius: 3px; animation: barPulse 3s var(--ease) infinite alternate; }
@keyframes barPulse { from { width: 58%; } to { width: 82%; } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; width: 24px; height: 40px; border: 2px solid var(--border-strong); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 8px; background: var(--text-secondary); border-radius: 3px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } }

/* ---------- Sections ---------- */
.section { padding: var(--sp-32) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: var(--sp-16); }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-4); }
.kicker.light { color: rgba(255,255,255,0.7); }
.section-title { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.section-desc { margin-top: var(--sp-4); font-size: 1.1rem; color: var(--text-secondary); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-4); }
.about-lead { grid-column: span 5; align-self: center; }
.about-lead p { font-size: 1.3rem; color: var(--text-primary); font-weight: 500; letter-spacing: -0.01em; line-height: 1.45; }
.about-mock { grid-column: span 7; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); position: relative; box-shadow: var(--shadow-float); }
.about-mock img { width: 100%; height: 420px; object-fit: cover; }
.about-mock figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 8px 16px; font-size: 0.82rem; font-weight: 600; }
.about-mock figcaption i { color: var(--up); margin-right: 6px; }
.manifesto { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-8); }
.manifesto-item { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-8); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.manifesto-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mi-num { font-size: 0.85rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.manifesto-item h3 { font-size: 1.2rem; margin: var(--sp-3) 0 var(--sp-2); letter-spacing: -0.01em; }
.manifesto-item p { font-size: 0.95rem; color: var(--text-secondary); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-secondary); padding: var(--sp-6) 0; }
.marquee-track { display: flex; align-items: center; gap: var(--sp-8); width: max-content; will-change: transform; }
.marquee-track span { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
.marquee-track .sep { color: var(--accent); font-size: 1.2rem; }

/* ---------- Markets ---------- */
.market-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
.market-skeleton, .market-card { min-height: 210px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.market-skeleton { animation: shimmer 1.4s infinite; background: linear-gradient(100deg, #fff 30%, #f0f0ee 50%, #fff 70%); background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.market-card { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.market-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); border-color: var(--border-strong); }
.mc-top { display: flex; align-items: center; gap: 10px; }
.mc-top img { width: 34px; height: 34px; }
.mc-name { font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.mc-sym { font-size: 0.76rem; color: var(--text-tertiary); text-transform: uppercase; }
.mc-price { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mc-chg { align-self: flex-start; font-size: 0.82rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
.mc-chg.up { color: var(--up); background: var(--up-bg); }
.mc-chg.down { color: var(--down); background: var(--down-bg); }
.mc-spark { height: 46px; margin-top: auto; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.feature-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; background: radial-gradient(circle, rgba(0,47,167,0.10), transparent 70%); opacity: 0; transition: opacity 0.4s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.feature-card:hover::after { opacity: 1; }
.feat-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--bg-primary); border: 1px solid var(--border); color: var(--accent); font-size: 1.3rem; margin-bottom: var(--sp-6); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.feature-card:hover .feat-icon { background: var(--accent); color: #fff; }
.feature-card h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: var(--sp-3); }
.feature-card p { color: var(--text-secondary); font-size: 0.98rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.team-card { text-align: left; }
.team-photo { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-4); border: 1px solid var(--border); position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.team-card:hover .team-photo img { filter: grayscale(0); transform: scale(1.04); }
.team-card h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.team-role { display: block; color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-bottom: var(--sp-3); }
.team-card p { font-size: 0.92rem; color: var(--text-secondary); }

/* ---------- Reviews ---------- */
.reviews { padding-bottom: var(--sp-24); }
.reviews-swiper-wrap { padding: 0 var(--sp-6); }
.reviews-swiper { max-width: 1280px; margin: 0 auto; overflow: visible; padding-bottom: var(--sp-12); }
.review-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; gap: var(--sp-4); }
.stars { color: #f59e0b; display: flex; gap: 3px; font-size: 0.9rem; }
.review-card p { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.5; flex: 1; }
.review-card footer { display: flex; align-items: center; gap: 12px; }
.review-card footer img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review-card footer strong { display: block; font-size: 0.98rem; }
.review-card footer span { font-size: 0.82rem; color: var(--text-tertiary); }
.swiper-pagination { position: static; margin-top: var(--sp-8); text-align: center; }
.reviews-swiper-wrap .swiper-pagination-bullet { width: 9px; height: 9px; background: var(--text-tertiary); opacity: 0.4; transition: all 0.3s var(--ease); }
.reviews-swiper-wrap .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 5px; background: var(--accent); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-ink); color: #fff; border-radius: var(--r-xl); margin: 0 var(--sp-6); padding: var(--sp-24) 0; }
.stats .container { max-width: 1180px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-8); }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); padding: 0 var(--sp-4); }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, #fff, #a5b4fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* ---------- Final CTA ---------- */
.final-cta { padding-top: var(--sp-24); }
.cta-block { position: relative; overflow: hidden; background: var(--bg-ink); color: #fff; border-radius: var(--r-xl); padding: var(--sp-24) var(--sp-16); text-align: center; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(40% 60% at 50% 0%, rgba(0,47,167,0.55), transparent 70%), radial-gradient(30% 50% at 80% 100%, rgba(6,182,212,0.30), transparent 70%); }
.cta-block > *:not(.cta-glow) { position: relative; z-index: 2; }
.cta-title { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: var(--sp-4) 0 var(--sp-6); }
.cta-sub { color: rgba(255,255,255,0.7); font-size: 1.12rem; max-width: 40rem; margin: 0 auto var(--sp-8); }
.cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--sp-24) 0 var(--sp-8); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--sp-16); flex-wrap: wrap; padding-bottom: var(--sp-12); border-bottom: 1px solid var(--border); }
.footer-brand { max-width: 360px; }
.footer-brand p { color: var(--text-secondary); margin: var(--sp-4) 0 var(--sp-6); font-size: 0.95rem; }
.footer-contacts {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin: 0 0 var(--sp-6); padding: 0; font-size: 0.92rem; color: var(--text-secondary);
}
.footer-contacts li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.footer-contacts i {
  width: 18px; margin-top: 3px; color: var(--accent); flex-shrink: 0; text-align: center;
}
.footer-contacts a { color: var(--text-secondary); transition: color 0.3s var(--ease); }
.footer-contacts a:hover { color: var(--accent); }
.socials { display: flex; gap: var(--sp-3); }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text-secondary); transition: all 0.3s var(--ease); }
.socials a:hover { background: var(--bg-ink); color: #fff; transform: translateY(-3px); }
.footer-nav { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-nav a { color: var(--text-secondary); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-6); font-size: 0.88rem; color: var(--text-tertiary); flex-wrap: wrap; gap: var(--sp-4); }
.footer-legal { display: flex; gap: var(--sp-6); }
.footer-legal a:hover { color: var(--text-primary); }

/* ---------- Legal pages ---------- */
.legal-page {
  padding: calc(var(--header-h) + var(--sp-16)) 0 var(--sp-24);
  min-height: 70vh;
}
.legal-wrap { max-width: 760px; }
.legal-kicker {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-4);
}
.legal-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--sp-3);
}
.legal-updated { color: var(--text-tertiary); font-size: 0.95rem; margin-bottom: var(--sp-12); }
.legal-body { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.7; }
.legal-body h2 {
  color: var(--text-primary); font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.02em; margin: var(--sp-10) 0 var(--sp-4);
}
.legal-body p { margin-bottom: var(--sp-4); }
.legal-body ul { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--accent-hover); }
.legal-body strong { color: var(--text-primary); font-weight: 600; }
.header-actions .btn { text-decoration: none; }

/* ---------- Entrance animations (CSS, rAF-independent) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.eyebrow, .hero-title, .hero-sub, .hero-cta, .hero-trust { opacity: 0; animation: fadeUp 0.85s var(--ease) forwards; }
.eyebrow { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.22s; }
.hero-sub { animation-delay: 0.42s; }
.hero-cta { animation-delay: 0.56s; }
.hero-trust { animation-delay: 0.7s; }

.hero-visual .viz-card, .hero-visual .float-card, .hero-visual .viz-stat { opacity: 0; animation: popIn 0.9s var(--ease) forwards; }
.viz-chart { animation-delay: 0.5s; }
.viz-stat { animation-delay: 0.62s; }
.float-btc { animation: popIn 0.9s var(--ease) 0.7s forwards, floatY 4s ease-in-out 1.6s infinite; }
.float-eth { animation: popIn 0.9s var(--ease) 0.82s forwards, floatY 4.6s ease-in-out 1.8s infinite; }
.float-usdt { animation: popIn 0.9s var(--ease) 0.94s forwards, floatY 5.2s ease-in-out 2s infinite; }

.marquee-track { animation: marquee 26s linear infinite; }

/* ---------- Scroll reveal (IntersectionObserver + CSS transition) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-16); }
  .hero-visual { height: 460px; max-width: 520px; }
  .about-lead, .about-mock { grid-column: span 12; }
  .about-mock img { height: 340px; }
  .manifesto { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--sp-24) 0; }
}
@media (max-width: 720px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .stats { margin: 0 var(--sp-4); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-12) var(--sp-4); }
  .stat-item:nth-child(2) { border-right: none; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .team-grid, .manifesto { grid-template-columns: 1fr; }
  .cta-block { padding: var(--sp-16) var(--sp-6); }
  .marquee-track span { font-size: 1.5rem; }
  .hero-visual { height: 420px; }
  .float-eth { bottom: 70px; }
  .footer-inner { flex-direction: column; gap: var(--sp-8); }
}
@media (max-width: 420px) {
  .market-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: var(--sp-4); }
  .trust-item strong { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .eyebrow, .hero-title, .hero-sub, .hero-cta, .hero-trust,
  .hero-visual .viz-card, .hero-visual .float-card, .hero-visual .viz-stat,
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}
