/* ═══════════════════════════════════════════════════════════
   TELLER USDI — main.css
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg:        #0a0613;
  --bg2:       #0f0a1e;
  --bg3:       #130d24;
  --surface:   #1a1030;
  --surface2:  #211540;
  --border:    rgba(109,40,217,.28);
  --border2:   rgba(167,139,250,.18);
  --accent:    #7c3aed;
  --accent2:   #a78bfa;
  --green:     #10b981;
  --green2:    #34d399;
  --blue:      #3b82f6;
  --yellow:    #fbbf24;
  --text:      #e2d9f3;
  --muted:     #7c6fa0;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 8px 32px rgba(76,29,149,.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,6,19,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1160px; margin: 0 auto; padding: .7rem 1.25rem;
}
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo img { border-radius: 50%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: .95rem; font-weight: 800; color: var(--accent2); letter-spacing: .5px; }
.logo-sub  { font-size: .65rem; color: var(--muted); letter-spacing: 1px; }
nav { margin-left: auto; }
.nav-menu { display: flex; gap: .15rem; list-style: none; align-items: center; }
.nav-link {
  padding: .4rem .75rem; border-radius: var(--radius); color: var(--muted);
  text-decoration: none; font-size: .83rem; font-weight: 500; transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent2); background: rgba(109,40,217,.15); }
.btn-header-etherscan, .btn-header-portal {
  padding: .38rem .85rem; border-radius: var(--radius); font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: .3rem;
}
.btn-header-etherscan { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.btn-header-etherscan:hover { background: rgba(59,130,246,.22); color: #bfdbfe; }
.btn-header-portal    { background: rgba(109,40,217,.15); color: var(--accent2); border: 1px solid var(--border); }
.btn-header-portal:hover { background: rgba(109,40,217,.28); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--accent2); border-radius: 2px; transition: all .3s; }

/* Ticker */
.ticker-bar { background: var(--bg2); border-top: 1px solid var(--border); overflow: hidden; padding: .3rem 0; }
.ticker-track { display: flex; gap: 1.5rem; padding: 0 1.25rem; white-space: nowrap; font-size: .74rem; }
.ticker-item { color: var(--muted); }
.ticker-item strong { color: var(--accent2); }
.ticker-sep { color: var(--border2); }

/* ── HERO ── */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(109,40,217,.22) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative; overflow: hidden; padding: 5rem 0 4rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='%237c3aed' opacity='.12'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent2); background: rgba(109,40,217,.15); border: 1px solid var(--border);
  padding: .35rem .8rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.2rem; }
