/* ======================================
   MEXDM — Global Styles
   ====================================== */
:root {
  --bg:          #030305;
  --bg-2:        #0a0a0f;
  --bg-card:     rgba(18, 18, 26, 0.7);
  --glass:       rgba(255,255,255,0.03);
  --glass-hover: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-hov:  rgba(255,255,255,0.2);
  --primary:     #3B82F6;
  --primary-dim: rgba(59,130,246,0.15);
  --accent:      #8B5CF6;
  --accent-dim:  rgba(139,92,246,0.15);
  --gradient:    linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --gradient-r:  linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  --text:        #ffffff;
  --text-2:      #C9D1DC;
  --muted:       #6B7280;
  --success:     #10B981;
  --danger:      #EF4444;
  --warn:        #F59E0B;
  --radius:      20px;
  --radius-sm:   12px;
  --shadow:      0 20px 60px rgba(0,0,0,0.5);
  --font-main:   'Outfit', sans-serif;
  --font-head:   'Space Grotesk', sans-serif;
}

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

html { scroll-behavior:smooth; overflow-x:hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family:var(--font-head); line-height:1.2; }
a { text-decoration:none; color:inherit; transition:.3s; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
img { max-width:100%; }
input,textarea,select { font-family:inherit; }
:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:rgba(255,255,255,0.2); }

/* ---- Utilities ---- */
.container { max-width:1280px; margin:0 auto; padding:0 24px; }
.text-gradient { background:var(--gradient); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.text-muted { color:var(--muted); }
.text-success { color:var(--success); }
.text-danger { color:var(--danger); }
.text-warn { color:var(--warn); }
.text-primary { color:var(--primary); }
.flex { display:flex; }
.flex-col { flex-direction:column; }
.items-center { align-items:center; }
.justify-between { justify-content:space-between; }
.gap-2 { gap:8px; }
.gap-3 { gap:12px; }
.gap-4 { gap:16px; }
.mt-1 { margin-top:4px; }
.mt-2 { margin-top:8px; }
.mt-4 { margin-top:16px; }
.num-font { font-family:var(--font-head); }

/* ---- Ambient Background ---- */
.ambient-light { position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:-1; overflow:hidden; }
.orb { position:absolute; border-radius:50%; filter:blur(120px); opacity:0.35; animation:orbFloat 12s infinite alternate ease-in-out; }
.orb-1 { width:600px; height:600px; background:var(--primary); top:-150px; left:-150px; }
.orb-2 { width:500px; height:500px; background:var(--accent); bottom:-100px; right:-100px; animation-delay:-6s; }
.orb-3 { width:300px; height:300px; background:#06B6D4; top:50%; left:50%; transform:translate(-50%,-50%); opacity:0.15; animation-delay:-3s; }
@keyframes orbFloat { 0%{transform:translate(0,0)} 100%{transform:translate(40px,40px)} }

/* ---- Reveal Animations (disabled) ---- */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity:1;
  transform:none;
  filter:none;
  transition:none;
}
.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
  opacity:1; transform:none; filter:none;
}
.delay-1 { transition-delay:0s !important; }
.delay-2 { transition-delay:0s !important; }
.delay-3 { transition-delay:0s !important; }
.delay-4 { transition-delay:.38s !important; }
.delay-5 { transition-delay:.5s  !important; }

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 28px; border-radius:99px; font-weight:600; font-size:15px;
  transition:all .3s ease; position:relative; overflow:hidden; cursor:pointer;
}
.btn-sm { padding:9px 18px; font-size:13px; }
.btn-xs { padding:6px 14px; font-size:12px; }

.btn-glow {
  background:var(--gradient); color:#fff;
  box-shadow:0 0 20px rgba(59,130,246,.4);
}
.btn-glow:hover { box-shadow:0 0 40px rgba(59,130,246,.7); transform:translateY(-2px); }
.btn-glow::after {
  content:''; position:absolute; top:0; left:-100%; width:100%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);
  transition:.5s;
}
.btn-glow:hover::after { left:100%; }

.btn-glass {
  background:rgba(255,255,255,.05); border:1px solid var(--border); color:#fff;
  backdrop-filter:blur(10px);
}
.btn-glass:hover { background:rgba(255,255,255,.1); border-color:var(--border-hov); }

.btn-outline {
  background:transparent; border:1px solid var(--primary); color:var(--primary);
}
.btn-outline:hover { background:var(--primary-dim); }

