/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #050a14;
  --bg-secondary: #0a1628;
  --bg-card: #0d1b2e;
  --bg-card-hover: #112240;
  --text-primary: #e6edf8;
  --text-secondary: #8892a4;
  --text-muted: #5a6577;
  --accent-red: #e63946;
  --accent-red-dim: rgba(230, 57, 70, 0.15);
  --accent-cyan: #00d4ff;
  --accent-cyan-dim: rgba(0, 212, 255, 0.1);
  --accent-blue: #3a86ff;
  --accent-green: #06d6a0;
  --accent-amber: #ffb703;
  --accent-purple: #8338ec;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --gradient-primary: linear-gradient(135deg, var(--accent-red), var(--accent-cyan));
  --gradient-text: linear-gradient(135deg, #e63946, #ff6b6b, #00d4ff);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* ===== THREE.JS CANVAS ===== */
#scene-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(5, 10, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 36px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-logo-text .tm {
  font-size: 0.7em;
  vertical-align: super;
  color: var(--accent-red);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-red);
  transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link-cta {
  color: var(--text-primary);
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.3s;
}
.nav-link-cta:hover {
  background: rgba(230, 57, 70, 0.2);
  border-color: var(--accent-red);
}
.nav-link-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 140px 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover {
  background: #d32f3f;
  box-shadow: 0 6px 30px rgba(230, 57, 70, 0.45);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent-red);
  background: rgba(230, 57, 70, 0.05);
}
.btn-full { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + 60px);
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 140px;
  text-align: center;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}
.scroll-indicator span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== PROBLEM ===== */
.problem-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.problem-highlight {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 720px;
}
.highlight-icon {
  flex-shrink: 0;
  color: var(--accent-red);
}
.problem-highlight p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.problem-highlight strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ===== TECHNOLOGY ===== */
.tech-section {
  background: var(--bg-secondary);
}
.tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.tech-card:nth-child(1)::before { background: var(--accent-red); }
.tech-card:nth-child(2)::before { background: var(--accent-cyan); }
.tech-card:nth-child(3)::before { background: var(--accent-green); }

.tech-card-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  position: absolute;
  top: 20px;
  right: 24px;
  opacity: 0.06;
  line-height: 1;
}
.tech-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.tech-icon-optics { background: var(--accent-red-dim); color: var(--accent-red); }
.tech-icon-impedance { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.tech-icon-elasto { background: rgba(6, 214, 160, 0.1); color: var(--accent-green); }

.tech-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.tech-card-spec {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.tech-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.tech-card-components {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-card-components span {
  font-size: 0.6875rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 500;
}

/* AI Pipeline */
.ai-pipeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
}
.ai-pipeline-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.ai-pipeline-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.pipeline-node {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  min-width: 100px;
}
.pipeline-tag {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  opacity: 0.6;
}
.pipeline-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.pipeline-fusion {
  background: var(--accent-red-dim);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--accent-red);
}
.pipeline-output {
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-cyan);
}
.pipeline-connector {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
}
.pipeline-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.pipeline-metric {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-green);
}
.pipeline-metric-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Tissue Table */
.tissue-table-wrapper {
  max-width: 800px;
}
.subsection-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.tissue-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tissue-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 0.8fr;
  padding: 14px 24px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.tissue-row:last-child { border-bottom: none; }
.tissue-header {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.tissue-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.tissue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-normal { background: var(--accent-green); }
.dot-amyloid { background: var(--accent-red); }
.dot-fibrosis { background: var(--accent-amber); }
.dot-ischemia { background: var(--accent-blue); }
.tissue-stiffness {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-cyan);
}
.tissue-row:not(.tissue-header) span:nth-child(2) {
  color: var(--text-secondary);
}

/* ===== PRODUCTS ===== */
.products-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.product-flagship::before { background: var(--accent-red); }
.product-lite::before { background: var(--accent-cyan); }
.product-fusion::before { background: var(--accent-purple); }
.product-nexus::before { background: var(--accent-green); }

.product-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.product-flagship .product-badge { background: var(--accent-red-dim); color: var(--accent-red); }
.product-lite .product-badge { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.product-fusion .product-badge { background: rgba(131, 56, 236, 0.12); color: var(--accent-purple); }
.product-nexus .product-badge { background: rgba(6, 214, 160, 0.12); color: var(--accent-green); }

.product-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.product-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.product-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}
.product-lite .product-features li::before { background: var(--accent-cyan); }
.product-fusion .product-features li::before { background: var(--accent-purple); }
.product-nexus .product-features li::before { background: var(--accent-green); }

/* ===== PIPELINE / ROADMAP ===== */
.pipeline-section {
  background: var(--bg-primary);
}
.timeline {
  position: relative;
  padding-left: 40px;
  margin-bottom: 64px;
}
.timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-red), var(--accent-cyan), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: var(--bg-primary);
}
.timeline-marker.active {
  border-color: var(--accent-red);
  background: var(--accent-red);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.4);
}
.timeline-content {}
.timeline-phase {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 2px;
}
.timeline-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

/* Regulatory Badges */
.regulatory-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.reg-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.reg-icon {
  font-size: 0.5rem;
  color: var(--accent-green);
}
.reg-badge:nth-child(n+3) .reg-icon {
  color: var(--text-muted);
}

/* ===== TEAM ===== */
.team-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.team-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.team-card-lead {
  text-align: center;
}
.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}
.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.team-role {
  font-size: 0.875rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 16px;
}
.team-bio {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.team-tags span {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

.team-co-investigators {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.co-investigator {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.team-avatar-small {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.team-avatar-placeholder-sm {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.team-name-sm {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.team-role-sm {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.credentials-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.credential {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.credential-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.credential-value {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ===== PUBLICATIONS ===== */
.publications-section {
  background: var(--bg-secondary);
}
.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}
.pub-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.pub-type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.pub-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}
.pub-authors {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.pub-target {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

.referenced-literature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 32px;
}
.referenced-literature h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.referenced-literature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.contact-item svg {
  color: var(--accent-red);
  flex-shrink: 0;
}
.contact-item a {
  color: var(--text-primary);
  transition: color 0.2s;
}
.contact-item a:hover {
  color: var(--accent-cyan);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-red);
}
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6577' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-primary);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
  max-width: 200px;
  object-fit: contain;
}
.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-legal {
  font-size: 0.6875rem;
  color: var(--text-muted);
  opacity: 0.7;
  max-width: 700px;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tech-cards { grid-template-columns: 1fr; gap: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .credentials-bar { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 100px 0; }
  .container { padding: 0 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }

  .hero-stats {
    gap: 20px;
  }
  .stat-divider { display: none; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .stat { align-items: center; }

  .ai-pipeline-flow {
    flex-direction: column;
    gap: 8px;
  }
  .pipeline-connector { transform: rotate(90deg); }
  .pipeline-result {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 12px;
    margin-left: 0;
    margin-top: 8px;
    flex-direction: row;
    gap: 16px;
  }

  .tissue-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 16px;
  }
  .tissue-header { display: none; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }

  .timeline { padding-left: 30px; }
  .timeline-marker { left: -30px; width: 12px; height: 12px; }
  .timeline-line { left: 5px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .contact-form-wrapper { padding: 24px; }
  .product-card { padding: 24px; }
  .team-card { padding: 24px; }
}

/* ===== ANIMATION HELPERS ===== */
[data-animate] {
  will-change: opacity, transform;
}
