/* --- CSS Variables --- */
:root {
  --bg-color: #06070a;
  --text-primary: #ffffff;
  --text-secondary: #8a8f98;
  --text-blue: #00b3ff;
  --nav-bg: transparent;
  --btn-blue-bg: #1e88e5;
  --btn-blue-glow: rgba(30, 136, 229, 0.4);
  --btn-outline-border: rgba(255, 255, 255, 0.1);
  --btn-outline-hover: rgba(255, 255, 255, 0.05);
  --badge-bg: rgba(255, 255, 255, 0.05);
  --badge-border: rgba(255, 255, 255, 0.1);
  --icon-color: #8a8f98;
  
  /* Wallet UI Variables */
  --xp-bg: #0f111a;
  --xp-border: rgba(255,255,255,0.08);
  --xp-bal-bg: linear-gradient(135deg, #1e3a8a, #0088ff);
  --xp-card-text: #ffffff;
  --xp-row-border: rgba(255,255,255,0.05);
}

body.light-mode {
  --bg-color: #ffffff;
  --text-primary: #111418;
  --text-secondary: #5e6470;
  --text-blue: #0088ff;
  --nav-bg: #ffffff;
  --btn-blue-bg: #0088ff;
  --btn-blue-glow: rgba(0, 136, 255, 0.3);
  --btn-outline-border: #e2e8f0;
  --btn-outline-hover: #f1f5f9;
  --badge-bg: #f8fafc;
  --badge-border: #e2e8f0;
  --icon-color: #5e6470;

  /* Wallet UI Variables - Light Mode */
  --xp-bg: #ffffff;
  --xp-border: #e2e8f0;
  --xp-bal-bg: linear-gradient(135deg, #f59e0b, #d97706);
  --xp-card-text: #111418;
  --xp-row-border: #f1f5f9;
}

/* --- Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 85% 30%, rgba(0, 179, 255, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* --- Navigation --- */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--nav-bg);
  position: relative;
  z-index: 100;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.navbar-links {
  display: flex;
  gap: 2.5rem;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

/* Hamburger menu button */
.btn-hamburger {
  display: none;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--icon-color);
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-hamburger svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-hamburger:hover {
  background-color: var(--badge-bg);
  color: var(--text-primary);
  border-color: rgba(0, 179, 255, 0.35);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-color);
  z-index: 200;
  flex-direction: column;
  padding: 2rem 5%;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--xp-row-border);
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover {
  color: var(--text-blue);
}

.mobile-nav-foot {
  margin-top: auto;
}

.btn-theme {
  background: none;
  border: 1px solid var(--badge-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-theme:hover {
  background-color: var(--badge-bg);
  color: var(--text-primary);
}

.btn-primary {
  background-color: var(--btn-blue-bg);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px var(--btn-blue-glow);
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 5%;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-blue);
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.text-blue {
  color: var(--text-blue);
  display: block;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.a-marq {
  overflow: hidden;
  padding: 1rem 5%;
  margin: 0 auto 2rem;
  max-width: 1400px;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.a-marqlbl {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.a-track {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.a-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.a-chip .cd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.a-chip .cd img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--btn-outline-border);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--btn-outline-hover);
}

/* --- Wallet Mockup (XP Component) --- */
.hero-image {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
}

.hw-float {
  width: 100%;
  max-width: 450px;
  min-width: 0;
  transition: transform 0.5s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
}

.xp {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: 24px;
  overflow: hidden;
  color: var(--xp-card-text);
  display: flex;
  flex-direction: column;
}

.xp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

.xp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 1.2rem;
}

.xp-logo img {
  width: 24px;
  height: 24px;
}

.xp-modes {
  display: flex;
  background: var(--badge-bg);
  border: 1px solid var(--xp-border);
  border-radius: 20px;
  padding: 4px;
}

.xp-mode {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
}

.xp-mode.on {
  background: var(--btn-blue-bg);
  color: white;
}

.xp-bal {
  background: var(--xp-bal-bg);
  margin: 0 1.5rem;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  color: white;
}

.xp-bal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.xp-acct {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 12px;
}

.xp-addr {
  display: flex;
  align-items: center;
  gap: 6px;
}

.xp-bal-tools {
  display: flex;
  gap: 12px;
}

.xp-est {
  font-size: 0.85rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.xp-amt {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.xp-amt-dec {
  font-size: 1.5rem;
  opacity: 0.8;
}

.xp-actions {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.xp-act {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 0;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.xp-act:hover {
  background: rgba(0,0,0,0.4);
}

.xp-tokens {
  padding: 1.5rem;
  overflow: hidden;
}

.xp-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--xp-row-border);
  padding-bottom: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  overflow-x: auto;
  scrollbar-width: none;
}

.xp-tabs::-webkit-scrollbar {
  display: none;
}

.xp-tab.on {
  color: var(--text-primary);
  font-weight: 600;
}

.xp-tab-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.xp-net {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-bg);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--badge-border);
}

.xp-thead {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.xp-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xp-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.xp-coin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  position: relative;
}

.xp-coin-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.xp-coin-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.xp-row-meta {
  display: flex;
  flex-direction: column;
}

.xp-row-meta b {
  font-size: 0.95rem;
  font-weight: 600;
}

.xp-row-meta i {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: normal;
}

.xp-row-price {
  display: none;
}

.xp-row-usd {
  font-weight: 600;
  text-align: right;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 5%;
    gap: 3rem;
  }
  .hero-content { align-items: center; }
  .hero p { max-width: 100%; }
  .navbar-links { display: none; }
  .btn-hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .hw-float {
    transform: none !important;
    max-width: 420px;
  }
  .xp-head { padding: 1.2rem; }
  .xp-bal {
    margin: 0 1.2rem;
    padding: 1.2rem;
  }
  .xp-bal-top {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
  }
  .xp-tokens { padding: 1.2rem; }
}

@media (max-width: 768px) {
  .navbar {
    grid-template-columns: 1fr auto;
    padding: 1rem 5%;
  }
  .navbar-actions {
    gap: 0.65rem;
  }
  .navbar-actions .btn-primary {
    display: none;
  }
  .hero {
    padding: 2rem 4%;
    gap: 2rem;
  }
  .hero h1 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    flex: 1;
    min-width: 130px;
    justify-content: center;
  }
  .hw-float { max-width: 100%; }
  .xp-amt { font-size: 2rem; }
  .xp-amt-dec { font-size: 1.25rem; }
  .xp-act {
    font-size: 0.72rem;
    padding: 8px 0;
  }
  .xp-bal {
    margin: 0 1rem;
    padding: 1rem;
  }
  .xp-bal-top {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
  }
  .xp-head { padding: 1rem; }
  .xp-tokens { padding: 1rem; }
}

@media (max-width: 480px) {
  .navbar {
    grid-template-columns: 1fr auto;
    padding: 1rem 4%;
  }
  .navbar-actions {
    gap: 0.5rem;
  }
  .btn-theme {
    width: 36px;
    height: 36px;
  }
  .btn-hamburger {
    width: 42px;
    height: 42px;
  }
  .btn-hamburger svg {
    width: 19px;
    height: 19px;
  }
  .navbar-links { display: none; }
  .hero {
    padding: 1.75rem 4%;
    gap: 1.75rem;
  }
  .hero h1 { font-size: 2.25rem; }
  .badge {
    font-size: 0.78rem;
    padding: 5px 12px;
    margin-bottom: 1.25rem;
  }
  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hw-float { max-width: 100%; }
  .xp-amt { font-size: 1.75rem; }
  .xp-amt-dec { font-size: 1.1rem; }
  .xp-bal {
    margin: 0 0.75rem;
    padding: 0.85rem;
  }
  .xp-actions {
    gap: 6px;
    margin-top: 1rem;
  }
  .xp-act {
    padding: 8px 4px;
    font-size: 0.68rem;
    border-radius: 8px;
  }
  .xp-head { padding: 0.85rem; }
  .xp-tokens { padding: 0.85rem; }
  .xp-tabs {
    gap: 8px;
    font-size: 0.82rem;
  }
  .xp-tab-right { display: none; }
  .xp-row-meta b { font-size: 0.85rem; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 1.9rem; }
  .xp-amt { font-size: 1.5rem; }
}

/* --- Privacy Section --- */
.a-sec {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.a-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-blue);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.a-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  max-width: 700px;
  color: var(--text-primary);
}

