/* =========================================================
   Coinsfly landing page
   ========================================================= */

:root{
  --bg: #09080c;
  --bg-soft: #0d0d12;
  --card: #14171f;
  --card-2: #070e22;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.19);
  --text: #ffffff;
  --text-77: rgba(255,255,255,0.77);
  --text-54: rgba(255,255,255,0.54);
  --text-38: rgba(255,255,255,0.38);
  --text-30: rgba(255,255,255,0.30);

  --blue-1: #0073ff;
  --blue-2: #0da2ff;
  --blue-3: #6cc7ff;
  --blue-grad-text-1: #697dff;
  --blue-grad-text-2: #3246ec;

  --purple-1: #9500e5;
  --purple-2: #c31ded;
  --green-1: #00e58d;
  --green-2: #00c278;
  --orange-1: #ff5700;
  --orange-2: #ef5200;
  --pink-1: #e5005c;
  --pink-2: #ff22ae;

  --radius-lg: 42px;
  --radius-md: 29px;
  --radius-sm: 16px;
  --container: 1148px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }
input,select{ font-family: inherit; }

.container{
  max-width: calc(var(--container) + 292px);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1440px){
  .container{ padding: 0 146px; }
}

.section{ padding: 72px 0; position: relative; }
@media (min-width: 900px){
  .section{ padding: 100px 0; }
}

.section-head{ margin-bottom: 40px; max-width: 700px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; max-width: 700px; }
.section-head.split{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; max-width:none; }
.section-head h2{ margin:0 0 16px; }
.section-head p{ margin:0; color: var(--text-77); font-size:14px; }

h1,h2,h3{ font-weight:600; letter-spacing:-0.02em; margin:0; }
.h1{ font-size: clamp(34px, 6vw, 64px); line-height:1.05; }
.h2{ font-size: clamp(28px, 4.5vw, 40px); line-height:1.1; }
.h3{ font-size: clamp(20px,3vw,28px); line-height:1.2; }
.center{ text-align:center; }