.gradient-text { background: linear-gradient(135deg, #a78bfa, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 480px; margin-bottom: 2rem; line-height: 1.75; }
.hero-buttons { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.4rem; border-radius: var(--radius); font-size: .88rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all .2s; }
.btn-primary { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #8b5cf6, #6d28d9); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(109,40,217,.5); }
.btn-outline { background: transparent; color: var(--accent2); border: 1.5px solid var(--border); }
.btn-outline:hover { background: rgba(109,40,217,.12); border-color: var(--accent2); }
.btn-green { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-green:hover { background: linear-gradient(135deg, #34d399, #10b981); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-val { font-size: 1.55rem; font-weight: 800; color: var(--accent2); font-family: 'Space Grotesk', sans-serif; }
.hero-stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Coin visual */
.coin-wrap { display: flex; justify-content: center; align-items: center; position: relative; }
.coin-visual { position: relative; width: 320px; height: 320px; }
.coin-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(167,139,250,.2);
  animation: spin 18s linear infinite;
}
.coin-ring:nth-child(2) { inset: 15px; border-color: rgba(16,185,129,.15); animation-duration: 14s; animation-direction: reverse; }
.coin-ring:nth-child(3) { inset: 30px; border-color: rgba(109,40,217,.25); animation-duration: 22s; }
@keyframes spin { to { transform: rotate(360deg); } }
.coin-center {
  position: absolute; inset: 45px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6d28d9, #1e1b4b);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(109,40,217,.6), 0 0 120px rgba(109,40,217,.2);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.coin-center img { width: 120px; height: 120px; }
.coin-floats { position: absolute; inset: 0; pointer-events: none; }
.coin-float {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: .3rem .7rem; font-size: .7rem; color: var(--accent2);
  display: flex; align-items: center; gap: .3rem; font-weight: 600;
  animation: float 4s ease-in-out infinite;
}
.coin-float:nth-child(1) { top: 10%;  left: -5%; animation-delay: 0s; }
.coin-float:nth-child(2) { top: 20%;  right: -5%; animation-delay: .8s; }
.coin-float:nth-child(3) { bottom: 25%; left: -8%; animation-delay: 1.6s; }
.coin-float:nth-child(4) { bottom: 15%; right: -5%; animation-delay: 2.4s; }

/* ── CONTRACT BANNER ── */
.contract-banner {
  background: linear-gradient(135deg, rgba(109,40,217,.1), rgba(16,185,129,.06));
  border: 1px solid rgba(16,185,129,.3);
  border-radius: var(--radius-lg); padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  max-width: 960px; margin: 0 auto;
}
.badge-live { display: inline-flex; align-items: center; gap: .4rem; background: rgba(16,185,129,.15); color: var(--green2); border: 1px solid rgba(16,185,129,.35); border-radius: 100px; padding: .3rem .75rem; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.contract-addr-box { flex: 1; min-width: 240px; display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: .55rem .9rem; }
.contract-addr-box i { color: var(--green); flex-shrink: 0; }
.contract-addr-box code { flex: 1; font-size: .82rem; color: var(--green2); font-weight: 600; word-break: break-all; letter-spacing: .3px; }
.btn-copy { background: var(--surface2); border: 1px solid var(--border); color: var(--accent2); padding: .38rem .85rem; border-radius: var(--radius); font-size: .78rem; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: .3rem; }
.btn-copy:hover { background: rgba(109,40,217,.2); border-color: var(--accent2); }
.btn-scan { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; padding: .38rem .85rem; border-radius: var(--radius); font-size: .78rem; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; transition: all .2s; font-weight: 600; }
.btn-scan:hover { background: rgba(59,130,246,.2); }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent2); background: rgba(109,40,217,.15); border: 1px solid var(--border); padding: .3rem .8rem; border-radius: 100px; margin-bottom: .85rem; }
.section-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .6rem; }
.section-header p { color: var(--muted); font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* ── STATS BAR ── */
.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 0; }
.stat-card { text-align: center; padding: .85rem 1rem; border-right: 1px solid var(--border); }
.stat-card:last-child { border-right: none; }
.stat-value { display: block; font-size: 1.35rem; font-weight: 800; color: var(--accent2); font-family: 'Space Grotesk', sans-serif; }
.stat-label { display: block; font-size: .7rem; color: var(--muted); margin-top: .2rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-sub { display: block; font-size: .68rem; color: rgba(124,111,160,.6); }

/* ── CONTRACT CARDS ── */
.contracts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px,1fr)); gap: 1.5rem; }
.contract-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem; transition: border-color .3s, box-shadow .3s;
}
.contract-card:hover { border-color: var(--accent); box-shadow: 0 0 40px rgba(109,40,217,.2); }
.cc-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.cc-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.cc-icon-token  { background: linear-gradient(135deg, rgba(109,40,217,.3), rgba(76,29,149,.4)); }
.cc-icon-engine { background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(5,150,105,.3)); }
.cc-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.cc-sub   { font-size: .75rem; color: var(--muted); }
.cc-row { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid rgba(109,40,217,.1); gap: .5rem; }
.cc-row:last-child { border-bottom: none; }
.cc-key { font-size: .75rem; color: var(--muted); min-width: 120px; }
.cc-val { font-size: .8rem; font-weight: 600; color: var(--text); font-family: 'JetBrains Mono','Courier New', monospace; word-break: break-all; text-align: right; }
.cc-val a { color: var(--accent2); text-decoration: none; }
.cc-val a:hover { text-decoration: underline; }
.cc-actions { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; transition: transform .3s, box-shadow .3s; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; font-size: .85rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto .85rem; }
.step-icon { font-size: 2rem; margin-bottom: .7rem; }
.step-title { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--accent2); }
.step-desc  { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* ── TOKENOMICS ── */
.tokenomics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.donut-wrap { position: relative; width: 260px; height: 260px; margin: 0 auto; }
.donut-wrap svg { width: 100%; height: 100%; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-val   { font-size: 1.6rem; font-weight: 800; color: var(--accent2); font-family: 'Space Grotesk', sans-serif; }
.donut-label { font-size: .72rem; color: var(--muted); }
.tnom-list { display: flex; flex-direction: column; gap: .85rem; }
.tnom-item { display: flex; align-items: center; gap: .85rem; }
.tnom-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.tnom-info { flex: 1; }
.tnom-name { font-size: .85rem; font-weight: 700; margin-bottom: 2px; }
.tnom-amt  { font-size: .75rem; color: var(--muted); }
.tnom-bar-wrap { height: 5px; background: rgba(109,40,217,.15); border-radius: 5px; margin-top: 5px; }
.tnom-bar { height: 100%; border-radius: 5px; }
.tnom-pct { font-size: .95rem; font-weight: 800; min-width: 42px; text-align: right; }

/* ── TRUST PILLARS ── */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; }
.pillar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; }
.pillar-icon { font-size: 2.2rem; margin-bottom: .85rem; }
.pillar-title { font-size: 1rem; font-weight: 700; color: var(--accent2); margin-bottom: .6rem; }
.pillar-desc  { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; color: var(--text); text-align: left; padding: 1rem 1.25rem; font-size: .9rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question i { color: var(--accent2); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.25rem 1rem; font-size: .85rem; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ── CTA ── */
.cta-box { background: radial-gradient(ellipse at 50% 0%, rgba(109,40,217,.3), transparent 70%), var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 4rem 2rem; text-align: center; }
.cta-box h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: .85rem; }
.cta-box p { color: var(--muted); max-width: 480px; margin: 0 auto 1.75rem; font-size: 1rem; }
.cta-buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: 4rem; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; font-size: 1.1rem; font-weight: 800; color: var(--accent2); }
.footer-desc { font-size: .82rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.footer-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.fbadge { font-size: .68rem; font-weight: 700; padding: .25rem .6rem; border-radius: 100px; }
.fbadge-green  { background: rgba(16,185,129,.15); color: var(--green2);  border: 1px solid rgba(16,185,129,.3); }
.fbadge-purple { background: rgba(109,40,217,.15); color: var(--accent2); border: 1px solid var(--border); }
.fbadge-blue   { background: rgba(59,130,246,.12); color: #93c5fd;        border: 1px solid rgba(59,130,246,.25); }
.footer-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent2); margin-bottom: .85rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-links li { font-size: .82rem; color: var(--muted); display: flex; align-items: baseline; gap: .35rem; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent2); }

