/* ========================================================================
   Prime Numbers Labs — Corporate Website
   ======================================================================== */

:root {
  --bg: #04040a;
  --bg-elevated: #08081a;
  --bg-card: #0c0c1d;
  --bg-card-hover: #12122a;
  --surface: #1a1a30;
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text: #ededf5;
  --text-secondary: #9090ac;
  --text-muted: #6a6a88;

  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #a855f7 70%, #d946ef 100%);
  --gradient-text: linear-gradient(135deg, #818cf8 0%, #a78bfa 35%, #c084fc 65%, #e879f9 100%);
  --gradient-cyan: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  --glow: rgba(139, 92, 246, 0.15);
  --glow-strong: rgba(139, 92, 246, 0.35);

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

  --font: 'Inter', -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);
}

/* ---- Skip to content (a11y) ---- */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: var(--gradient);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-to-content:focus {
  top: 0;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.preloader-logo {
  width: 80px;
  height: 80px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5)); }
}
.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.preloader-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- 3D Hero Container ---- */
#hero-3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ---- Noise Texture Overlay ---- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  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;
  will-change: auto;
  transform: translateZ(0);
  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(120px);
  opacity: 0.12;
  z-index: 0;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: #6366f1;
  top: -200px;
  left: -200px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: #a855f7;
  bottom: -150px;
  right: -150px;
}
.orb-3 {
  width: 400px;
  height: 400px;
  background: #22d3ee;
  top: 40%;
  left: 60%;
}

/* ---- Particle Canvas ---- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  contain: strict;
}

/* ---- Cursor Glow ---- */
#cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  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(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  background: rgba(4, 4, 10, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
#nav.scrolled {
  background: rgba(4, 4, 10, 0.95);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.5);
  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-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.logo-icon {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.4rem;
}
.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gradient);
  transition: width 0.3s, left 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }
.nav-link--cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px 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: 120px 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 900px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
  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: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}
.hero-logo-mark {
  margin-bottom: 24px;
}
.hero-main-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.35)) drop-shadow(0 0 120px rgba(99, 102, 241, 0.15));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(12, 12, 29, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.12);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.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: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  box-shadow: 0 12px 48px 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.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 12px; }

/* Partners bar */
.hero-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.partners-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.partners-logos {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.partner-logo {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
.partner-logo:hover {
  opacity: 1;
  color: var(--text-secondary);
}
.partner-logo-img {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(1) brightness(1.8);
  transition: opacity 0.4s, filter 0.4s, transform 0.4s;
}
.partner-logo-img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1.2);
  transform: scale(1.08);
}

/* 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-2), transparent);
  animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ---- Sections ---- */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}
.section--dark {
  background: var(--bg-elevated);
  position: relative;
}
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 20% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.02) 0%, transparent 50%);
  pointer-events: none;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.7;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}
.about-lead {
  font-size: 1.15rem;
  color: var(--text) !important;
  font-weight: 400;
}
.about-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.number-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(8, 8, 20, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
}
.number-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.06);
}
.number-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.number-suffix {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.number-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ---- XDC Impact ---- */
.section--xdc {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #0a0a18 100%);
  position: relative;
  overflow: hidden;
}
.section--xdc::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.impact-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(6, 6, 14, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo);
}
.impact-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(34, 211, 238, 0.05);
}
.impact-card--hero {
  grid-column: 1 / -1;
  padding: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(34, 211, 238, 0.15);
}
.impact-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 48px;
  flex-wrap: wrap;
}
.impact-chain-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}
.impact-quote {
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.01em;
}
.impact-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #22d3ee;
  margin-bottom: 10px;
  padding: 3px 8px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 4px;
  display: inline-block;
}
.impact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.impact-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.impact-cta {
  text-align: center;
  padding-top: 16px;
}
.impact-cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.impact-cta-text strong {
  color: var(--text);
}

/* GSAP handles all reveal animations */

