:root {
  --bg: #05060b;
  --bg-soft: #090b14;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f6fb;
  --ink-soft: #aab2c5;
  --ink-mute: #6c7488;
  --acc: #4c8dff;
  --acc-2: #57e6d4;
  --acc-3: #7a6bff;
  --acc-glow: rgba(76, 141, 255, 0.45);
  --grad: linear-gradient(115deg, #57e6d4 0%, #4c8dff 48%, #7a6bff 100%);
  --grad-soft: linear-gradient(115deg, rgba(87,230,212,.16), rgba(76,141,255,.16) 50%, rgba(122,107,255,.16));
  --font-display: 'Clash Display', 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: #020307;
  background-image:
    linear-gradient(rgba(2, 3, 7, .62), rgba(2, 3, 7, .94)),
    url("uploads/WhatsApp_Image_2026-08-03_at_1.59.14_AM.jpeg");
  background-size: cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, a { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
a { text-decoration: none; }
svg, img { display: block; max-width: 100%; }
.mono { font-family: var(--font-mono); }

.atmos {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}
.atmos span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  mix-blend-mode: screen;
}
.atmos .a1 { width: 60vw; height: 60vw; left: -16vw; top: -22vw; background: radial-gradient(circle, rgba(76,141,255,.55), transparent 62%); animation: drift1 22s var(--ease-soft) infinite alternate; }
.atmos .a2 { width: 48vw; height: 48vw; right: -14vw; top: 6vw; background: radial-gradient(circle, rgba(122,107,255,.42), transparent 62%); animation: drift2 26s var(--ease-soft) infinite alternate; }
.atmos .a3 { width: 52vw; height: 52vw; left: 24vw; bottom: -26vw; background: radial-gradient(circle, rgba(87,230,212,.30), transparent 62%); animation: drift3 30s var(--ease-soft) infinite alternate; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-6vw, 10vw, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(6vw, -8vw, 0) scale(1.15); } }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(5,6,11,.72);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.ticker {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  z-index: 9;
  height: 38px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(9,11,20,.86);
  backdrop-filter: blur(12px);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  padding-inline: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  height: 38px;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item b { color: var(--ink); font-weight: 500; margin-right: 6px; }
.ticker-item .up { color: #2fe6a7; }
.ticker-item .down { color: #ff6b6b; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; }
  .brand .mark { width: 34px; height: 34px; flex-shrink: 0; object-fit: cover; border-radius: 12px; }
.brand span span { color: var(--acc-2); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 16px; border-radius: 100px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.8px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 78px 0 0 0;
  z-index: 9;
  background: rgba(5,6,11,.97);
  backdrop-filter: blur(20px);
  padding: 24px clamp(20px, 5vw, 56px) 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(1.4rem, 7vw, 1.7rem); font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu a.active { color: var(--acc-2); }

.connect-shell { min-height: 100vh; display: grid; align-content: center; padding-block: 166px 64px; }
.connect-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(32px, 6vw, 86px); align-items: center; }

.markets { padding-top: clamp(48px, 6vw, 80px); }
.markets-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.markets-head h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.markets-tag { font-size: 12px; color: var(--ink-mute); letter-spacing: .14em; text-transform: uppercase; }

.howto { padding-top: clamp(48px, 6vw, 96px); }
.howto-head { margin-bottom: 40px; }
.howto-head h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; margin-top: 18px; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 30px; left: 4%; right: 4%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), var(--acc-2), var(--acc-3), transparent);
  opacity: .5; border-radius: 2px;
  background-size: 200% 100%;
  animation: lineflow 6s var(--ease-soft) infinite;
}
@keyframes lineflow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.step { position: relative; }
.step-node { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 18px; position: relative; }
.step-icon {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--acc-2);
  position: relative; z-index: 1; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, color .3s;
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px -6px var(--acc-glow);
}
.step-icon svg { width: 26px; height: 26px; }
.step-icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 1px solid var(--acc);
  opacity: .0; transition: opacity .35s;
}
.step:hover .step-icon { transform: translateY(-6px) scale(1.05); color: var(--acc-2); border-color: var(--acc-2); box-shadow: 0 0 0 6px var(--bg), 0 16px 40px -8px var(--acc-glow); }
.step:hover .step-icon::after { opacity: .5; animation: ping 1.6s var(--ease-soft) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
.step-num { font-size: 12px; color: var(--ink-mute); letter-spacing: .16em; }
.step-copy h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 6px; }
.step-copy p { color: var(--ink-soft); font-size: 13.8px; line-height: 1.55; }
.step { transition: transform .4s var(--ease); }
.step:hover { transform: translateY(-4px); }

