/* Core Web3 Crypto Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Orbitron:wght@500;700;900&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.875rem; }
.nav-links a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
}
.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-alpha), inset 0 0 10px var(--accent-alpha);
}
.btn-primary:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent), inset 0 0 20px var(--accent);
}

/* Hero Section */
.hero {
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--heading);
  text-shadow: 0 0 20px var(--accent-alpha);
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}
.glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
  z-index: -1;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 var(--accent-alpha);
  border-color: var(--accent);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px var(--accent-alpha));
}

/* Crypto Ticker Marquee */
.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
}
.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: scrollLeft 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  color: var(--text);
  border-right: 1px solid var(--border);
}
.ticker-price { color: var(--muted); }
.ticker-change.up { color: #00ff88; text-shadow: 0 0 10px rgba(0,255,136,0.3); }
.ticker-change.down { color: #ff0055; text-shadow: 0 0 10px rgba(255,0,85,0.3); }

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scheme Switcher */
.theme-switcher { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; }
.theme-toggle { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: transparent; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 15px var(--accent-alpha); font-size: 1.5rem; transition: all 0.3s ease; }
.theme-toggle:hover { background: var(--accent); color: #000; box-shadow: 0 0 25px var(--accent); }
.theme-menu { position: absolute; bottom: calc(100% + 1rem); right: 0; width: 280px; padding: 1rem; border-radius: 1rem; display: flex; flex-direction: column; gap: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); }
.theme-switcher.open .theme-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-option { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-radius: 0.5rem; cursor: pointer; transition: background 0.2s; border: 1px solid transparent; font-family: 'Orbitron', sans-serif; font-size: 0.875rem; }
.theme-option:hover { background: rgba(255,255,255,0.05); }
.theme-option.active { border-color: var(--accent); color: var(--accent); text-shadow: 0 0 10px var(--accent-alpha); }
.theme-color-preview { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }

/* --- Upgrades --- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 3D Asset Showcase */
.asset-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: radial-gradient(circle at center, var(--surface) 0%, transparent 70%);
  border-radius: 2rem;
  margin: 4rem 0;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.asset-placeholder {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent), var(--accent2-light, #000));
  border-radius: 30%;
  animation: float 6s ease-in-out infinite, rotate3d 10s linear infinite;
  box-shadow: 0 0 50px var(--accent-alpha);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes rotate3d {
  0% { transform: rotate3d(1, 1, 1, 0deg); }
  100% { transform: rotate3d(1, 1, 1, 360deg); }
}

/* Data Table (Exchange) */
.exchange-table-container {
  overflow-x: auto;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.exchange-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.exchange-table th, .exchange-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.exchange-table th {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.875rem;
}
.exchange-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.coin-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.coin-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
}

/* FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--surface);
}
.faq-question {
  padding: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--surface), rgba(0,0,0,0.8));
  border: 1px solid var(--accent);
  border-radius: 2rem;
  padding: 6rem 2rem;
  text-align: center;
  margin: 6rem 0;
  box-shadow: 0 0 50px var(--accent-alpha);
}
.cta-box h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--heading);
  font-size: 1rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 4rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* --- UNIVERSAL MOBILE PATCH --- */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .hero-btns { flex-direction: column !important; width: 100% !important; align-items: stretch !important; gap: 0.5rem !important; margin-bottom: 2rem !important; }
  .hero-btns .btn { width: 100% !important; justify-content: center !important; margin: 0 !important; }
  .bento-card, .feature-card, .pricing-card, .pricing-tier { grid-column: 1 / -1 !important; }
  .bento, .features-grid, .pricing-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr !important; }
  .hero-title { font-size: 2.5rem !important; }
  .stat-value { font-size: 3.5rem !important; }
  .hero { flex-direction: column !important; padding-top: 6rem !important; gap: 3rem !important; height: auto !important; min-height: unset !important; }
  .hero > div { padding-right: 0 !important; padding-left: 0 !important; width: 100% !important; text-align: center !important; }
  .pricing-header h2 { font-size: 2.5rem !important; }
}