/* ---- Products ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: linear-gradient(145deg, rgba(12, 12, 29, 0.9) 0%, rgba(8, 8, 20, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: border-color 0.5s;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover::after { opacity: 1; }
.product-card:hover {
  border-color: transparent;
}
.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.product-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-2);
}
.product-icon svg { width: 100%; height: 100%; }
.product-icon--img {
  width: auto;
  max-width: 140px;
  height: 36px;
  display: flex;
  align-items: center;
}
.product-logo-svg {
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.product-logo-round {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 8px;
}
.product-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.product-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.product-tagline {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 12px;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.product-tech span {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: gap 0.3s, color 0.3s;
}
.product-link:hover {
  gap: 10px;
  color: var(--accent-3);
}

/* Color variants */
[data-color="blue"] .product-icon { color: #60a5fa; }
[data-color="blue"] .product-badge { background: rgba(96,165,250,0.1); color: #60a5fa; border-color: rgba(96,165,250,0.2); }
[data-color="blue"] .product-tagline { color: #60a5fa; }
[data-color="blue"] .product-link { color: #60a5fa; }

[data-color="green"] .product-icon { color: #4ade80; }
[data-color="green"] .product-badge { background: rgba(74,222,128,0.1); color: #4ade80; border-color: rgba(74,222,128,0.2); }
[data-color="green"] .product-tagline { color: #4ade80; }
[data-color="green"] .product-link { color: #4ade80; }

[data-color="purple"] .product-icon { color: #c084fc; }
[data-color="purple"] .product-badge { background: rgba(192,132,252,0.1); color: #c084fc; border-color: rgba(192,132,252,0.2); }
[data-color="purple"] .product-tagline { color: #c084fc; }
[data-color="purple"] .product-link { color: #c084fc; }

[data-color="red"] .product-icon { color: #f87171; }
[data-color="red"] .product-badge { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.2); }
[data-color="red"] .product-tagline { color: #f87171; }
[data-color="red"] .product-link { color: #f87171; }

[data-color="cyan"] .product-icon { color: #22d3ee; }
[data-color="cyan"] .product-badge { background: rgba(34,211,238,0.1); color: #22d3ee; border-color: rgba(34,211,238,0.2); }
[data-color="cyan"] .product-tagline { color: #22d3ee; }
[data-color="cyan"] .product-link { color: #22d3ee; }

[data-color="violet"] .product-icon { color: #a78bfa; }
[data-color="violet"] .product-badge { background: rgba(167,139,250,0.1); color: #a78bfa; border-color: rgba(167,139,250,0.2); }
[data-color="violet"] .product-tagline { color: #a78bfa; }
[data-color="violet"] .product-link { color: #a78bfa; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(8, 8, 20, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: border-color 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.service-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);
}
.service-card:hover::before { left: 0; }
.service-card:hover {
  border-color: rgba(139, 92, 246, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(139, 92, 246, 0.04);
}
.service-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 16px;
  opacity: 0.6;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li::before {
  content: '→';
  color: var(--accent-2);
  font-size: 0.75rem;
}

/* ---- Stats ---- */
.stats-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 56px 48px;
  background: linear-gradient(145deg, rgba(12, 12, 29, 0.7) 0%, rgba(4, 4, 16, 0.8) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 72px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.stats-banner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2), rgba(34, 211, 238, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.tech-stack {
  text-align: center;
}
.tech-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tech-tags span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: border-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
  cursor: default;
}
.tech-tags span:hover {
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--accent-2);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.08);
}

/* ---- Chains ---- */
.chains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.chain-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(8, 8, 20, 0.85) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo);
}
.chain-card:hover {
  border-color: rgba(139, 92, 246, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.chain-card--highlight {
  border-color: rgba(34, 211, 238, 0.2);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, var(--bg-card) 100%);
  grid-column: 1 / -1;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.06);
}
.chain-card--highlight .chain-name {
  color: #22d3ee;
}
.chain-card--highlight:hover {
  border-color: rgba(34, 211, 238, 0.4);
}
.chain-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.chain-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(1) brightness(1.6);
  transition: filter 0.3s, opacity 0.3s;
}
.chain-card:hover .chain-logo {
  filter: grayscale(0) brightness(1.1);
  opacity: 1;
}
.chain-card--highlight .chain-logo {
  filter: none;
  opacity: 1;
}
.chain-name {
  font-size: 1.05rem;
  font-weight: 700;
}
.chain-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.2);
  margin-left: auto;
  white-space: nowrap;
}
.chain-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.chain-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chain-highlights li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.chain-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0.6;
}
.chain-card--highlight .chain-highlights li::before {
  background: #22d3ee;
}

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.team-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(8, 8, 20, 0.85) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.5s;
}
.team-card:hover::before { opacity: 1; }
.team-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid var(--border);
  transition: border-color 0.4s, transform 0.4s;
}
.team-card:hover .team-photo {
  border-color: var(--accent-2);
  transform: scale(1.05);
}
.team-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}
.team-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.team-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.team-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.team-socials a:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--accent-2);
  transform: translateY(-2px);
}
[data-theme="light"] .team-socials a {
  background: rgba(85, 88, 230, 0.06);
  border-color: rgba(85, 88, 230, 0.12);
}
[data-theme="light"] .team-socials a:hover {
  background: rgba(85, 88, 230, 0.12);
  border-color: rgba(85, 88, 230, 0.3);
  color: var(--accent-1);
}

/* ---- CTA ---- */
.cta-block {
  background: linear-gradient(145deg, rgba(12, 12, 29, 0.85) 0%, rgba(4, 4, 16, 0.95) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 80px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.2), rgba(34, 211, 238, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.cta-block::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  opacity: 0.9;
  display: block;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.25));
}
.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.cta-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-social {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.cta-social:hover {
  color: var(--text);
  border-bottom-color: var(--border-hover);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 2;
  background: rgba(4, 4, 10, 0.95);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---- Theme Toggle ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.06);
}
[data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="light"] .theme-icon--sun { display: none; }

/* ==========================================================================
   LIGHT THEME
   ========================================================================== */
[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-elevated: #eeeef6;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f8;
  --surface: #e8e8f2;
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);

  --text: #1a1a30;
  --text-secondary: #4a4a68;
  --text-muted: #70708e;

  --accent-1: #5558e6;
  --accent-2: #7c4fe0;
  --accent-3: #9645e0;
  --gradient: linear-gradient(135deg, #5558e6 0%, #7c4fe0 40%, #9645e0 70%, #c536d6 100%);
  --gradient-text: linear-gradient(135deg, #5558e6 0%, #7c4fe0 35%, #9645e0 65%, #c536d6 100%);
  --glow: rgba(124, 79, 224, 0.1);
  --glow-strong: rgba(124, 79, 224, 0.2);
}

/* Nav */
[data-theme="light"] #nav {
  background: rgba(247, 247, 251, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] #nav.scrolled {
  background: rgba(247, 247, 251, 0.96);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .nav-link--cta { color: #fff !important; }

/* Preloader */
[data-theme="light"] .preloader { background: var(--bg); }
[data-theme="light"] .preloader-bar { background: rgba(0, 0, 0, 0.06); }

/* Hero */
[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(85, 88, 230, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(150, 69, 224, 0.04) 0%, transparent 50%);
}
[data-theme="light"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}
[data-theme="light"] .hero-main-logo {
  filter: drop-shadow(0 0 40px rgba(124, 79, 224, 0.2)) drop-shadow(0 0 80px rgba(85, 88, 230, 0.1));
}
[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(124, 79, 224, 0.15);
  color: var(--text-secondary);
}

/* Buttons */
[data-theme="light"] .btn-ghost {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Partners */
[data-theme="light"] .partner-logo-img {
  filter: grayscale(1) brightness(0.4);
  opacity: 0.5;
}
[data-theme="light"] .partner-logo-img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 0.9;
}

/* Cards — all types */
[data-theme="light"] .number-card,
[data-theme="light"] .chain-card,
[data-theme="light"] .team-card,
[data-theme="light"] .service-card {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="light"] .number-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), 0 0 20px rgba(124, 79, 224, 0.04);
  border-color: rgba(124, 79, 224, 0.15);
}
[data-theme="light"] .service-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(124, 79, 224, 0.12);
}
[data-theme="light"] .chain-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .team-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(124, 79, 224, 0.15);
}

/* Product cards */
[data-theme="light"] .product-card {
  background: var(--bg-card);
  backdrop-filter: none;
}
[data-theme="light"] .product-card::after {
  background: linear-gradient(135deg, rgba(124, 79, 224, 0.2), rgba(34, 180, 210, 0.2));
}
[data-theme="light"] .product-tech span {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-muted);
  border-color: var(--border);
}

/* Impact section */
[data-theme="light"] .section--xdc {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #e8e8f4 100%);
}
[data-theme="light"] .section--xdc::before {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.04) 0%, transparent 70%);
}
[data-theme="light"] .impact-card {
  background: var(--bg-card);
}
[data-theme="light"] .impact-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), 0 0 30px rgba(34, 180, 210, 0.04);
}
[data-theme="light"] .impact-card--hero {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(124, 79, 224, 0.04) 100%);
  border-color: rgba(34, 211, 238, 0.15);
}
[data-theme="light"] .impact-label {
  color: #0d9aad;
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.12);
}