.coin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.coin-card { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); padding: 18px; transition: transform .35s var(--ease), border-color .3s; }
.coin-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.coin-card.featured { border-color: rgba(87,230,212,.4); background: linear-gradient(180deg, rgba(87,230,212,.07), rgba(255,255,255,.008)); }
.coin-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.coin-sym { font-weight: 700; font-size: 14px; color: var(--ink); }
.coin-name { font-size: 13px; color: var(--ink-mute); }
.coin-price { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.coin-change { font-size: 13px; font-weight: 500; }
.coin-change.up { color: #2fe6a7; }
.coin-change.down { color: #ff6b6b; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); backdrop-filter: blur(8px); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc-2); box-shadow: 0 0 12px var(--acc-2); }
h1 { max-width: 760px; margin: 22px 0 24px; font-family: var(--font-display); font-weight: 600; line-height: .98; letter-spacing: -0.03em; font-size: clamp(2.7rem, 7.4vw, 5.6rem); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 58ch; color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.2rem); }

.connect-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 50px 100px -50px rgba(0,0,0,.9);
}
.connect-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: .58; -webkit-mask-image: radial-gradient(120% 80% at 80% 0%, #000, transparent 70%); mask-image: radial-gradient(120% 80% at 80% 0%, #000, transparent 70%); }
.connect-card > * { position: relative; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.wallet-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.94); color: var(--acc); padding: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--acc-2); padding: 7px 12px; border-radius: 100px; border: 1px solid var(--line); background: rgba(5,6,11,.42); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc-2); box-shadow: 0 0 10px var(--acc-2); }
.status-pill.pending { color: #ffce85; }
.status-pill.pending::before { background: #ffce85; box-shadow: 0 0 10px #ffce85; }
.status-pill.connected { color: var(--acc-2); }

.account-card { border: 1px solid var(--line); border-radius: 20px; background: rgba(5,6,11,.48); padding: 16px; margin-bottom: 22px; }
.account-row { display: flex; align-items: center; gap: 14px; }
.account-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--acc-2); box-shadow: 0 0 12px var(--acc-2); flex-shrink: 0; }
.account-label { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .14em; }
.account-address { font-size: 15px; color: var(--ink); word-break: break-all; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.meta-chip { font-size: 12px; color: var(--ink-soft); padding: 6px 11px; border-radius: 100px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.hidden { display: none !important; }

.connect-card h2 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.connect-card > p { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.button-stack { display: grid; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 15px 24px; border-radius: 100px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background .3s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #04060d; background: var(--grad); box-shadow: 0 10px 34px -10px var(--acc-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 48px -12px var(--acc-glow); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--acc); background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: default; transform: none !important; }

.safe-note { display: flex; gap: 12px; margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(5,6,11,.48); color: var(--ink-soft); font-size: 13.5px; }
.safe-note svg { width: 18px; height: 18px; color: var(--acc-2); flex-shrink: 0; margin-top: 2px; }

.modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(5,6,11,.76); backdrop-filter: blur(12px); }
.modal.open { display: block; }
.modal-content { position: absolute; top: 50%; left: 50%; width: min(92vw, 560px); transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 24px; background: #090b14; box-shadow: 0 50px 100px -50px rgba(0,0,0,.9); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal-title { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.close-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); font-size: 22px; line-height: 1; }
.modal-body { padding: 24px; }
.status-message { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); color: var(--ink-soft); text-align: center; font-weight: 500; }
.wallet-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.wallet-name { font-weight: 700; }
.wallet-description { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.wallet-icon { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.08); color: var(--acc); padding: 12px; object-fit: contain; flex-shrink: 0; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .connect-grid { grid-template-columns: 1fr; }
  .connect-card { max-width: 520px; }
  .coin-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .ticker { top: 70px; }
}
@media (max-width: 520px) {
  .nav { height: 70px; }
  .mobile-menu { inset-block-start: 70px; }
  .brand { font-size: 1.04rem; }
  .connect-shell { padding-top: 128px; }
  .coin-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .coin-card { padding: 14px; }
  .modal-body { padding: 18px; }
  .safe-note { align-items: flex-start; }
}
