/* ========================================================================
   PrimeXDC Wallet — Marketing Website
   Aesthetic: Premium dark tech, aligned with primenumberslabs.com
   ======================================================================== */

:root {
  --bg: #060611;
  --bg-elevated: #0a0a1b;
  --bg-card: #0f0f24;
  --bg-card-hover: #161635;
  --surface: #1c1c3a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(99, 102, 241, 0.2);

  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dim: #4f46e5;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  --gradient-text: linear-gradient(135deg, #818cf8 0%, #a5b4fc 50%, #c7d2fe 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(129, 140, 252, 0.04) 100%);
  --glow: rgba(99, 102, 241, 0.12);
  --glow-strong: rgba(99, 102, 241, 0.25);

  --teal: #1CBBA0;
  --cyan: #22d3ee;
  --emerald: #10b981;
  --gold: #F59E0B;
  --purple: #7C3AED;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 72px;
  --container: 1200px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--nav-height); scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Noise Texture */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  contain: strict;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10001;
}

/* Gradient Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  opacity: 0.07;
  z-index: 0;
}
.orb-1 { width: 700px; height: 700px; background: var(--accent); top: -300px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: var(--teal); bottom: -200px; right: -200px; }
.orb-3 { width: 400px; height: 400px; background: var(--purple); top: 50%; left: 50%; opacity: 0.04; }

/* Cursor Glow */
#cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
body:hover #cursor-glow { opacity: 1; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(6, 6, 17, 0.7);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
#nav.scrolled {
  background: rgba(6, 6, 17, 0.95);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.nav-logo-img { width: 30px; height: 30px; object-fit: contain; }
.logo-text { color: var(--text); }
.logo-accent { color: var(--accent-light); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out-expo);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link--cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--glow);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 900px;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(99, 102, 241, 0.08) 0%, rgba(28, 187, 160, 0.03) 50%, transparent 70%);
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(15, 15, 36, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.hero-logo-mark { margin-bottom: 24px; }
.hero-main-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 60px rgba(99, 102, 241, 0.3)) drop-shadow(0 0 120px rgba(28, 187, 160, 0.12));
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: #f1f5f9;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), background 0.3s;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 16px var(--glow);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  box-shadow: 0 8px 40px var(--glow-strong);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: 12px; }

