/* ==========================================================
   CoinArbitrage — styles
   ========================================================== */
:root {
  --bg: #07111F;
  --surface: #0D1B2E;
  --card: #13263C;
  --line: rgba(34, 211, 238, .14);
  --line-strong: rgba(34, 211, 238, .32);
  --cyan: #06B6D4;
  --cyan-2: #22D3EE;
  --green: #10B981;
  --green-2: #34D399;
  --red: #EF4444;
  --red-2: #F87171;
  --purple: #8B5CF6;
  --purple-2: #A78BFA;
  --wa: #25D366;
  --text: #E8F1FB;
  --muted: #8DA2BC;
  --dim: #5C7390;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% -5%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(139, 92, 246, .12), transparent 60%),
    radial-gradient(800px 600px at 110% 75%, rgba(16, 185, 129, .07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Shared bits ---------- */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-2);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 38, 60, .72), rgba(13, 27, 46, .72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Cursor spotlight on interactive cards */
.feature::after, .chart-card::after, .contact::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--spot, 34, 211, 238), .13), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.feature:hover::after, .chart-card:hover::after, .contact:hover::after { opacity: 1; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-2), var(--cyan));
  color: #04202A;
  box-shadow: 0 8px 28px -8px rgba(34, 211, 238, .7);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 0% { left: -60%; } 22%, 100% { left: 130%; } }
.btn-primary:hover { box-shadow: 0 12px 36px -6px rgba(34, 211, 238, .95); }
.btn-primary .ico:last-child { transition: transform .2s ease; }
.btn-primary:hover .ico:last-child { transform: translateX(4px); }
.btn-outline {
  background: rgba(7, 17, 31, .4);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--cyan-2); background: rgba(34, 211, 238, .08); box-shadow: 0 0 22px -8px rgba(34, 211, 238, .8); }
.btn-block { width: 100%; }

