/* CSS Variables */
:root {
  --primary-blue: #3b82f6;
  --primary-purple: #8b5cf6;
  --primary-cyan: #06b6d4;
  --primary-dark: #1e40af;
  --navy-dark: #0f172a;
  --navy-light: #1e293b;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-light: #f8fafc;
  --gray-medium: #64748b;
  --green-accent: #10b981;
  --orange-accent: #f97316;
  --red-accent: #ef4444;
  --purple-accent: #a855f7;
  --border-radius: 24px;
  --border-radius-sm: 16px;
  --border-radius-xs: 12px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;
  --font-size-4xl: 64px;
  --font-size-5xl: 80px;
  --line-height-tight: 1.1;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 50%, var(--primary-cyan) 100%);
  --gradient-dark: linear-gradient(135deg, var(--navy-dark) 0%, var(--slate-800) 50%, var(--primary-dark) 100%);
  --gradient-light: linear-gradient(135deg, var(--gray-light) 0%, white 100%);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: var(--line-height-base);
  color: white;
  background: var(--gradient-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-snap-type: y mandatory;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(139, 92, 246, 0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(6, 182, 212, 0.3), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(16, 185, 129, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-20px) translateX(10px); }
  66% { transform: translateY(-10px) translateX(-10px); }
  100% { transform: translateY(0px) translateX(0px); }
}

.gradient-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
  top: 60%;
  right: 20%;
  animation-delay: 5s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--green-accent));
  bottom: 20%;
  left: 30%;
  animation-delay: 10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--spacing-xl);
}

.logo-text {
  color: white;
}

.logo-ai {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto var(--spacing-md);
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.loading-text {
  color: var(--gray-medium);
  font-size: var(--font-size-sm);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Contact Tab */
.contact-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  background: var(--gradient-primary);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-origin: center;
  box-shadow: var(--shadow-lg);
}

.contact-tab:hover {
  transform: translateY(-50%) rotate(-90deg) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-globe {
  font-size: var(--font-size-lg);
}

.contact-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.contact-btn:hover .btn-glow {
  left: 100%;
}

/* Section Base */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  padding: var(--spacing-3xl) 0;
  position: relative;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-lg);
}

.title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: #cbd5e1;
  margin-bottom: var(--spacing-xl);
  line-height: var(--line-height-relaxed);
}

.highlight-text {
  color: var(--primary-cyan);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.btn-primary, .btn-secondary {
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 30px;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover .btn-shine {
  left: 100%;
}

.btn-primary.large, .btn-secondary.large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.hero-stats {
  display: flex;
  gap: var(--spacing-2xl);
}

.hero-stats .stat-item {
  text-align: left;
}

.hero-stats .stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--primary-cyan);
  margin-bottom: var(--spacing-xs);
}

.hero-stats .stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-medium);
}

/* Device Stack */
.hero-right {
  position: relative;
  height: 700px;
}

.device-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.device {
  position: absolute;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-2xl);
  transition: all 0.4s ease;
  overflow: hidden;
}

.device.tablet {
  width: 320px;
  height: 450px;
  background: white;
  top: 0;
  left: 0;
  transform: rotate(-5deg);
}

.device.phone-front {
  width: 220px;
  height: 380px;
  background: white;
  top: 120px;
  right: 50px;
  transform: rotate(5deg);
  z-index: 2;
}

.device.phone-back {
  width: 200px;
  height: 350px;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-700));
  bottom: 0;
  right: 0;
  transform: rotate(-10deg);
}

.device-content {
  padding: var(--spacing-md);
  color: var(--navy-dark);
  height: 100%;
  position: relative;
}

.device.phone-back .device-content {
  color: white;
}

.health-metric {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

.metric-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-blue);
}

.metric-max {
  font-size: var(--font-size-lg);
  color: var(--gray-medium);
}

.metric-label {
  color: var(--gray-medium);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.chart-placeholder {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--border-radius-sm);
  margin-top: var(--spacing-md);
  display: flex;
  align-items: end;
  padding: var(--spacing-sm);
  gap: 4px;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.bar {
  background: var(--gradient-primary);
  border-radius: 2px;
  flex: 1;
  animation: barGrow 1s ease-out;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes barGrow {
  from { height: 0; }
  to { height: var(--height); }
}

.app-header {
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-size: var(--font-size-lg);
}

.status-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.status-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--border-radius-xs);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.status-dot.green {
  background: var(--green-accent);
}

.status-dot.blue {
  background: var(--primary-blue);
}

.status-dot.purple {
  background: var(--purple-accent);
}

.status-dot.pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.3; }
}

.status-value {
  font-weight: 600;
  color: var(--primary-blue);
}

.server-status h4 {
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
  color: #cbd5e1;
}

.connection-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-accent);
}

.status-indicator.active {
  animation: pulse 2s infinite;
}

