/* === variables.css === */
/* ── All CSS custom properties for dark (default) and light themes ── */
:root, [data-theme="dark"] {
  --bg-primary:       #010409;
  --bg-surface:       rgba(255,255,255,0.04);
  --bg-surface-hover: rgba(255,255,255,0.08);
  --color-accent:     #00F5A0;
  --color-accent-dim: #00C47E;
  --color-violet:     #7B2FBE;
  --color-alert:      #FF6B35;
  --color-red:        #FF4560;
  --color-gradient-start: #b476f3;
  --color-gradient-end:   #3b82f6;
  --text-primary:     #E8EDF5;
  --text-muted:       #5A6478;
  --border-subtle:    rgba(255,255,255,0.08);
  --glow-accent:      rgba(0,245,160,0.18);
  --glow-violet:      rgba(123,47,190,0.18);
  --glow-gradient:    rgba(180,118,243,0.45);
  --fog-color:        #010409;
  --three-bg:         0x010409;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width:      1200px;
  --nav-height:     64px;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-pill:    999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Shadows */
  --shadow-glow-accent: 0 0 40px var(--glow-accent);
  --shadow-glow-violet: 0 0 40px var(--glow-violet);
  --shadow-card:        0 4px 24px rgba(0,0,0,0.4);

  /* Navbar */
  --nav-bg-scrolled: rgba(1,4,9,0.88);
}



/* === base.css === */
/* ── Reset & base styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Root typography and background ── */
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-height); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* ── Heading font ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Monospace for numbers and addresses ── */
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Link reset ── */
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ── Image defaults ── */
img { display: block; max-width: 100%; height: auto; }

/* ── Layout container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

/* ── Section spacing ── */
section { padding-block: var(--space-4xl); }

/* ── Section heading pattern ── */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-md); }
.section-header p { font-size: 1.125rem; color: var(--text-muted); max-width: 48ch; margin-inline: auto; }

/* ── Canvas containers ── */
canvas { display: block; }
.canvas-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ── Grain/noise texture overlay ── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  z-index: 1;
}

/* ── Visually hidden utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Accent color highlight ── */
.accent { color: var(--color-accent); }
.accent-glow {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

/* ── Muted text ── */
.muted { color: var(--text-muted); }

/* ── Reduced motion: disable all animations ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive breakpoints ── */
/* Mobile  < 768px  — single col  */
/* Tablet  768–1023px — 2-col     */
/* Desktop ≥ 1024px  — full layout */
@media (max-width: 767px) {
  .container { padding-inline: var(--space-md); }
  section { padding-block: var(--space-3xl); }
}


/* === components.css === */
/* ── Navbar — always has a frosted background so hero content never bleeds through ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: var(--nav-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-base);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}
/* ── Real app icon replaces the text glyph ── */
.cb-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── Nav right controls ── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
}
.lang-switcher a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 2px;
}
.lang-switcher a:hover, .lang-switcher a.active { color: #af40ff; text-shadow: 0 0 10px rgba(175, 64, 255, 0.4); }
.lang-sep { color: var(--border-subtle); }

/* ── Theme toggle button ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--color-accent); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ── Primary pill button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #000;
}
.btn-primary:hover { background: var(--color-accent-dim); transform: translateY(-1px); box-shadow: var(--shadow-glow-accent); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-store {
  background: #0c101b; /* Solid non-transparent background */
  border: 2px solid rgba(255, 255, 255, 0.12); /* Prominent solid border */
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}
.btn-store:hover { 
  background: #141b2a; 
  border-color: var(--color-accent); 
  box-shadow: 0 0 15px var(--glow-accent); 
}

