/* ============================================
   EQAI Website v3.0 — Global Styles
   The Foundation Intelligence Layer for Equine Biology
   ============================================ */

/* === Design Tokens === */
:root {
  /* Background System */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --bg-elevated: #242436;
  
  /* Accent System */
  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-gold: #d4a574;
  --accent-success: #00c48c;
  --accent-warning: #ff9500;
  --accent-error: #ff3b30;
  
  /* Text System */
  --text-primary: #ffffff;
  --text-secondary: #a8b3cf;
  --text-tertiary: #6b7280;
  --text-disabled: #4b5563;
  
  /* Border System */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  
  /* Gradient System */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-gold: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
  --gradient-bg: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 100%);
  --gradient-glow: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  
  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* Border Radius */
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-m: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-l: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.2);
  
  /* Duration */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
  
  /* Easing */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --section-padding: 120px;
  --container-max: 1200px;
  --nav-height: 64px;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-default);
}

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

/* === Utility Classes === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.highlight {
  color: var(--accent-primary);
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-m);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: var(--radius-m);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.05);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 28px;
  border-radius: var(--radius-m);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

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

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

/* === Navigation === */
.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-default);
}

.nav-top.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.logo-divider {
  width: 1px;
  height: 16px;
  background: var(--border-default);
}

.logo-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width var(--duration-normal) var(--ease-default);
}

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

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

.nav-cta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--duration-fast);
}

/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Section Shared Styles === */
section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.section-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* === Screen 1: Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-10);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-default);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.4;
  transition: opacity var(--duration-normal);
}

.hero-scroll-indicator:hover {
  opacity: 0.7;
}

.hero-scroll-indicator span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 50px; }
}

/* === Screen 2: Why EQAI === */
.why-eqai {
  background: var(--gradient-bg);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-default);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.metric-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card--highlight {
  border-color: rgba(0, 212, 255, 0.15);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 212, 255, 0.03) 100%);
}

.metric-card--highlight::before {
  opacity: 1;
}

.metric-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--accent-primary);
}

.metric-icon svg {
  width: 100%;
  height: 100%;
}

.metric-value {
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.metric-detail {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.problem-solution {
  display: flex;
  align-items: stretch;
  gap: var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.solution-item {
  flex: 1;
}

.solution-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.solution-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.solution-item--answer h3 {
  color: var(--accent-primary);
}

.solution-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* === Screen 3: Evidence Model === */
.evidence-model {
  background: var(--bg-primary);
  overflow: hidden;
}

.evidence-model::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.evidence-stack {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.evidence-layer {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-3);
  transition: all 0.6s var(--ease-default);
  overflow: hidden;
  opacity: 0.3;
  transform: scale(0.97);
}

.evidence-layer.lit {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(0, 212, 255, 0.25);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 212, 255, 0.03) 100%);
}

.evidence-layer--core.lit {
  border-color: rgba(212, 165, 116, 0.4);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(212, 165, 116, 0.05) 100%);
  box-shadow: 0 0 40px rgba(212, 165, 116, 0.1);
}

.layer-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.6s;
}

.evidence-layer.lit .layer-glow {
  opacity: 1;
}

.evidence-layer--core.lit .layer-glow {
  background: var(--gradient-gold);
}

.layer-content {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.layer-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  opacity: 0.6;
  min-width: 28px;
}

.evidence-layer--core .layer-number {
  color: var(--accent-gold);
}

.layer-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.layer-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.layer-connector {
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 12px;
  background: var(--border-subtle);
}

.evidence-layer.lit .layer-connector {
  background: rgba(0, 212, 255, 0.3);
}

/* Feedback Loop */
.feedback-loop {
  position: absolute;
  right: -80px;
  top: 0;
  bottom: 0;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.feedback-loop.active {
  opacity: 1;
}

.feedback-path {
  position: relative;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.feedback-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.feedback-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  font-size: 14px;
  color: var(--accent-primary);
}

.feedback-node--new .feedback-icon {
  color: var(--accent-success);
  border-color: rgba(0, 196, 140, 0.3);
}

.feedback-curve {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: calc(100% - 80px);
}

.feedback-line {
  stroke: rgba(0, 212, 255, 0.3);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.feedback-dot {
  fill: var(--accent-primary);
}

.feedback-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-3);
  white-space: nowrap;
}

.evidence-principle {
  max-width: 700px;
  margin: var(--space-12) auto 0;
  text-align: center;
}

.evidence-principle p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.evidence-principle strong {
  color: var(--text-primary);
}

/* === Screen 4: Foundation Layer === */
.foundation-layer {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.platform-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-default);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.platform-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
}

.platform-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.card-tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.card-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--text-tertiary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-active {
  background: var(--accent-success);
}

.status-building {
  background: var(--accent-warning);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.platform-capabilities {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.platform-capabilities h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-8);
  text-align: center;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-m);
  transition: background var(--duration-fast);
}

.capability-item:hover {
  background: var(--bg-tertiary);
}

