/* ============================================
   Z-Lab AI Official Website - Design System
   Dark Tech Style with Gradient Effects
   ============================================ */

/* ==================== CSS Variables ==================== */
:root {
  /* Primary Colors */
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #3385FF;
  --primary-glow: rgba(0, 102, 255, 0.4);

  /* Medical AI Colors (智医研) */
  --medical-primary: #00D4FF;
  --medical-secondary: #7B61FF;
  --medical-accent: #00FF88;
  --medical-gradient: linear-gradient(135deg, #00D4FF 0%, #7B61FF 100%);

  /* Sports AI Colors (智体研) */
  --sports-primary: #16A34A;
  --sports-secondary: #06B6D4;
  --sports-accent: #FF6B35;
  --sports-gradient: linear-gradient(135deg, #16A34A 0%, #06B6D4 100%);

  /* Neutral Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dark: #1F2937;

  /* Background Colors */
  --bg-dark: #0A0E17;
  --bg-darker: #050810;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.05);

  /* Border & Effects */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --glow-primary: 0 0 40px rgba(0, 102, 255, 0.3);
  --glow-medical: 0 0 40px rgba(0, 212, 255, 0.3);
  --glow-sports: 0 0 40px rgba(22, 163, 74, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);

  /* Typography */
  --font-display: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Z-index */
  --z-dropdown: 100;
  --z-navbar: 1000;
  --z-modal: 2000;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
}

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

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

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

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

.container-lg {
  max-width: 1400px;
}

section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ==================== Navigation ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.navbar-logo .logo-icon sup {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
  position: relative;
  top: -0.25em;
}

.navbar-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-logo .logo-main {
  font-size: 1.25rem;
  font-weight: 700;
}

.navbar-logo .logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.navbar-logo .logo-sub sup {
  font-size: 0.55em;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.navbar-link.has-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.navbar-link.has-dropdown::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition-fast);
}

.navbar-link.has-dropdown:hover::after {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: rgba(20, 25, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: var(--z-dropdown);
}

.navbar-item {
  position: relative;
}

.navbar-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-card-hover);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.dropdown-icon.medical {
  background: rgba(0, 212, 255, 0.15);
}

.dropdown-icon.sports {
  background: rgba(22, 163, 74, 0.15);
}

.dropdown-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.dropdown-content p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.navbar-cta {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

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

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

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

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

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

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn .arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ==================== Cards ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-glow:hover {
  box-shadow: var(--glow-primary);
}

.card-medical:hover {
  border-color: var(--medical-primary);
  box-shadow: var(--glow-medical);
}

.card-sports:hover {
  border-color: var(--sports-primary);
  box-shadow: var(--glow-sports);
}

/* ==================== Hero Section ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.hero-badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.625rem;
  color: white;
  flex-shrink: 0;
}

.hero-badge .badge-text {
  letter-spacing: 0.01em;
}

.hero-badge .badge-dot {
  display: none;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==================== Product Lines Section ==================== */
.product-lines {
  background: var(--bg-darker);
  position: relative;
}

.product-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 100%);
  pointer-events: none;
}

.product-lines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-line-card {
  position: relative;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.product-line-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-line-card.medical::before {
  background: var(--medical-gradient);
}

.product-line-card.sports::before {
  background: var(--sports-gradient);
}

.product-line-card:hover::before {
  opacity: 1;
}

.product-line-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-light);
}

.product-line-card.medical:hover {
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.product-line-card.sports:hover {
  box-shadow: 0 20px 60px rgba(22, 163, 74, 0.15);
}

.product-line-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.product-line-card.medical .product-line-icon {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.product-line-card.sports .product-line-icon {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.product-line-card h3 {
  margin-bottom: 8px;
}

.product-line-card .subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.product-line-card .description {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.product-line-features {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.product-line-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-line-feature .icon {
  font-size: 1.125rem;
}

/* ==================== Products Grid ==================== */
.products-section {
  position: relative;
}

.products-section.medical {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.products-section.sports {
  background: var(--bg-dark);
}

.products-grid {
  display: grid;
  gap: 24px;
}

.products-grid.medical-grid {
  grid-template-columns: repeat(5, 1fr);
}

.products-grid.sports-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .description {
  flex: 1;
  min-height: 48px;
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-card.medical:hover {
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.12);
}

.product-card.medical::after {
  background: var(--medical-gradient);
}

.product-card.sports:hover {
  box-shadow: 0 16px 48px rgba(22, 163, 74, 0.12);
}

.product-card.sports::after {
  background: var(--sports-gradient);
}

.product-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.product-card.medical .product-card-icon {
  background: rgba(0, 212, 255, 0.1);
}

.product-card.sports .product-card-icon {
  background: rgba(22, 163, 74, 0.1);
}

.product-card h4 {
  margin-bottom: 4px;
}

.product-card .product-name-en {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-card .description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-card .highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
}

.product-card.medical .highlight {
  color: var(--medical-primary);
}

.product-card.sports .highlight {
  color: var(--sports-primary);
}

.product-card .card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 20px;
  transition: all var(--transition-fast);
}

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

.product-card .card-link .arrow {
  transition: transform var(--transition-fast);
}

.product-card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* ==================== Tech Section ==================== */
.tech-section {
  background: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

.tech-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.tech-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  text-align: center;
}

.tech-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.tech-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.tech-card h4 {
  margin-bottom: 8px;
}

.tech-card .description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tech-stat {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* ==================== Partners Section ==================== */
.partners-section {
  background: var(--bg-dark);
}

.partners-marquee {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-divider {
  color: var(--text-muted);
  font-size: 1.5rem;
  opacity: 0.3;
}

.partner-logo {
  height: 40px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-normal);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.partner-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition-normal);
}

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

/* ==================== CTA Section ==================== */
.cta-section {
  background: var(--bg-darker);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ==================== Footer ==================== */
.footer {
  background: var(--bg-darker);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: start;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.footer-logo .logo-icon sup {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
  position: relative;
  top: -0.25em;
}

.footer-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-logo .logo-main {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo .logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.footer-logo .logo-sub sup {
  font-size: 0.55em;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-copyright sup,
.brand-super {
  font-size: 0.6em;
  font-weight: 700;
  vertical-align: super;
  margin-left: 1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

/* ==================== Animations ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

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

.float {
  animation: float 4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 102, 255, 0.5); }
}

.glow-animation {
  animation: glow 3s ease-in-out infinite;
}

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 80px 0;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-darker);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 24px 40px;
    gap: 0;
    transition: right var(--transition-normal);
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navbar-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .navbar-item .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }

  .navbar-item.active .dropdown-menu {
    max-height: 300px;
  }

  .navbar-cta {
    margin-top: 24px;
  }

  .navbar-cta .btn {
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .product-lines-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }

}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
  }

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

  .hero-stat-value {
    font-size: 2rem;
  }

  .products-grid.medical-grid,
  .products-grid.sports-grid {
    grid-template-columns: 1fr;
  }

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

  .product-line-features {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .product-card,
  .tech-card,
  .product-line-card {
    padding: 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }

}

/* ==================== Utility Classes ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.hidden { display: none; }
.visible { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