.eyebrow-sm {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan-2);
  margin-bottom: 8px;
}
.section { padding: 88px 0 0; }
.section h2 { font-size: clamp(28px, 4vw, 38px); }
.sub { color: var(--muted); margin-top: 10px; max-width: 660px; }
.link { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Coin badges ---------- */
.coin {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 16px; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 55%), var(--c);
  box-shadow: 0 0 18px -4px var(--c), inset 0 -3px 6px rgba(0, 0, 0, .2);
  transition: transform .3s var(--ease-out);
}
.coin svg { width: 20px; height: 20px; color: #fff; }
.coin-sm { width: 28px; height: 28px; font-size: 13px; }
.coin-sm svg { width: 15px; height: 15px; }
.coin-xs { width: 20px; height: 20px; font-size: 10px; box-shadow: none; }
.coin-xs svg { width: 11px; height: 11px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 31, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 211, 238, .06);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(7, 17, 31, .9);
  border-bottom-color: rgba(34, 211, 238, .14);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
}
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .18));
  border: 1px solid var(--line-strong);
  color: var(--cyan-2);
  animation: breathe 3.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 16px -6px rgba(34, 211, 238, .6); }
  50% { box-shadow: 0 0 26px -2px rgba(34, 211, 238, .8); }
}
.brand-mark svg { width: 22px; height: 22px; transition: transform .5s var(--ease-out); }
.brand:hover .brand-mark svg { transform: rotate(180deg); }
.brand-text { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brand-text b { font-weight: 800; color: var(--cyan-2); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a:not(.btn) {
  position: relative;
  padding: 8px 14px;
  font-size: 15px; font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
  background: var(--cyan-2); border-radius: 2px;
  box-shadow: 0 0 10px var(--cyan-2);
  transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn):hover::after { transform: scaleX(.5); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { height: 42px; padding: 0 16px; font-size: 14px; }
.nav-cta .ico, .nav-cta-mobile .ico { color: var(--wa); }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-strong);
  cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
    display: none;
  }
  .nav-links.open { display: flex; animation: dropIn .3s var(--ease-out); }
  .nav-links a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 64px 0 56px;
  /* Fill the screen below the header, leaving a small peek of the next section */
  min-height: calc(100vh - var(--header-h) - 40px);
  min-height: calc(100svh - var(--header-h) - 40px);
  display: flex; align-items: center;
}
#hero-canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.orb-1 {
  width: 440px; height: 440px; top: -140px; right: 6%;
  background: radial-gradient(circle, rgba(34, 211, 238, .32), transparent 70%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 380px; height: 380px; bottom: -160px; left: -100px;
  background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 70%);
  animation: drift2 22s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(1.1); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  margin: 0 0 18px;
}
.accent {
  background: linear-gradient(90deg, #22D3EE, #5EEAD4, #A78BFA, #22D3EE);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: textShine 7s linear infinite;
}
@keyframes textShine { to { background-position: 200% center; } }
.lead { color: var(--muted); font-size: 17.5px; max-width: 560px; }
.lead b { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 14.5px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { color: var(--cyan-2); }
.hero-facts li:last-child .ico { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Entrance */
.js .rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
.js .rise-r { animation: riseR 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } }
@keyframes riseR { from { opacity: 0; transform: translateX(40px) scale(.97); } }

.hero-visual { position: relative; }
.float-chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.float-chip {
  position: absolute; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 22, 38, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8), 0 0 20px -10px var(--cyan-2);
  cursor: pointer;
  font-size: 13px; text-align: left;
  animation: bob 6s ease-in-out infinite;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.float-chip:hover { border-color: var(--cyan-2); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8), 0 0 26px -6px var(--cyan-2); }
.fc-txt { display: flex; flex-direction: column; line-height: 1.15; }
.fc-txt b { font-family: var(--font-head); font-size: 12.5px; }
.fc-px { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.fc-chg { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-1 { top: -26px; left: -30px; animation-delay: 0s; }
.fc-2 { bottom: -24px; right: -14px; animation-delay: -2s; }
.fc-3 { top: -30px; right: 8%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.chart-card { padding: 22px 22px 16px; overflow: hidden; }
.chart-card::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .14), transparent);
  pointer-events: none;
  animation: glowShift 9s ease-in-out infinite alternate;
}
@keyframes glowShift { to { transform: translate(-30%, 25%); } }
.chart-card > * { position: relative; z-index: 1; }
.chart-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.chart-tabs { position: relative; display: inline-flex; gap: 2px; margin-top: 12px; padding: 3px; border-radius: 10px; background: rgba(7, 17, 31, .55); border: 1px solid var(--line); }
.tab-glider {
  position: absolute; top: 3px; left: 3px; height: calc(100% - 6px); width: 0;
  border-radius: 7px;
  background: rgba(34, 211, 238, .16);
  box-shadow: 0 0 16px -4px rgba(34, 211, 238, .6);
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}
.chart-tabs button {
  position: relative; z-index: 1;
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: color .25s ease;
}
.chart-tabs button:hover { color: var(--text); }
.chart-tabs button[aria-selected="true"] { color: var(--cyan-2); }
.chart-price { text-align: right; }
.chart-label { display: block; font-size: 12.5px; color: var(--muted); }
.chart-price strong { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chg { font-size: 14px; font-weight: 600; }
.up { color: var(--green-2); }
.down { color: var(--red-2); }

.chart-wrap { position: relative; height: 240px; margin-top: 10px; }
#chart { width: 100%; height: 100%; overflow: visible; }
#chart-line { filter: drop-shadow(0 0 6px rgba(34, 211, 238, .7)); }
#chart-grid line { stroke: rgba(141, 162, 188, .12); stroke-dasharray: 3 5; }
.chart-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--cyan-2);
  box-shadow: 0 0 20px var(--cyan-2);
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;
  display: none;
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.chart-dot.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.chart-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--cyan-2);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.chart-axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: 8px; font-variant-numeric: tabular-nums; min-height: 19px; }
.chart-src { color: var(--dim); font-size: 11.5px; margin-top: 8px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 44px; }
  .float-chips { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
  .float-chip { position: static; justify-content: center; padding: 7px 8px; }
}
@media (max-width: 520px) {
  .hero-ctas .btn { width: 100%; }
  .chart-wrap { height: 190px; }
  .chart-price strong { font-size: 24px; }
  .chart-card { padding: 18px 16px 14px; }
  .chart-tabs button { padding: 5px 9px; font-size: 12px; }
  .float-chip { flex-wrap: wrap; gap: 4px 6px; border-radius: 14px; }
  .float-chip .coin-sm { display: none; }
  .fc-txt { align-items: center; }
  .fc-chg { width: 100%; text-align: center; font-size: 11px; }
}