.eyebrow{
  text-transform: uppercase;
  font-size:14px;
  letter-spacing: 0.02em;
  color: var(--text-54);
  margin: 0 0 8px;
  font-weight:400;
}
.grad-text, .grad-text-inline{
  background: linear-gradient(90deg, var(--blue-grad-text-1), var(--blue-grad-text-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.body-text{ color: var(--text-77); font-size:15px; line-height:1.6; margin:0 0 16px; }
.fineprint{ font-size:13px; color: var(--text-38); margin:16px 0 0; line-height:1.6; }
.fineprint.center{ text-align:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight:600;
  font-size:14px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  color:#fff;
  background: linear-gradient(180deg, var(--blue-1), var(--blue-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 8px 24px rgba(0,115,255,0.35);
}
.btn-ghost{
  color:#fff;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.1); }
.btn-sm{ padding: 12px 22px; font-size:13px; }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 200;
  background: rgba(9,8,12,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:74px; gap: 24px;
}
.logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.logo-mark{ width:36px; height:36px; object-fit:contain; }
.logo-word{ font-size:20px; font-weight:700; letter-spacing:-0.02em; }
.logo-word .accent{ color: var(--blue-2); }

.main-nav{ display:none; align-items:center; gap:28px; }
.main-nav a{ font-size:14px; color: var(--text-77); transition: color .15s; }
.main-nav a:hover{ color:#fff; }

.header-actions{ display:flex; align-items:center; gap:10px; }
.desktop-only{ display:none; }

.icon-btn{
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color:#fff;
}

.lang-switcher{ position:relative; }
.lang-menu{
  position:absolute; top:calc(100% + 10px); right:0;
  background: rgba(20,20,26,0.98);
  border: 1px solid var(--border-strong);
  border-radius:16px;
  padding:8px;
  min-width:170px;
  display:none;
  flex-direction:column;
  gap:4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 50;
}
.lang-menu.open{ display:flex; }
.lang-item{
  display:flex; align-items:center; gap:10px;
  background:none; border:none; color: rgba(255,255,255,0.64);
  padding:10px 12px; border-radius:12px; font-size:14px; text-align:left;
}
.lang-item:hover{ background: rgba(255,255,255,0.06); color:#fff; }
.lang-item.active{ background: rgba(255,255,255,0.1); color:#fff; font-weight:600; }
.flag{ width:24px; height:24px; flex-shrink:0; border-radius:50%; overflow:hidden; display:inline-flex; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.flag svg{ width:100%; height:100%; display:block; }

/* Mobile menu */
.mobile-menu{
  position:fixed; top:0; right:0; height:100%; width:min(360px, 86vw);
  background:#060509;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 300;
  padding: 20px 24px 28px;
  display:flex; flex-direction:column;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.open{ transform: translateX(0); }
.mobile-menu-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:32px; }
.mobile-nav{ display:flex; flex-direction:column; gap:6px; flex:1; }
.mobile-nav a{ padding:14px 4px; font-size:17px; color: var(--text-77); border-bottom:1px solid rgba(255,255,255,0.06); }
.mobile-nav a.active{ color:#fff; font-weight:600; }
.mobile-menu-cta{ display:flex; flex-direction:column; gap:12px; margin-top:20px; }
.mobile-menu-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:290;
  opacity:0; pointer-events:none; transition: opacity .3s ease;
}
.mobile-menu-backdrop.open{ opacity:1; pointer-events:auto; }

@media (min-width: 1024px){
  .main-nav{ display:flex; }
  .desktop-only{ display:inline-flex; }
  .hamburger{ display:none; }
}

/* ---------- Hero ---------- */
.hero{ position:relative; padding-top: 40px; padding-bottom: 40px; overflow:hidden; }
.hero-bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position: 20% 15%;
  z-index:0;
  opacity: 0.5;
}
.hero-fade-bottom{
  position:absolute; left:0; right:0; bottom:0; height:160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index:1;
}
.hero-inner{ position:relative; z-index:2; padding-top: 16px; padding-bottom: 0; }
.hero-copy{ max-width: 640px; }
.hero-title{ font-size: clamp(34px,6.4vw,64px); line-height:1.05; margin:0 0 20px; font-weight:600; letter-spacing:-0.02em; }
.hero-desc{ color: var(--text-77); font-size:15px; line-height:1.7; margin:0 0 32px; max-width: 560px; }
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; }

.hero-mobile-visual{ position:relative; z-index:2; margin: 28px 0 0; }
.hero-mobile-visual img{ width:100%; border-radius:20px; }

@media (min-width:900px){
  .hero{ padding-top: 56px; }
  .hero-bg{ opacity:1; background-position: center 30%; }
  .hero-inner{ padding-top: 20px; padding-bottom: 420px; }
  .hero-mobile-visual{ display:none; }
}

.pill-row{
  position:relative; z-index:2;
  display:flex; gap:12px; flex-wrap:nowrap;
  overflow-x:auto; padding: 4px 0 8px;
  -ms-overflow-style:none; scrollbar-width:none;
}
.pill-row::-webkit-scrollbar{ display:none; }
.pill{
  display:inline-flex; align-items:center; gap:8px; flex-shrink:0;
  padding: 14px 20px; border-radius:100px; font-size:13px; font-weight:600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  white-space:nowrap;
}
.pill .dot{ width:8px; height:8px; border-radius:50%; background: linear-gradient(180deg,var(--blue-1),var(--blue-2)); display:inline-block; }

/* ---------- Market cards ---------- */
.market-row{
  display:flex; gap:16px; overflow-x:auto; padding-bottom:6px;
  -ms-overflow-style:none; scrollbar-width:none;
}
.market-row::-webkit-scrollbar{ display:none; }
.market-card{
  flex: 0 0 240px;
  background: linear-gradient(160deg, var(--card), var(--bg));
  border: 1px solid var(--border);
  border-radius:24px;
  padding:20px;
}
@media (min-width: 1100px){
  .market-row{ display:grid; grid-template-columns: repeat(5, 1fr); overflow:visible; }
  .market-card{ flex:initial; }
}
.market-card-top{ display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.market-card-top img{ width:28px; height:28px; border-radius:50%; }
.market-card-top span{ font-size:20px; font-weight:600; letter-spacing:-0.02em; }
.market-card-bottom{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.price{ font-size:12px; color: rgba(255,255,255,0.8); font-weight:300; white-space:nowrap; }
.up{ color:#3ddc97; }
.spark{ width:70px; height:24px; flex-shrink:0; }
.spark polyline{ fill:none; stroke: var(--blue-2); stroke-width:2.4; }

/* ---------- About ---------- */
.about-grid{ display:grid; gap:40px; align-items:center; }
@media (min-width: 960px){
  .about-grid{ grid-template-columns: 1fr 1fr; gap:60px; }
}
.about-visual img{ border-radius:20px; width:100%; }

/* ---------- Feature grid ---------- */
.feature-grid{
  display: flex; gap:16px; overflow-x:auto; padding-bottom:6px; scroll-snap-type: x proximity;
  -ms-overflow-style:none; scrollbar-width:none;
}
.feature-grid::-webkit-scrollbar{ display:none; }
.feature-card{
  background: rgba(255,255,255,0.02);
  border:1px solid var(--border);
  border-radius:20px;
  padding:16px;
  flex: 0 0 260px;
  scroll-snap-align: start;
}
.feature-card img{ border-radius:14px; width:100%; aspect-ratio: 1/1; object-fit:cover; margin-bottom:16px; }
.feature-card h3{ font-size:20px; margin:0 0 8px; letter-spacing:-0.02em; }
.feature-card p{ color: var(--text-77); font-size:14px; line-height:1.5; margin:0 0 14px; min-height: 42px; }

@media (min-width: 900px){
  .feature-grid{ display:grid; grid-template-columns: repeat(3, 1fr); overflow:visible; }
  .feature-card{ flex: initial; }
}
.text-link{
  font-size:14px; font-weight:600;
  background: linear-gradient(90deg, var(--blue-grad-text-1), var(--blue-3));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- Buy crypto section ---------- */
.buycrypto-section{ padding-bottom: 0; }
.two-col-cards{ display:grid; gap:16px; margin-top:32px; }
@media (min-width:800px){ .two-col-cards{ grid-template-columns:1fr 1fr; } }
.info-card{
  background: rgba(255,255,255,0.02);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.info-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; }
.info-card h3{ font-size:20px; }
.info-icon{ width:64px; height:64px; flex-shrink:0; border-radius:50%; box-shadow: 0 0 18px rgba(87,177,255,0.35); }
.info-card ul{ display:flex; flex-direction:column; gap:8px; }
.info-card li{ color: var(--text-77); font-size:14px; padding-left:18px; position:relative; }
.info-card li::before{ content:'•'; position:absolute; left:0; color: var(--blue-2); }

.flow-scroll{
  margin-top: 48px;
  overflow-x: auto;
  background: radial-gradient(ellipse at center, #0d1730 0%, var(--bg) 75%);
}
.flow-scroll img{ min-width: 1100px; width:100%; margin:0 auto; }

/* ---------- Swap calculator ---------- */
.swap-grid{ display:grid; gap:40px; margin-top:40px; align-items:center; }
@media (min-width:960px){ .swap-grid{ grid-template-columns: 1fr 1fr; gap:70px; } }

.swap-card{
  background: linear-gradient(160deg, var(--card), var(--bg));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow:hidden;
}
.swap-card::before{
  content:''; position:absolute; inset:0; border-radius:inherit;
  background: linear-gradient(180deg, rgba(0,115,255,0.35), transparent 55%);
  pointer-events:none;
}
.swap-tabs{
  position:relative; z-index:1;
  display:flex; gap:6px; background: rgba(9,8,12,0.55);
  border-radius:37px; padding:4px; margin-bottom:24px;
}
.swap-tab{
  flex:1; border:none; background:none; color:#fff; opacity:0.7;
  padding: 14px 16px; border-radius:37px; font-size:14px; font-weight:600;
}
.swap-tab.active{ background:#fff; color:#09080c; opacity:1; }
.swap-label{ position:relative; z-index:1; font-size:24px; margin-bottom:20px; }
.swap-fields{ position:relative; z-index:6; display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:24px; }
.field label{ display:block; font-size:13px; color: rgba(255,255,255,0.9); margin-bottom:10px; }
.field input{
  width:100%; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.09);
  border-radius:70px; padding:16px 20px; color:#fff; font-size:14px; outline:none;
}
.swap-card .btn-block{ position:relative; z-index:1; margin-bottom: 14px; }
.swap-card .fineprint{ position:relative; z-index:1; }

/* ---------- Custom currency / crypto select ---------- */
.ccy-select{ position:relative; z-index:1; width:100%; }
.ccy-select-btn{
  width:100%; display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.09);
  border-radius:70px; padding:10px 16px; color:#fff; font-size:14px; font-weight:600;
}
.ccy-select-btn .chevron-sm{ margin-left:auto; flex-shrink:0; color: rgba(255,255,255,0.6); transition: transform .2s ease; }
.ccy-select.open .ccy-select-btn .chevron-sm{ transform: rotate(180deg); }
.ccy-icon{
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; color:#fff;
}
.ccy-usd{ background: linear-gradient(160deg,#3ba7ff,#0057c2); }
.ccy-eur{ background: linear-gradient(160deg,#8b6bff,#4b21c4); }
.ccy-gbp{ background: linear-gradient(160deg,#4dd0e1,#00838f); }
.ccy-btc, .ccy-eth, .ccy-usdc{ background: none; }
.ccy-icon svg{ width:100%; height:100%; display:block; }

.ccy-menu{
  position:absolute; top:calc(100% + 8px); left:0; right:0;
  background: rgba(18,20,26,0.98); border:1px solid var(--border-strong);
  border-radius:18px; padding:6px; z-index:20;
  display:none; flex-direction:column; gap:2px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.ccy-select.open .ccy-menu{ display:flex; }
.ccy-option{
  display:flex; align-items:center; gap:10px; width:100%;
  background:none; border:none; color:#fff; font-size:14px; text-align:left;
  padding:10px 12px; border-radius:12px;
}
.ccy-option:hover{ background: rgba(255,255,255,0.06); }
.ccy-option.active{ background: rgba(255,255,255,0.1); font-weight:600; }

.ccy-select-crypto{ width:auto; min-width:170px; flex-shrink:0; }
.ccy-select-crypto .ccy-menu{ min-width:170px; left:auto; right:0; }

/* ---------- Estimated amount panel ---------- */
.estimate-box{
  position:relative; z-index:4;
  background: rgba(0,0,0,0.35); border:1px solid rgba(255,255,255,0.08);
  border-radius:24px; padding:20px; margin-bottom:20px;
}
.estimate-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.estimate-label{ margin:0 0 6px; font-size:13px; color: rgba(255,255,255,0.55); }
.estimate-amount{ margin:0; font-size:34px; font-weight:700; letter-spacing:-0.02em; color:#fff; }
.estimate-rate{ margin:6px 0 0; font-size:13px; color: rgba(255,255,255,0.5); }

.swap-coins-img{ margin-top: 28px; max-width: 260px; }
.check-list{ display:flex; flex-direction:column; gap:10px; margin: 16px 0 0; }
.check-list li{ font-size:14px; color: var(--text-77); padding-left:26px; position:relative; }
.check-list li::before{
  content:''; position:absolute; left:0; top:3px; width:16px; height:16px; border-radius:50%;
  background: linear-gradient(180deg,var(--blue-1),var(--blue-2));
}
.check-list li::after{
  content:''; position:absolute; left:5px; top:6px; width:6px; height:3px;
  border-left:2px solid #fff; border-bottom:2px solid #fff; transform: rotate(-45deg);
}

/* Text-block rhythm from Figma: 32px between eyebrow / heading / copy / buttons, 14px between intro and list */
.about-copy, .merchant-copy{ display:flex; flex-direction:column; align-items:flex-start; gap:32px; }
.about-copy > *, .merchant-copy > *{ margin:0; }
.about-copy .body-text + .body-text{ margin-top:-16px; }
.merchant-copy .body-text{ margin-bottom:-18px; }
.merchant-copy .check-list{ margin:0; }
.merchant-copy .hero-ctas{ margin-top:0; }

/* ---------- Merchant section ---------- */
.merchant-grid{ display:grid; gap:40px; align-items:center; }
@media (min-width:960px){ .merchant-grid{ grid-template-columns:1fr 1fr; gap:60px; } }
.merchant-visual img{ border-radius:20px; width:100%; }

/* ---------- Steps ---------- */
.steps-row{ display:grid; gap:20px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.step-card{
  background: rgba(255,255,255,0.02); border:1px solid var(--border-strong);
  border-radius: var(--radius-md); padding:28px;
}
.step-icon{ width:64px; height:64px; margin-bottom:24px; border-radius:50%; box-shadow: 0 0 18px rgba(87,177,255,0.35); }
.step-card h3{ font-size:20px; margin:0 0 8px; letter-spacing:-0.02em; }
.step-card p{ color: var(--text-77); font-size:14px; margin:0; }

/* ---------- Security grid ---------- */
.security-grid{
  display:flex; gap:16px; overflow-x:auto; padding-bottom:6px; scroll-snap-type: x proximity;
  -ms-overflow-style:none; scrollbar-width:none;
}
.security-grid::-webkit-scrollbar{ display:none; }
.security-card{
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  overflow:hidden;
  background: var(--bg);
  display:flex; flex-direction:column;
  flex: 0 0 280px;
  scroll-snap-align: start;
}
@media (min-width: 900px){
  .security-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); overflow:visible; }
  .security-card{ flex:initial; }
}
.security-card img{ width:100%; display:block; }
.security-text{ padding: 20px 28px 28px; margin-top:-6px; }
.security-text h3{ font-size:20px; margin:0 0 8px; }
.security-text p{ color: var(--text-77); font-size:14px; margin:0; }

/* ---------- Banner card ---------- */
.banner-card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  min-height: 320px;
  background-size: cover; background-position:center;
  position:relative; overflow:hidden;
  display:flex; align-items:flex-end;
  padding: 32px;
}
.banner-fade{ position:absolute; inset:0; background: linear-gradient(to top, rgba(9,8,12,0.95) 5%, transparent 55%); }
.banner-text{ position:relative; z-index:1; max-width:340px; }
.banner-text h3{ font-size:20px; margin:0 0 8px; }
.banner-text p{ color: var(--text-77); font-size:14px; margin:0; }

/* ---------- Supported assets ---------- */
.supported-grid{ display:grid; gap:32px; align-items:center; }
@media (min-width:960px){ .supported-grid{ grid-template-columns: 1fr 1.5fr; } }
.soon-card{
  margin-top:20px;
  background: linear-gradient(160deg, var(--card), var(--bg));
  border:1px solid var(--border-strong); border-radius: var(--radius-md);
  padding:20px 24px;
}
.soon-card h3{ font-size:20px; margin:0 0 8px; }
.soon-card p{ color: var(--text-77); font-size:14px; margin:0; }
.supported-visual img{ border-radius: var(--radius-md); width:100%; }

/* ---------- Pill cloud (bento) ---------- */
.pill-cloud{
  display:flex; flex-wrap:wrap; gap:16px 12px; justify-content:center; align-items:center;
  padding: 20px 0 10px;
}
.cloud-pill{
  display:inline-flex; align-items:center; padding: 16px 26px; border-radius:100px;
  font-weight:600; font-size:15px; color:#fff; white-space:nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.c-blue{ background: linear-gradient(120deg, var(--blue-1), var(--blue-2)); }
.c-purple{ background: linear-gradient(120deg, var(--purple-1), var(--purple-2)); }
.c-green{ background: linear-gradient(120deg, var(--green-1), var(--green-2)); }
.c-orange{ background: linear-gradient(120deg, var(--orange-1), var(--orange-2)); }
.c-pink{ background: linear-gradient(120deg, var(--pink-1), var(--pink-2)); }
.c-outline{ background: rgba(255,255,255,0.06); border:1px solid var(--border-strong); }
.r1{ transform: rotate(-6deg); } .r2{ transform: rotate(4deg); }
.r3{ transform: rotate(-4deg); } .r4{ transform: rotate(5deg); }
.r5{ transform: rotate(3deg); } .r6{ transform: rotate(-3deg); }
.r7{ transform: rotate(-8deg); } .r8{ transform: rotate(6deg); }
.r9{ transform: rotate(-3deg); } .r10{ transform: rotate(0); }

/* ---------- FAQ ---------- */
.faq-grid{ display:grid; gap:32px; }
@media (min-width:960px){ .faq-grid{ grid-template-columns: 0.7fr 1.3fr; } }
.faq-list{ display:flex; flex-direction:column; gap:16px; }
.faq-item{
  border:1px solid var(--border-strong); border-radius: 24px;
  background: rgba(255,255,255,0.02);
  overflow:hidden;
}
.faq-question{
  width:100%; background:none; border:none; color:#fff;
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 24px; font-size:18px; font-weight:600; letter-spacing:-0.02em; text-align:left;
}
.faq-question .chevron{ flex-shrink:0; transition: transform .25s ease; color: rgba(255,255,255,0.7); }
.faq-item.open .faq-question .chevron{ transform: rotate(180deg); }
.faq-answer{ max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-answer p{ padding: 0 24px 20px; margin:0; color: var(--text-77); font-size:14px; line-height:1.6; }
.faq-item.open .faq-answer{ max-height: 220px; }

/* ---------- Final CTA ---------- */
.final-cta{ position:relative; overflow:hidden; padding: 80px 0; }
.final-cta-bg{ position:absolute; inset:0; background-size:cover; background-position:center; }
.final-cta-fade{ position:absolute; inset:0; background: linear-gradient(90deg, rgba(9,8,12,0.95) 30%, rgba(9,8,12,0.55) 60%, rgba(9,8,12,0.15)); }
.final-cta-inner{ position:relative; z-index:1; max-width:640px; }
.final-cta-inner h2{ margin-bottom:20px; }
.final-cta-inner .body-text{ margin-bottom:28px; }
.final-cta-inner .fineprint{ max-width:520px; }

/* ---------- Footer ---------- */
.site-footer{ padding-top: 60px; border-top:1px solid rgba(255,255,255,0.06); }
.footer-grid{
  display:grid; gap:32px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
@media (min-width: 800px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}
.footer-brand p{ color: var(--text-77); font-size:14px; margin-top:16px; max-width:220px; }
.footer-col h4{ font-size:15px; font-weight:700; margin:0 0 14px; }
.footer-col h4.mt{ margin-top:20px; }
.footer-col a{ display:block; color: rgba(255,255,255,0.55); font-size:14px; padding:6px 0; }
.footer-col a:hover{ color:#fff; }
.social-row{ display:flex; gap:10px; }
.social-btn{
  width:32px; height:32px; border-radius:50%; background: rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
}
.legal-text{ border-top:1px solid rgba(255,255,255,0.06); padding: 24px 0; }
.legal-text p{ color: rgba(255,255,255,0.32); font-size:12px; line-height:1.7; margin:0 0 12px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-bottom p{ margin:0; color: rgba(217,217,217,0.7); font-size:14px; text-align:center; }

/* ---------- Utility / misc ---------- */
@media (max-width: 640px){
  .hero-ctas .btn, .final-cta-inner .hero-ctas .btn{ flex:1; }
}


/* =========================================================
   v2 — Figma comment implementation
   header behavior, motion, market slider, inner pages
   ========================================================= */

section[id]{ scroll-margin-top: 84px; }

/* ---------- Header: transparent over hero -> solid on scroll ---------- */
.site-header{
  background: transparent;
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled, .inner .site-header{
  background: rgba(9,8,12,0.84);
  border-bottom-color: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.home main{ margin-top: -74px; }
.home .hero{ padding-top: 114px; }
@media (min-width:900px){ .home .hero{ padding-top: 130px; } }

.main-nav a{ position:relative; padding: 6px 0; }
.main-nav a::after{
  content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; border-radius:2px;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-3));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after{ transform: scaleX(1); }
.main-nav a.active{ color:#fff; }
.mobile-nav a.active{ color:#fff; font-weight:600; }

/* ---------- Scroll reveal ---------- */
.js .reveal{
  opacity:0; translate: 0 28px;
  transition: opacity .8s ease, translate .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in{ opacity:1; translate: 0 0; }

/* ---------- Hero motion ---------- */
@keyframes heroIn{ from{ opacity:0; transform: translateY(26px); } to{ opacity:1; transform:none; } }
@keyframes heroDrift{ from{ transform: scale(1.03) translate3d(0,0,0); } to{ transform: scale(1.09) translate3d(-1.2%, 1.2%, 0); } }
@keyframes orbFloat{ 0%,100%{ transform: translate3d(0,0,0) scale(1); } 50%{ transform: translate3d(30px,-24px,0) scale(1.12); } }
@keyframes floatY{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
@keyframes glowPulse{ 0%,100%{ box-shadow: 0 0 0 rgba(0,115,255,0); } 50%{ box-shadow: 0 0 42px rgba(0,140,255,0.35); } }
@keyframes pillBob{ 0%,100%{ transform: rotate(var(--r,0deg)) translateY(0); } 50%{ transform: rotate(var(--r,0deg)) translateY(-8px); } }
@keyframes iconPulse{ 0%,100%{ box-shadow: 0 0 14px rgba(87,177,255,0.30); } 50%{ box-shadow: 0 0 28px rgba(87,177,255,0.60); } }
@keyframes estimateIn{ from{ opacity:0; transform: translateY(-10px) scale(.98); } to{ opacity:1; transform:none; } }
@keyframes shine{ from{ transform: translateX(-120%) skewX(-20deg); } to{ transform: translateX(220%) skewX(-20deg); } }

.js .hero-copy > *{ animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-copy > :nth-child(1){ animation-delay:.10s; }
.js .hero-copy > :nth-child(2){ animation-delay:.22s; }
.js .hero-copy > :nth-child(3){ animation-delay:.36s; }
.js .hero-copy > :nth-child(4){ animation-delay:.50s; }
.js .hero .pill-row{ animation: heroIn .9s .65s cubic-bezier(.2,.7,.2,1) both; }
.js .hero .fineprint{ animation: heroIn .9s .8s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-mobile-visual{ animation: heroIn 1s .5s cubic-bezier(.2,.7,.2,1) both; }
.hero-bg{ animation: heroDrift 26s ease-in-out infinite alternate; will-change: transform; }
.hero-mobile-visual img{ animation: floatY 8s ease-in-out infinite; }

.hero-orb{ position:absolute; border-radius:50%; filter: blur(64px); pointer-events:none; z-index:1; }
.hero-orb-1{ width:440px; height:440px; right:6%; top:16%; background: radial-gradient(circle, rgba(0,115,255,0.38), transparent 66%); animation: orbFloat 15s ease-in-out infinite; }
.hero-orb-2{ width:340px; height:340px; left:-5%; bottom:8%; background: radial-gradient(circle, rgba(123,44,255,0.32), transparent 66%); animation: orbFloat 19s ease-in-out infinite reverse; }
.hero-stars{ position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }

/* pill trust badges: hover */
.pill{ transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.pill:hover{ transform: translateY(-3px); border-color: rgba(87,177,255,0.6); box-shadow: 0 8px 24px rgba(0,115,255,0.25); }

/* ---------- Buttons: hover glow + shine ---------- */
.btn{ position:relative; overflow:hidden; }
.btn-primary::after{
  content:''; position:absolute; top:0; bottom:0; left:0; width:40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%) skewX(-20deg); pointer-events:none;
}
.btn-primary:hover{ box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset, 0 10px 36px rgba(0,140,255,0.6); }
.btn-primary:hover::after{ animation: shine .9s ease; }
.btn-ghost{ transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn-ghost:hover{ border-color: rgba(255,255,255,0.32); box-shadow: 0 8px 26px rgba(255,255,255,0.06); }

/* ---------- Card hover glow ---------- */
.feature-card, .security-card, .step-card, .info-card, .info-tile, .market-card, .soon-card, .faq-item{
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.feature-card:hover, .security-card:hover, .step-card:hover, .info-card:hover, .info-tile:hover{
  transform: translateY(-6px);
  border-color: rgba(87,140,255,0.55);
  box-shadow: 0 18px 46px rgba(0,60,255,0.22), 0 0 0 1px rgba(87,140,255,0.25);
}
.faq-item:hover{ border-color: rgba(87,140,255,0.5); box-shadow: 0 10px 30px rgba(0,60,255,0.16); }
.feature-card img{ transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature-card:hover img{ transform: scale(1.04); }
.security-card img{ transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.security-card:hover img{ transform: scale(1.04); }
.security-card{ overflow:hidden; }
.step-icon, .info-icon{ animation: iconPulse 4s ease-in-out infinite; }

/* ---------- Floating illustrations ---------- */
.about-visual img{ animation: floatY 8s ease-in-out infinite; }
.swap-coins-img{ animation: floatY 6s ease-in-out infinite; }
.supported-visual img{ animation: floatY 9s ease-in-out infinite; animation-delay: -3s; }
.merchant-visual img{ animation: glowPulse 5s ease-in-out infinite; }
.banner-card{ transition: box-shadow .4s ease; }
.banner-card:hover{ box-shadow: 0 0 60px rgba(0,90,255,0.28); }

/* pill cloud */
.cloud-pill{ animation: pillBob 6s ease-in-out infinite; transition: filter .25s ease; }
.cloud-pill:hover{ filter: brightness(1.15) saturate(1.1); }
.r1{ --r:-6deg; transform:none; animation-delay:-.4s; } .r2{ --r:4deg; transform:none; animation-delay:-1.1s; }
.r3{ --r:-4deg; transform:none; animation-delay:-2.0s; } .r4{ --r:5deg; transform:none; animation-delay:-2.7s; }
.r5{ --r:3deg; transform:none; animation-delay:-3.3s; } .r6{ --r:-3deg; transform:none; animation-delay:-4.1s; }
.r7{ --r:-8deg; transform:none; animation-delay:-4.8s; } .r8{ --r:6deg; transform:none; animation-delay:-1.6s; }
.r9{ --r:-3deg; transform:none; animation-delay:-3.7s; } .r10{ --r:0deg; transform:none; animation-delay:-2.3s; }

/* swap widget */
.swap-card{ transition: box-shadow .4s ease; }
.swap-card:hover{ box-shadow: 0 0 60px rgba(0,90,255,0.25); }
.field input{ transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .ccy-select-btn:focus-visible{ border-color: rgba(60,160,255,0.85); box-shadow: 0 0 0 3px rgba(0,140,255,0.22); outline:none; }
.estimate-box:not([hidden]){ animation: estimateIn .45s cubic-bezier(.2,.7,.2,1) both; }
.estimate-amount{ transition: color .3s ease; }
.estimate-amount.bump{ color: #5cc8ff; }

/* footer links hover underline */
.footer-col a{ position:relative; width:fit-content; transition: color .2s ease; }
.footer-col a:not(.social-btn)::after{
  content:''; position:absolute; left:0; bottom:2px; height:1px; width:100%; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.footer-col a:not(.social-btn):hover::after{ transform: scaleX(1); }
.social-btn{ transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.social-btn:hover{ transform: translateY(-3px); background: rgba(0,115,255,0.35); box-shadow: 0 8px 20px rgba(0,115,255,0.35); }
.legal-link{ color:#fff; font-weight:700; text-decoration: underline; text-underline-offset: 3px; }
.legal-link:hover{ color: var(--blue-3); }

/* ---------- Live market slider ---------- */
.market-wrap{ position:relative; }
.market-viewport{
  overflow-x:auto; overflow-y:hidden; -ms-overflow-style:none; scrollbar-width:none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  padding: 8px 0;
}
.market-viewport::-webkit-scrollbar{ display:none; }
.market-track{ display:flex; gap:16px; width:max-content; }
.market-track .market-card{ flex: 0 0 248px; }
.market-card:hover{ transform: translateY(-4px); border-color: rgba(87,140,255,0.5); box-shadow: 0 14px 36px rgba(0,60,255,0.2); }
.market-card-top{ min-height:32px; }
.market-card-top .mk-icon{ width:28px; height:28px; border-radius:50%; object-fit:cover; flex-shrink:0; background: rgba(255,255,255,0.08); }
.market-card-top .mk-fx{ width:28px; height:28px; border-radius:50%; overflow:hidden; flex-shrink:0; display:inline-flex; box-shadow: 0 0 0 1px rgba(255,255,255,0.14); }
.market-card-top .mk-fx svg{ width:100%; height:100%; display:block; }
.mk-price{ transition: color .4s ease; }
.mk-price.flash-up{ color:#3ddc97; }
.mk-price.flash-down{ color:#ff6b7a; }
.mk-chg.up{ color:#3ddc97; }
.mk-chg.down{ color:#ff6b7a; }
.market-card .spark{ width:74px; height:26px; }
.market-card .spark polyline{ fill:none; stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; }
.market-card .spark.up polyline{ stroke:#3ddc97; }
.market-card .spark.down polyline{ stroke:#ff6b7a; }
.market-card.is-loading .price{ opacity:.45; }
.market-card.is-error .price{ opacity:.45; }
.market-arrow{
  position:absolute; top:50%; translate: 0 -50%; z-index:3;
  width:42px; height:42px; border-radius:50%; display:none; align-items:center; justify-content:center;
  background: rgba(20,22,30,0.92); border:1px solid rgba(255,255,255,0.16); color:#fff;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.market-arrow:hover{ background: rgba(0,115,255,0.6); box-shadow: 0 8px 22px rgba(0,115,255,0.4); }
.market-arrow.prev{ left:-6px; } .market-arrow.next{ right:-6px; }
@media (min-width:900px){ .market-arrow{ display:flex; } }
.market-note{ margin-top: 12px; }

/* ---------- Inner pages ---------- */
.inner main{ min-height: 60vh; }
.page-hero{
  position:relative; padding: 76px 0 40px; text-align:left; overflow:hidden;
  background: radial-gradient(ellipse 60% 90% at 18% 0%, rgba(0,80,255,0.28), transparent 70%);
}
.page-hero h1{ font-size: clamp(34px, 5.5vw, 56px); line-height:1.05; margin:0 0 20px; }
.page-hero h1 span{ background: linear-gradient(90deg,#fff,#a9c4ff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.page-lead{ font-size:18px; line-height:1.6; color:#fff; max-width:720px; margin:0 0 14px; }
.page-sub{ font-size:15px; line-height:1.7; color: var(--text-77); max-width:760px; margin:0; }
.page-hero-sm{ padding: 56px 0 24px; }
.crumbs{ margin:0 0 18px; font-size:14px; }
.crumbs a{ color: var(--blue-3); }
.crumbs a::before{ content:'← '; }
.doc-meta{ margin:10px 0 0; color: var(--text-54); font-size:14px; }
.container.narrow{ max-width: 900px; }

.info-tiles{ display:grid; gap:20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info-tile{ background: rgba(255,255,255,0.03); border:1px solid var(--border-strong); border-radius: 24px; padding: 26px; }
.info-tile h3{ font-size:14px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color: var(--blue-3); margin:0 0 12px; }
.info-tile p{ margin:0 0 8px; }
.tile-strong{ font-size:17px; font-weight:600; line-height:1.45; letter-spacing:-0.01em; }
.tile-strong a{ color:#fff; text-decoration: underline; text-underline-offset:3px; }
.tile-muted{ color: var(--text-54); font-size:14px; line-height:1.55; }

.form-card{
  background: linear-gradient(160deg, rgba(20,23,31,0.95), rgba(9,8,12,0.95));
  border:1px solid var(--border-strong); border-radius: 32px; padding: 32px; position:relative;
}
.form-grid{ display:grid; gap:0 20px; grid-template-columns: 1fr; }
@media (min-width:700px){ .form-grid{ grid-template-columns: 1fr 1fr; } }
.form-field{ margin-bottom: 20px; }
.form-field label, .label-like{ display:block; font-size:14px; font-weight:500; margin-bottom:8px; color: rgba(255,255,255,0.92); }
.req{ color:#ff7a8a; font-weight:700; }
.opt{ color: var(--text-38); font-style:normal; font-weight:400; font-size:13px; }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel], .form-field input[type=password],
.form-field select, .form-field textarea{
  width:100%; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.12);
  border-radius:16px; padding:14px 16px; color:#fff; font: inherit; font-size:15px; outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field textarea{ resize: vertical; min-height:140px; line-height:1.55; }
.form-field input::placeholder, .form-field textarea::placeholder{ color: rgba(255,255,255,0.32); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  border-color: rgba(60,160,255,0.85); box-shadow: 0 0 0 3px rgba(0,140,255,0.22); background: rgba(255,255,255,0.06);
}
.form-field select{
  appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right 16px center;
}
.form-field select option{ background:#14171f; color:#fff; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea{ border-color: rgba(255,110,130,0.8); }
.field-error{ color:#ff8a98; font-size:13px; margin:7px 0 0; }
.field-error:empty{ display:none; }
.field-hint{ color: var(--text-38); font-size:13px; margin:8px 0 0; }
.hint-tight{ margin:-10px 0 18px; }
.file-drop{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; cursor:pointer; margin:0 !important;
  border:1.5px dashed rgba(255,255,255,0.22); border-radius:16px; padding:16px; color: rgba(255,255,255,0.85);
  transition: border-color .2s ease, background .2s ease;
}
.file-drop:hover{ border-color: rgba(60,160,255,0.75); background: rgba(0,115,255,0.06); }
.file-name{ color: var(--blue-3); font-size:14px; word-break: break-all; }
.check-row{ display:flex !important; align-items:flex-start; gap:12px; font-weight:400 !important; color: var(--text-77) !important; font-size:14px; line-height:1.55; cursor:pointer; }
.check-row input{ margin-top:3px; width:18px; height:18px; flex-shrink:0; accent-color:#0d8bff; }
.check-row a, .auth-switch a, .auth-forgot a{ color: var(--blue-3); text-decoration: underline; text-underline-offset:3px; }
.form-banner{ padding:12px 16px; border-radius:14px; font-size:14px; line-height:1.5; margin:0 0 16px; }
.form-banner.is-error{ background: rgba(255,90,110,0.1); border:1px solid rgba(255,90,110,0.4); color:#ff9aa8; }
.form-banner.is-info{ background: rgba(0,140,255,0.1); border:1px solid rgba(0,140,255,0.4); color:#9bd0ff; }
.form-success{ text-align:center; padding: 34px 12px; }
.form-success h3{ font-size:26px; margin:16px 0 10px; }
.form-success p{ color: var(--text-77); max-width:520px; margin:0 auto; line-height:1.6; }
.success-icon{ width:72px; height:72px; border-radius:50%; margin:0 auto; display:flex; align-items:center; justify-content:center; color:#fff; background: linear-gradient(160deg,#00e58d,#00a86b); box-shadow: 0 0 40px rgba(0,229,141,0.35); animation: estimateIn .5s ease both; }

.notice-card{ border:1px solid rgba(255,159,28,0.35); background: linear-gradient(160deg, rgba(255,159,28,0.08), rgba(255,255,255,0.02)); border-radius:24px; padding:28px; }
.notice-card h2{ font-size:22px; margin:0 0 14px; color:#ffc46b; }
.notice-card p{ color: var(--text-77); line-height:1.7; margin:0 0 10px; font-size:15px; }
.notice-card p:last-child{ margin-bottom:0; }
.notice-section{ padding-top: 0; }

/* auth */
.auth-page{ position:relative; min-height: calc(100vh - 74px); display:flex; align-items:center; padding: 56px 0 72px; overflow:hidden; }
.auth-bg{ position:absolute; inset:0; background-size:cover; background-position: 72% 18%; opacity:.4; }
.auth-bg::after{ content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 50% 40%, rgba(9,8,12,0.25), var(--bg) 78%); }
.auth-page .container{ position:relative; z-index:1; width:100%; }
.auth-card{
  max-width:470px; margin:0 auto; padding:36px;
  background: rgba(14,16,24,0.84); border:1px solid var(--border-strong); border-radius:32px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,80,255,0.12);
  animation: heroIn .8s cubic-bezier(.2,.7,.2,1) both;
}
.auth-logo{ display:inline-flex; align-items:center; gap:10px; margin-bottom:22px; }
.auth-card h1{ font-size:30px; margin:0 0 8px; }
.auth-lead{ color: var(--text-77); font-size:15px; line-height:1.6; margin:0 0 26px; }
.auth-forgot{ text-align:right; margin:-6px 0 18px; font-size:14px; }
.auth-switch{ text-align:center; margin:22px 0 0; font-size:14px; color: var(--text-77); }
.auth-note{ text-align:center; margin:14px 0 0; font-size:12.5px; color: var(--text-38); }

/* legal documents */
.legal-layout{ display:grid; gap:28px; }
@media (min-width:1000px){ .legal-layout{ grid-template-columns: 290px minmax(0,1fr); gap:56px; } }
.legal-toc{ align-self:start; }
@media (min-width:1000px){ .legal-toc{ position:sticky; top:96px; max-height: calc(100vh - 120px); overflow:auto; padding-right:8px; } }
.legal-toc details{ background: rgba(255,255,255,0.03); border:1px solid var(--border-strong); border-radius:20px; padding: 16px 18px; }
.legal-toc summary{ cursor:pointer; font-weight:600; font-size:15px; list-style:none; }
.legal-toc summary::-webkit-details-marker{ display:none; }
.legal-toc ol{ margin:14px 0 0; padding-left:22px; display:flex; flex-direction:column; gap:7px; color: var(--text-38); font-size:13.5px; line-height:1.4; }
.legal-toc ol a{ color: var(--text-77); }
.legal-toc ol a:hover{ color:#fff; }
.legal-doc{ max-width: 840px; }
.legal-doc h2{ font-size: clamp(22px, 2.6vw, 28px); margin: 52px 0 14px; padding-top:22px; border-top:1px solid var(--border); scroll-margin-top: 96px; }
.legal-doc h2:first-child{ margin-top:0; }
.legal-doc h3{ font-size:19px; margin: 30px 0 10px; scroll-margin-top: 96px; }
.legal-doc h4{ font-size:16px; font-weight:600; margin: 22px 0 6px; color:#fff; }
.legal-doc p{ color: var(--text-77); line-height:1.78; margin: 0 0 14px; font-size:15.5px; }
.legal-doc ul{ margin: 0 0 18px; padding-left: 22px; display:flex; flex-direction:column; gap:8px; list-style: none; }
.legal-doc li{ color: var(--text-77); line-height:1.7; font-size:15.5px; position:relative; padding-left:8px; }
.legal-doc li::before{ content:''; position:absolute; left:-14px; top:.72em; width:6px; height:6px; border-radius:50%; background: var(--blue-2); }
.legal-doc a{ color: var(--blue-3); text-decoration: underline; text-underline-offset:3px; word-break: break-word; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal{ opacity:1; translate:none; }
  .hero-stars{ display:none; }
}

/* ---------- "Coming soon" popup ---------- */
.soon-modal{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; }
.soon-modal[hidden]{ display:none; }
.soon-backdrop{ position:absolute; inset:0; background: rgba(4,4,10,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity:0; transition: opacity .25s ease; }
.soon-dialog{
  position:relative; width:min(420px,100%); text-align:center; padding:40px 32px 32px;
  background: linear-gradient(160deg, rgba(22,26,38,0.98), rgba(9,8,12,0.98));
  border:1px solid var(--border-strong); border-radius:32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 70px rgba(0,100,255,0.22);
  opacity:0; transform: translateY(18px) scale(.96);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.soon-modal.open .soon-backdrop{ opacity:1; }
.soon-modal.open .soon-dialog{ opacity:1; transform:none; }
.soon-icon{ width:68px; height:68px; margin:0 auto 20px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; background: linear-gradient(160deg,#3ba7ff,#0057c2); box-shadow: 0 0 34px rgba(0,140,255,0.45); }
.soon-dialog h3{ font-size:28px; margin:0 0 10px; }
.soon-dialog p{ color: var(--text-77); line-height:1.6; margin:0 0 26px; font-size:15px; }
.soon-x{ position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); color:#fff; }
.soon-x:hover{ background: rgba(255,255,255,0.12); }

/* ---------- Footer social icons (Figma: plain white 24px glyphs, 16px gap) ---------- */
.social-row{ display:flex; align-items:center; gap:16px; margin-top:4px; }
.footer-col .social-btn{
  width:24px; height:24px; padding:0; border-radius:0; background:none; box-shadow:none;
  display:inline-flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0;
}
.footer-col .social-btn svg{ width:24px; height:24px; display:block; }
.footer-col .social-btn:hover{ transform:none; color:#fff; background:none; box-shadow:none; filter:none; }
.footer-col .social-btn{ cursor:default; }

/* Footer: six columns as in Figma (Brand, Platform, Services, Legal, Support, Follow Us) */
@media (min-width: 800px){
  .footer-grid{ grid-template-columns: 1.35fr 1fr 1fr 1.25fr 1.05fr auto; gap:28px; }
}
@media (min-width: 800px) and (max-width: 1099px){
  .footer-grid{ grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
.footer-follow .social-row{ margin-top:0; }

/* spam honeypot: invisible to people, still present for bots */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

.estimate-fee{ margin:6px 0 0; font-size:12.5px; color:#ffc46b; }
.estimate-fee:empty{ display:none; }

/* ---------- Brand: real lockup, Figma header height (90px) ---------- */
:root{ --header-h: 68px; }
@media (min-width: 900px){ :root{ --header-h: 90px; } }
.header-inner{ height: var(--header-h); }
.home main{ margin-top: calc(-1 * var(--header-h)); }
.home .hero{ padding-top: calc(var(--header-h) + 40px); }
@media (min-width:900px){ .home .hero{ padding-top: calc(var(--header-h) + 56px); } }
.auth-page{ min-height: calc(100vh - var(--header-h)); }
section[id]{ scroll-margin-top: calc(var(--header-h) + 8px); }
.logo{ gap:0; }
.logo-img{ height:46px; width:auto; display:block; }
@media (min-width: 900px){ .logo-img{ height:60px; } }
.mobile-menu-top .logo-img{ height:44px; }
.site-footer .logo-img{ height:64px; }
.auth-logo .logo-img{ height:56px; }

/* =========================================================
   Figma fidelity: fonts, buttons, header controls
   ========================================================= */
:root{ --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body{ font-family: var(--font); }
.site-footer, .site-footer input, .market-card .price{ font-family: 'Inter', system-ui, sans-serif; }
.market-card .price{ font-weight:300; }

/* headline glow (Figma stacks soft #0123ff shadows behind headings) */
h1, h2, .h1, .h2{ text-shadow: 0 0 2px rgba(1,35,255,.04), 0 0 5px rgba(1,35,255,.06), 0 0 10px rgba(1,35,255,.08), 0 0 18px rgba(1,35,255,.10), 0 0 33px rgba(1,35,255,.12); }
.grad-text, .grad-text-inline{ text-shadow:none; filter: drop-shadow(0 0 10px rgba(1,35,255,.35)); }

.main-nav{ gap:24px; }
.main-nav a{ color:#fff; }

.btn{ min-height:51px; padding: 0 28px; letter-spacing:0; }
.btn-sm{ min-height:44px; height:44px; padding: 0 24px; font-size:14px; }

/* Sign Up / primary: bright blue pill, pale rim, grain, soft glow below */
.btn-primary{
  color:#fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #0a7cff 0%, #0e9cff 100%);
  border: 1px solid #77c0ff;
  box-shadow:
    inset 0 1px 5px 1px rgba(210,234,255,.85),
    inset 0 0 18px 1px rgba(150,205,255,.45),
    0 4px 5px rgba(87,177,255,.15),
    0 10px 13px rgba(87,177,255,.22),
    0 24px 32px rgba(87,177,255,.19),
    0 42px 100px rgba(87,177,255,.34);
}
.btn-primary:hover{
  box-shadow:
    inset 0 1px 5px 1px rgba(225,240,255,.95),
    inset 0 0 20px 2px rgba(170,215,255,.55),
    0 4px 6px rgba(87,177,255,.22),
    0 12px 16px rgba(87,177,255,.30),
    0 28px 38px rgba(87,177,255,.26),
    0 46px 110px rgba(87,177,255,.45);
}

/* Login / secondary and the globe: dark grey with a thin grey outline */
.btn-ghost, .icon-btn{
  background: #232327;
  border: 1.5px solid rgba(255,255,255,.26);
  box-shadow: 0 3px 6px rgba(0,0,0,.30), 0 11px 11px rgba(0,0,0,.20);
}
.btn-ghost:hover{ background:#2b2b31; border-color: rgba(255,255,255,.4); box-shadow: 0 8px 26px rgba(0,0,0,.4); }
.icon-btn:hover{ background:#2b2b31; }
@media (min-width: 900px){ .header-actions .icon-btn.lang-btn, #langBtn{ width:44px; height:44px; } }
.mobile-nav a{ color:#fff; }

/* ---------- Hero layout as in Figma: 1509px-wide picture, faded on the left, top and bottom ---------- */
@media (min-width: 900px){
  .hero-bg{
    inset: 0 auto auto 0; width:100%; height: 56.4vw;
    background-size: 104.8% auto; background-position: -1.6% 0; background-repeat: no-repeat;
    opacity:1; animation:none;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .hero-bg::before{ content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(9,8,12,.94) 0%, rgba(9,8,12,.62) 32%, rgba(9,8,12,0) 60%); }
  .hero-bg::after{ content:''; position:absolute; left:0; right:0; top:0; height:17%; background: linear-gradient(180deg, rgba(9,8,12,.85), rgba(9,8,12,0)); }
  .hero-inner{ padding-bottom: 150px; }
  .hero-fade-bottom{ display:none; }
}

/* =========================================================
   Figma fidelity: colours, borderless cards, built-for grid, final banner
   ========================================================= */
:root{ --blue-grad-text-1:#0073ff; --blue-grad-text-2:#6cc7ff; }

/* eyebrow labels are blue in the design */
.eyebrow{
  background: linear-gradient(90deg, #0073ff, #6cc7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display:inline-block; font-weight:400; letter-spacing:0;
}
.hero-desc, .body-text, .section-head p, .page-lead{ color:#fff; }

/* Product cards: no box, big rounded picture, text underneath */
.feature-card{ background:none; border:0; padding:0; border-radius:0; box-shadow:none; }
.feature-card:hover{ transform: translateY(-6px); border-color: transparent; box-shadow:none; }
.feature-card img{ border-radius: 18.3%; aspect-ratio: 339 / 338; margin-bottom:16px; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
.feature-card:hover img{ transform:none; box-shadow: 0 20px 50px rgba(20,60,255,.38); }
.feature-card h3{ font-size:20px; letter-spacing:-0.02em; margin:0 0 12px; }
.feature-card p{ max-width:241px; min-height:0; color: rgba(255,255,255,.77); font-size:15px; line-height:1.27; margin:0 0 14px; }
.feature-grid{ gap: 24px; }
@media (min-width: 900px){ .feature-grid{ gap: 44px 30px; } }

/* "Built for" — the heading is the first cell of the grid on desktop */
.builtfor-head-cell{ display:none; }
@media (min-width: 900px){
  .builtfor-head-mobile{ display:none; }
  .builtfor-head-cell{ display:block; align-self:start; padding-top: 110px; }
  .builtfor-head-cell h2{ font-size:40px; line-height:1; margin:0 0 20px; }
  .builtfor-head-cell p{ margin:0; font-size:14px; line-height:1.4; max-width:360px; color:#fff; }
}
#features{ background: radial-gradient(ellipse 60% 42% at 50% 92%, rgba(28,44,255,.28), transparent 72%); }

/* Final banner: wide headline, image on the right, lighter overlay */
.final-cta{ padding: 0; min-height: 620px; display:flex; align-items:center; }
.final-cta-bg{ background-size: cover; background-position: 70% center; }
.final-cta-fade{
  background:
    linear-gradient(90deg, #09080c 0%, rgba(9,8,12,.72) 30%, rgba(9,8,12,.18) 62%, rgba(9,8,12,0) 82%),
    linear-gradient(180deg, #09080c 0%, rgba(9,8,12,0) 34%, rgba(9,8,12,0) 66%, #09080c 100%);
}
.final-cta-inner{ width:100%; max-width: calc(var(--container) + 292px); padding-top: 80px; padding-bottom: 80px; }
.final-cta-inner h2, .final-cta-inner .body-text, .final-cta-inner .fineprint{ max-width: 720px; }
.final-cta-inner h2{ font-size: clamp(34px, 5.2vw, 64px); line-height:1.05; margin-bottom: 24px; }
.final-cta-inner .body-text{ font-size:14px; line-height:1.45; margin-bottom: 32px; }
.final-cta-inner .fineprint{ color: rgba(255,255,255,.71); font-size:14px; margin-top: 32px; }

/* ---------- Hero picture = Figma's own render of the hero frame (glows and fades are baked in) ---------- */
@media (min-width: 900px){
  .hero-bg{
    height: 55.9vw; background-size: 100% 100%; background-position: 0 0; background-repeat:no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  }
  .hero-bg::before, .hero-bg::after{ display:none; }
  .hero-orb{ display:none; }
}
@media (max-width: 899px){
  .hero-bg{ background-image: none !important; }
  .hero-mobile-visual img{ aspect-ratio: 16 / 11; object-fit: cover; object-position: 80% 58%; }
}

/* keep the hero at least as tall as the scaled picture so it is never cut off on wide screens */
@media (min-width: 900px){
  .hero{ min-height: 57vw; display:flex; flex-direction:column; }
  .hero-inner{ flex:1; }
}

/* wider than the 1440px design: keep the picture at its designed size, centred, with soft side fades */
@media (min-width: 1441px){
  .hero{ min-height: 0; }
  .hero-bg{
    left:50%; right:auto; width:1440px; height:805px; transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 96.5%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 96.5%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-composite: intersect;
  }
}
.hero > .container{ width:100%; }

/* =========================================================
   Figma fidelity: About, What You Can Do, Buy Crypto
   ========================================================= */

/* section headings are 40px in the design (they were unstyled h2s) */
.section-head h2{ font-size: clamp(28px, 4.5vw, 40px); line-height:1; margin:0 0 16px; }
.section-head.center{ max-width: 960px; }
.section-head p{ font-size:14px; line-height:1.35; color:#fff; }

/* About */
#about{ background: radial-gradient(ellipse 34% 46% at 30% 50%, rgba(44,40,224,.5), transparent 72%), radial-gradient(ellipse 40% 30% at 60% 105%, rgba(30,40,200,.25), transparent 70%); }
.about-copy h2{ line-height:1; }
.about-copy .body-text{ font-size:15px; line-height:1.3; }
@media (min-width: 960px){
  .about-grid{ grid-template-columns: minmax(0,533px) minmax(0,566px); justify-content: space-between; gap:40px; }
}
.about-visual img{ width:100%; height:auto; aspect-ratio: 1132 / 960; border-radius:0; }

/* What You Can Do: cards are 370px wide with 16px inner padding, links underlined */
#services{ background: radial-gradient(ellipse 34% 20% at 92% 12%, rgba(42,48,255,.28), transparent 72%), radial-gradient(ellipse 30% 22% at 6% 88%, rgba(30,40,190,.2), transparent 72%); }
.feature-card{ padding:16px; }
.feature-grid{ gap:20px 19px; }
@media (min-width: 900px){ .feature-grid{ gap:20px 19px; } }
.text-link{ text-decoration: underline; text-underline-offset: 3px; }

/* Buy Crypto: compact 174px cards */
.two-col-cards{ gap:20px; margin-top:40px; }
.info-card{ padding: 20px 20px 27px; min-height:174px; display:flex; flex-direction:column; border-radius:29px; }
.info-card-head{ margin-bottom: 6px; align-items:flex-start; }
.info-card h3{ padding-top:7px; }
.info-card ul{ margin-top:auto; gap:0; }
.info-card li{ line-height:19px; font-size:15px; color: rgba(255,255,255,.77); }
.buycrypto-section > .container{ position:relative; z-index:2; }

/* the flow picture sits behind the cards and fades in at the top and bottom (Figma: image + two 159px fades) */
.flow-scroll{ position:relative; z-index:1; margin-top: -120px; overflow-x:auto; background:none; }
.flow-scroll img{
  min-width:1100px; width:100%; margin:0 auto; height:auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}
@media (max-width: 899px){ .flow-scroll{ margin-top:-40px; } }
@media (min-width: 900px){ #services .feature-card{ min-height: 492px; } }

/* =========================================================
   Figma fidelity pass 3: dividers + remaining sections
   ========================================================= */

/* ---- divider lines: 1px, white at 10%, 1148px wide, centred (Figma Line nodes) ---- */
.line-top{ position:relative; }
.line-top::before{
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:min(1148px, calc(100% - 48px)); height:1px; background: rgba(255,255,255,.10); z-index:3; pointer-events:none;
}
#services::after{
  content:''; position:absolute; bottom:97px; left:50%; transform:translateX(-50%);
  width:min(1148px, calc(100% - 48px)); height:1px; background: rgba(255,255,255,.10); pointer-events:none;
}
/* footer: line above the footer, and two stronger (14%) lines inside it */
.site-footer{ border-top:0; position:relative; }
.site-footer::before{ content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:min(1148px, calc(100% - 48px)); height:1px; background: rgba(255,255,255,.10); }
.legal-text, .footer-bottom{ border-top:0; position:relative; }
.legal-text::before, .footer-bottom::before{ content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:min(1148px, calc(100% - 48px)); height:1px; background: rgba(255,255,255,.14); }

/* ---- Swap ---- */
@media (min-width: 1100px){
  .swap-grid{ grid-template-columns: 608px 1fr; gap: 73px; align-items:start; position:relative; margin-top:64px; }
  .swap-copy{ padding-top: 79px; }
  .swap-copy .h3{ font-size:40px; line-height:1; max-width: 400px; margin-bottom: 24px; }
  .swap-coins-img{ position:absolute; left: 914px; top: 286px; width:340px; max-width:none; margin:0; z-index:3; pointer-events:none; }
  #swap{ z-index:2; }
}
.swap-copy .body-text{ font-size:14px; line-height:1.4; max-width: 400px; color:#fff; margin-bottom: 28px; }
.swap-card{ padding:20px; border-radius:21px; background: linear-gradient(180deg, rgba(20,22,32,.96), rgba(9,8,12,.96)); }
.swap-card::before{
  background:
    radial-gradient(ellipse 90% 30% at 50% 6%, rgba(0,10,255,.95), rgba(0,10,255,.35) 60%, transparent 100%),
    radial-gradient(ellipse 45% 22% at 92% 100%, rgba(150,160,215,.28), transparent 100%);
}
.swap-tabs{ width:66%; margin:0 auto 24px; }
.swap-label{ text-align:center; font-size:32px; margin-bottom:22px; }

/* plain bullets instead of blue ticks (Figma uses simple dots) */
.check-list{ gap:0; margin-top:0; }
.check-list li{ font-size:14px; line-height:19px; color:#fff; padding-left:20px; }
.check-list li::before{ width:4px; height:4px; top:8px; left:6px; background:#fff; border-radius:50%; }
.check-list li::after{ display:none; }

/* ---- Merchants: big picture bleeding off the right edge with soft fades ---- */
@media (min-width: 1100px){
  #merchants{ overflow:hidden; }
  .merchant-grid{ grid-template-columns: 533px 1fr; gap:0; align-items:center; }
  .merchant-copy{ position:relative; z-index:2; }
  .merchant-visual{ margin-left:-64px; width:878px; position:relative; z-index:1; }
  .merchant-visual img{ width:862px; max-width:none; margin-left:16px; border-radius:0; }
}
.merchant-visual img{
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}

/* ---- 3 Steps ---- */
.steps-row{ gap:20px 19px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 899px){ .steps-row{ grid-template-columns: 1fr; } }
.step-card{ position:relative; min-height:211px; padding:16px; border-radius:29px; background: rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.14); display:flex; flex-direction:column; justify-content:flex-end; }
.step-icon{ position:absolute; top:16px; right:16px; margin:0; }
.step-card h3{ max-width:263px; font-size:20px; line-height:1; margin:0 0 8px; }
.step-card p{ font-size:15px; line-height:1.27; }
.step-card:hover{ transform:none; }

/* ---- Security: picture is the card background, fading into the text area ---- */
.security-grid{ gap:20px 19px; }
.security-card{ position:relative; border-radius:42px; border:2px solid rgba(255,255,255,.19); background:#09080c; min-height:520px; }
.security-card::after{ content:''; position:absolute; left:0; right:0; top:255px; height:150px; background: linear-gradient(to top, #09080c 4%, rgba(9,8,12,0) 100%); pointer-events:none; }
.security-text{ position:relative; z-index:2; padding: 19px 32px 32px; margin-top:0; }
.security-text h3{ margin:0 0 16px; }
.security-text p{ font-size:15px; line-height:1.27; }
#security{ background: radial-gradient(ellipse 45% 12% at 50% 96%, rgba(30,40,200,.28), transparent 72%); padding-bottom:72px; }

/* ---- Infrastructure banner ---- */
.section-infra{ padding-top:68px; padding-bottom:0; background: radial-gradient(ellipse 50% 22% at 50% 92%, rgba(28,38,210,.32), transparent 74%); }
.banner-card{
  min-height:400px; align-items:center; background-size:100% 100% !important; background-position:center;
  border:1px solid rgba(255,255,255,.19); border-radius:42px;
}
.banner-fade{ background: linear-gradient(90deg, #09080c 0%, rgba(9,8,12,.92) 20%, rgba(9,8,12,.35) 42%, rgba(9,8,12,0) 58%); }
.banner-text{ max-width:310px; }
.banner-text h3{ max-width:250px; margin:0 0 16px; }
@media (max-width: 899px){
  .banner-card{ background-size:cover !important; background-position: 68% center; align-items:flex-end; }
  .banner-fade{ background: linear-gradient(0deg, #09080c 4%, rgba(9,8,12,0) 70%); }
}

/* ---- Supported Assets ---- */
.section-assets{ overflow:hidden; background: radial-gradient(ellipse 34% 30% at 62% 0%, rgba(40,40,230,.4), transparent 72%); }
.supported-copy .h2{ font-size:40px; line-height:1; margin-bottom:16px; }
.supported-copy .body-text{ font-size:14px; line-height:1.35; color:#fff; }
.soon-card{
  position:relative; overflow:hidden; margin-top:40px; padding:24px; border-radius:21px;
  background: rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.soon-card::before{ content:''; position:absolute; left:0; right:0; bottom:0; height:55%; background: linear-gradient(to top, rgba(0,20,255,.9), rgba(0,20,255,0)); pointer-events:none; }
.soon-card > *{ position:relative; }
.soon-card p{ color:#fff; font-size:14px; }
.supported-visual img{
  border-radius:0; width:100%; height:auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
}
@media (min-width: 1100px){
  .supported-grid{ grid-template-columns: 369px 1fr; gap:43px; align-items:center; }
  .supported-visual img{ width:882px; max-width:none; }
}

/* ---- Everything you need: big scattered pills (desktop) ---- */
.section-bento{ background: radial-gradient(ellipse 36% 26% at 50% 0%, rgba(40,44,235,.42), transparent 72%); }
.cloud-pill{ font-size:20px; font-weight:600; letter-spacing:-.4px; border:1px solid rgba(255,255,255,.32); box-shadow: inset 0 1px 8px rgba(255,255,255,.35), 0 0 34px var(--glow, rgba(0,140,255,.5)); }
.c-blue{ --glow: rgba(0,140,255,.55); } .c-purple{ --glow: rgba(190,40,240,.5); } .c-green{ --glow: rgba(0,230,140,.5); }
.c-orange{ --glow: rgba(255,90,0,.5); } .c-pink{ --glow: rgba(255,30,150,.5); } .c-outline{ --glow: rgba(255,255,255,.06); background: rgba(40,44,46,.9); }
@media (min-width: 1240px){
  .pill-cloud{ display:block; position:relative; width:1148px; height:300px; margin:24px auto 0; padding:0; }
  .cloud-pill{ position:absolute; left: calc(var(--cx) - var(--w) / 2); top: calc(var(--cy) - 31.5px); width: var(--w); height:63px; padding:0; justify-content:center; text-align:center; }
  .r1{ --cx:757px; --cy:160px; --w:177px; --r:-15deg; } .r2{ --cx:117px; --cy:258px; --w:234px; --r:0deg; }
  .r3{ --cx:392px; --cy:160px; --w:176px; --r:-20deg; } .r4{ --cx:873px; --cy:93px; --w:234px; --r:35deg; }
  .r5{ --cx:586px; --cy:160px; --w:176px; --r:-25deg; } .r6{ --cx:915px; --cy:223px; --w:176px; --r:38deg; }
  .r7{ --cx:293px; --cy:214px; --w:210px; --r:20deg; } .r8{ --cx:1054px; --cy:216px; --w:176px; --r:20deg; }
  .r9{ --cx:507px; --cy:258px; --w:176px; --r:0deg; } .r10{ --cx:735px; --cy:250px; --w:234px; --r:0deg; }
}

/* ---- FAQ: fully rounded pills in the design's columns ---- */
@media (min-width: 960px){ .faq-grid{ grid-template-columns: 369px 661px; gap:118px; } }
.faq-copy .h2{ font-size:40px; line-height:1; margin-bottom:16px; }
.faq-copy .body-text{ font-size:14px; color:#fff; }
.faq-list{ gap:16px; }
.faq-item{ border-radius:63px; background: rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.16); }
.faq-item.open{ border-radius:38px; }
.faq-question{ min-height:78px; padding: 18px 30px; font-size:20px; letter-spacing:-.4px; }
.faq-question .chevron{ width:24px; height:24px; color:#fff; }
.faq-answer p{ padding: 0 30px 24px; font-size:15px; }

/* the reveal animation makes .swap-copy the positioning parent, so place the coins relative to it */
@media (min-width: 1100px){
  .swap-copy{ position:relative; }
  .swap-coins-img{ left:233px; top:286px; }
}
.security-card::after{ top:290px; height:110px; }
.security-text{ padding-top:12px; }

@media (min-width: 1100px){
  .swap-grid{ margin-top:36px; }
  .swap-coins-img{ mix-blend-mode: screen; z-index:0; }
  .swap-copy .check-list{ position:relative; z-index:1; }
}
.section-infra::before{ display:none; }
.section-infra{ padding-top:40px; }

/* mobile polish */
@media (max-width: 640px){
  .hero-ctas{ flex-wrap:wrap; }
  .hero-ctas .btn{ flex:1 1 100%; white-space:normal; text-align:center; padding:0 20px; }
  .swap-card{ padding:16px; }
  .swap-fields{ grid-template-columns:1fr; }
  .swap-copy .h3{ font-size:28px; margin-bottom:16px; }
  .swap-copy .body-text{ margin-bottom:16px; }
}
.ccy-label{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
@media (max-width: 899px){
  .security-card{ min-height:0; }
  .security-card::after{ display:none; }
  .security-card img{ aspect-ratio: 370 / 395; object-fit:cover; }
}

/* =========================================================
   One continuous glow layer behind the whole page (as in Figma's page-wide "bg" group).
   Per-section glows were clipped at section edges and showed hard borders.
   ========================================================= */
#about, #services, #security, .section-infra, .section-assets, .section-bento, #features{ background:none !important; }
main{ position:relative; }
main::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse 560px 420px at 30% 1734px, rgba(44,40,224,.50), transparent 100%),
    radial-gradient(ellipse 620px 300px at 62% 2080px, rgba(30,40,200,.22), transparent 100%),
    radial-gradient(ellipse 520px 300px at 94% 2230px, rgba(42,48,255,.28), transparent 100%),
    radial-gradient(ellipse 480px 380px at 4% 3270px, rgba(30,40,190,.22), transparent 100%),
    radial-gradient(ellipse 760px 260px at 50% 7790px, rgba(30,40,200,.30), transparent 100%),
    radial-gradient(ellipse 720px 300px at 50% 8250px, rgba(28,38,210,.30), transparent 100%),
    radial-gradient(ellipse 560px 320px at 62% 8300px, rgba(40,40,230,.36), transparent 100%),
    radial-gradient(ellipse 760px 320px at 50% 10180px, rgba(30,44,255,.34), transparent 100%),
    radial-gradient(ellipse 560px 300px at 50% 10330px, rgba(40,44,235,.34), transparent 100%);
}
main > section, main > .flow-scroll{ position:relative; z-index:1; }
@media (max-width: 899px){ main::before{ opacity:.7; } }

/* Page background = Figma's own "bg" group (1,352 stars + 4 blended violet glows + haze), rendered once to an image */
main::before{
  background: #09080c url('../images/page-bg.jpg') center top / 100% 100% no-repeat;
}
@media (max-width: 899px){ main::before{ opacity:1; } }
@media (max-width: 1439px){
  main::before{ background: #09080c url('../images/page-bg.jpg') center top / 1440px auto repeat-y; }
}

/* =========================================================
   Live Market cards, as designed in Figma (272x128, blue glow at the bottom, blue sparkline)
   ========================================================= */
.market-track{ gap:20px; }
.market-track .market-card, .market-card{
  position:relative; overflow:hidden; flex:0 0 272px; height:128px; padding:24px; border-radius:24px;
  background:
    radial-gradient(ellipse 70% 42% at 46% 118%, #1010ff 0%, rgba(16,16,255,.55) 45%, rgba(16,16,255,0) 100%),
    linear-gradient(180deg, #2c313c 0%, #1a1d27 34%, #0e0f18 70%, #0a0a14 100%);
  border:0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), inset 0 1px 0 rgba(255,255,255,.28), 0 30px 60px rgba(0,0,0,.55);
  display:flex; flex-direction:column; gap:8px;
}
.market-card:hover{ transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.4), 0 24px 50px rgba(20,40,255,.35); border:0; }
.market-card-top{ display:flex; align-items:center; gap:8px; margin:0; min-height:32px; }
.market-card-top span:last-child{ font-size:24px; line-height:28px; font-weight:600; letter-spacing:-.48px; }
.market-card-top .mk-icon, .market-card-top .mk-fx{ width:32px; height:32px; border-radius:50%; background:#3a3c42; }
.market-card-top .mk-icon{ filter: grayscale(1) contrast(1.25) brightness(.72); padding:0; }
.market-card-top .mk-fx{ box-shadow:none; }
.market-card-bottom{ display:block; margin:0; }
.market-card .price{ font-family:'Inter', system-ui, sans-serif; font-size:12px; line-height:18px; font-weight:300; color: rgba(255,255,255,.8); white-space:nowrap; }
.market-card .mk-chg, .market-card .mk-chg.up, .market-card .mk-chg.down{ color: inherit; }
.market-card .spark{ position:absolute; right:12px; top:44px; width:100px; height:48px; overflow:visible; filter: drop-shadow(0 0 6px rgba(98,149,247,.55));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
.market-card .spark polyline, .market-card .spark.up polyline, .market-card .spark.down polyline{ stroke:#6295f7; stroke-width:2.6; fill:none; stroke-linejoin:round; stroke-linecap:round; }
@media (min-width:1100px){ .market-track{ width:max-content; } }
.market-viewport{ padding: 12px 0 56px; margin-bottom:-36px; }
.market-card-top .mk-icon{ filter: grayscale(1) contrast(1.15) brightness(1.02); }

/* divider between the Security cards and the Infrastructure banner (Figma "Line 10", 72px below the cards) */
#security::after{
  content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:min(1148px, calc(100% - 48px)); height:1px; background: rgba(255,255,255,.10); pointer-events:none;
}
.section-infra{ padding-top:68px; }
.section-assets::before{ display:none; }

/* soft blue glow spreading from the icon into the card (Figma) */
.step-card, .info-card{ overflow:hidden; }
.step-card{
  background:
    radial-gradient(circle 190px at calc(100% - 48px) 48px, rgba(38,132,255,.42) 0%, rgba(38,110,255,.20) 45%, rgba(38,110,255,0) 100%),
    rgba(255,255,255,.02);
}
.info-card{
  background:
    radial-gradient(circle 200px at calc(100% - 52px) 52px, rgba(38,132,255,.42) 0%, rgba(38,110,255,.20) 45%, rgba(38,110,255,0) 100%),
    rgba(255,255,255,.02);
}
.step-icon, .info-icon{ position:relative; z-index:1; }
.info-card > *, .step-card > *{ position:relative; }
.step-card > .step-icon{ position:absolute; }
.step-card{ background: radial-gradient(circle 150px at calc(100% - 48px) 48px, rgba(38,132,255,.30) 0%, rgba(38,110,255,.12) 50%, rgba(38,110,255,0) 100%), rgba(255,255,255,.02); }
.info-card{ background: radial-gradient(circle 160px at calc(100% - 52px) 52px, rgba(38,132,255,.30) 0%, rgba(38,110,255,.12) 50%, rgba(38,110,255,0) 100%), rgba(255,255,255,.02); }


/* =========================================================
   Mobile pass (<= 899px): layouts follow the Figma mobile frame
   ========================================================= */
@media (max-width: 899px){

  /* ---- Secure Infrastructure: dark rounded card, text on top, picture at the bottom ---- */
  .section-infra{ padding-top:40px; padding-bottom:16px; }
  .banner-card{
    min-height:335px; height:335px; padding:32px; align-items:flex-start;
    background-color:#09080c; background-size: 190% auto !important; background-position: 42% 100% !important; background-repeat:no-repeat;
    border-radius:42px;
  }
  .banner-fade{ background: linear-gradient(180deg, #09080c 0%, #09080c 46%, rgba(9,8,12,.55) 62%, rgba(9,8,12,0) 78%); }
  .banner-text{ max-width:none; }
  .banner-text h3{ font-size:24px; line-height:30px; letter-spacing:-.48px; max-width:271px; margin:0 0 12px; }
  .banner-text p{ font-size:15px; line-height:1.27; max-width:271px; color: rgba(255,255,255,.77); }

  /* ---- Final banner: text first, the Figma mobile picture underneath ---- */
  .final-cta{ display:block; min-height:0; padding:64px 0 0; }
  .final-cta-bg{ display:none; }
  .final-cta-fade{ display:none; }
  .final-cta-inner{ padding-top:0; padding-bottom:0; }
  .final-cta-inner h2{ font-size:44px; line-height:1; letter-spacing:-.88px; margin-bottom:20px; }
  .final-cta-inner .body-text{ font-size:15px; line-height:1.35; color:#fff; margin-bottom:28px; }
  .final-cta-inner .hero-ctas{ flex-wrap:nowrap; gap:12px; }
  .final-cta-inner .hero-ctas .btn{ flex:1 1 0; min-width:0; padding:0 16px; white-space:nowrap; }
  .final-cta-inner .fineprint{ font-size:13px; line-height:1.4; margin-top:24px; color: rgba(255,255,255,.71); }
  .final-cta::after{
    content:''; display:block; width:100%; aspect-ratio: 1100 / 1069; margin-top:8px;
    background: url('../images/final-cta-mobile.jpg') center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 88%, transparent 100%);
  }

  /* ---- Footer: two columns as in Figma ---- */
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-bottom:32px; }
  .footer-brand{ grid-column: 1 / -1; }
  .footer-brand p{ max-width:230px; font-weight:700; color:#fff; font-size:14px; line-height:20px; margin-top:12px; }
  .footer-col h4{ font-size:16px; margin-bottom:8px; }
  .footer-col a{ font-size:16px; line-height:1.3; padding:9px 0; color: rgba(255,255,255,.5); }
  .footer-follow{ grid-column: 2; }
  .site-footer .logo-img{ height:52px; }
  .legal-text, .footer-bottom{ padding-left:24px; padding-right:24px; }
  .legal-text{ padding-top:28px; padding-bottom:20px; }
  .legal-text p{ font-size:13px; line-height:1.55; color: rgba(255,255,255,.6); }
  .footer-bottom{ padding-top:22px; padding-bottom:28px; }
  .footer-bottom p{ font-size:15px; }
}
.legal-text, .footer-bottom{ padding-left:24px; padding-right:24px; }
@media (min-width:1440px){ .legal-text, .footer-bottom{ padding-left:146px; padding-right:146px; } }
.legal-text::before, .footer-bottom::before{ left:24px; right:24px; width:auto; transform:none; }
@media (min-width:1440px){ .legal-text::before, .footer-bottom::before{ left:146px; right:146px; } }

/* ---- Legal pages on phones ---- */
@media (max-width: 999px){
  .page-hero-sm{ padding:36px 0 16px; }
  .page-hero h1{ font-size:32px; }
  .legal-section{ padding-top:24px; }
  .legal-layout{ gap:20px; }
  .legal-toc details{ padding:14px 16px; }
  .legal-toc summary{ display:flex; align-items:center; justify-content:space-between; }
  .legal-toc summary::after{ content:'+'; font-size:22px; line-height:1; color: var(--text-54); }
  .legal-toc details[open] summary::after{ content:'–'; }
  .legal-toc ol{ max-height: 46vh; overflow:auto; }
  .legal-doc h2{ font-size:22px; margin:36px 0 12px; padding-top:18px; }
  .legal-doc h3{ font-size:18px; }
  .legal-doc p, .legal-doc li{ font-size:15px; line-height:1.7; }
  .legal-doc{ overflow-wrap:anywhere; }
}

/* ---- Contact / sign up / login on phones ---- */
@media (max-width: 640px){
  .form-card{ padding:20px 16px; border-radius:24px; }
  .info-tile{ padding:20px; border-radius:20px; }
  .notice-card{ padding:20px; border-radius:20px; }
  .page-hero{ padding:44px 0 24px; }
  .page-lead{ font-size:16px; }
  .auth-page{ padding:28px 0 48px; }
  .auth-card{ padding:24px 20px; border-radius:24px; }
  .auth-card h1{ font-size:26px; }
  .auth-logo .logo-img{ height:46px; }
}
@media (max-width: 899px){
  .final-cta::after{ aspect-ratio: 375 / 440; margin-top:0; background-size: 185% auto; background-position: 84% 100%; }
}
