/* ===========================
   adclearanceapps — shared styles
   =========================== */

:root{
  --bg: #0a0e14;
  --bg-soft: #10151f;
  --card: #131926;
  --card-border: #1f2735;
  --text: #e8ecf3;
  --text-dim: #97a3b6;
  --text-faint: #64707f;
  --accent: #2dd4bf;
  --accent-2: #6366f1;
  --accent-grad: linear-gradient(120deg, #2dd4bf 0%, #6366f1 100%);
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1120px;
  --shadow: 0 10px 40px rgba(0,0,0,0.35);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ line-height:1.2; margin:0 0 .5em; font-weight: 700; letter-spacing:-0.01em; }
p{ margin:0 0 1em; color: var(--text-dim); }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top banner (demo notice) ---------- */
.demo-banner{
  background: #1a2130;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.demo-banner strong{ color: var(--warn); }

/* ---------- Nav ---------- */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand .mark{
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-grad);
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  color: #06110f;
  font-size: 14px;
}
.nav-links{
  display:flex;
  gap: 28px;
  align-items:center;
}
.nav-links a{
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-cta{
  display:flex;
  gap:12px;
  align-items:center;
}
.nav-toggle{
  display:none;
  background:none;
  border:none;
  color: var(--text);
  font-size: 22px;
  cursor:pointer;
}

@media (max-width: 860px){
  .nav-links{
    position:absolute;
    top: 64px; left:0; right:0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--card-border);
    flex-direction:column;
    padding: 16px 24px;
    gap: 16px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:block; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor:pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, opacity .12s ease, background .15s;
  white-space:nowrap;
}
.btn:active{ transform: scale(0.98); }
.btn-primary{
  background: var(--accent-grad);
  color: #06110f;
}
.btn-primary:hover{ opacity: .92; }
.btn-ghost{
  background: transparent;
  border-color: var(--card-border);
  color: var(--text);
}
.btn-ghost:hover{ background: var(--card); }
.btn-block{ width:100%; }
.btn-lg{ padding: 14px 28px; font-size: 15px; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

/* ---------- Hero ---------- */
.hero{
  padding: 96px 24px 72px;
  text-align:center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(45,212,191,0.12) 0%, rgba(10,14,20,0) 70%);
}
.hero .eyebrow{
  display:inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1{
  font-size: clamp(32px, 5.5vw, 56px);
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero h1 .grad{
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead{
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.hero-ctas{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom: 48px;
}
.hero-stats{
  display:flex;
  justify-content:center;
  gap: 48px;
  flex-wrap:wrap;
  margin-top: 40px;
}
.hero-stats .stat{ text-align:center; }
.hero-stats .stat .num{ font-size: 26px; font-weight:800; }
.hero-stats .stat .lbl{ font-size: 13px; color: var(--text-faint); }

/* ---------- Sections ---------- */
section{ padding: 72px 24px; }
.section-head{ text-align:center; max-width: 620px; margin: 0 auto 48px; }
.section-head .eyebrow{
  color: var(--accent);
  font-size: 12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.section-head h2{ font-size: clamp(26px, 4vw, 36px); }

.grid{
  display:grid;
  gap: 20px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon{
  width: 44px; height:44px;
  border-radius: 10px;
  background: rgba(45,212,191,0.12);
  color: var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-size: 20px;
  margin-bottom: 18px;
}
.card h3{ font-size: 17px; }
.card p{ font-size: 14px; margin-bottom:0; }

.steps{ counter-reset: step; }
.step{ position:relative; padding-left: 56px; }
.step::before{
  counter-increment: step;
  content: counter(step);
  position:absolute; left:0; top:0;
  width: 40px; height:40px;
  border-radius: 10px;
  background: var(--accent-grad);
  color:#06110f;
  font-weight:800;
  display:flex; align-items:center; justify-content:center;
}

.cta-band{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 56px 32px;
  text-align:center;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---------- Tables (compliance) ---------- */
table.info-table{
  width:100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.info-table th, table.info-table td{
  text-align:left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
}
table.info-table th{ color: var(--text-faint); font-weight:600; width: 40%; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  font-weight:700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-pending{
  color: var(--warn);
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
}
.badge-live{
  color: var(--success);
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
}

.notice{
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  border: 1px solid;
}
.notice-warn{
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.3);
  color: #f3c988;
}
.notice-info{
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.3);
  color: #b9bcf7;
}

/* ---------- Footer ---------- */
footer.site-footer{
  border-top: 1px solid var(--card-border);
  padding: 56px 24px 32px;
  background: var(--bg-soft);
}
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
.footer-grid h4{ font-size: 13px; color: var(--text-faint); text-transform:uppercase; letter-spacing:.06em; margin-bottom: 14px; }
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid a{ color: var(--text-dim); font-size: 14px; }
.footer-grid a:hover{ color: var(--text); }
.footer-bottom{
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Page header (inner pages) ---------- */
.page-hero{
  padding: 64px 24px 40px;
  text-align:center;
}
.page-hero h1{ font-size: clamp(28px, 4.5vw, 42px); }
.page-hero p{ max-width: 600px; margin: 0 auto; }

.prose{ max-width: 760px; margin: 0 auto; }
.prose h2{ margin-top: 40px; font-size: 22px; }
.prose h3{ margin-top: 28px; font-size: 17px; }
.prose p, .prose li{ color: var(--text-dim); font-size: 15px; }
.prose ul{ list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose ul li{ margin-bottom: 6px; }

/* ---------- FAQ accordion ---------- */
.faq-item{
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow:hidden;
  background: var(--card);
}
.faq-q{
  padding: 18px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  font-weight:600;
  font-size: 15px;
}
.faq-q .chev{ transition: transform .2s; color: var(--text-faint); }
.faq-item.open .faq-q .chev{ transform: rotate(180deg); }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height .25s ease;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-dim);
}
.faq-item.open .faq-a{ padding-bottom: 18px; }

/* ---------- Wallet app ---------- */
.app-shell{
  max-width: 480px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.app-tabs{
  display:flex;
  border-bottom: 1px solid var(--card-border);
}
.app-tab{
  flex:1;
  text-align:center;
  padding: 14px 8px;
  font-size: 13px;
  font-weight:600;
  color: var(--text-faint);
  cursor:pointer;
  border-bottom: 2px solid transparent;
}
.app-tab.active{ color: var(--text); border-color: var(--accent); }
.app-panel{ padding: 28px; display:none; }
.app-panel.active{ display:block; }

.field{ margin-bottom: 16px; }
.field label{ display:block; font-size: 13px; color: var(--text-faint); margin-bottom: 6px; }
.field textarea, .field input{
  width:100%;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.field textarea:focus, .field input:focus{ outline: none; border-color: var(--accent); }

.mnemonic-box{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  margin-bottom: 16px;
}
.mnemonic-box span{ color: var(--text-faint); }
.mnemonic-box span b{ color: var(--text); font-weight:600; }

.asset-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}
.asset-row:last-child{ border-bottom:none; }
.asset-left{ display:flex; align-items:center; gap:12px; }
.asset-icon{
  width:36px; height:36px; border-radius:50%;
  background: var(--accent-grad);
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:800; color:#06110f;
}
.asset-name{ font-weight:600; font-size:14px; }
.asset-ticker{ font-size:12px; color: var(--text-faint); }
.asset-right{ text-align:right; }
.asset-value{ font-weight:600; font-size:14px; }
.asset-amount{ font-size:12px; color: var(--text-faint); }

.balance-total{ text-align:center; padding: 8px 0 24px; }
.balance-total .amt{ font-size: 34px; font-weight:800; }
.balance-total .lbl{ font-size:13px; color:var(--text-faint); }

.qr-box{
  width: 160px; height:160px;
  margin: 0 auto 16px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  font-size: 11px;
  color: var(--text-faint);
  text-align:center;
  padding: 8px;
}
.copy-row{
  display:flex;
  gap:8px;
  align-items:stretch;
}
.copy-row input{ flex:1; }
.copy-row button{ flex-shrink:0; }

.toast{
  position:fixed;
  bottom: 24px; left:50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  opacity:0;
  transition: opacity .2s, transform .2s;
  pointer-events:none;
  z-index: 999;
  box-shadow: var(--shadow);
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

.mono{ font-family: "SF Mono", "Fira Code", monospace; }
.text-center{ text-align:center; }
.mt-24{ margin-top:24px; }
.mt-40{ margin-top:40px; }