/* ---------- How it works ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.feature { padding: 24px; overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease; --spot: var(--accent-rgb); }
.feature > * { position: relative; z-index: 1; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 20px 40px -20px rgba(var(--accent-rgb), .45); }
.feature-top { display: flex; justify-content: space-between; align-items: flex-start; }
.feature-ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .12);
  border: 1px solid rgba(var(--accent-rgb), .35);
  color: rgb(var(--accent-rgb));
  animation: bob 5s ease-in-out infinite;
}
.f-cyan .feature-ico { animation-delay: -1.6s; }
.f-green .feature-ico { animation-delay: -3.2s; }
.feature-ico svg { width: 26px; height: 26px; }
.feature:hover .ico-search svg { animation: swapNudge .9s ease-in-out infinite; }
.feature:hover .ico-wallet svg { animation: throb 1s ease-in-out infinite; }
.feature:hover .ico-shield svg { animation: throb 1s ease-in-out infinite; }
.feature p b, .sub b { color: var(--text); font-weight: 600; }
.btn .wa-ico { color: var(--wa); }
@keyframes swapNudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes throb { 50% { transform: scale(1.18); } }
.feature-num { font-family: var(--font-head); color: var(--muted); font-size: 14px; font-weight: 600; }
.tag { display: block; margin-top: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--accent-rgb)); }
.feature h3 { font-size: 21px; margin: 6px 0 10px; }
.feature p { color: var(--muted); font-size: 15px; }
.f-purple { --accent-rgb: 167, 139, 250; border-color: rgba(167, 139, 250, .3); background: linear-gradient(180deg, rgba(76, 52, 140, .28), rgba(13, 27, 46, .75)); }
.f-cyan { --accent-rgb: 34, 211, 238; border-color: rgba(34, 211, 238, .3); background: linear-gradient(180deg, rgba(14, 90, 120, .28), rgba(13, 27, 46, .75)); }
.f-green { --accent-rgb: 52, 211, 153; border-color: rgba(52, 211, 153, .3); background: linear-gradient(180deg, rgba(10, 100, 80, .28), rgba(13, 27, 46, .75)); }
.f-purple:hover { border-color: rgba(167, 139, 250, .65); }
.f-cyan:hover { border-color: rgba(34, 211, 238, .65); }
.f-green:hover { border-color: rgba(52, 211, 153, .65); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal-on [data-reveal]:not(.in) { opacity: 0; }
.reveal-on [data-reveal].in {
  animation: reveal .85s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Markets table ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .4);
  background: rgba(16, 185, 129, .08);
  color: var(--green-2);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.status-badge.offline { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .08); color: var(--red-2); }
.status-badge.offline .dot { background: var(--red-2); animation: none; }

.market { margin-top: 28px; padding: 10px 8px 4px; overflow: hidden; }
.refresh-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(34, 211, 238, .06); }
.refresh-bar i {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--green-2));
  box-shadow: 0 0 10px var(--cyan-2);
}
.refresh-bar i.run { animation: fillBar linear forwards; }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.mhead, .mrow {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) 1fr .8fr minmax(180px, 1.4fr) .9fr;
  gap: 16px; align-items: center;
}
.mhead { padding: 12px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ta-r { text-align: right; }
.mrow-wrap { border-top: 1px solid rgba(141, 162, 188, .1); }
.mrow {
  position: relative;
  padding: 16px; border-radius: 12px;
  transition: background .2s ease, box-shadow .3s ease;
}
.mrow::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
  background: var(--cyan-2); box-shadow: 0 0 10px var(--cyan-2);
  transform: scaleY(0); transition: transform .3s var(--ease-out);
}
.mrow:hover { background: rgba(34, 211, 238, .045); }
.mrow:hover::before { transform: scaleY(1); }
.mrow:hover .coin { transform: scale(1.1) rotate(-8deg); }
.asset { display: flex; align-items: center; gap: 12px; min-width: 0; }
.asset strong { display: block; font-family: var(--font-head); font-size: 16.5px; }
.asset small { display: block; color: var(--muted); font-size: 13px; }
.px { font-family: var(--font-head); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; display: block; }
.px-last { color: var(--text); }
.px-vol { font-size: 15.5px; font-weight: 600; color: var(--text); }
.c-vol { text-align: right; }
.ex { display: block; font-size: 12.5px; color: var(--muted); }
.chg-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(141, 162, 188, .12); color: var(--muted);
}
.chg-pill.up { color: var(--green-2); background: rgba(16, 185, 129, .12); }
.chg-pill.down { color: var(--red-2); background: rgba(239, 68, 68, .12); }
.range-vals { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.range { position: relative; height: 6px; border-radius: 6px; background: rgba(141, 162, 188, .14); }
.range-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  transition: width .8s var(--ease-out);
}
.range-dot {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--cyan-2); box-shadow: 0 0 10px var(--cyan-2);
  transform: translate(-50%, -50%); opacity: 0;
  transition: left .8s var(--ease-out), opacity .3s ease;
}
.skeleton { display: inline-block; height: 14px; width: 80px; border-radius: 6px; background: linear-gradient(90deg, rgba(141,162,188,.1), rgba(141,162,188,.22), rgba(141,162,188,.1)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Price change flashes */
.flash-up { animation: flashUp 1.1s ease; }
.flash-down { animation: flashDown 1.1s ease; }
@keyframes flashUp { 0%, 30% { color: #6EE7B7; text-shadow: 0 0 16px rgba(52, 211, 153, .9); } }
@keyframes flashDown { 0%, 30% { color: #FCA5A5; text-shadow: 0 0 16px rgba(248, 113, 113, .9); } }

.note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; margin-top: 16px; }
.note .ico { color: var(--cyan-2); margin-top: 2px; }

@media (max-width: 1000px) {
  .mhead { display: none; }
  .market { padding: 6px 4px 4px; }
  .mrow {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "asset chg"
      "price vol"
      "range range";
    gap: 12px 14px;
    padding: 16px 14px;
  }
  .mrow .asset { grid-area: asset; }
  .mrow .c-price { grid-area: price; }
  .mrow .c-chg { grid-area: chg; justify-self: end; }
  .mrow .c-range { grid-area: range; }
  .mrow .c-vol { grid-area: vol; }
  .c-price::before, .c-vol::before, .c-range::before {
    display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px;
  }
  .c-price::before { content: "Price"; }
  .c-vol::before { content: "24h volume"; }
  .c-range::before { content: "24h range"; margin-bottom: 6px; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 36px;
  overflow: hidden;
  border-color: var(--line-strong);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(34, 211, 238, .1), transparent 70%),
    linear-gradient(180deg, rgba(19, 38, 60, .8), rgba(13, 27, 46, .8));
}
.contact > * { position: relative; z-index: 1; }
.contact-copy { display: flex; gap: 24px; align-items: flex-start; }
.contact-ico {
  width: 84px; height: 84px; border-radius: 22px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, .08);
  color: var(--cyan-2);
  animation: icoGlow 3s ease-in-out infinite;
}
@keyframes icoGlow {
  0%, 100% { box-shadow: 0 0 30px -12px rgba(34, 211, 238, .6), inset 0 0 20px rgba(34, 211, 238, .06); }
  50% { box-shadow: 0 0 46px -8px rgba(34, 211, 238, .85), inset 0 0 24px rgba(34, 211, 238, .14); }
}
.contact-ico svg { width: 40px; height: 40px; }
.contact-ico .td { transform-box: fill-box; transform-origin: center; animation: typing 1.4s ease-in-out infinite; }
.contact-ico .td:nth-of-type(2) { animation-delay: .18s; }
.contact-ico .td:nth-of-type(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-2.6px); opacity: 1; } }
.contact h2 { font-size: clamp(26px, 3.4vw, 34px); }
.contact-copy p { color: var(--muted); margin-top: 12px; }
.contact-copy .safety { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 18px; }
.safety .ico { color: var(--green-2); }