/* ── Glowing Gradient Border Button ── */
.btn-gradient-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(144deg, #af40ff, #5b42f3 50%, #00ddeb);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1em;
  max-width: 100%;
  min-width: 140px;
  padding: 2px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.btn-gradient-glow:active,
.btn-gradient-glow:hover {
  outline: 0;
}

.btn-gradient-glow span {
  background-color: var(--bg-primary);
  padding: 9px 24px;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  transition: 300ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-gradient-glow:hover span {
  background: none;
}

.btn-gradient-glow:active {
  transform: scale(0.95);
}

.btn-gradient-glow.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}

.btn-gradient-glow.disabled span {
  cursor: not-allowed;
}

.btn-gradient-glow.disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-gradient-glow.disabled:hover span {
  background-color: var(--bg-primary);
}

.btn-gradient-glow.disabled:active {
  transform: none;
}

/* ── Glass card ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(0,245,160,0.2);
  transform: translateY(-2px);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.badge-live {
  background: rgba(255,69,96,0.15);
  color: var(--color-red);
  border: 1px solid rgba(255,69,96,0.3);
}
.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.badge-popular {
  background: linear-gradient(135deg, var(--color-accent), var(--color-violet));
  color: #000;
  font-size: 0.65rem;
}

/* ── Card icon ── */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--glow-accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

/* ── Hamburger menu button ── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ── Mobile full-screen overlay menu — z-index above navbar so close button is reachable ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding-block: var(--space-4xl);
  gap: var(--space-xl);
}
.nav-overlay.open { display: flex; }
.nav-overlay .nav-links { flex-direction: column; gap: var(--space-xl); font-size: 1.5rem; width: 100%; align-items: center; }
.nav-overlay .nav-links a { color: var(--text-primary); }

/* ── Desktop Dropdown Menu ── */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-icon {
  transition: transform var(--transition-base);
  margin-top: 1px;
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.nav-dropdown:hover .dropdown-trigger {
  color: var(--text-primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(1, 4, 9, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  min-width: 200px;
  list-style: none;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(175, 64, 255, 0.1);
  z-index: 1010;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding-left: calc(var(--space-lg) + 4px);
  border-left: 2px solid #af40ff;
}

/* ── Mobile Dropdown Menu ── */
.mobile-dropdown {
  width: 100%;
  text-align: center;
}

.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.mobile-dropdown-trigger .dropdown-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.mobile-dropdown.open .mobile-dropdown-trigger .dropdown-icon {
  transform: rotate(180deg);
  color: #af40ff;
}

.mobile-dropdown.open .mobile-dropdown-trigger {
  color: #af40ff;
}

.mobile-dropdown-menu {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: 0;
}

.mobile-dropdown.open .mobile-dropdown-menu {
  display: flex;
}

.mobile-dropdown-menu a {
  font-size: 1.15rem !important;
  color: var(--text-muted) !important;
  transition: color var(--transition-fast) !important;
}

.mobile-dropdown-menu a:hover {
  color: #af40ff !important;
}

/* ── Mobile menu language switcher ── */
.nav-overlay .lang-switcher {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-xl);
  font-size: 1rem;
  gap: var(--space-md);
  padding-inline: var(--space-xl);
}
.nav-overlay .lang-switcher a {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}
.nav-overlay .lang-switcher a:hover,
.nav-overlay .lang-switcher a.active {
  background: rgba(175, 64, 255, 0.12);
  color: #af40ff;
  border-color: #af40ff;
  box-shadow: 0 0 10px rgba(175, 64, 255, 0.2);
}

@media (max-width: 767px) {
  .navbar .nav-links, .navbar .lang-switcher, .nav-controls .btn, .nav-controls .btn-gradient-glow { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 1200px) {
  .nav-links { gap: var(--space-md); }
}
@media (max-width: 1023px) {
  .nav-links { gap: var(--space-sm); font-size: 0.82rem; }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(1, 4, 9, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition-base), transform var(--transition-base), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: #af40ff;
  box-shadow: 0 0 15px rgba(175, 64, 255, 0.4);
  color: #af40ff;
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
  }
}



/* === sections-hero.css === */
/* ── Hero section — full viewport Three.js canvas with HTML overlay ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

/* ── Hero canvas fills entire section ── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Hero HTML content centered above canvas ── */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-inline: var(--space-xl);
  max-width: 850px;
  /* margin-top removed — hero padding-top handles navbar offset */
  padding-bottom: var(--space-3xl); /* clear space above scroll-hint and phone */
}

/* ── Live badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

/* ── Hero H1 ── */
.hero-h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-h1 span:first-child {
  white-space: nowrap;
}
.hero-h1 .line2 {
  display: inline-grid;
  position: relative;
  margin-top: var(--space-md);
  padding: 6px 24px;
  border-radius: var(--radius-md);
  z-index: 1;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  white-space: nowrap;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
  overflow: hidden;
}
.hero-h1 .line2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 9, 0.65);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  z-index: -1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* All items stack in the same grid cell so the container auto-sizes to the widest phrase */
.hero-sub-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  transition: none;
  white-space: nowrap;
}
/* The visible phrase — centered, fully opaque */
.hero-sub-item.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
/* The outgoing phrase — slides up and fades */
.hero-sub-item.exit {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* ── Hero CTA buttons row ── */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

/* ── Phone mockup at hero bottom-right — kept out of center to avoid overlap with scroll hint ── */
.hero-phone {
  position: absolute;
  bottom: 0;
  right: clamp(var(--space-2xl), 8vw, 120px);
  z-index: 5;
  width: 200px;
  opacity: 0.85;
  filter: drop-shadow(0 0 48px var(--color-accent));
}
/* ── Real app screenshot fills the phone frame ── */
.hero-phone-screen {
  width: 100%;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-subtle);
}