/* Footer contracts bar */
.footer-contracts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.fc-item { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.fc-label { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; min-width: 160px; }
.fc-addr  { font-size: .78rem; font-family: 'JetBrains Mono','Courier New',monospace; color: var(--green2); flex: 1; word-break: break-all; }
.fc-copy, .fc-link { background: none; border: 1px solid var(--border2); color: var(--muted); padding: .2rem .55rem; border-radius: 6px; font-size: .72rem; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; }
.fc-copy:hover, .fc-link:hover { border-color: var(--accent2); color: var(--accent2); }

.footer-bottom { padding: 1.25rem 0; text-align: center; }
.footer-bottom p { font-size: .78rem; color: var(--muted); margin-bottom: .35rem; }
.footer-disclaimer { font-size: .72rem !important; max-width: 680px; margin: .35rem auto 0 !important; }

/* ── BACK TO TOP ── */
#backToTop {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 16px rgba(109,40,217,.5); transition: all .3s;
}
#backToTop:hover { background: #8b5cf6; transform: translateY(-3px); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .coin-wrap   { display: none; }
  .hero-stats  { justify-content: center; }
  .hero-buttons{ justify-content: center; }
  .tokenomics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contracts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav-menu.open { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 5rem 2rem 2rem; z-index: 999; gap: .5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .ticker-track { animation: marquee 20s linear infinite; display: inline-flex; }
  @keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
}
