:root {
  --bg: #0a0e1a;
  --bg-soft: #0f1424;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --text-dim: #a6adc4;
  --text-faint: #6b7290;

  --accent: #5b8cff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --accent-warm: #f97316;

  --grad-brand: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  --grad-text: linear-gradient(90deg, #8fb3ff, #b39dff, #6ee7f5);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 50px -20px rgba(91, 140, 255, 0.35);

  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --surface: rgba(10, 14, 30, 0.04);
  --surface-strong: rgba(10, 14, 30, 0.06);
  --border: rgba(10, 14, 30, 0.09);
  --text: #10131f;
  --text-dim: #4b5170;
  --text-faint: #8990ab;
  --shadow-lg: 0 20px 60px -25px rgba(20, 25, 50, 0.25);
  --shadow-glow: 0 0 0 1px rgba(10, 14, 30, 0.05), 0 20px 50px -25px rgba(91, 140, 255, 0.25);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb;
    --bg-soft: #ffffff;
    --surface: rgba(10, 14, 30, 0.04);
    --surface-strong: rgba(10, 14, 30, 0.06);
    --border: rgba(10, 14, 30, 0.09);
    --text: #10131f;
    --text-dim: #4b5170;
    --text-faint: #8990ab;
    --shadow-lg: 0 20px 60px -25px rgba(20, 25, 50, 0.25);
    --shadow-glow: 0 0 0 1px rgba(10, 14, 30, 0.05), 0 20px 50px -25px rgba(91, 140, 255, 0.25);
    color-scheme: light;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 0.95rem;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- utility ---------- */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow-light {
  color: #bcd0ff;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* ---------- reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(91, 140, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(91, 140, 255, 0.65);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-brand);
  z-index: 1000;
  transition: width .1s linear;
}

/* ============================== HEADER ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.topbar {
  background: rgba(91, 140, 255, 0.08);
  font-size: 0.8rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 24px;
  color: var(--text-dim);
  overflow-x: auto;
  white-space: nowrap;
}

.topbar-inner a {
  color: var(--accent);
  font-weight: 600;
}

.topbar-sep {
  opacity: 0.8;
}

.topbar-cta {
  margin-left: auto;
  color: var(--text) !important;
  font-weight: 600;
}

.topbar-cta:hover {
  color: var(--accent) !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: 'Space Grotesk', sans-serif;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px -6px rgba(91, 140, 255, 0.6);
}

.brand-text span {
  color: var(--accent);
}

.brand-logo {
  height: 40px;
  width: 80px;
  display: block;
  border-radius: 8px;
}

.footer-brand .brand-logo {
  height: 48px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-brand);
  transition: width .25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-moon {
  display: none;
}

:root[data-theme="light"] .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-moon {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}

.hero-glow.g1 {
  width: 480px;
  height: 480px;
  background: var(--accent);
  top: -180px;
  left: -140px;
}

.hero-glow.g2 {
  width: 420px;
  height: 420px;
  background: var(--accent-2);
  top: -100px;
  right: -160px;
  animation-delay: -6s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(30px)
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-faint);
}

.hero-visual {
  position: relative;
  height: 420px;
}

.glow-orb {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 260px;
  height: 260px;
  background: var(--grad-brand);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-card {
  position: absolute;
  width: 210px;
  padding: 18px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  animation: orbit-float 7s ease-in-out infinite;
}

.orbit-card strong {
  display: block;
  font-size: 0.95rem;
  margin: 8px 0 4px;
}

.orbit-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-blue {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.dot-purple {
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.dot-teal {
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
}

.card-1 {
  top: 10px;
  left: 0;
  animation-delay: 0s;
}

.card-2 {
  top: 170px;
  right: 0;
  animation-delay: -2.5s;
}

.card-3 {
  bottom: 10px;
  left: 30px;
  animation-delay: -5s;
}

@keyframes orbit-float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-14px)
  }
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-num,
.stat-suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================== MARQUEE ============================== */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
}

.marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}