/* ── Coin label container — absolutely fills the hero so labels are clipped on scroll ── */
#coin-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* ── Coin orb labels from Three.js ── */
/* ── Coin orb labels from Three.js ── */
.coin-label {
  position: absolute;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(1, 4, 9, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
}

.coin-label.theme-mint {
  color: #00F5A0;
  border-color: rgba(0, 245, 160, 0.35);
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.15);
}
.coin-label.theme-mint .coin-dot {
  background-color: #00F5A0;
  box-shadow: 0 0 8px #00F5A0;
}

.coin-label.theme-violet {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 12px rgba(123, 47, 190, 0.15);
}
.coin-label.theme-violet .coin-dot {
  background-color: #c084fc;
  box-shadow: 0 0 8px #c084fc;
}

.coin-label.theme-cyan {
  color: #00DDEB;
  border-color: rgba(0, 221, 235, 0.35);
  box-shadow: 0 0 12px rgba(0, 221, 235, 0.15);
}
.coin-label.theme-cyan .coin-dot {
  background-color: #00DDEB;
  box-shadow: 0 0 8px #00DDEB;
}

.coin-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.coin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}


/* ── Scroll indicator at bottom of hero — left-aligned to avoid phone overlap ── */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}


@media (max-width: 1279px) {
  /* Hide phone on small/medium screens — not enough room alongside centered content */
  .hero-phone { display: none; }
}
@media (max-width: 767px) {
  .hero-h1 { font-size: clamp(1.4rem, 5.8vw, 2.5rem); }
  .hero-h1 .line2 { font-size: clamp(1.1rem, 3.8vw, 1.8rem); }
  .hero-content { padding-bottom: var(--space-xl); }
}


/* === sections-features.css === */
/* ── Features section — bento grid ── */
#features { background: var(--bg-primary); }

/* ── Bento grid (5 items) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}
/* @media (min-width: 768px) {
  .features-grid .feature-card:first-child {
    grid-column: span 2;
  }
} */
.feature-card { position: relative; overflow: hidden; }
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
/* ── Hover accent glow line on cards ── */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.feature-card:hover::before { opacity: 1; }

/* ── Network graph canvas band ── */
#network-section {
  padding-block: 0;
  height: 400px;
  position: relative;
  overflow: hidden;
}
#network-canvas {
  width: 100%;
  height: 100%;
}

/* ── Showcase section — alternating left/right rows ── */
#showcase { background: var(--bg-primary); }

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}
.showcase-row:last-child { margin-bottom: 0; }

