:root {
  /* Color Palette - Medical & Futuristic */
  --primary: hsl(215, 90%, 52%);
  --primary-dark: hsl(215, 90%, 40%);
  --secondary: hsl(190, 80%, 50%);
  --accent: hsl(340, 80%, 60%);
  --bg-dark: hsl(220, 30%, 10%);
  --bg-light: hsl(0, 0%, 100%);
  --bg-soft: hsl(210, 30%, 98%);

  --text-main: hsl(220, 20%, 20%);
  --text-muted: hsl(220, 15%, 50%);
  --text-light: hsl(0, 0%, 100%);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

  --font-main: "Outfit", sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-soft);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-dark);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-muted);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--spacing-sm) 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary);
}

.btn-cta {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 100, 255, 0.2);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(
    circle at top right,
    rgba(0, 100, 255, 0.05),
    transparent 60%
  );
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.hero-date {
  display: inline-block;
  background: rgba(0, 100, 255, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: var(--spacing-md);
}

.hero-image img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 50, 150, 0.15));
  animation: float 6s ease-in-out infinite;
}

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

/* Section Common */
section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

/* Introduction */
.intro {
  background: white;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.intro-card {
  background: var(--bg-soft);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s;
}

.intro-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: var(--glass-shadow);
}

/* System Overview */
.overview {
  background: radial-gradient(
    circle at bottom left,
    rgba(0, 100, 255, 0.03),
    transparent 60%
  );
}

.flow-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 200px;
}

.flow-step::after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--primary-dark);
  opacity: 0.3;
}

.flow-step:last-child::after {
  display: none;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

/* Medical Device */
.device {
  background: white;
}

.device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.specs-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.specs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 500;
}

.specs-list li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.5rem;
}

/* App Section */
.app-section {
  background: var(--bg-dark);
  color: white;
}

.app-section h2,
.app-section p {
  color: white;
}
.app-section p {
  opacity: 0.8;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.app-icon-wrapper {
  background: white;
  width: 250px;
  height: 250px;
  border-radius: 45px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 10px;
}

.app-icon-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* App Screens Grid */
.screens {
  background: var(--bg-soft);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.screen-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.screen-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.screen-placeholder {
  background: #eee;
  height: 550px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.screen-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.screen-info {
  padding: var(--spacing-sm);
  text-align: center;
}

.screen-info h4 {
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.screen-info p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* AI & Why Sections */
.ai-section {
  background: white;
}

.why-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.feature-box {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-box h3 {
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  text-align: center;
}

.footer-content h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.legal-text {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: var(--spacing-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .device-grid,
  .app-grid,
  .features-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .flow-diagram {
    flex-direction: column;
    gap: 3rem;
  }

  .flow-step::after {
    transform: translateX(-50%) rotate(90deg);
    right: auto;
    left: 50%;
    top: 100%;
    margin-top: 10px;
  }

  nav {
    display: none;
  } /* Simplified mobile nav for now */
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .screens-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-card {
  background: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px; /* Pill shape */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s ease;
  min-width: auto; /* Allow auto width */
  display: flex; /* Horizontal layout */
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 100, 255, 0.15);
  border-color: var(--primary);
}

.contact-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.contact-card h3 {
  display: none; /* Hide title for cleaner look, or keep it if preferred small */
}

.contact-card p {
  margin-bottom: 0 !important;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--spacing-sm);
}

.footer-logo-wrapper img {
  height: 40px;
  width: auto;
  border-radius: 0;
}

.footer-logo-wrapper h3 {
  margin-bottom: 0;
  color: white;
}

.hero-subheadline {
  font-size: 2rem;
  color: var(--text-main);
  background: none;
  -webkit-text-fill-color: var(--text-main);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

/* Mobile Menu Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1002;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Responsive Nav */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Hide off-screen */
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 80px 20px 20px;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: block !important; /* Override display:none from previous media query */
  }

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

  .nav-menu ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-menu a {
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    border-radius: 8px;
  }

  .nav-menu a:hover {
    background: var(--bg-soft);
  }

  /* Hamburger Animation */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}