.a-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 3.5rem;
  line-height: 1.6;
}

.a-priv {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  width: 100%;
  align-items: center;
}

.a-modecard {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.a-modecard:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 179, 255, 0.2);
}

.a-modetabs {
  display: inline-flex;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 30px;
  padding: 5px;
  width: fit-content;
}

.a-mt {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.a-mt.on {
  background: var(--btn-blue-bg);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--btn-blue-glow);
}

.a-modebody {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.a-modebody h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.a-modebody p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.a-feat-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.a-fl {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.a-fl .fi {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background-color 0.3s ease;
}

.a-fl:hover .fi {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--text-blue);
  background: rgba(0, 179, 255, 0.05);
}

.a-fl h5 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.a-fl p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
  .a-sec { padding: 4rem 5%; }
  .a-h2 { font-size: 2.25rem; }
  .a-priv {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .a-modecard { padding: 2rem; }
}

@media (max-width: 768px) {
  .a-sec {
    padding: 3rem 5%;
    align-items: stretch;
  }
  .a-h2 {
    font-size: 1.9rem;
    max-width: 100%;
  }
  .a-lead {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .a-sec { padding: 2.5rem 4%; }
  .a-h2 { font-size: 1.65rem; }
  .a-modecard { padding: 1.5rem; }
  .a-mt {
    padding: 8px 14px;
    font-size: 0.88rem;
  }
  .a-fl .fi {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
  }
}

/* --- Features Grid Section --- */
.a-fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.a-card {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
}

.a-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 179, 255, 0.2);
}