.capability-marker {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-m);
  flex-shrink: 0;
}

.capability-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.capability-item strong {
  font-size: 15px;
  color: var(--text-primary);
}

.capability-item span {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* === Screen 5: Products === */
.products {
  background: var(--bg-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-default);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}

.product-card--featured {
  border-color: rgba(0, 212, 255, 0.2);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 212, 255, 0.03) 100%);
  position: relative;
}

.product-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.product-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.product-icon {
  font-size: 36px;
  margin-bottom: var(--space-4);
}

.product-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.product-tagline {
  font-size: 14px;
  color: var(--accent-primary);
  margin-bottom: var(--space-4);
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex: 1;
}

.product-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.product-cta {
  margin-top: auto;
}

.products-disclaimer {
  text-align: center;
  padding: var(--space-6) var(--space-8);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
}

.products-disclaimer p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.products-disclaimer em {
  color: var(--text-secondary);
  font-style: italic;
}

/* === Screen 6: Trusted By === */
.trusted-by {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.trusted-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.trusted-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-l);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  transition: all var(--duration-normal) var(--ease-default);
}

.trusted-item:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.trusted-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
}

.trusted-item p {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.validation-layers {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.validation-layers h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-8);
  text-align: center;
}

.validation-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.validation-step {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  text-align: center;
  padding: var(--space-4);
}

.step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
}

.validation-step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.validation-step p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.validation-connector {
  display: flex;
  align-items: center;
  color: var(--text-disabled);
  font-size: 16px;
  padding-top: 16px;
}

/* === Screen 7: Research === */
.research {
  background: var(--bg-secondary);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.research-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-default);
}

.research-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-l);
}

.research-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-secondary);
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.research-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.research-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.research-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.research-status {
  font-size: 12px;
  font-weight: 500;
}

.status-validated {
  color: var(--accent-success);
}

.status-progress {
  color: var(--accent-warning);
}

.research-meta span:last-child {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* === Screen 8: CTA === */
.final-cta {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-10);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.cta-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* === Footer === */
.nav-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) var(--space-8) var(--space-8);
}

.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-column a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  max-width: var(--container-max);
  margin: var(--space-12) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-legal a {
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

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

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* === Responsive Design === */
@media (max-width: 1200px) {
  .trusted-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(16px);
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    gap: var(--space-4);
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .platform-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .research-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
  
  .feedback-loop {
    position: relative;
    right: auto;
    flex-direction: row;
    width: 100%;
    height: auto;
    margin-top: var(--space-6);
    padding: var(--space-6);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-l);
  }
  
  .feedback-path {
    flex-direction: row;
    height: auto;
    width: 100%;
  }
  
  .feedback-curve {
    position: static;
    width: 80px;
    height: 40px;
    transform: none;
    margin: 0 var(--space-4);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --container-max: 100%;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .hero-title {
    font-size: clamp(28px, 7vw, 48px);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .problem-solution {
    flex-direction: column;
  }
  
  .solution-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }
  
  .trusted-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .validation-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .validation-connector {
    transform: rotate(90deg);
  }
  
  .nav-cta {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary, .btn-secondary {
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* === Print === */
@media print {
  .nav-top, .hero-bg, .hero-scroll-indicator, .feedback-loop {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  section {
    padding: 40px 0;
    break-inside: avoid;
  }
}

/* Logo image in nav/footer */
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

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


/* === New Nav Brand (GM Icon + HTML Text) === */
.nav-gm-icon {
  height: 32px;
  width: 30px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-logo:hover .nav-gm-icon {
  transform: scale(1.05);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-left: 6px;
}

.nav-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #00b4d8, #48cae4, #90e0ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand-cn {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.nav-brand-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Footer brand */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    font-size: 13px;
    font-weight: 500;
}
.lang-switcher a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.lang-switcher a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.lang-switcher a:hover {
    color: #fff;
}
.lang-switcher .lang-sep {
    color: rgba(255,255,255,0.2);
    font-size: 11px;
}


/* === Responsive Logo === */
@media (max-width: 768px) {
  .nav-gm-icon {
    height: 26px;
    width: 24px;
  }
  .nav-brand-name {
    font-size: 14px;
  }
  .nav-brand-cn {
    font-size: 9px;
  }
  .nav-brand-text {
    margin-left: 4px;
  }
}
@media (max-width: 480px) {
  .nav-brand-cn {
    display: none;
  }
  .nav-brand-name {
    font-size: 13px;
  }
  .nav-gm-icon {
    height: 24px;
    width: 22px;
  }
}

/* === Site Header for Legal/Info Pages === */
.site-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(10px);
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.legal-page {
  padding: 40px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-container {
  max-width: 720px;
  margin: 0 auto;
}
.legal-back {
  display: inline-block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.legal-back:hover {
  color: rgba(255,255,255,0.8);
}
.legal-content h2 {
  font-size: 1.3em;
  margin-top: 1.5em;
  color: #e0e0e0;
}
.legal-updated {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  margin-bottom: 2em;
}