/* Platform Section */
.platform-section {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--primary-dark) 100%);
}

.platform-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.health-indicators {
  position: relative;
}

.indicators-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.indicators-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: white;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--green-accent);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-accent);
  animation: pulse 2s infinite;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-card {
  padding: var(--spacing-md);
  background: white;
  color: var(--navy-dark);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  position: relative;
  overflow: hidden;
}

.indicator-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.indicator-card.premium {
  background: linear-gradient(135deg, white, #f8fafc);
  border: 2px solid var(--primary-blue);
}

.indicator-card.research {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  color: #92400e;
}

.indicator-card.coming-soon {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: var(--primary-dark);
}

.card-icon {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.research-note {
  text-align: center;
  color: #94a3b8;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-md);
  font-style: italic;
}

.platform-right h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.platform-description, .platform-highlight {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
  color: #cbd5e1;
}

.platform-highlight {
  color: white;
  font-weight: 500;
  padding: var(--spacing-md);
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--primary-blue);
}

.highlight-number {
  color: var(--primary-cyan);
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.platform-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
}

.feature-highlight:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(8px);
}

.feature-highlight .feature-icon {
  font-size: var(--font-size-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-xs);
}

.feature-text h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.feature-text p {
  font-size: var(--font-size-sm);
  color: var(--gray-medium);
}

.certifications {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-md);
  background: white;
  color: var(--navy-dark);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.cert-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cert-icon {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xs);
  color: var(--primary-blue);
}

.cert-text {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
}

/* How It Works Section */
.works-section {
  background: var(--gradient-light);
  color: var(--navy-dark);
}

.works-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.works-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.works-description {
  font-size: var(--font-size-lg);
  color: var(--gray-medium);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.works-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.step-1 {
  justify-content: flex-end;
}

.step-2 {
  justify-content: flex-start;
}

.step-3 {
  justify-content: flex-start;
  align-self: flex-end;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--font-size-xl);
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.step-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  opacity: 0.3;
  z-index: -1;
  animation: stepGlow 3s ease-in-out infinite;
}

@keyframes stepGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.step-content {
  max-width: 350px;
}

.step-content h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--navy-dark);
}

.step-content p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--gray-medium);
  margin-bottom: var(--spacing-md);
}

.code-snippet {
  background: var(--navy-dark);
  color: var(--primary-cyan);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-xs);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--font-size-sm);
}

.timeline-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-mockup {
  width: 180px;
  height: 340px;
  background: linear-gradient(135deg, #ff9500, #ffcc02);
  border-radius: 30px;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 24px;
  padding: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.phone-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent);
  animation: phoneGlow 4s ease-in-out infinite;
}

@keyframes phoneGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.phone-reflection {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 149, 0, 0.2), transparent);
  border-radius: 30px;
  filter: blur(10px);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--navy-dark);
}

.app-icons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.icon-row {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.app-icon:hover {
  transform: scale(1.1);
}

.app-icon.ranveer-ai {
  background: var(--gradient-primary);
  position: relative;
}

.app-icon.ranveer-ai::after {
  content: 'R';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 800;
  font-size: var(--font-size-sm);
}

.app-icon.orange { background: var(--orange-accent); }
.app-icon.red { background: #ef4444; }
.app-icon.yellow { background: #eab308; }
.app-icon.blue { background: var(--primary-blue); }
.app-icon.green { background: var(--green-accent); }
.app-icon.purple { background: var(--purple-accent); }
.app-icon.teal { background: #14b8a6; }

.connecting-line {
  position: absolute;
  height: 3px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.line-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: lineProgress 3s ease-in-out infinite;
}

@keyframes lineProgress {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

.connecting-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--primary-blue);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.dot-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--primary-blue);
  opacity: 0.3;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0.1; }
}

.line-1 {
  width: 120px;
  top: 80px;
  left: -60px;
}

.dot-1 {
  top: 72px;
  left: -68px;
}

.line-2 {
  width: 140px;
  top: 180px;
  right: -70px;
}

.dot-2 {
  top: 172px;
  right: -78px;
}

.line-3 {
  width: 120px;
  bottom: 80px;
  right: -60px;
}

.dot-3 {
  bottom: 72px;
  right: -68px;
}

.health-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.health-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  transition: all 0.3s ease;
  animation: iconFloat 3s ease-in-out infinite;
}

.health-icon:hover {
  transform: scale(1.2);
}

.health-icon.heart { background: rgba(239, 68, 68, 0.2); animation-delay: 0s; }
.health-icon.brain { background: rgba(139, 92, 246, 0.2); animation-delay: 0.2s; }
.health-icon.lungs { background: rgba(6, 182, 212, 0.2); animation-delay: 0.4s; }
.health-icon.blood { background: rgba(239, 68, 68, 0.2); animation-delay: 0.6s; }
.health-icon.stress { background: rgba(245, 158, 11, 0.2); animation-delay: 0.8s; }
.health-icon.sleep { background: rgba(139, 92, 246, 0.2); animation-delay: 1s; }
.health-icon.fitness { background: rgba(16, 185, 129, 0.2); animation-delay: 1.2s; }
.health-icon.wellness { background: rgba(59, 130, 246, 0.2); animation-delay: 1.4s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.insight-preview {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.insight-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--border-radius-xs);
  font-size: var(--font-size-sm);
}