/* ── Even rows: flip image to right ── */
.showcase-row.reverse { direction: rtl; }
.showcase-row.reverse > * { direction: ltr; }

/* ── Showcase text block ── */
.showcase-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}
.showcase-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 44ch;
}

/* ── Phone screenshot placeholder with glow halo ── */
.showcase-phone {
  position: relative;
  display: flex;
  justify-content: center;
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.7s var(--transition-slow), opacity 0.7s var(--transition-slow);
}
.showcase-phone.in-view { transform: translateX(0); opacity: 1; }
.showcase-row.reverse .showcase-phone {
  transform: translateX(-60px);
}
.showcase-row.reverse .showcase-phone.in-view { transform: translateX(0); }

.showcase-phone-inner {
  width: 180px;
  aspect-ratio: 9/19;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
/* ── Mint radial glow behind phone — on outer wrapper so overflow:hidden on inner doesn't clip it ── */
.showcase-phone::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--glow-accent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Real app screenshot fills the showcase phone frame ── */
.showcase-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (max-width: 767px) {
  .features-grid { grid-template-columns: 1fr; }
  .showcase-row { grid-template-columns: 1fr; }
  .showcase-row.reverse { direction: ltr; }
  #network-section { height: 250px; }
  .showcase-phone { display: none; }
}
@media (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}


/* === sections-other.css === */
/* ── Stats section — Three.js barchart bg + 4 count-up stats ── */
#stats {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  min-height: 480px;
  display: flex;
  align-items: center;
}
#barchart-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.stats-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-block: var(--space-4xl);
}
.stats-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  text-align: center;
}
.stats-grid > div {
  flex: 1 1 180px;
  max-width: 240px;
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 0 32px var(--color-accent);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Markets section — ticker + indicator cards ── */
#markets { background: var(--bg-primary); }

.indicators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.indicator-card {
  text-align: center;
  padding: var(--space-xl);
}
.indicator-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.indicator-canvas { margin-inline: auto; display: block; }
.indicator-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--space-md);
}
.indicator-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── Roadmap section ── */
#roadmap { background: var(--bg-primary); }

.roadmap-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: var(--space-xl);
  max-width: 1100px;
  margin-inline: auto;
  align-items: stretch;
}
.roadmap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl);
  height: 100%;
}
.roadmap-card.v1-free {
  border-color: var(--color-accent);
  box-shadow: 0 0 40px var(--glow-accent);
  background: rgba(0, 245, 160, 0.01);
}
.roadmap-desc {
  line-height: 1.5;
}
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
.timeline-item {
  display: flex;
  gap: var(--space-md);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: var(--border-subtle);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 2;
  transition: all var(--transition-fast);
}
.timeline-item.active .timeline-node {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  color: var(--color-accent);
}
.timeline-item.planned .timeline-node {
  border-color: var(--color-violet);
  color: var(--color-violet);
}
.timeline-content {
  flex-grow: 1;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.roadmap-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}
.roadmap-badge.in-progress {
  background: rgba(0, 245, 160, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(0, 245, 160, 0.2);
}
.roadmap-badge.planned {
  background: rgba(123, 47, 190, 0.1);
  color: var(--color-violet);
  border: 1px solid rgba(123, 47, 190, 0.2);
}

.pricing-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  text-align: center;
}

.pricing-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  text-align: center;
}
.pricing-price .period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-features {
  list-style: none;
  margin: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
}
.pricing-features li::before { content: '✓'; color: var(--color-accent); font-weight: 700; }
.pricing-features li.unavailable { color: var(--text-muted); }
.pricing-features li.unavailable::before { content: '–'; color: var(--text-muted); }
.pricing-cta { width: 100%; justify-content: center; }

/* ── Testimonials section — violet gradient band ── */
#testimonials {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(123,47,190,0.08) 50%, var(--bg-primary) 100%);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.testimonial-card { font-size: 0.95rem; }
.testimonial-text {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}
.testimonial-text::before { content: '\201C'; }
.testimonial-text::after { content: '\201D'; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-violet), var(--color-accent));
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.875rem; }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