.marquee-track span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@keyframes scroll-left {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ============================== LABS ============================== */
.labs {
  padding: 100px 0;
}

.lab-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .25s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lab-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  opacity: 0;
  transform: translateY(20px);
  animation: card-in .6s var(--ease) forwards;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.lab-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--card-grad, var(--grad-brand));
  transition: opacity .35s var(--ease);
  z-index: 0;
}

.lab-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.lab-card:hover::before {
  opacity: 0.08;
}

.lab-card.is-hidden {
  display: none;
}

.lab-card-inner {
  position: relative;
  z-index: 1;
}

.lab-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: var(--card-grad, var(--grad-brand));
  box-shadow: 0 10px 24px -8px rgba(91, 140, 255, 0.5);
}

.lab-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.lab-card .lab-grades {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.lab-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.lab-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.lab-more svg {
  width: 14px;
  height: 14px;
  transition: transform .25s var(--ease);
}

.lab-card:hover .lab-more svg {
  transform: translateX(4px);
}

/* ============================== WHY US ============================== */
.why-us {
  padding: 100px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ============================== PROCESS ============================== */
.process {
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  position: relative;
  padding: 32px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ============================== IMPACT ============================== */
.impact {
  padding: 100px 0;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(91, 140, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 80%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.impact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.impact-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 12px 0 16px;
}

.impact-copy p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.impact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.impact-list li {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding-left: 26px;
  position: relative;
}

.impact-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-3);
}

.impact-list strong {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.impact-visual {
  display: flex;
  justify-content: center;
}

.ring-chart {
  position: relative;
  width: 220px;
  height: 220px;
}

.ring-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.ring-fg {
  fill: none;
  stroke: url(#none);
  stroke: var(--accent-3);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.4s var(--ease);
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.ring-label small {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* ============================== FAQ ============================== */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  text-align: left;
  font-size: 0.98rem;
}

.faq-question svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ============================== CONTACT ============================== */
.contact {
  padding: 100px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 12px 0 16px;
}

.contact-copy p {
  color: var(--text-dim);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-weight: 600;
}

.contact-details span {
  margin-right: 8px;
}

.contact-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-highlights .feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
}

.contact-highlights .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-highlights h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-highlights p {
  margin-bottom: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
}

.form-field textarea {
  resize: vertical;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #f87171;
}

.error-msg {
  display: block;
  min-height: 16px;
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 6px;
}

.form-success {
  display: none;
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.form-success.show {
  display: block;
}

/* ============================== FOOTER ============================== */
.footer {
  padding: 70px 0 20px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color .2s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
}

/* ============================== MODAL ============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 15, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
  z-index: 2000;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform .3s var(--ease);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--grad-brand);
  margin-bottom: 20px;
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.modal .lab-grades {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-desc {
  color: var(--text-dim);
  margin: 16px 0 24px;
}

.modal-block {
  margin-bottom: 20px;
}

.modal-block h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-chips span {
  font-size: 0.82rem;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-features li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
  align-items: flex-start;
}

.modal-features li::before {
  content: '✓';
  color: var(--accent-3);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================== PAGE BANNER (subpages) ============================== */
.page-banner {
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner .eyebrow {
  display: block;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 8px 0 14px;
}

.page-banner p {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-dim);
}

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

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Lab detail page */
.lab-detail-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lab-detail-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.lab-detail-body .modal-block {
  margin-bottom: 32px;
}

.lab-detail-cta {
  text-align: center;
  margin-top: 40px;
}

/* Homepage section teasers linking out to dedicated pages */
.teaser-strip {
  padding: 100px 0;
}

.teaser-strip:nth-of-type(even) {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================== BACK TO TOP ============================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(91, 140, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
  z-index: 800;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 320px;
    margin-top: 20px;
  }

  .impact-inner {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-sep {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-soft);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 950;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

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

  .steps {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn-sm {
    display: none;
  }
}