/* Doctor AI - Cognitive AI Triage System Styles */
/* Converted from React/Tailwind to vanilla CSS */

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES (Design Tokens) ===== */
:root {
  /* Medical Blue Palette */
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(215, 25%, 15%);
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 25%, 15%);
  
  /* Primary - Medical Blue */
  --primary: hsl(210, 100%, 45%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-light: hsl(210, 100%, 55%);
  --primary-dark: hsl(210, 100%, 35%);
  
  /* Secondary - Soft Cyan */
  --secondary: hsl(190, 60%, 94%);
  --secondary-foreground: hsl(210, 100%, 35%);
  
  /* Muted - Light Gray Blue */
  --muted: hsl(210, 30%, 96%);
  --muted-foreground: hsl(215, 15%, 45%);
  
  /* Accent - Vibrant Cyan */
  --accent: hsl(195, 100%, 45%);
  --accent-foreground: hsl(0, 0%, 100%);
  
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);
  
  --border: hsl(210, 25%, 90%);
  --input: hsl(210, 25%, 90%);
  --ring: hsl(210, 100%, 45%);
  
  --radius: 0.75rem;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(210, 100%, 45%) 0%, hsl(195, 100%, 45%) 100%);
  --gradient-hero: linear-gradient(180deg, hsl(210, 40%, 98%) 0%, hsl(210, 50%, 95%) 100%);
  --gradient-dark: linear-gradient(135deg, hsl(215, 35%, 12%) 0%, hsl(210, 40%, 18%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(210, 30%, 98%) 100%);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px -4px hsla(210, 30%, 20%, 0.08);
  --shadow-medium: 0 8px 30px -8px hsla(210, 30%, 20%, 0.12);
  --shadow-glow: 0 0 40px hsla(210, 100%, 45%, 0.2);
  --shadow-card: 0 10px 40px -10px hsla(210, 30%, 20%, 0.1);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background-image: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bg-gradient-primary {
  background-image: var(--gradient-primary);
}

.bg-gradient-hero {
  background-image: var(--gradient-hero);
}

.bg-gradient-dark {
  background-image: var(--gradient-dark);
}

.bg-gradient-card {
  background-image: var(--gradient-card);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-medium {
  box-shadow: var(--shadow-medium);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

@keyframes scrollIndicator {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulse-soft 3s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
}

header.scrolled {
  background-color: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

header .logo {
  height: 40px;
  width: auto;
}

header nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-out forwards;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.mobile-menu nav a:hover {
  color: var(--primary);
  background-color: var(--muted);
}

@media (min-width: 1024px) {
  header nav {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
  padding: 0.5rem 1.5rem;
  height: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-hero {
  background-image: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-medium);
}

.btn-hero:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.btn-hero:active {
  transform: scale(0.98);
}

.btn-hero-outline {
  border: 2px solid hsla(0, 0%, 100%, 0.3);
  color: var(--primary-foreground);
  background-color: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
  background-color: hsla(0, 0%, 100%, 0.2);
  border-color: hsla(0, 0%, 100%, 0.5);
}

.btn-sm {
  height: 36px;
  border-radius: 0.375rem;
  padding: 0 1rem;
}

.btn-lg {
  height: 56px;
  border-radius: 0.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    hsla(215, 25%, 15%, 0.95), 
    hsla(215, 25%, 15%, 0.8), 
    hsla(215, 25%, 15%, 0.6)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: hsla(210, 100%, 45%, 0.2);
  border: 1px solid hsla(210, 100%, 45%, 0.3);
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--primary-foreground);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  color: var(--accent);
  display: block;
  margin-top: 0.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsla(0, 0%, 100%, 0.8);
  margin-bottom: 2.5rem;
  max-width: 40rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
}

.stat-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: hsla(210, 100%, 45%, 0.2);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.stat-label {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.7);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border-radius: 9999px;
  border: 2px solid hsla(0, 0%, 100%, 0.3);
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--accent);
  animation: scrollIndicator 1.5s infinite;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.bg-muted {
  background-color: var(--muted);
}

.bg-muted-alt {
  background-color: hsla(210, 30%, 96%, 0.5);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted-foreground);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== PROBLEM SECTION SPECIFIC ===== */
.problem-section .section-badge {
  background-color: hsla(0, 84%, 60%, 0.1);
  color: var(--destructive);
}

.problem-section .card-icon {
  background-color: hsla(0, 84%, 60%, 0.1);
}

.problem-section .card-icon svg {
  color: var(--destructive);
}

.alert-box {
  padding: 2rem;
  border-radius: 1rem;
  background-image: var(--gradient-dark);
  color: var(--primary-foreground);
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.alert-icon {
  padding: 1rem;
  border-radius: 9999px;
  background-color: hsla(0, 0%, 100%, 0.1);
  flex-shrink: 0;
}

.alert-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.alert-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.alert-text {
  color: hsla(0, 0%, 100%, 0.8);
  line-height: 1.6;
}

/* ===== SOLUTION SECTION SPECIFIC ===== */
.solution-section .section-badge {
  background-color: hsla(210, 100%, 45%, 0.1);
  color: var(--primary);
}

.solution-section .card-icon {
  background-image: var(--gradient-primary);
}

.solution-section .card-icon svg {
  color: var(--primary-foreground);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section .section-badge {
  background-color: hsla(195, 100%, 45%, 0.1);
  color: var(--accent);
}

.steps-container {
  position: relative;
  margin-bottom: 5rem;
}

.steps-line {
  display: none;
  position: absolute;
  top: 6rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon-box {
  position: relative;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  background-image: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  margin-bottom: 1.5rem;
}

.step-icon-box svg {
  width: 32px;
  height: 32px;
  color: var(--primary-foreground);
}

.step-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.step-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.triage-outcomes {
  max-width: 64rem;
  margin: 0 auto;
}

.triage-outcomes h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.triage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.triage-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
}

.triage-indicator {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.triage-indicator.red {
  background-color: hsl(0, 84%, 60%);
}

.triage-indicator.orange {
  background-color: hsl(25, 100%, 50%);
}

.triage-indicator.yellow {
  background-color: hsl(45, 100%, 50%);
}

.triage-indicator.green {
  background-color: hsl(142, 71%, 45%);
}

.triage-label {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.triage-examples {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .triage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-line {
    display: block;
  }
  
  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== BENEFITS SECTION ===== */
.benefits-section .section-badge {
  background-color: hsla(142, 71%, 45%, 0.1);
  color: hsl(142, 71%, 35%);
}

.stats-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

.stat-banner-item {
  padding: 1.5rem;
  border-radius: 1rem;
  background-image: var(--gradient-primary);
  text-align: center;
}

.stat-banner-value {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 0.5rem;
}

.stat-banner-label {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.8);
}

.benefit-card .card-icon {
  background-color: hsla(210, 100%, 45%, 0.1);
}

.benefit-card .card-icon svg {
  color: var(--primary);
}

@media (min-width: 1024px) {
  .stats-banner {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== DEMO SECTION ===== */
.demo-section .section-badge {
  background-color: hsla(210, 100%, 45%, 0.1);
  color: var(--primary);
}

.video-container {
  max-width: 64rem;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background-color: #000;
}

.demo-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 1rem;
  outline: none;
}

.demo-video:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Custom video controls styling (optional - browser default works well) */
.demo-video::-webkit-media-controls-panel {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Fallback for video placeholder (if video doesn't load) */
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background-image: var(--gradient-dark);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  background-color: hsla(210, 100%, 45%, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: hsla(210, 100%, 45%, 0.3);
  transform: scale(1.1);
}

.play-button svg {
  width: 40px;
  height: 40px;
  color: var(--primary-foreground);
  margin-left: 4px;
}

.video-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-foreground);
  margin-bottom: 0.5rem;
}

.video-description {
  color: hsla(0, 0%, 100%, 0.7);
  text-align: center;
  max-width: 28rem;
  padding: 0 1rem;
}

.demo-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.demo-feature-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-feature-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: hsla(210, 100%, 45%, 0.1);
  flex-shrink: 0;
}

.demo-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.demo-feature-title {
  font-weight: 600;
  color: var(--foreground);
}

.demo-feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .demo-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== PATENT SECTION ===== */
.patent-section .section-badge {
  background-color: hsla(210, 100%, 45%, 0.1);
  color: var(--primary);
}

.patent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.patent-card {
  padding: 2rem;
  border-radius: 1rem;
  background-image: var(--gradient-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.patent-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.patent-icon {
  padding: 1rem;
  border-radius: 0.75rem;
  background-image: var(--gradient-primary);
  flex-shrink: 0;
}

.patent-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-foreground);
}

.patent-number {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.patent-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.patent-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.advantage-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: hsla(210, 30%, 96%, 0.5);
  border: 1px solid var(--border);
}

.advantage-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: hsla(210, 100%, 45%, 0.1);
  flex-shrink: 0;
}

.advantage-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.advantage-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.advantage-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .patent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-image: var(--gradient-dark);
  color: var(--primary-foreground);
}

.contact-section .section-badge {
  background-color: hsla(210, 100%, 45%, 0.2);
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.125rem;
  color: hsla(0, 0%, 100%, 0.8);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: hsla(0, 0%, 100%, 0.8);
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: var(--accent);
}

.contact-item-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: hsla(0, 0%, 100%, 0.1);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form-container {
  padding: 2rem;
  border-radius: 1rem;
  background-color: hsla(0, 0%, 100%, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
}

.contact-form-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  color: var(--primary-foreground);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: hsla(0, 0%, 100%, 0.5);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: hsla(0, 0%, 100%, 0.15);
}

.form-textarea {
  resize: none;
  min-height: 120px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--foreground);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  grid-column: span 1;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  /* Default: Drop shadow for visibility on dark background */
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
  opacity: 0.95;
  /* Optional: Add background for maximum visibility */
  /* background-color: rgba(255, 255, 255, 0.1); */
  /* padding: 0.5rem; */
  /* border-radius: 0.5rem; */
}

/* Option 1: If logo has dark colors, add this class to invert it */
.footer-logo.invert-logo {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
}

/* Option 2: If logo needs white background, add this class */
.footer-logo.with-bg {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.75rem;
  border-radius: 0.5rem;
  filter: none;
  backdrop-filter: blur(10px);
}

/* Option 3: If logo needs complete white background */
.footer-logo.white-bg {
  background-color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  filter: none;
}

.footer-description {
  color: hsla(0, 0%, 100%, 0.7);
  max-width: 28rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-patent {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.5);
}

.footer-links h4 {
  color: var(--primary-foreground);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: hsla(0, 0%, 100%, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-copyright,
.footer-powered {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.5);
}

/* Bottom Bar Links */
.item.centered {
  padding-top: 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  text-align: center;
}

.link-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin: 0;
}

.link-list a {
  font-size: 0.875rem;
  color: var(--primary);
  transition: color 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.link-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .link-list {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 639px) {
  section {
    padding: 4rem 0;
  }
}

/* ===== VISIBILITY UTILITIES ===== */
.visible-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 6rem 0 3rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.back-link:hover {
  transform: translateX(-4px);
  color: var(--accent);
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  position: relative;
}

.page-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  line-height: 1.7;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  padding: 6rem 0;
  background-color: var(--background);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 75rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary);
}

.product-icon {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  background: linear-gradient(135deg, 
    hsla(210, 100%, 45%, 0.1) 0%, 
    hsla(195, 100%, 45%, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(40%) sepia(95%) saturate(2742%) hue-rotate(195deg) brightness(96%) contrast(101%);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-description {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.product-link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

.product-link svg {
  transition: transform 0.3s ease;
}

.product-link:hover svg {
  transform: translateX(4px);
}

/* ===== CONTENT PAGE STYLES ===== */
.content-page {
  padding: 4rem 0;
  background-color: var(--background);
}

.content-container {
  max-width: 56rem;
  margin: 0 auto;
}

.content-section {
  background: var(--card);
  border-radius: 1rem;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 2rem 0 1rem;
}

.content-section p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin: 1rem 0 1rem 1.5rem;
}

.content-section li {
  margin-bottom: 0.75rem;
}

.content-section strong {
  color: var(--foreground);
  font-weight: 600;
}

.content-section a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.content-section a:hover {
  color: var(--accent);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
  .page-header {
    padding: 4rem 0 2rem;
  }
  
  .products-section {
    padding: 4rem 0;
  }
  
  .content-section {
    padding: 2rem 1.5rem;
  }
}