.insight-icon {
  font-size: var(--font-size-base);
}

/* Solutions Section */
.solutions-section {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--primary-dark) 100%);
}

.solution-tabs {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.tab-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tab-content {
  display: none;
  text-align: center;
}

.tab-content.active {
  display: block;
}

.tab-description {
  font-size: var(--font-size-lg);
  color: #cbd5e1;
  margin-bottom: var(--spacing-2xl);
}

.feature-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-2xl);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: white;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-8px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl);
}

.icon-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.feature-item:hover .icon-glow {
  left: 100%;
}

.feature-item span {
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-align: center;
}

.learn-more-link {
  color: var(--primary-cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--font-size-lg);
  transition: all 0.3s ease;
}

.learn-more-link:hover {
  text-decoration: underline;
  color: white;
}

.stats-section {
  text-align: center;
  margin-top: var(--spacing-3xl);
}

.stats-description {
  font-size: var(--font-size-xl);
  color: #cbd5e1;
  margin-bottom: var(--spacing-2xl);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-flex;
  align-items: center;
}

.stat-symbol {
  font-size: var(--font-size-3xl);
}

.stat-value {
  position: relative;
}

.stat-number.positive {
  color: var(--green-accent);
}

.stat-number.negative {
  color: var(--orange-accent);
}

.stat-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
}

.stat-label {
  font-size: var(--font-size-lg);
  color: white;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.stat-description {
  font-size: var(--font-size-sm);
  color: var(--gray-medium);
}

.cta-section {
  text-align: center;
  padding: var(--spacing-3xl);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section h3 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section p {
  font-size: var(--font-size-lg);
  color: #cbd5e1;
  margin-bottom: var(--spacing-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: linear-gradient(135deg, white, #f8fafc);
  margin: 5% auto;
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  color: var(--navy-dark);
  position: relative;
  box-shadow: var(--shadow-2xl);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.modal-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-indicator {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--green-accent);
}

.ai-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-accent);
  animation: pulse 2s infinite;
}

.close {
  color: var(--gray-medium);
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: var(--spacing-md);
  top: var(--spacing-md);
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--navy-dark);
}

.prediction-results {
  margin: var(--spacing-xl) 0;
  display: grid;
  gap: var(--spacing-md);
}

.prediction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.prediction-icon {
  font-size: var(--font-size-lg);
  margin-right: var(--spacing-sm);
}

.prediction-label {
  font-weight: 600;
  flex: 1;
}

.prediction-value {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
  font-weight: 700;
}

.value-number {
  color: var(--primary-blue);
  font-size: var(--font-size-lg);
}

.value-unit {
  color: var(--gray-medium);
  font-size: var(--font-size-sm);
}

.status-optimal {
  color: var(--green-accent);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-right {
  animation: slideInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-content,
  .platform-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .device-stack {
    height: 500px;
    transform: scale(0.8);
  }

  .works-timeline {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }

  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-1, .step-2, .step-3 {
    justify-content: center;
  }

  .connecting-line, .connecting-dot {
    display: none;
  }

  .feature-icons {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .certifications {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
    gap: var(--spacing-lg);
  }

  .device-stack {
    height: 400px;
    transform: scale(0.6);
  }

  .indicator-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .health-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .solution-tabs {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .modal-content {
    margin: 10% auto;
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-xl);
  }

  .platform-right h2,
  .works-header h2 {
    font-size: var(--font-size-xl);
  }

  .indicator-grid {
    grid-template-columns: 1fr;
  }

  .feature-icons {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: var(--font-size-3xl);
  }

  .certifications {
    grid-template-columns: 1fr;
  }
}

/* Smooth scrolling enhancements */
@media (prefers-reduced-motion: no-preference) {
  .device:hover {
    transform: translateY(-10px) rotate(-5deg) scale(1.02);
  }

  .device.tablet:hover {
    transform: translateY(-10px) rotate(-3deg) scale(1.02);
  }

  .device.phone-front:hover {
    transform: translateY(-10px) rotate(3deg) scale(1.02);
  }

  .device.phone-back:hover {
    transform: translateY(-10px) rotate(-8deg) scale(1.02);
  }
}

/* Focus states for accessibility */
button:focus,
a:focus,
.tab-btn:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .indicator-card,
  .cert-badge,
  .feature-icons {
    border: 2px solid var(--navy-dark);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-light: var(--slate-800);
  }
}