/* Respirix — Marketing Page (Dark Theme) */

:root {
  /* Deep blue/navy palette matching the app */
  --accent: #3b82f6;
  --accent-secondary: #06b6d4;
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-soft: rgba(59, 130, 246, 0.1);

  /* Dark backgrounds */
  --bg: #0a0e1a;
  --bg-alt: #0f1424;
  --bg-elevated: #151b2e;
  --bg-card: #151b2e;
  --hero-gradient: radial-gradient(ellipse at top center, #1a2540 0%, #0f1424 40%, #0a0e1a 100%);

  /* Text */
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 4px 20px rgba(59, 130, 246, 0.3);

  /* Spacing & sizing */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1120px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

/* Skip link */
.skiplink {
  position: absolute;
  left: -9999px;
  z-index: 999;
}
.skiplink:focus {
  left: 16px;
  top: 16px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand__name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav__cta {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-glow);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle:hover {
  background: var(--bg-elevated);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Typography */
.h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.h1-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.fineprint {
  font-size: 14px;
  color: var(--text-muted);
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 120px;
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.15);
  top: -200px;
  right: -150px;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.1);
  bottom: -150px;
  left: -100px;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.1);
  top: 50%;
  left: 30%;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  max-width: 540px;
}

.hero__media {
  display: flex;
  justify-content: center;
}

/* Phone mockup */
.phone {
  width: 280px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.1);
  animation: float 6s ease-in-out infinite;
}

.phone__screen {
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  background: linear-gradient(180deg, #0f1424 0%, #0a0e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Breathing demo animation */
.breathing-demo {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-demo__circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 180, 255, 0.9) 0%, rgba(59, 130, 246, 0.6) 60%, rgba(59, 130, 246, 0.2) 100%);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.2);
  transition: transform 4s cubic-bezier(0.37, 0, 0.63, 1);
  transform: scale(0.55);
}

.breathing-demo__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: transform 4s cubic-bezier(0.37, 0, 0.63, 1);
}

.breathing-demo__ring--1 {
  width: 100px;
  height: 100px;
  transform: scale(0.55);
}

.breathing-demo__ring--2 {
  width: 120px;
  height: 120px;
  border-color: rgba(59, 130, 246, 0.15);
  transform: scale(0.55);
}

.breathing-demo__ring--3 {
  width: 140px;
  height: 140px;
  border-color: rgba(59, 130, 246, 0.08);
  transform: scale(0.55);
}

.breathing-demo__label {
  position: absolute;
  bottom: -30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Buttons */
.ctaRow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.ctaRow--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md), 0 6px 30px rgba(59, 130, 246, 0.4);
}

.btn--coming-soon {
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
}

.btn--secondary {
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* Trust line */
.trustLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-secondary);
}

.trustLine li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trustLine li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

/* Section headers */
.section-header {
  margin-bottom: 56px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header__desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.feature__content {
  flex: 1;
}

.feature__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
}

.step__content {
  flex: 1;
}

.step__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.step__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* Protocol cards */
.protocols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.protocol-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.protocol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
}

.protocol-card__timing {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.protocol-card__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.protocol-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Gallery */
.gallery {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.figure {
  flex-shrink: 0;
  width: 180px;
  margin: 0;
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.1);
}

.figure:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.figure img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.is-open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__caption {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  visibility: hidden;
}

.lightbox.is-open .lightbox__close {
  visibility: visible;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  visibility: hidden;
}

.lightbox.is-open .lightbox__nav {
  visibility: visible;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  visibility: hidden;
}

.lightbox.is-open .lightbox__counter {
  visibility: visible;
}

body.lightbox-open {
  overflow: hidden;
}

/* CTA section */
.cta-section {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer__brand {
  color: var(--text);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a:hover {
  color: var(--text);
}

/* Health disclaimer */
.health-disclaimer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.health-disclaimer .container {
  padding-top: 16px;
  padding-bottom: 16px;
}

.health-disclaimer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.health-disclaimer strong {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Science page */
.science-hero {
  text-align: center;
  padding: 120px 0 100px;
}

.science-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.science-hero__lead {
  max-width: 600px;
  margin: 0 auto;
}

/* Science cards (key findings) */
.science-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.science-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.science-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.2);
}

.science-card__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.science-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.3;
}

.science-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.6;
}

.science-card__cite {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* Physiological targets */
.targets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.target-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-secondary);
  transition: border-color var(--transition);
}

.target-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.target-item__icon {
  flex-shrink: 0;
  color: var(--accent);
}

/* Protocol details */
.protocol-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.protocol-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.protocol-detail:hover {
  border-color: rgba(59, 130, 246, 0.2);
}

.protocol-detail__header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.protocol-detail__timing {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.protocol-detail__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.protocol-detail__role {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.protocol-detail__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 28px 32px;
}

.protocol-detail__params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.param {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.param__value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.protocol-detail__effects h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.protocol-detail__effects ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.protocol-detail__effects li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0 4px 16px;
  position: relative;
}

.protocol-detail__effects li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* App screenshots row */
.science-app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.science-app-row__copy .lead {
  margin-bottom: 24px;
}

.science-outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.science-outcomes li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0 8px 20px;
  position: relative;
}

.science-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--gradient-accent);
  border-radius: 50%;
}

.science-app-row__screens {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.science-phone {
  width: 180px;
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(59, 130, 246, 0.08);
}

.science-phone--offset {
  margin-top: 40px;
}

.science-phone img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
}

.metric-card__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.metric-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* References */
.references {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ref-group__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ref-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.ref-list li:last-child {
  border-bottom: none;
}

.ref-list em {
  color: var(--text-muted);
}

/* Science page responsive */
@media (max-width: 900px) {
  .science-cards {
    grid-template-columns: 1fr;
  }

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

  .protocol-detail__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .science-app-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .science-outcomes li {
    text-align: left;
  }

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

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

@media (max-width: 640px) {
  .science-hero {
    padding: 80px 0 64px;
  }

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

  .protocol-detail__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
  }

  .protocol-detail__body {
    padding: 20px 24px;
  }

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

  .science-phone {
    width: 150px;
    padding: 8px;
    border-radius: 22px;
  }

  .science-phone img {
    border-radius: 14px;
  }
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .phone {
    animation: none;
  }

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

/* Page content (Support, Privacy) */
.page-hero {
  padding-bottom: 48px;
}

.page-content {
  max-width: 720px;
}

.page-content p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.page-content h2 {
  margin-top: 48px;
  font-size: 24px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-list {
  padding-left: 24px;
  margin: 16px 0;
  color: var(--text-secondary);
}

.page-list li {
  margin: 8px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .h1 {
    font-size: 44px;
  }

  .h2 {
    font-size: 30px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__copy {
    max-width: 100%;
  }

  .ctaRow {
    justify-content: center;
  }

  .trustLine {
    justify-content: center;
  }

  .phone {
    width: 240px;
  }

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

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

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

  .gallery {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .figure {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .h1 {
    font-size: 34px;
  }

  .h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 17px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

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

  .nav__link,
  .nav__cta {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .btn {
    width: 100%;
    padding: 16px 24px;
  }

  .phone {
    width: 220px;
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature__icon {
    margin: 0 auto;
  }

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

  .gallery {
    gap: 14px;
  }

  .figure {
    width: 160px;
    padding: 8px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .lightbox__content {
    max-width: 95vw;
  }

  .lightbox__img {
    max-height: 70vh;
  }

  .lightbox__caption {
    font-size: 14px;
    padding: 0 16px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