.contact-form {
  padding: 22px;
  border-radius: 14px;
  background: rgba(7, 17, 31, .55);
  border: 1px solid var(--line);
  display: grid; gap: 16px;
}
.form-top { display: flex; justify-content: space-between; align-items: center; }
.form-top strong { font-family: var(--font-head); font-size: 17px; }
.mini-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--wa); border: 1px solid rgba(37, 211, 102, .35);
}
.mini-badge .ico { width: 14px; height: 14px; }
.mini-badge.live { color: var(--green-2); border-color: rgba(52, 211, 153, .4); }
.mini-badge.live .dot { width: 6px; height: 6px; }

/* ---------- Price converter ---------- */
.conv-ico svg { width: 38px; height: 38px; }
.conv-fields { display: flex; flex-direction: column; gap: 4px; }
.conv-fields.flip { flex-direction: column-reverse; }
.amt-wrap { display: block; }
.amt-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.amt {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 16px;
  border-radius: 12px;
  border: 1px solid rgba(141, 162, 188, .22);
  background: rgba(13, 27, 46, .7);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.amt:focus-within { border-color: var(--cyan-2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12); }
.amt.invalid { border-color: var(--red-2); box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.amt input {
  flex: 1; min-width: 0; width: 0;
  border: 0; outline: none; background: transparent;
  padding: 10px 0;
  font-family: var(--font-head); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.amt input::placeholder { color: var(--dim); }
.amt .unit {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 12px; border-radius: 9px;
  background: rgba(34, 211, 238, .08); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px;
}
.swap-btn {
  align-self: center; z-index: 1;
  width: 40px; height: 40px; margin: 2px 0 -2px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--cyan-2);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .4s var(--ease-out), box-shadow .2s ease;
}
.swap-btn svg { width: 18px; height: 18px; }
.swap-btn:hover { box-shadow: 0 0 18px -4px var(--cyan-2); }
.conv-fields.flip .swap-btn { transform: rotate(180deg); }
.conv-rate {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.conv-rate b { color: var(--text); font-weight: 600; }
.conv-rate .conv-src { width: 100%; color: var(--dim); font-size: 12.5px; }
.conv-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.conv-ctas .btn { height: 50px; padding: 0 14px; }

/* ---------- Buy / sell guidance pop-up ---------- */
.modal-open { overflow: hidden; }
.modal {
  width: min(520px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px);
  padding: 0; border: 0; background: transparent; color: var(--text);
  overflow: visible;
}
.modal::backdrop { background: rgba(3, 8, 16, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s var(--ease-out); }
.modal[open]::backdrop { animation: backdropIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes backdropIn { from { opacity: 0; } }
.modal-card {
  position: relative;
  padding: 26px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(34, 211, 238, .12), transparent 70%),
    linear-gradient(180deg, #13263C, #0D1B2E);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85), 0 0 50px -25px var(--cyan-2);
}
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .3s var(--ease-out);
}
.modal-x:hover { color: var(--text); border-color: var(--line-strong); transform: rotate(90deg); }
.modal-x svg { width: 18px; height: 18px; }
.modal-head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.modal-head .coin { width: 46px; height: 46px; font-size: 19px; }
.modal-head .coin svg { width: 24px; height: 24px; }
.modal-head .eyebrow { margin-bottom: 2px; }
.modal-head h3 { font-size: 24px; }
.modal-sum {
  margin-top: 18px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(7, 17, 31, .55);
  font-variant-numeric: tabular-nums;
}
.modal-sum b { display: block; font-family: var(--font-head); font-size: 17px; overflow-wrap: anywhere; }
.modal-sum small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.modal-steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.modal-steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--muted); font-size: 14.5px; }
.modal-steps li::before {
  content: counter(step);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--cyan-2); background: rgba(34, 211, 238, .1); border: 1px solid var(--line-strong);
}
.modal[open] .modal-steps li { animation: popUp .45s var(--ease-out) backwards; }
.modal[open] .modal-steps li:nth-child(2) { animation-delay: .08s; }
.modal[open] .modal-steps li:nth-child(3) { animation-delay: .16s; }
@keyframes popUp { from { opacity: 0; transform: translateY(10px); } }
.modal-steps b { display: block; color: var(--text); font-weight: 600; margin-bottom: 1px; }
.modal .safety { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.modal .safety .ico { margin-top: 2px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn-primary { flex: 1 1 220px; }
.modal-actions .btn-outline { flex: 0 1 auto; }
@media (max-width: 520px) {
  .modal-card { padding: 22px 18px; }
  .modal-head h3 { font-size: 21px; }
  .modal-actions .btn { flex: 1 1 100%; }
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .field > span { font-size: 13px; color: var(--muted); margin-bottom: 8px; padding: 0; display: block; }
.field em { font-style: normal; color: var(--dim); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips-3 { grid-template-columns: repeat(3, 1fr); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 42px; padding: 6px 8px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
  border: 1px solid rgba(141, 162, 188, .22);
  background: rgba(13, 27, 46, .6);
  color: var(--muted);
  transition: all .2s ease;
}
.chip:hover span { border-color: var(--line-strong); color: var(--text); transform: translateY(-1px); }
.chip input:checked + span {
  border-color: var(--cyan-2); color: var(--text);
  background: rgba(34, 211, 238, .12);
  box-shadow: 0 0 18px -6px rgba(34, 211, 238, .8);
  animation: chipPop .35s var(--ease-out);
}
@keyframes chipPop { 40% { transform: scale(1.05); } }
.chip input:focus-visible + span { outline: 2px solid var(--cyan-2); outline-offset: 2px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(141, 162, 188, .22);
  background: rgba(13, 27, 46, .7);
  font-size: 15px;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan-2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12); }

@media (max-width: 960px) {
  .contact { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 28px; }
}
@media (max-width: 520px) {
  .contact { padding: 20px 16px; }
  .contact-copy { flex-direction: column; gap: 16px; }
  .contact-ico { width: 64px; height: 64px; border-radius: 18px; }
  .contact-ico svg { width: 30px; height: 30px; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .chips-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-form { padding: 16px; }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; box-shadow: none; transition: border-color .25s ease, background .25s ease; }
.faq details:hover { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--cyan-2); transition: transform .3s var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(135deg); }
.faq details[open] { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(19, 50, 72, .75), rgba(13, 27, 46, .75)); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.faq details[open] p { animation: dropIn .35s var(--ease-out); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; padding: 36px 0 110px; border-top: 1px solid var(--line); background: rgba(13, 27, 46, .45); }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; color: var(--muted); font-size: 14.5px; }
.foot-links a { transition: color .2s ease; }
.foot-links a:hover { color: var(--cyan-2); }
.disclaimer { grid-column: 1 / -1; display: flex; gap: 10px; color: var(--dim); font-size: 13px; padding-top: 18px; border-top: 1px solid rgba(141, 162, 188, .12); }
.disclaimer .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.copy { grid-column: 1 / -1; color: var(--dim); font-size: 13px; }
@media (max-width: 640px) { .foot { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease-out);
  animation: fabIn .6s 1s var(--ease-out) backwards, wiggle 8s 4s ease-in-out infinite;
}
.wa-fab::before, .wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ring 2.6s ease-out infinite;
  pointer-events: none;
}
.wa-fab::after { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@keyframes fabIn { from { transform: scale(0) rotate(-90deg); } }
@keyframes wiggle { 0%, 88%, 100% { rotate: 0deg; } 90% { rotate: -14deg; } 92% { rotate: 12deg; } 94% { rotate: -8deg; } 96% { rotate: 5deg; } }
.wa-fab:hover { transform: scale(1.1); }
.wa-fab svg { width: 30px; height: 30px; }

.wa-tip {
  position: fixed; right: 92px; bottom: 34px; z-index: 60;
  padding: 9px 14px; border-radius: 12px 12px 4px 12px;
  background: #fff; color: #0B1B2B;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateX(12px) scale(.9); transform-origin: right bottom;
  pointer-events: none;
  transition: opacity .35s ease, transform .45s var(--ease-out);
}
.wa-tip.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 520px) {
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-tip { right: 80px; bottom: 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chart-dot { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-wallet {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wallet-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 6px;
}
.wallet-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wallet-addr {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: #22D3EE;
}
.copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.82rem;
}