.btn-success { background:#10B981; color:#fff; box-shadow:0 0 15px rgba(16,185,129,.3); }
.btn-success:hover { box-shadow:0 0 25px rgba(16,185,129,.5); transform:translateY(-1px); }
.btn-danger  { background:#EF4444; color:#fff; }
.btn-danger:hover { transform:translateY(-1px); box-shadow:0 0 20px rgba(239,68,68,.4); }

/* ---- Cards / Glass ---- */
.card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:28px;
  position:relative; overflow:hidden; transition:.4s;
}
.card:hover { border-color:rgba(255,255,255,.15); }
.card::before {
  content:''; position:absolute; top:0; left:0; right:0; bottom:0;
  background:radial-gradient(800px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.04), transparent 40%);
  opacity:0; transition:opacity .5s; pointer-events:none;
}
.card:hover::before { opacity:1; }

/* ---- Header ---- */
header {
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  padding:18px 0; transition:.3s;
}
header.scrolled {
  background:rgba(3,3,5,.85); backdrop-filter:blur(20px);
  padding:12px 0; border-bottom:1px solid var(--border);
}
.nav-inner { display:flex; justify-content:space-between; align-items:center; }
.logo { font-family:var(--font-head); font-size:26px; font-weight:800; letter-spacing:-1px; display:flex; align-items:center; gap:10px; }
.logo .icon { width:36px; height:36px; background:var(--gradient); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; }
.logo span { background:var(--gradient); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.nav-links { display:flex; gap:36px; }
.nav-links a { color:var(--muted); font-weight:500; font-size:15px; position:relative; }
.nav-links a:hover { color:#fff; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--gradient); transition:.3s; }
.nav-links a:hover::after { width:100%; }
.nav-actions { display:flex; gap:12px; align-items:center; }

/* ---- Demo Badge ---- */
.demo-badge {
  background:linear-gradient(135deg,#F59E0B,#EF4444); color:#fff;
  padding:9px 16px; border-radius:99px; font-size:13px; font-weight:700;
  display:flex; align-items:center; gap:6px; cursor:pointer;
  box-shadow:0 0 20px rgba(245,158,11,.3); transition:.3s; border:none;
}
.demo-badge:hover { box-shadow:0 0 35px rgba(245,158,11,.5); transform:translateY(-2px); }
.demo-badge::before { content:'⚡'; }

/* ---- Hero ---- */
.hero { min-height:100vh; display:flex; align-items:center; padding-top:80px; position:relative; }
#hero-canvas { position:absolute; top:0; left:0; width:100%; height:100%; z-index:-1; }
.hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; width:100%; }
.hero-text h1 { font-size:76px; line-height:1; font-weight:700; letter-spacing:-2px; margin-bottom:24px; }
.hero-text p { font-size:19px; color:var(--muted); margin-bottom:40px; max-width:480px; line-height:1.7; }
.hero-btns { display:flex; gap:16px; flex-wrap:wrap; }
.hero-stats { display:flex; gap:40px; margin-top:56px; padding-top:30px; border-top:1px solid var(--border); }
.hero-stats .stat h4 { font-size:34px; font-weight:700; }
.hero-stats .stat p { color:var(--muted); font-size:13px; text-transform:uppercase; letter-spacing:1px; margin-top:2px; }

/* 3D Tilt Card */
.tilt-wrap { perspective:1000px; display:flex; justify-content:center; }
.glass-card {
  width:360px; background:linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.1); backdrop-filter:blur(20px);
  border-radius:28px; padding:28px; transform-style:preserve-3d;
  box-shadow:0 25px 60px -12px rgba(0,0,0,.6); position:relative;
  transition:transform .1s ease;
}
.card-content { transform:translateZ(40px); }
.card-balance { font-size:38px; font-weight:700; margin:8px 0 24px; letter-spacing:-1px; }
.card-chart { height:130px; border-radius:14px; border:1px solid rgba(59,130,246,.3); overflow:hidden; margin-bottom:24px; background:rgba(59,130,246,.05); position:relative; }
.card-row { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); }
.card-row:last-child { border:none; }