.cspark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 0% 0%, rgba(0, 179, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.a-card:hover .cspark { opacity: 1; }

.ci {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              border-color 0.3s ease, 
              background-color 0.3s ease;
}

.a-card:hover .ci {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--text-blue);
  background: rgba(0, 179, 255, 0.05);
}

.a-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.a-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .a-fgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .a-fgrid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .a-card { padding: 2rem 1.5rem; }
}

/* --- Products Section --- */
.a-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.a-prod {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
}

.a-prod:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 179, 255, 0.2);
}

.pbadge {
  display: inline-flex;
  align-items: center;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.a-prod h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.a-prod p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.a-pbtn {
  background-color: var(--btn-blue-bg);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px var(--btn-blue-glow);
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.a-pbtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--btn-blue-glow);
}

.a-prodvis {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--xp-border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

/* Wallet Popup Mockup */
.wp {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: left;
}

.wp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.wp-acct {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wp-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b3ff, #7c5cff);
}

.wp-acct b {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.wp-acct span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.wp-bal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--badge-bg);
  border-top: 1px solid var(--xp-row-border);
}

.wp-bal-l {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.wp-bal-v {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

/* Donut chart theme support */
.a-donutwrap {
  transition: transform 0.3s ease;
}

.a-donutwrap:hover {
  transform: scale(1.05);
}

.a-donutwrap > div:last-child {
  background: var(--bg-color) !important;
}

@media (max-width: 1024px) {
  .a-dual {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .a-prod { padding: 2.5rem 2rem; }
}

@media (max-width: 480px) {
  .a-prod { padding: 1.75rem 1.5rem; }
  .a-prodvis {
    padding: 1.5rem 1rem;
    min-height: 180px;
  }
  .wp {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* --- Security Section --- */
.a-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  margin-top: 1.5rem;
}

.a-stat {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
}

.a-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 179, 255, 0.2);
}

.a-stat b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-blue);
  line-height: 1;
  letter-spacing: -1px;
}

.a-stat span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Footer Section --- */
.a-foot {
  border-top: 1px solid var(--xp-border);
  padding: 3.5rem 5%;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
}

body.light-mode .a-foot {
  background: rgba(0, 0, 0, 0.02);
}

.a-footin {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.a-foot .a-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.a-foot .a-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.a-foot .a-logo b {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.a-foot .fl {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.a-foot .fl a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a-foot .fl a:hover { color: var(--text-primary); }

.a-foot small {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: right;
}

@media (max-width: 1024px) {
  .a-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .a-footin {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2rem;
  }
  .a-foot { padding: 2.5rem 5%; }
  .a-foot small { text-align: center; }
}

@media (max-width: 520px) {
  .a-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .a-stat { padding: 2rem 1.5rem; }
  .a-stat b { font-size: 3rem; }
}

@media (max-width: 480px) {
  .a-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .a-stat { padding: 1.5rem 1.25rem; }
  .a-stat b { font-size: 2.5rem; }
}

@media (max-width: 360px) {
  .a-stats { grid-template-columns: 1fr; }
}