/* ============================================
   CryptoWidget.io — Shared Stylesheet
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #060912;
  color: #f1f5f9;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --bg-deep:      #060912;
  --bg-dark:      #0d1221;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-card-h:    rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.07);
  --border-s:     rgba(255,255,255,0.14);
  --purple:       #7c3aed;
  --purple-l:     #8b5cf6;
  --violet:       #a78bfa;
  --indigo:       #4f46e5;
  --green:        #10b981;
  --green-l:      #34d399;
  --gold:         #f59e0b;
  --text-1:       #f8fafc;
  --text-2:       #cbd5e1;
  --text-3:       #64748b;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 12px 56px rgba(0,0,0,0.6);
  --t:            0.2s ease;
  --container:    1160px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }

/* ── Gradient text ── */
.grad-text {
  background: linear-gradient(135deg, #a78bfa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 56px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.55);
}
.btn-green {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16,185,129,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-s);
}
.btn-ghost:hover { background: var(--bg-card-h); color: var(--text-1); border-color: rgba(255,255,255,0.2); }
.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--t);
}
.card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-s);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  background: rgba(6,9,18,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  gap: 2px;
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; margin-right: 6px; }
.logo-dot { color: var(--violet); }
.logo-io { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--t);
}
.nav-links a:hover { color: var(--text-1); background: var(--bg-card); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--t);
}

/* ── Footer ── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 22px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-3);
  transition: all var(--t);
}
.footer-social a:hover { color: var(--text-1); background: var(--bg-card-h); border-color: var(--border-s); }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--text-3); transition: color var(--t); }
.footer-col ul a:hover { color: var(--text-1); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-3); transition: color var(--t); }
.footer-bottom-links a:hover { color: var(--text-1); }

/* ── Legal pages ── */
.legal-hero {
  padding: 140px 0 64px;
  text-align: center;
}
.legal-hero h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 12px; }
.legal-hero p { color: var(--text-3); font-size: 15px; }
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.legal-body h2 {
  font-size: 22px;
  margin: 48px 0 14px;
  color: var(--text-1);
}
.legal-body h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--text-2);
}
.legal-body p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.75;
}
.legal-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-body ul li {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-body a { color: var(--violet); }
.legal-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── Org cards ── */
.org-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-blue   { background: rgba(79,70,229,0.15); color: #818cf8; border: 1px solid rgba(79,70,229,0.25); }
.badge-green  { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-gold   { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.badge-red    { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-purple { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }

/* ── Crypto tag pills ── */
.crypto-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-2);
}

/* ── Accordion / FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color var(--t);
}
.faq-item.open { border-color: rgba(139,92,246,0.3); }
.faq-q {
  width: 100%;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  text-align: left;
  transition: background var(--t);
}
.faq-q:hover { background: var(--bg-card-h); }
.faq-q .faq-icon { font-size: 18px; color: var(--text-3); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--violet); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-card);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── Marquee / scrolling strip ── */
.marquee-track {
  overflow: hidden;
  padding: 0;
  position: relative;
}
.marquee-track::before,
.marquee-track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.marquee-track::before { left: 0; background: linear-gradient(to right, var(--bg-deep), transparent); }
.marquee-track::after  { right: 0; background: linear-gradient(to left, var(--bg-deep), transparent); }
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee-item .coin-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* ── Step items ── */
.step-number {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

/* ── Toast/notice ── */
.notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.notice-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0.1); }
}

/* ── Decorative blobs ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Skip link (accessibility + SEO) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(6,9,18,0.97);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 99;
  }
  .nav-links.open a { padding: 12px 14px; font-size: 16px; }
  .nav-cta.open {
    display: flex;
    padding: 0 24px 24px;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(6,9,18,0.97);
    flex-direction: column;
    z-index: 98;
    top: auto;
    bottom: 0;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