/* ---- Ticker ---- */
.ticker-wrap { width:100%; overflow:hidden; background:rgba(0,0,0,.5); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:14px 0; position:relative; z-index:10; }
.ticker { display:flex; width:max-content; animation:tickerScroll 40s linear infinite; }
.ticker:hover { animation-play-state:paused; }
.t-item { display:flex; align-items:center; gap:8px; padding:0 36px; font-family:var(--font-head); font-size:16px; font-weight:600; white-space:nowrap; }
.t-item .sym { color:var(--text-2); }
.t-item .price { color:var(--text); }
.t-item .change { font-size:13px; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ---- Bento Grid ---- */
.bento-section { padding:120px 0; }
.section-label { font-size:13px; font-weight:600; color:var(--primary); text-transform:uppercase; letter-spacing:2px; margin-bottom:12px; }
.section-title { font-size:50px; font-weight:700; letter-spacing:-1px; margin-bottom:16px; }
.section-sub { font-size:18px; color:var(--muted); max-width:560px; margin:0 auto 60px; text-align:center; }
.bento-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  grid-auto-rows:280px; gap:20px;
}
.bento-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:36px; position:relative; overflow:hidden;
  transition:.4s; display:flex; flex-direction:column; justify-content:space-between;
  cursor:default;
}
.bento-card:hover { border-color:var(--border-hov); transform:translateY(-4px); box-shadow:0 20px 40px rgba(0,0,0,.4); }
.bento-card::before {
  content:''; position:absolute; top:0; left:0; width:100%; height:100%;
  background:radial-gradient(600px circle at var(--mx) var(--my),rgba(255,255,255,.06),transparent 40%);
  opacity:0; transition:opacity .5s; pointer-events:none;
}
.bento-card:hover::before { opacity:1; }
.bento-large { grid-column:span 2; }
.bento-tall  { grid-row:span 2; }
.bento-icon { width:54px; height:54px; background:linear-gradient(135deg,rgba(255,255,255,.1),rgba(255,255,255,.02)); border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; color:var(--primary); margin-bottom:20px; }
.bento-title { font-size:22px; font-weight:700; margin-bottom:8px; }
.bento-desc { color:var(--muted); font-size:15px; line-height:1.6; }
.bento-num { font-family:var(--font-head); font-size:48px; font-weight:700; margin-top:auto; }
.bento-sublabel { font-size:12px; color:var(--muted); margin-top:2px; }
.bento-wide { grid-column:span 2; }
.bento-badge-row { display:flex; align-items:baseline; gap:8px; margin-top:auto; }
.bento-stat { font-family:var(--font-head); font-size:42px; font-weight:800; color:#60A5FA; }
.bento-label { font-size:12px; color:var(--muted); }
/* Speed bars visual */
.bento-speed-bars { display:flex; align-items:flex-end; gap:5px; height:52px; margin:20px 0 16px; }
.sb { flex:1; background:linear-gradient(180deg,#3B82F6,#8B5CF6); border-radius:3px 3px 0 0; animation:sbPulse 1.8s ease-in-out infinite alternate; opacity:.7; }
@keyframes sbPulse { from { opacity:.4; transform:scaleY(.7); } to { opacity:1; transform:scaleY(1); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes tableRowIn {
  from { opacity:0; transform:translateX(-18px); filter:blur(5px); }
  to   { opacity:1; transform:none;              filter:blur(0);   }
}
/* Coin tags in bento */
.bento-coins-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.bcoin { font-size:12px; font-weight:700; padding:5px 12px; border-radius:99px; white-space:nowrap; }

/* ---- Hero Live Card ---- */
.hero-live-card {
  width:340px; background:linear-gradient(160deg,rgba(14,14,30,.95),rgba(14,14,26,.98));
  border:1px solid rgba(255,255,255,.1); border-radius:24px; padding:24px;
  box-shadow:0 24px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(59,130,246,.08), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(20px);
}
.hlc-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.hlc-icon-wrap { width:32px; height:32px; border-radius:9px; background:rgba(59,130,246,.15); display:flex; align-items:center; justify-content:center; color:#60A5FA; font-size:14px; }
.hlc-title { font-weight:700; font-size:15px; margin-left:10px; }
.hlc-blink { font-size:7px; margin-right:4px; animation:blink 1.5s ease-in-out infinite; }
.hlc-prices { display:flex; flex-direction:column; gap:2px; }
.hlc-row { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:12px; transition:background .2s; }
.hlc-row:hover { background:rgba(255,255,255,.04); }
.hlc-coin { display:flex; align-items:center; gap:10px; }
.hlc-ico { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; flex-shrink:0; overflow:hidden; }
.hlc-sym { font-size:13px; font-weight:700; line-height:1.2; }
.hlc-name { font-size:11px; color:var(--muted); }
.hlc-right { text-align:right; }
.hlc-price { font-size:14px; font-weight:700; font-family:var(--font-head); }
.hlc-chg { font-size:11px; font-weight:600; margin-top:1px; }
.hlc-footer { display:flex; justify-content:space-between; align-items:center; margin-top:18px; padding-top:16px; border-top:1px solid rgba(255,255,255,.06); font-size:11px; color:var(--muted); }
.hlc-loading { text-align:center; padding:30px; color:var(--muted); font-size:13px; }

/* ---- Market Table ---- */
.table-section { padding:80px 0; }
.glass-table { width:100%; border-collapse:separate; border-spacing:0 8px; }
.glass-table th { text-align:left; padding:16px 20px; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:1px; font-weight:500; }
.glass-table td { background:var(--bg-card); padding:18px 20px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); transition:.3s; }
.glass-table tr td:first-child { border-top-left-radius:14px; border-bottom-left-radius:14px; border-left:1px solid var(--border); }
.glass-table tr td:last-child  { border-top-right-radius:14px; border-bottom-right-radius:14px; border-right:1px solid var(--border); }
.glass-table tr:hover td { background:var(--glass-hover); border-color:rgba(255,255,255,.15); }
.coin-icon { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; border:1px solid var(--border); overflow:hidden; flex-shrink:0; }

/* ---- About / FAQ / Sections ---- */
.about-section { padding:100px 0; }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.about-text h2 { font-size:48px; letter-spacing:-1px; margin-bottom:24px; }
.about-text p { color:var(--muted); font-size:17px; line-height:1.8; margin-bottom:20px; }

/* ---- Partners Marquee ---- */
.partners-section { padding:100px 0 80px; overflow:hidden; text-align:center; }
.partners-marquee-outer {
  margin-top:64px; display:flex; flex-direction:column; gap:14px;
  position:relative;
}
.partners-marquee-outer::before,
.partners-marquee-outer::after {
  content:''; position:absolute; top:0; bottom:0; width:200px; z-index:2; pointer-events:none;
}
.partners-marquee-outer::before { left:0;  background:linear-gradient(to right, var(--bg) 0%, transparent 100%); }
.partners-marquee-outer::after  { right:0; background:linear-gradient(to left,  var(--bg) 0%, transparent 100%); }
.partners-track { display:flex; gap:14px; width:max-content; padding:4px 0; }
.partners-track-fwd { animation:marqueeFwd 55s linear infinite; }
.partners-track-rev { animation:marqueeRev 48s linear infinite; }
.partners-track:hover { animation-play-state:paused; }
@keyframes marqueeFwd { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes marqueeRev { from{transform:translateX(-50%)} to{transform:translateX(0)} }
.p-card {
  display:flex; align-items:center; gap:14px;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:18px; padding:16px 24px; white-space:nowrap; flex-shrink:0;
  transition:border-color .3s, box-shadow .3s, transform .3s; cursor:default;
}
.p-card:hover { border-color:rgba(255,255,255,.18); box-shadow:0 8px 40px rgba(0,0,0,.35); transform:translateY(-3px); }
.p-logo-icon {
  width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; color:#fff; font-weight:700; flex-shrink:0;
  text-shadow:0 1px 6px rgba(0,0,0,.4); overflow:hidden;
}
.p-name { font-weight:700; font-size:15px; line-height:1.2; }
.p-tagline { font-size:11px; color:var(--muted); margin-top:3px; }
/* Direct img logo (no container box) */
.p-logo-img { width:44px; height:44px; border-radius:12px; object-fit:cover; flex-shrink:0; display:block; }

.faq-section { padding:100px 0; }
.faq-list { max-width:800px; margin:0 auto; }
.faq-item { border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:12px; overflow:hidden; transition:.3s; }
.faq-item:hover { border-color:var(--border-hov); }
.faq-q { padding:22px 28px; font-size:17px; font-weight:500; cursor:pointer; display:flex; justify-content:space-between; align-items:center; user-select:none; }
.faq-q .icon { transition:.3s; color:var(--primary); font-size:20px; }
.faq-item.open .faq-q .icon { transform:rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .4s ease, padding .3s; color:var(--muted); line-height:1.8; }
.faq-a.open { max-height:300px; padding:0 28px 22px; }

/* ---- CTA ---- */
.cta-section { padding:100px 0; }
.cta-box { background:radial-gradient(circle at 50% 0%,rgba(59,130,246,.15),transparent 70%),var(--bg-card); border:1px solid var(--border); border-radius:40px; padding:100px 40px; text-align:center; position:relative; overflow:hidden; }
.cta-box h2 { font-size:56px; line-height:1.1; margin-bottom:24px; background:linear-gradient(to right,#fff,rgba(255,255,255,.6)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.cta-box p { color:var(--muted); font-size:18px; margin-bottom:40px; }

/* ---- Footer ---- */
footer { padding:60px 0 30px; border-top:1px solid var(--border); }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:60px; margin-bottom:50px; }
.footer-brand p { color:var(--muted); font-size:15px; line-height:1.7; margin-top:16px; max-width:280px; }
.footer-col h5 { font-weight:600; margin-bottom:20px; font-size:15px; }
.footer-col a { display:block; color:var(--muted); font-size:14px; margin-bottom:10px; transition:.3s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid var(--border); padding-top:28px; display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:14px; }
.footer-socials { display:flex; gap:16px; }
.footer-socials a { width:38px; height:38px; background:var(--glass); border:1px solid var(--border); border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--muted); transition:.3s; }
.footer-socials a:hover { border-color:var(--primary); color:var(--primary); }

/* ---- Modals ---- */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.7); backdrop-filter:blur(8px); z-index:9999; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:.3s; padding:16px; }
.modal-overlay.active { opacity:1; visibility:visible; }
.modal { background:linear-gradient(160deg,rgba(20,20,30,.98),rgba(12,12,20,.98)); border:1px solid var(--border); border-radius:28px; padding:40px; width:100%; max-width:440px; position:relative; transform:translateY(20px) scale(.96); transition:transform .4s cubic-bezier(.5,0,0,1); }
.modal-overlay.active .modal { transform:translateY(0) scale(1); }
.modal-close { position:absolute; top:18px; right:18px; width:34px; height:34px; background:var(--glass); border:1px solid var(--border); border-radius:50%; color:var(--muted); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.3s; font-size:18px; }
.modal-close:hover { background:var(--glass-hover); color:#fff; }
.modal h2 { font-size:28px; margin-bottom:8px; }
.modal-sub { color:var(--muted); font-size:14px; margin-bottom:32px; }
.modal-tabs { display:flex; gap:0; background:var(--glass); border-radius:12px; padding:4px; margin-bottom:28px; }
.modal-tab { flex:1; padding:10px; border-radius:9px; font-size:14px; font-weight:500; color:var(--muted); text-align:center; cursor:pointer; transition:.3s; }
.modal-tab.active { background:var(--gradient); color:#fff; }

/* Form fields */
.field { margin-bottom:20px; }
.field label { display:block; font-size:13px; color:var(--muted); margin-bottom:8px; font-weight:500; }
.field input, .field select, .field textarea {
  width:100%; background:rgba(255,255,255,.05); border:1px solid var(--border);
  border-radius:12px; padding:14px 16px; color:#fff; font-size:15px; transition:.3s;
  -webkit-appearance:none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color:var(--primary); background:rgba(59,130,246,.05); outline:none; }
.field input::placeholder { color:var(--muted); }
.field select option { background:#111; color:#fff; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.form-error { background:rgba(239,68,68,.15); border:1px solid rgba(239,68,68,.3); border-radius:10px; padding:12px 16px; color:#FCA5A5; font-size:14px; margin-bottom:16px; display:none; }
.form-error.show { display:block; }
.form-success { background:rgba(16,185,129,.15); border:1px solid rgba(16,185,129,.3); border-radius:10px; padding:12px 16px; color:#6EE7B7; font-size:14px; margin-bottom:16px; display:none; }
.form-success.show { display:block; }

/* Toast */
.toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:10px; }
.toast { background:linear-gradient(135deg,rgba(20,20,30,.98),rgba(12,12,20,.98)); border:1px solid var(--border); border-radius:14px; padding:14px 20px; color:#fff; font-size:14px; display:flex; align-items:center; gap:12px; min-width:280px; max-width:360px; animation:toastIn .3s ease; box-shadow:0 10px 30px rgba(0,0,0,.4); }
.toast.success { border-color:rgba(16,185,129,.4); }
.toast.error   { border-color:rgba(239,68,68,.4); }
.toast.info    { border-color:rgba(59,130,246,.4); }
.toast-icon { font-size:18px; flex-shrink:0; }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* Loader */
.spinner { width:20px; height:20px; border:2px solid rgba(255,255,255,.2); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; display:inline-block; }
@keyframes spin { to{transform:rotate(360deg)} }

/* Badge */
.badge { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:99px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.badge-success { background:rgba(16,185,129,.15); color:var(--success); border:1px solid rgba(16,185,129,.3); }
.badge-danger  { background:rgba(239,68,68,.15);  color:var(--danger);  border:1px solid rgba(239,68,68,.3); }
.badge-warn    { background:rgba(245,158,11,.15);  color:var(--warn);    border:1px solid rgba(245,158,11,.3); }
.badge-info    { background:rgba(59,130,246,.15);  color:var(--primary); border:1px solid rgba(59,130,246,.3); }
.badge-muted   { background:rgba(255,255,255,.06); color:var(--muted);   border:1px solid var(--border); }

/* ---- Team Section ---- */
.team-section { padding:120px 0 80px; }
.team-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-top:64px;
}
.team-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:24px;
  padding:32px 20px 24px;
  text-align:center;
  transition:border-color .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
  position:relative;
  overflow:hidden;
  backdrop-filter:blur(12px);
}
.team-card::after {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
}
.team-card:hover {
  border-color:rgba(255,255,255,.2);
  transform:translateY(-8px);
  box-shadow:0 24px 64px rgba(0,0,0,.5);
}
.team-avatar {
  width:92px; height:92px;
  border-radius:50%;
  background:var(--av-bg, var(--gradient));
  margin:0 auto 18px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
  box-shadow:0 0 0 3px rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.4);
}
.team-avatar::before {
  content:'';
  position:absolute;
  inset:-6px;
  border-radius:50%;
  background:var(--av-bg, var(--gradient));
  opacity:.18;
  filter:blur(12px);
  z-index:-1;
}
.team-initials {
  font-family:var(--font-head);
  font-weight:700;
  font-size:24px;
  color:#fff;
  letter-spacing:-.5px;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}
.team-name {
  font-family:var(--font-head);
  font-weight:700;
  font-size:15px;
  margin-bottom:4px;
  color:var(--text);
}
.team-role {
  color:var(--muted);
  font-size:12px;
  font-family:var(--font-head);
  letter-spacing:.3px;
  margin-bottom:10px;
  line-height:1.4;
}
.team-bio {
  color:var(--text-2);
  font-size:12px;
  line-height:1.6;
  margin-bottom:14px;
  opacity:.75;
}
.team-tags {
  display:flex; flex-wrap:wrap; gap:5px;
  justify-content:center;
  margin-bottom:16px;
}
.team-tag {
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  border-radius:20px;
  padding:2px 9px;
  font-size:10px;
  color:var(--text-2);
  font-family:var(--font-head);
  letter-spacing:.2px;
}
.team-divider { height:1px; background:var(--border); margin:14px 0; }
.team-socials { display:flex; gap:8px; justify-content:center; }
.team-social {
  width:30px; height:30px;
  border-radius:8px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:12px;
  color:var(--muted);
  transition:.3s;
}
.team-social:hover {
  color:var(--text);
  border-color:rgba(255,255,255,.22);
  background:var(--primary-dim);
}

/* ---- Hamburger & Mobile Menu ---- */
.hamburger {
  display:none; flex-direction:column; justify-content:center;
  gap:5px; width:40px; height:40px; padding:8px;
  border:1px solid var(--border); border-radius:10px;
  background:var(--glass); cursor:pointer; flex-shrink:0; transition:.3s;
}
.hamburger:hover { background:var(--glass-hover); }
.hamburger span {
  display:block; width:20px; height:2px;
  background:var(--text); border-radius:2px;
  transition:transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.mob-menu {
  position:fixed; inset:0; z-index:1001;
  background:rgba(3,3,5,.97); backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  transform:translateX(100%);
  transition:transform .38s cubic-bezier(.76,0,.24,1);
  overflow-y:auto;
}
.mob-menu.open { transform:translateX(0); }
.mob-menu-inner {
  display:flex; flex-direction:column; min-height:100%;
  padding:20px 24px 48px;
}
.mob-menu-top {
  display:flex; justify-content:space-between; align-items:center;
  padding-bottom:28px; border-bottom:1px solid var(--border); margin-bottom:28px;
}
.mob-close {
  width:40px; height:40px;
  background:var(--glass); border:1px solid var(--border); border-radius:12px;
  color:var(--text); display:flex; align-items:center; justify-content:center;
  font-size:18px; cursor:pointer; transition:.3s;
}
.mob-close:hover { background:var(--glass-hover); }
.mob-nav { display:flex; flex-direction:column; gap:0; flex:1; }
.mob-nav a {
  font-family:var(--font-head); font-size:24px; font-weight:700;
  color:var(--text-2); padding:15px 0; border-bottom:1px solid var(--border);
  transition:color .2s, padding-left .2s; letter-spacing:-.3px;
  display:flex; align-items:center; gap:14px;
}
.mob-nav a:active, .mob-nav a:hover { color:var(--primary); padding-left:6px; }
.mob-nav-icon { width:22px; text-align:center; flex-shrink:0; font-size:15px; }
.mob-actions { display:flex; flex-direction:column; gap:10px; margin-top:36px; }
.mob-actions .demo-badge, .mob-actions .btn { width:100%; justify-content:center; }

/* ---- Responsive ---- */
@media (max-width:1024px) {
  .hero-grid { grid-template-columns:1fr; text-align:center; }
  .hero-right { display:none; }
  .hero-text p { margin:0 auto 40px; }
  .hero-btns { justify-content:center; }
  .hero-stats { justify-content:center; }
  .bento-grid { grid-template-columns:1fr 1fr; }
  .bento-large { grid-column:span 2; }
  .bento-tall  { grid-row:span 1; }
  .about-grid  { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .team-grid   { grid-template-columns:repeat(2,1fr); }
  .hero-text h1 { font-size:52px; }
  .section-title { font-size:38px; }
}

@media (max-width:768px) {
  /* Nav */
  .hamburger { display:flex; }
  .nav-links { display:none; }
  .nav-actions .btn-sm { display:none; }
  .nav-actions .demo-badge { display:none; }

  /* Hero */
  .hero { min-height:100svh; padding-bottom:48px; }
  .hero-text h1 {
    font-size:34px; letter-spacing:-.5px;
    line-height:1.1; margin-bottom:16px;
  }
  .hero-text .section-label { text-align:center; margin-bottom:20px; }
  .hero-text p {
    font-size:15px; max-width:100%;
    margin-bottom:28px; line-height:1.65; color:var(--text-2);
  }
  .hero-btns { flex-direction:column; gap:10px; }
  .hero-btns .btn { width:100%; justify-content:center; padding:14px 24px; }
  .hero-stats {
    margin-top:36px; padding-top:24px;
    display:grid; grid-template-columns:repeat(3,1fr); gap:0;
  }
  .hero-stats .stat {
    text-align:center; padding:0 6px;
    border-right:1px solid var(--border);
  }
  .hero-stats .stat:last-child { border-right:none; }
  .hero-stats .stat h4 { font-size:22px; }
  .hero-stats .stat p { font-size:10px; letter-spacing:.5px; }

  /* Sections */
  .section-title { font-size:30px; }
  .section-sub { font-size:14px; }
  .about-text { font-size:32px !important; }
  .bento-section, .about-section, .table-section,
  .team-section, .faq-section, .cta-section { padding:60px 0; }

  /* Bento */
  .bento-grid { grid-template-columns:1fr; }
  .bento-large { grid-column:span 1; }
  .bento-card { padding:20px; }
  .bento-title { font-size:17px; }

  /* Team */
  .team-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .team-card  { padding:18px 10px; }
  .team-name  { font-size:13px; }
  .team-role  { font-size:11px; }
  .team-tags  { gap:4px; justify-content:center; }
  .team-tag   { font-size:10px; padding:2px 8px; }

  /* FAQ */
  .faq-q { padding:16px 18px; font-size:14px; }

  /* CTA */
  .cta-box { padding:40px 20px; }
  .cta-box h2 { font-size:30px; }
  .cta-box p  { font-size:14px; }

  /* Footer */
  .footer-grid { grid-template-columns:1fr; gap:30px; }

  /* Misc */
  .modal { padding:24px 18px; }
  .container { padding:0 16px; }
}

@media (max-width:480px) {
  .hero-text h1 { font-size:27px; }
  .hero-stats .stat h4 { font-size:18px; }
  .hero-stats .stat p { font-size:9px; }
  .section-title { font-size:24px; }
  .about-text { font-size:26px !important; }

  .team-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .team-avatar { width:70px; height:70px; }
  .team-card  { padding:14px 8px; }
  .team-name  { font-size:12px; }
  .team-role  { font-size:10px; }
  .team-tag   { font-size:9px; padding:2px 6px; }
}

/* ======================================
   MARKET TABLE
   ====================================== */
/* ======================================
   SECTION DARK BACKGROUNDS (desktop)
   ====================================== */
.bento-section  { background:linear-gradient(180deg,transparent,rgba(4,4,12,.55) 15%,rgba(4,4,12,.55) 85%,transparent); }
.table-section  { background:rgba(4,4,12,.4); }
.partners-section { background:linear-gradient(180deg,transparent,rgba(4,4,12,.45) 20%,rgba(4,4,12,.45) 80%,transparent); }

/* ======================================
   MARKET TABLE
   ====================================== */
.market-title { font-size:40px; letter-spacing:-1px; }
.table-wrap   { overflow-x:auto; }

@media (max-width:768px) {
  .market-header { flex-direction:column !important; align-items:flex-start !important; gap:10px !important; }
  .market-title  { font-size:26px !important; }

  /* Convert table → card list, no horizontal scroll */
  .table-wrap   { overflow-x:hidden; }
  .glass-table, .glass-table tbody { display:block; width:100%; }
  .glass-table thead { display:none; }
  .glass-table tbody { display:flex; flex-direction:column; gap:8px; }

  .glass-table tr {
    display:flex !important; align-items:center; gap:8px;
    width:100%; padding:12px 14px;
    background:var(--bg-card);
    border:1px solid var(--border) !important;
    border-radius:14px !important;
    animation:none !important;
    border-spacing:0;
  }
  .glass-table tr:hover { border-color:rgba(255,255,255,.15) !important; }

  /* Reset all td decoration */
  .glass-table td {
    display:block; padding:0 !important;
    border:none !important; background:transparent !important;
    border-radius:0 !important;
  }
  .glass-table tr:hover td { background:transparent !important; border:none !important; }

  /* Hide: rank(1), volume(5), cap(6), sparkline(7) */
  .glass-table td:nth-child(1),
  .glass-table td:nth-child(5),
  .glass-table td:nth-child(6),
  .glass-table td:nth-child(7) { display:none !important; }

  /* Asset flex-1 */
  .glass-table td:nth-child(2) { flex:1; min-width:0; }
  .glass-table td:nth-child(2) .flex { gap:8px !important; }
  .glass-table td:nth-child(2) .coin-icon { width:30px; height:30px; }
  .glass-table td:nth-child(3) { font-size:13px; font-weight:700; white-space:nowrap; }
  .glass-table td:nth-child(4) { font-size:12px; white-space:nowrap; }
  .glass-table td:nth-child(8) { flex-shrink:0; }
  .glass-table td:nth-child(8) .btn { padding:5px 10px; font-size:11px; }
}

/* ======================================
   BENTO MOBILE COMPACT
   ====================================== */
@media (max-width:768px) {
  /* Override the fixed 280px row height */
  .bento-grid {
    grid-auto-rows:auto;
    gap:10px;
  }
  .bento-card {
    padding:18px;
    min-height:0;
    flex-direction:row;
    align-items:center;
    gap:14px;
  }
  /* Left: icon + text block */
  .bento-card > div:first-child {
    display:flex; align-items:center; gap:12px; flex:1; min-width:0;
  }
  .bento-icon {
    width:42px; height:42px; font-size:17px; border-radius:11px;
    margin-bottom:0; flex-shrink:0;
  }
  .bento-title { font-size:14px; margin-bottom:0; }
  .bento-desc  { display:none; }
  /* Right: stat */
  .bento-badge-row { margin-top:0; flex-direction:column; align-items:flex-end; flex-shrink:0; gap:0; }
  .bento-stat { font-size:26px; line-height:1.1; }
  .bento-sublabel { font-size:10px; }
  /* Hide decorative elements */
  .bento-speed-bars { display:none; }
  .bento-coins-grid { display:none; }
}

/* ======================================
   PARTNERS MOBILE
   ====================================== */
@media (max-width:768px) {
  .partners-section { padding:60px 0 50px; }
  .partners-marquee-outer { margin-top:36px; gap:10px; }

  /* Fade overlays: 200px → 40px so content is actually visible */
  .partners-marquee-outer::before,
  .partners-marquee-outer::after { width:40px; }

  /* Hide second row — 1 row is enough on mobile */
  .partners-track-rev { display:none; }

  /* Smaller cards */
  .p-card { padding:10px 14px; gap:10px; border-radius:14px; }
  .p-logo-icon, .p-logo-img { width:34px; height:34px; border-radius:9px; font-size:15px; }
  .p-name { font-size:13px; }
  .p-tagline { font-size:10px; }
  .partners-track { gap:10px; }
}

/* ======================================
   FAQ FIX
   ====================================== */
.faq-a { transition:max-height .45s ease; }
.faq-a.open { max-height:800px; }

@media (max-width:768px) {
  .faq-q { padding:16px 18px; font-size:14px; gap:12px; }
  .faq-a.open { padding:0 18px 18px; font-size:14px; }
  .faq-item { border-radius:14px; }
}

/* ======================================
   FOOTER MOBILE
   ====================================== */
@media (max-width:768px) {
  footer { padding:48px 0 0; }
  .footer-grid {
    grid-template-columns:1fr 1fr;
    gap:28px 16px;
    margin-bottom:0;
    padding-bottom:36px;
  }
  .footer-brand { grid-column:1 / -1; }
  .footer-brand p { font-size:14px; max-width:100%; margin-top:12px; }
  .footer-socials { margin-top:16px !important; }
  .footer-col h5 {
    font-size:11px; letter-spacing:1.5px;
    text-transform:uppercase; margin-bottom:12px; color:var(--muted);
  }
  .footer-col a { font-size:13px; margin-bottom:9px; }
  .footer-bottom {
    flex-direction:column; gap:6px; text-align:center;
    padding:18px 0 24px; font-size:12px;
    border-top:1px solid var(--border); margin-top:0;
  }
}

/* ======================================
   MOBILE — единый тёмный фон
   ====================================== */
@media (max-width:768px) {
  /* Единый фон */
  body { background:#07070f; }

  /* Убираем орбы — они создают цветные пятна */
  .ambient-light { display:none; }

  /* Убираем фоны секций */
  .bento-section, .table-section, .partners-section,
  .team-section, .faq-section, .cta-section, .about-section { background:none; }

  /* Переменная bg-card → непрозрачная, чтобы не просвечивал фон */
  --bg-card: #0d0d14;

  .bento-card       { background:#0d0d14; }
  .team-card        { background:#0d0d14; }
  .faq-item         { background:#0d0d14; }
  .glass-table tr   { background:#0d0d14 !important; }
  .p-card           { background:#0d0d14; }
  .card             { background:#0d0d14; }
  .cta-box          { background:#0d0d14; }
  .hero-live-card   { background:#0d0d14; }
  header.scrolled   { background:#07070f; }
}