/* Hero Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-metric { text-align: center; }
.hero-metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}
.hero-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Browser Icons */
.hero-browsers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.browsers-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.browser-icons {
  display: flex;
  gap: 24px;
  align-items: center;
}
.browser-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.browser-icon:hover { color: var(--text); }
.browser-icon span { font-size: 0.68rem; font-weight: 500; }
.browser-icon--soon { opacity: 0.4; }
.soon-badge {
  position: absolute;
  top: -6px;
  right: -14px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gradient);
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Scroll indicator */
.hero-scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
  animation: scroll-pulse 2.5s infinite;
}
@keyframes scroll-pulse {
  0% { opacity: 0.8; transform: scaleY(1); }
  50% { opacity: 0.2; transform: scaleY(0.5); }
  100% { opacity: 0.8; transform: scaleY(1); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 120px 0; position: relative; z-index: 2; }
.section--alt {
  background: var(--bg-elevated);
  position: relative;
}
.section--alt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 50% 50%, rgba(99, 102, 241, 0.015) 0%, transparent 70%);
  pointer-events: none;
}
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f1f5f9;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.75;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover::before { left: 0; }
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.feature-card--large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 44px 48px;
}
.feature-card--large .feature-icon { grid-row: 1; }
.feature-card--large h3 { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 0; }
.feature-card--large p { grid-column: 2; grid-row: 2; margin-bottom: 0; }
.feature-card--large .feature-chains { grid-column: 3; grid-row: 1 / 3; }
.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-light);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.feature-card--large .feature-icon { margin-bottom: 0; }
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f1f5f9;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Feature accent colors */
[data-accent="teal"] .feature-icon { color: var(--teal); }
[data-accent="teal"]::before { background: linear-gradient(135deg, var(--teal), var(--accent)); }
[data-accent="blue"] .feature-icon { color: #3B82F6; }
[data-accent="purple"] .feature-icon { color: var(--purple); }
[data-accent="gold"] .feature-icon { color: var(--gold); }
[data-accent="cyan"] .feature-icon { color: var(--cyan); }
[data-accent="emerald"] .feature-icon { color: var(--emerald); }

/* Feature chains */
.feature-chains {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-chains img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--border);
  background: var(--bg);
  padding: 4px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-chains img:hover {
  border-color: var(--border-accent);
  transform: scale(1.1);
}
.chain-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  cursor: pointer;
}
.eco-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s;
}
.eco-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.eco-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.eco-logo { height: 32px; width: auto; object-fit: contain; }
.eco-logo--wide { max-width: 120px; }
.eco-logo--round { width: 32px; height: 32px; border-radius: 8px; }
.eco-icon-placeholder {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}
.eco-icon--red { color: #fca5a5; }
.eco-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.eco-badge--green { background: rgba(16, 185, 129, 0.08); color: #6ee7a0; border-color: rgba(16, 185, 129, 0.15); }
.eco-badge--cyan { background: rgba(34, 211, 238, 0.08); color: #67e8f9; border-color: rgba(34, 211, 238, 0.15); }
.eco-badge--red { background: rgba(248, 113, 113, 0.08); color: #fca5a5; border-color: rgba(248, 113, 113, 0.15); }
.eco-badge--purple { background: rgba(192, 132, 252, 0.08); color: #c4b5fd; border-color: rgba(192, 132, 252, 0.15); }
.eco-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f1f5f9;
}
.eco-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.eco-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: gap 0.3s;
  margin-top: auto;
}
.eco-card:hover .eco-link { gap: 10px; }
.eco-link svg { transition: transform 0.3s var(--ease-out-expo); }
.eco-card:hover .eco-link svg { transform: translate(2px, -2px); }

/* ============================================================
   SECURITY
   ============================================================ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo);
}
.security-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 36px;
  width: 3px;
  height: 0;
  background: var(--gradient);
  border-radius: 2px;
  transition: height 0.5s var(--ease-out-expo);
}
.security-card:hover::before { height: 48px; }
.security-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.security-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 16px;
  opacity: 0.5;
}
.security-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f1f5f9;
}
.security-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.download-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #f1f5f9;
}
.download-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  color: var(--text);
}
.download-btn:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.download-btn--primary {
  border-color: rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%);
}
.download-btn--primary:hover {
  border-color: rgba(99, 102, 241, 0.4);
}
.download-btn--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.download-btn-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.download-btn-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #f1f5f9;
}
.download-arrow {
  margin-left: auto;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}
.download-btn:hover .download-arrow {
  color: var(--accent-light);
  transform: translateX(4px);
}
.coming-soon-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ============================================================
   BUILT BY
   ============================================================ */
.section--built-by {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.built-by {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
}
.built-by-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  opacity: 0.85;
}
.built-by-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f1f5f9;
}
.built-by-text h3 a {
  color: var(--accent-light);
  transition: color 0.3s;
}
.built-by-text h3 a:hover { color: #c7d2fe; }
.built-by-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  position: relative;
  z-index: 2;
  background: rgba(6, 6, 17, 0.95);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; margin-top: 2px; }
.footer-brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.footer-brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.footer-columns {
  display: flex;
  gap: 56px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: var(--text-muted);
  transition: color 0.25s;
}
.footer-legal a:hover { color: var(--text-secondary); }

/* ============================================================
   GSAP INITIAL STATES
   ============================================================ */
.hero-badge, .hero-logo-mark, .hero-title, .hero-subtitle,
.hero-actions, .hero-metrics, .hero-browsers { opacity: 0; }
.section-tag, .section-title, .section-desc,
.feature-card, .eco-card, .security-card,
.download-wrapper, .built-by { opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large {
    grid-column: 1 / -1;
    display: block;
    padding: 36px;
  }
  .feature-card--large .feature-chains {
    margin-top: 20px;
  }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .download-wrapper { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  #nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  #nav.scrolled { background: var(--bg); }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 50000;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.25rem; }
  .nav-link--cta { margin-top: 8px; }
  .nav-toggle { display: flex; z-index: 50001; }
  .logo-text { font-size: 0.85rem; }
  .nav-logo-img { width: 26px; height: 26px; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-title { font-size: 2rem; margin-bottom: 16px; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-badge { font-size: 0.7rem; padding: 6px 14px; margin-bottom: 24px; }
  .hero-main-logo { width: 72px; height: 72px; }
  .hero-actions { margin-bottom: 32px; }
  .hero-metrics { gap: 16px; margin-bottom: 32px; }
  .hero-metric-value { font-size: 1.3rem; }
  .hero-metric-divider { height: 24px; }
  .hero-scroll-indicator { display: none; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .section-title { font-size: 1.75rem; }
  .container { padding: 0 20px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-card { padding: 28px; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .eco-card { padding: 24px; }
  .security-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .security-card { padding: 28px; }
  .download-wrapper { grid-template-columns: 1fr; gap: 36px; }
  .built-by { flex-direction: column; text-align: center; }
  .built-by-logo { margin: 0 auto; }

  .footer-top { flex-direction: column; gap: 36px; }
  .footer-columns { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }

  .orb { filter: blur(100px); opacity: 0.04; }
  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 250px; height: 250px; }
  .orb-3 { display: none; }
  #cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 16px 48px; }
  .hero-title { font-size: 1.65rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-badge { font-size: 0.65rem; padding: 6px 12px; gap: 8px; }
  .hero-main-logo { width: 60px; height: 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-metrics { flex-direction: column; gap: 12px; }
  .hero-metric-divider { width: 48px; height: 1px; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 1.5rem; }
  .container { padding: 0 16px; }

  .features-grid,
  .ecosystem-grid,
  .security-grid { grid-template-columns: 1fr; }
  .feature-card, .eco-card, .security-card { padding: 24px 20px; }
  .download-btn { padding: 14px 18px; }
  .btn { font-size: 0.85rem; padding: 11px 22px; }
  .btn-lg { font-size: 0.9rem; padding: 13px 28px; }

  .browser-icons { gap: 16px; }
  .footer-columns { gap: 24px; }
  .footer-col { min-width: 140px; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.35rem; }
}

/* Selection */
::selection { background: rgba(99, 102, 241, 0.25); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.4); }

/* Focus (a11y) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Print */
@media print {
  .noise, .progress-bar, .orb, .hero-bg-grid, .hero-scroll-indicator, #cursor-glow { display: none !important; }
  body { background: #fff; color: #111; }
  .hero, .section, .footer { padding: 24px 0; }
  .feature-card, .eco-card, .security-card, .download-wrapper, .built-by,
  .section-tag, .section-title, .section-desc,
  .hero-badge, .hero-logo-mark, .hero-title, .hero-subtitle, .hero-actions,
  .hero-metrics, .hero-browsers { opacity: 1 !important; transform: none !important; }
}