/* Chain highlight */
[data-theme="light"] .chain-card--highlight {
  border-color: rgba(34, 180, 210, 0.2);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.04) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.04);
}
[data-theme="light"] .chain-card--highlight .chain-name { color: #0d9aad; }
[data-theme="light"] .chain-card--highlight:hover { border-color: rgba(34, 180, 210, 0.35); }
[data-theme="light"] .chain-badge {
  background: rgba(13, 154, 173, 0.08);
  color: #0d9aad;
  border-color: rgba(13, 154, 173, 0.2);
}
[data-theme="light"] .chain-logo {
  filter: grayscale(1) brightness(0.5);
}
[data-theme="light"] .chain-card:hover .chain-logo {
  filter: grayscale(0) brightness(1);
}
[data-theme="light"] .chain-card--highlight .chain-logo {
  filter: none;
}
[data-theme="light"] .chain-highlights li::before {
  background: var(--accent-1);
}
[data-theme="light"] .chain-card--highlight .chain-highlights li::before {
  background: #0d9aad;
}

/* Stats banner */
[data-theme="light"] .stats-banner {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
}
[data-theme="light"] .stats-banner::before {
  background: linear-gradient(135deg, rgba(85, 88, 230, 0.15), rgba(150, 69, 224, 0.1), rgba(34, 180, 210, 0.1));
}

/* Tech tags */
[data-theme="light"] .tech-tags span {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .tech-tags span:hover {
  background: rgba(124, 79, 224, 0.06);
  border-color: rgba(124, 79, 224, 0.25);
  box-shadow: 0 4px 16px rgba(124, 79, 224, 0.06);
}

/* CTA */
[data-theme="light"] .cta-block {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(238, 238, 246, 0.95) 100%);
}
[data-theme="light"] .cta-block::before {
  background: linear-gradient(135deg, rgba(85, 88, 230, 0.2), rgba(150, 69, 224, 0.15), rgba(34, 180, 210, 0.2));
}
[data-theme="light"] .cta-block::after {
  background: radial-gradient(ellipse at center, rgba(124, 79, 224, 0.06) 0%, transparent 60%);
}
[data-theme="light"] .cta-logo {
  filter: drop-shadow(0 0 20px rgba(124, 79, 224, 0.15));
}

/* Footer */
[data-theme="light"] .footer {
  background: rgba(247, 247, 251, 0.98);
}

/* Section dark */
[data-theme="light"] .section--dark {
  background: var(--bg-elevated);
}
[data-theme="light"] .section--dark::after {
  background:
    radial-gradient(ellipse 80% 40% at 20% 80%, rgba(85, 88, 230, 0.02) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(150, 69, 224, 0.015) 0%, transparent 50%);
}

/* Background effects — tone down for light */
[data-theme="light"] .orb { opacity: 0.06; }
[data-theme="light"] #particles { opacity: 0.15; }
[data-theme="light"] .noise { opacity: 0.015; }
[data-theme="light"] #cursor-glow {
  background: radial-gradient(circle, rgba(124, 79, 224, 0.06) 0%, transparent 70%);
}

