/* ============================================================
   QA2 Labs — site stylesheet
   Palette: #09090d near-black (bg), #a78bfa violet-400 (accent),
            #0d0d12 dark sections, #ffffff white text
   Typography: Space Grotesk (headings), Space Mono (labels/code)
   ============================================================ */

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

:root {
  --bg:            #09090d;
  --bg-section:    #0d0d12;
  --bg-card:       #111118;
  --bg-dark:       #09090d;
  --accent:        #a78bfa;
  --accent-dim:    #8b5cf6;
  --accent-pale:   rgba(167, 139, 250, 0.12);
  --text:          #ffffff;
  --text-dim:      #8a8a9a;
  --text-muted:    #555566;
  --border:        rgba(167, 139, 250, 0.15);
  --border-dark:   rgba(167, 139, 250, 0.10);
  --glow:          rgba(167, 139, 250, 0.25);
  --radius:        8px;
  --font:          'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'Space Mono', 'Cascadia Code', 'Fira Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- LOGO FILTER ------------------------------------------ */
.hero-logo,
.footer-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(167, 139, 250, 0.35));
}
.nav-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(167, 139, 250, 0.28));
  max-width: 150px;
}

/* ---- NAV -------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 9, 13, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  display: block;
  height: 100px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- HERO ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
  background: var(--bg);
}

#quantumCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
}

.hero-logo-wrap {
  margin-top: -5rem;
  margin-bottom: -14rem;
}

.hero-logo {
  width: min(920px, 90vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(1.9rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: #09090d;
  background: var(--accent);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  padding: 1.25rem 1.75rem;
  border-radius: 8px;
  font-weight: 500;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.3rem;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ---- BUTTONS ---------------------------------------------- */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #09090d;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 6px;
  text-decoration: none;
  transition: box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 20px var(--glow);
}

.btn-primary:hover {
  background: #c4b5fd;
  box-shadow: 0 4px 36px var(--glow);
}

/* ---- STAT STRIP ------------------------------------------- */
.stat-strip {
  background: var(--accent);
  padding: 2.25rem 2rem;
}

.stat-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 160px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: #09090d;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(9, 9, 13, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(9, 9, 13, 0.2);
  flex-shrink: 0;
}

/* ---- SECTIONS --------------------------------------------- */
.section {
  padding: 6rem 2rem;
  background: #ffffff;
  color: #09090d;
}

.section--dark {
  background: var(--bg-section);
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 680px;
  text-align: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.75rem;
}

.section--dark .section-label {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #09090d;
}

.section--dark .section-title {
  color: #ffffff;
}

.section-body {
  font-size: 1.05rem;
  color: #445566;
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.section--dark .section-body {
  color: var(--text-dim);
}

.container--narrow .section-body { margin: 0 auto 2.5rem; }

/* ---- RESEARCH LIST (replaces cards) ----------------------- */
.research-list {
  margin-top: 3rem;
  max-width: 860px;
}

.research-item {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.research-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.research-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #09090d;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.research-item p {
  font-size: 1rem;
  color: #445566;
  line-height: 1.75;
  max-width: 680px;
}

.research-tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #09090d;
  background: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.45);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
}

/* ---- PIPELINE --------------------------------------------- */
.pipeline-intro {
  max-width: 680px;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  flex: 1;
  min-width: 96px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pipeline-step:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.18);
}

.pipeline-step--certify {
  border-color: rgba(139, 92, 246, 0.4);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #09090d;
  text-align: center;
}

.pipeline-arrow {
  color: #999aaa;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pipeline-note {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #445566;
  line-height: 1.65;
  border-left: 2px solid rgba(139, 92, 246, 0.35);
  padding-left: 1.25rem;
  max-width: 640px;
}

/* ---- FOOTER ----------------------------------------------- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 15px 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  margin: 30px 0;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 112px;
    left: 0;
    right: 0;
    background: rgba(9, 9, 13, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  .stat-strip-inner {
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .pipeline {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}
