:root {
  --graphite-deep: #1a1a1a;
  --graphite: #2a2a2a;
  --lab-white: #fdfdfd;
  --cold-blue: #4cc9f0;
  --cold-blue-dim: #266699;
  --neon-purple: #aa00ff;
  --neon-purple-soft: #8033cc;
  --energy-glow: #66ccff;
  --border: rgba(76, 201, 240, 0.22);
  --card: rgba(42, 42, 42, 0.88);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--lab-white);
  background:
    linear-gradient(145deg, var(--graphite-deep) 0%, var(--graphite) 42%, #151515 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--energy-glow);
  text-decoration: none;
}

a:hover {
  color: var(--cold-blue);
}

.lab-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(38, 102, 153, 0.28) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: pulse 4.5s ease-in-out infinite alternate;
}

.glow-purple {
  width: 42vw;
  height: 42vw;
  top: -8vw;
  right: -6vw;
  background: radial-gradient(circle, rgba(170, 0, 255, 0.22), transparent 70%);
}

.glow-blue {
  width: 34vw;
  height: 34vw;
  bottom: 8vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.16), transparent 70%);
  animation-delay: 1.2s;
}

@keyframes pulse {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lab-white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(170, 0, 255, 0.25);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: rgba(253, 253, 253, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--energy-glow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(42, 42, 42, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--lab-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cold-blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
}

.lead,
.section-head p,
.feature-body p,
.sector-card p,
.legal-content p,
.support-card p {
  color: rgba(253, 253, 253, 0.78);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(32px, 6vw, 72px);
  min-height: calc(100vh - var(--header-h));
}

.hero-copy .lead {
  max-width: 34rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--graphite-deep);
  background: linear-gradient(135deg, var(--energy-glow), var(--cold-blue));
  box-shadow: 0 12px 30px rgba(102, 204, 255, 0.25);
}

.btn-primary:hover {
  color: var(--graphite-deep);
  box-shadow: 0 16px 36px rgba(102, 204, 255, 0.34);
}

.btn-ghost {
  color: var(--lab-white);
  border: 1px solid rgba(170, 0, 255, 0.45);
  background: rgba(42, 42, 42, 0.55);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  min-width: 120px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--energy-glow);
}

.hero-stats span {
  font-size: 0.88rem;
  color: rgba(253, 253, 253, 0.68);
}

.hero-visual {
  position: relative;
}

.hero-orbit {
  position: relative;
  padding: 28px;
}

.hero-main {
  width: 100%;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(170, 0, 255, 0.28);
  box-shadow: var(--shadow), 0 0 60px rgba(170, 0, 255, 0.12);
}

.orbit-icon {
  position: absolute;
  width: clamp(52px, 8vw, 72px);
  height: clamp(52px, 8vw, 72px);
  padding: 10px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid rgba(76, 201, 240, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: float 5s ease-in-out infinite;
}

.orbit-1 { top: 8%; left: -4%; animation-delay: 0s; }
.orbit-2 { top: 18%; right: -6%; animation-delay: 0.8s; }
.orbit-3 { bottom: 14%; left: 4%; animation-delay: 1.6s; }
.orbit-4 { bottom: 8%; right: 0; animation-delay: 2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.sector-card,
.legal-panel,
.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card img,
.sector-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-body,
.sector-card {
  padding: 22px;
}

.mechanics-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(26, 26, 26, 0.72);
  border: 1px dashed rgba(170, 0, 255, 0.28);
}

.mechanics-strip img {
  width: 58px;
  height: 58px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(42, 42, 42, 0.95);
  border: 1px solid rgba(76, 201, 240, 0.25);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.sector-card {
  grid-column: span 2;
}

.sector-card--featured {
  grid-column: span 2;
  border-color: rgba(170, 0, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(128, 51, 204, 0.18), rgba(42, 42, 42, 0.92));
}

.legal-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 0;
}

.legal-intro {
  padding: clamp(24px, 4vw, 40px);
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(128, 51, 204, 0.14), transparent);
}

.legal-updated {
  margin: 18px 0 0;
  color: rgba(253, 253, 253, 0.55);
  font-size: 0.92rem;
}

.legal-content {
  padding: clamp(24px, 4vw, 40px);
}

.legal-content h3 {
  margin-top: 28px;
  color: var(--energy-glow);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.support-card {
  padding: clamp(24px, 4vw, 36px);
}

.support-card ul {
  margin: 0 0 24px;
  padding-left: 18px;
  color: rgba(253, 253, 253, 0.78);
}

.support-card li + li {
  margin-top: 10px;
}

.support-meta {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.support-meta .label {
  display: block;
  margin-bottom: 4px;
  color: var(--cold-blue);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 24px;
  padding: 40px clamp(20px, 4vw, 48px) 56px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(16, 16, 16, 0.88);
}

.site-footer .brand {
  justify-content: center;
  margin-bottom: 10px;
}

.site-footer p {
  margin: 8px 0;
  color: rgba(253, 253, 253, 0.68);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 18px 0;
}

.copyright {
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .legal-panel,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-card,
  .sector-card--featured {
    grid-column: span 1;
  }

  .legal-intro {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(20, 20, 20, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(76, 201, 240, 0.12);
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .orbit-icon {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .glow,
  .orbit-icon,
  .reveal {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