/* Scrollbar */
[data-theme="light"]::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="light"]::-webkit-scrollbar-thumb { background: rgba(124, 79, 224, 0.2); }
[data-theme="light"]::-webkit-scrollbar-thumb:hover { background: rgba(124, 79, 224, 0.35); }

/* Selection */
[data-theme="light"] ::selection {
  background: rgba(124, 79, 224, 0.2);
  color: #1a1a30;
}

/* Product color variants — darker shades for light bg contrast */
[data-theme="light"] [data-color="blue"] .product-badge { background: rgba(59, 130, 246, 0.08); color: #2563eb; border-color: rgba(37, 99, 235, 0.15); }
[data-theme="light"] [data-color="blue"] .product-tagline { color: #2563eb; }
[data-theme="light"] [data-color="blue"] .product-link { color: #2563eb; }

[data-theme="light"] [data-color="green"] .product-badge { background: rgba(21, 128, 61, 0.08); color: #15803d; border-color: rgba(21, 128, 61, 0.15); }
[data-theme="light"] [data-color="green"] .product-tagline { color: #15803d; }
[data-theme="light"] [data-color="green"] .product-link { color: #15803d; }

[data-theme="light"] [data-color="purple"] .product-badge { background: rgba(147, 51, 234, 0.08); color: #7c3aed; border-color: rgba(124, 58, 237, 0.15); }
[data-theme="light"] [data-color="purple"] .product-tagline { color: #7c3aed; }
[data-theme="light"] [data-color="purple"] .product-link { color: #7c3aed; }

[data-theme="light"] [data-color="red"] .product-badge { background: rgba(220, 38, 38, 0.08); color: #dc2626; border-color: rgba(220, 38, 38, 0.15); }
[data-theme="light"] [data-color="red"] .product-tagline { color: #dc2626; }
[data-theme="light"] [data-color="red"] .product-link { color: #dc2626; }

[data-theme="light"] [data-color="cyan"] .product-badge { background: rgba(8, 110, 120, 0.08); color: #0a7480; border-color: rgba(8, 110, 120, 0.15); }
[data-theme="light"] [data-color="cyan"] .product-tagline { color: #0a7480; }
[data-theme="light"] [data-color="cyan"] .product-link { color: #0a7480; }

[data-theme="light"] [data-color="violet"] .product-badge { background: rgba(124, 58, 237, 0.08); color: #6d28d9; border-color: rgba(109, 40, 217, 0.15); }
[data-theme="light"] [data-color="violet"] .product-tagline { color: #6d28d9; }
[data-theme="light"] [data-color="violet"] .product-link { color: #6d28d9; }

/* Theme transition: only background/color/border, not opacity/filter (conflicts with GSAP) */
html[data-theme-transitioning] body,
html[data-theme-transitioning] #nav,
html[data-theme-transitioning] .product-card,
html[data-theme-transitioning] .service-card,
html[data-theme-transitioning] .impact-card,
html[data-theme-transitioning] .team-card,
html[data-theme-transitioning] .chain-card,
html[data-theme-transitioning] .number-card,
html[data-theme-transitioning] .stats-banner,
html[data-theme-transitioning] .cta-block,
html[data-theme-transitioning] .hero-badge,
html[data-theme-transitioning] .footer,
html[data-theme-transitioning] .tech-tags span,
html[data-theme-transitioning] .product-tech span,
html[data-theme-transitioning] .product-badge,
html[data-theme-transitioning] .btn-ghost,
html[data-theme-transitioning] .theme-toggle,
html[data-theme-transitioning] .nav-link,
html[data-theme-transitioning] .section--dark,
html[data-theme-transitioning] .section--xdc {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ---- Word split styling ---- */
.word { overflow: hidden; display: inline-block; vertical-align: top; }
.word-inner { display: inline-block; will-change: transform; }

/* Hide hero elements until GSAP animates them */
.hero-badge, .hero-logo-mark, .hero-title, .hero-subtitle, .hero-actions, .hero-partners {
  opacity: 0;
}

/* Sections initially hidden for GSAP reveals */
.section-tag, .section-title, .section-desc,
.product-card, .service-card, .impact-card,
.chain-card, .team-card, .stats-banner, .cta-block,
.impact-cta, .about-text, .about-numbers, .tech-tags span {
  opacity: 0;
}

/* ---- Responsive ---- */

/* Tablet landscape */
@media (max-width: 1024px) {
  .products-grid,
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-numbers { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet portrait & small tablets */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  #nav {
    z-index: 50000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #04040a;
  }
  #nav.scrolled {
    background: #04040a;
  }
  [data-theme="light"] #nav,
  [data-theme="light"] #nav.scrolled {
    background: #f7f7fb;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #04040a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 50000;
    overflow-y: auto;
  }
  [data-theme="light"] .nav-links {
    background: #f7f7fb;
  }
  .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: 24px; height: 24px; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-main-logo { width: 90px; height: 90px; }
  .hero-title { font-size: 2rem; margin-bottom: 16px; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 28px; line-height: 1.65; }
  .hero-badge { font-size: 0.7rem; padding: 6px 14px; margin-bottom: 24px; text-align: center; line-height: 1.5; }
  .hero-actions { margin-bottom: 40px; }
  .hero-scroll-indicator { display: none; }

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

  .products-grid,
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card { padding: 24px; }
  .product-card-header { flex-wrap: wrap; gap: 8px; }
  .product-badge { flex-shrink: 0; font-size: 0.65rem; padding: 3px 8px; }
  .product-icon--img { max-width: 110px; height: 30px; }
  .product-name { font-size: 1.15rem; }
  .product-desc { font-size: 0.82rem; }
  .product-tech span { font-size: 0.68rem; padding: 4px 8px; }

  .service-card { padding: 28px; }
  .service-card h3 { font-size: 1.05rem; }
  .service-card p { font-size: 0.85rem; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-card { padding: 20px 16px; }
  .team-card p { font-size: 0.78rem; }
  .team-photo { width: 64px; height: 64px; margin-bottom: 12px; }

  .chains-grid { grid-template-columns: 1fr; }
  .chain-card--highlight { grid-column: auto; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-card-inner { padding: 24px; gap: 16px; }
  .impact-quote { font-size: 1.05rem; }

  .about-numbers { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .number-card { padding: 24px; }
  .number-value { font-size: 2rem; }

  .stats-banner {
    flex-direction: column;
    gap: 20px;
    padding: 28px 24px;
  }
  .stat-divider { width: 48px; height: 1px; }
  .stat-value { font-size: 2rem; }

  .tech-tags { gap: 8px; }
  .tech-tags span { padding: 6px 14px; font-size: 0.75rem; }

  .partners-logos { gap: 20px; }
  .partner-logo-img { height: 24px; }

  .cta-block { padding: 40px 24px; }
  .cta-logo { width: 60px; height: 60px; margin-bottom: 20px; }
  .cta-title { font-size: 1.6rem; }
  .cta-text { font-size: 0.95rem; margin-bottom: 24px; }
  .cta-actions { margin-bottom: 32px; }
  .cta-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .cta-social { font-size: 0.8rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

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

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

  .products-grid,
  .services-grid { grid-template-columns: 1fr; }
  .product-card { padding: 24px 20px; }
  .product-card-header { flex-wrap: nowrap; }
  .product-badge { font-size: 0.7rem; padding: 4px 10px; }
  .product-icon--img { max-width: 140px; height: 36px; }
  .service-card { padding: 24px 20px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-card { padding: 16px 12px; }
  .team-card h4 { font-size: 0.9rem; }
  .team-role { font-size: 0.72rem; }
  .team-card p { font-size: 0.72rem; line-height: 1.45; }
  .team-photo { width: 56px; height: 56px; }
  .team-socials { gap: 8px; margin-top: 10px; }
  .team-socials a { width: 28px; height: 28px; }

  .about-numbers { grid-template-columns: 1fr 1fr; gap: 12px; }
  .number-card { padding: 20px 16px; }
  .number-value { font-size: 1.8rem; }
  .number-label { font-size: 0.72rem; }

  .impact-card { padding: 24px 20px; }
  .impact-card-inner { padding: 20px 16px; flex-direction: column; text-align: center; }
  .impact-chain-logo { height: 32px; }
  .impact-quote { font-size: 0.95rem; }
  .impact-card h3 { font-size: 0.95rem; }
  .impact-card p { font-size: 0.8rem; }

  .chain-card { padding: 24px 20px; }
  .chain-desc { font-size: 0.8rem; }
  .chain-highlights li { font-size: 0.75rem; }

  .stats-banner { padding: 24px 20px; gap: 16px; }
  .stat-value { font-size: 1.75rem; }
  .stat-label { font-size: 0.72rem; }

  .partners-logos { gap: 14px; }
  .partner-logo-img { height: 20px; max-width: 80px; }

  .cta-block { padding: 32px 16px; border-radius: var(--radius-lg); }
  .cta-title { font-size: 1.4rem; }
  .cta-text { font-size: 0.88rem; }
  .cta-links { gap: 8px 16px; }
  .cta-social { font-size: 0.75rem; }

  .btn { font-size: 0.85rem; padding: 11px 22px; }
  .btn-lg { font-size: 0.9rem; padding: 13px 28px; }

  .footer-links { gap: 12px; }
  .footer-links a { font-size: 0.75rem; }
  .footer-brand { font-size: 0.8rem; }
  .footer-copy { font-size: 0.7rem; }
}

/* Very small phones */
@media (max-width: 360px) {
  .hero-title { font-size: 1.5rem; }
  .hero-badge { font-size: 0.6rem; }
  .section-title { font-size: 1.35rem; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 20px 16px; }
  .team-photo { width: 64px; height: 64px; }
  .partner-logo-img { height: 18px; max-width: 70px; }
  .partners-logos { gap: 12px; }
}

/* Mobile performance: reduce heavy effects */
@media (max-width: 768px) {
  #cursor-glow { display: none !important; }
  .orb { filter: blur(80px); opacity: 0.06; }
  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 250px; height: 250px; }
  .orb-3 { display: none; }
  #particles { opacity: 0.15; }
  #hero-3d { display: none !important; }
  .hero::before { width: 100%; }
  .hero-bg-grid { background-size: 40px 40px; }
}

/* ---- Selection ---- */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.5); }

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

/* ---- Link underline animations ---- */
.product-link svg {
  transition: transform 0.3s var(--ease-out-expo);
}
.product-link:hover svg {
  transform: translate(2px, -2px);
}

/* ---- Service list refined ---- */
.service-list li {
  transition: color 0.3s;
}
.service-card:hover .service-list li {
  color: var(--text-secondary);
}

/* ---- Partner logos on hover ---- */
.partners-logos {
  transition: gap 0.3s;
}

/* ---- Smooth image loading ---- */
img {
  transition: opacity 0.3s;
}

/* ---- Print styles ---- */
@media print {
  .noise, .progress-bar, .orb, #particles, #cursor-glow, #hero-3d, .hero-bg-grid { display: none !important; }
  body { background: #fff; color: #111; }
  .hero, .section, .footer { padding: 24px 0; }
  .product-card, .service-card, .team-card, .chain-card, .impact-card,
  .stats-banner, .cta-block, .about-text, .about-numbers,
  .section-tag, .section-title, .section-desc,
  .hero-badge, .hero-logo-mark, .hero-title, .hero-subtitle, .hero-actions, .hero-partners,
  .tech-tags span, .impact-cta { opacity: 1 !important; transform: none !important; }
}