/* ── Final CTA section — vortex canvas bg ── */
#final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}
#vortex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-block: var(--space-4xl);
}
.cta-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}
.cta-content p { font-size: 1rem; color: rgba(232, 237, 245, 0.8); margin-bottom: var(--space-2xl); }
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.qr-placeholder {
  width: 96px;
  height: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-inline: auto;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Footer ── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-3xl) var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand .tagline { font-size: 0.875rem; color: var(--text-muted); margin-top: var(--space-sm); }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 767px) {
  .indicators-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; max-width: 500px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
@media (max-width: 1023px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; max-width: 600px; }
}

/* ── Legal / Documentation page styles ── */
.legal-page {
  padding-block: calc(var(--nav-height) + var(--space-4xl)) var(--space-4xl);
  max-width: 800px;
  margin-inline: auto;
}
.legal-page h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--space-xl);
  text-align: left;
}
.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-md);
}
.legal-page h2 {
  font-size: 1.75rem;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}
.legal-page h3 {
  font-size: 1.25rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}
.legal-page p {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  line-height: 1.7;
}
.legal-page ul, .legal-page ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}
.legal-page li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}
.legal-page blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-md);
  margin-block: var(--space-lg);
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-secondary);
  padding-block: var(--space-sm);
  border-radius: 4px;
}
.legal-page strong {
  color: var(--text-primary);
}

/* ── Document Page overrides ── */
.legal-page.doc-page h2 {
  color: transparent;
  background-image: linear-gradient(135deg, #af40ff, #5b42f3 50%, #00ddeb);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.legal-page.doc-page blockquote {
  border-left: 4px solid #af40ff;
  box-shadow: 0 0 15px rgba(175, 64, 255, 0.1);
}

.legal-page a {
  color: #00ddeb;
  text-decoration: underline;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.legal-page a:hover {
  color: #af40ff;
  text-shadow: 0 0 10px rgba(175, 64, 255, 0.4);
}




/* === animations.css === */
/* ── Keyframe: pulsing dot for live badge ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ── Keyframe: scroll hint arrow bounce — Y-only so desktop left-aligned and mobile centred both work ── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── Keyframe: Pro CTA pulse glow ── */
@keyframes pro-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--glow-accent); }
  50%       { box-shadow: 0 0 32px var(--color-accent); }
}

/* ── Keyframe: fade + slide up (scroll-triggered) ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Keyframe: fade in ── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Keyframe: slide in from left ── */
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Keyframe: slide in from right ── */
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Keyframe: scale in for node graph animation ── */
@keyframes scale-in {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Scroll-triggered visibility classes ── */
/* Elements start hidden; JS IntersectionObserver adds .in-view */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Staggered reveal delay utilities ── */
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

/* ── Count-up number animation: numbers jump to final value ── */
.count-target { display: inline-block; }

/* ── Navbar fade-in on load ── */
.navbar { animation: fade-in 0.5s ease 0.2s both; }

/* ── Hero content stagger ── */
.hero-badge    { animation: fade-up 0.6s ease 0.3s both; }
.hero-h1       { animation: fade-up 0.6s ease 0.45s both; }
.hero-ctas     { animation: fade-up 0.6s ease 0.75s both; }
.hero-social-proof { animation: fade-up 0.6s ease 0.9s both; }

/* ── Pricing card hover lift ── */
.pricing-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pricing-card:hover { transform: translateY(-4px); }

/* ── Testimonial card fade-up with stagger ── */
.testimonial-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Feature cards stagger fade ── */
.feature-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background-color var(--transition-fast), border-color var(--transition-fast);
}
.feature-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stat counter scale pulse on complete ── */
@keyframes stat-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.stat-value.complete { animation: stat-pop 0.4s ease; }

/* ── Reduced-motion: disable all transitions and animations ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .testimonial-card, .feature-card, .showcase-phone {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-badge, .hero-h1, .hero-ctas, .hero-social-proof, .navbar {
    animation: none !important;
    opacity: 1 !important;
  }
}
