:root {
  --bg: #07070a;
  --bg-translucent: rgba(7, 7, 10, 0.82);
  --surface: #0f1015;
  --surface-raised: #151720;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f7;
  --text-muted: #9ba0b4;
  --text-dim: #6c7084;
  --groove-pink: #ff2a85;
  --groove-pink-glow: rgba(255, 42, 133, 0.35);
  --groove-gold: #f4c542;
  --groove-gold-glow: rgba(244, 197, 66, 0.3);
  --groove-cyan: #00f0ff;
  --groove-purple: #7928ca;
  --glow-gradient: linear-gradient(135deg, #ff2a85 0%, #f4c542 100%);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "SF Mono", Consolas, monospace;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--groove-pink);
  color: #ffffff;
}

/* Ambient Deep Space Light */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 42, 133, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 82% 38%, rgba(244, 197, 66, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 18% 68%, rgba(121, 40, 202, 0.1) 0%, transparent 48%);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--bg-translucent);
  border-bottom: 1px solid var(--surface-border);
  transition: border-color 0.25s ease;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-badge img,
.logo-badge svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glow-gradient);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.desktop-app-btns {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Mobile Menu Toggle Button */
.mobile-lang-tag {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--groove-pink);
  letter-spacing: 0.05em;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 101;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--surface-border-strong);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer (placed outside header to escape backdrop-filter containing block) */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100dvh - 58px);
  background: rgba(7, 7, 10, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 1.5rem 1.25rem 3.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--surface-border);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  z-index: 999;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.mobile-lang-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.mobile-lang-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.mobile-lang-pill {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border-strong);
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  max-width: 100% !important;
}

.mobile-lang-pill .lang-link {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 2rem;
}

.mobile-nav-links a {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.mobile-nav-links a:hover {
  color: var(--groove-pink);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Language Navigation */
.lang-nav {
  display: flex;
  align-items: center;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: 9999px;
  padding: 0.2rem 0.35rem;
  gap: 0.15rem;
}

.lang-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.lang-link.active {
  color: #07070a;
  background: var(--glow-gradient);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--surface-border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  background: var(--glow-gradient);
  color: #07070a;
  border: none;
  box-shadow: 0 4px 18px var(--groove-pink-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 42, 133, 0.55);
}

.btn-secondary {
  background: rgba(244, 197, 66, 0.12);
  color: var(--groove-gold);
  border: 1px solid rgba(244, 197, 66, 0.3);
}

.btn-secondary:hover {
  background: rgba(244, 197, 66, 0.2);
  border-color: var(--groove-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--groove-gold-glow);
}

.btn-app-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
}

.c3n0-btn-icon {
  border-radius: 4px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8.5rem 2rem 5rem;
  text-align: center;
  z-index: 1;
}

.hero-canvas-container {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.95;
}

#grooviton-canvas {
  width: 100%;
  height: 100%;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--groove-gold);
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--groove-pink);
  box-shadow: 0 0 10px var(--groove-pink);
  animation: pulse-beat 1.25s infinite ease-in-out;
}

@keyframes pulse-beat {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 1; box-shadow: 0 0 16px var(--groove-pink); }
}

.hero-title {
  font-size: clamp(2.8rem, 6.2vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 950px;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #ff2a85 55%, #f4c542 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2.8rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

/* Particle Telemetry Grid */
.particle-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  width: 100%;
  background: rgba(15, 16, 21, 0.7);
  border: 1px solid var(--surface-border);
  border-radius: 1.25rem;
  padding: 1.35rem 2rem;
  backdrop-filter: blur(14px);
}

.spec-item {
  text-align: center;
}

.spec-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.spec-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.symbol-inline-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
}
  font-weight: 700;
  color: var(--text);
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 2rem;
}

#theory {
  padding-bottom: 5rem;
}

#ecosystem {
  padding-top: 10rem;
  padding-bottom: 7rem;
}

#ecosystem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: radial-gradient(circle, rgba(255, 42, 133, 0.4) 0%, rgba(244, 197, 66, 0.25) 45%, transparent 100%);
}

#platform {
  padding-top: 9rem;
}

#platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.35) 0%, rgba(161, 51, 255, 0.2) 50%, transparent 100%);
}

#stats {
  padding-top: 9rem;
}

#stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--groove-pink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Theory Grid */
.theory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.theory-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 1.5rem;
  padding: 2.75rem 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glow-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theory-card:hover {
  transform: translateY(-5px);
  border-color: var(--surface-border-strong);
  background: var(--surface-raised);
}

.theory-card:hover::before {
  opacity: 1;
}

.theory-icon {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.theory-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.theory-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Ecosystem Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: linear-gradient(180deg, rgba(20, 22, 30, 0.85) 0%, rgba(15, 16, 21, 0.95) 100%);
  border: 1px solid var(--surface-border);
  border-radius: 1.75rem;
  padding: 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card.dm {
  border-top: 3px solid var(--groove-pink);
}

.product-card.c3n0 {
  border-top: 3px solid var(--groove-gold);
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  width: fit-content;
}

.dm .product-tag {
  background: rgba(255, 42, 133, 0.15);
  color: var(--groove-pink);
}

.c3n0 .product-tag {
  background: rgba(244, 197, 66, 0.15);
  color: var(--groove-gold);
}

.product-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.product-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.product-features {
  list-style: none;
  margin-bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: #d8dbe9;
}

.product-features li svg {
  flex-shrink: 0;
  color: var(--groove-cyan);
}

/* Footer */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 4.5rem 2rem 3.5rem;
  position: relative;
  z-index: 1;
  background: #050508;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsiveness */
@media (max-width: 960px) {
  .desktop-nav,
  .desktop-app-btns,
  .desktop-lang {
    display: none !important;
  }

  .mobile-lang-tag {
    display: inline-flex;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  .nav-container {
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
  }

  .hero-canvas-container {
    top: 36%;
    width: 480px;
    height: 480px;
  }

  .particle-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 4.5rem 1.25rem;
  }

  #theory {
    padding-bottom: 3rem;
  }

  #ecosystem {
    padding-top: 7rem;
    padding-bottom: 4.5rem;
  }

  #platform,
  #stats {
    padding-top: 6.5rem;
  }

  .nav-container {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .logo-badge {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding: 6.5rem 1.25rem 4rem;
  }

  .hero-title {
    font-size: clamp(1.95rem, 6.8vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-canvas-container {
    top: 250px;
    width: 330px;
    height: 330px;
  }

  .particle-spec-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1rem 0.85rem;
    gap: 1rem;
  }

  .spec-value {
    font-size: 0.95rem;
  }

  .product-card {
    padding: 2.25rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 380px) {
  .logo span {
    font-size: 0.9rem;
  }
}
