/* ===================================================================
   Virtality Landing Page Styles
   Modern, responsive design with smooth animations
   =================================================================== */

/* Root Variables */
:root {
  --color-primary: #10b981; /* Green */
  --color-primary-dark: #059669;
  --color-primary-light: #d1fae5;
  --color-secondary: #3b82f6; /* Blue */
  --color-accent: #f59e0b; /* Amber */

  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --max-width: 1200px;
  --max-width-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--hero {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  background: var(--color-primary);
  color: white;
}

.btn--hero:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 50%, #fef3c7 100%);
  opacity: 0.6;
  z-index: -1;
}

/* Animated bubbles background (matching dashboard) */
.hero__background::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 10%;
  left: 10%;
  animation: float 20s infinite ease-in-out;
}

.hero__background::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  right: 10%;
  animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero__description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero__disclaimer {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Section Styles */
.section {
  padding: 5rem 2rem;
}

.section--about {
  background: var(--color-bg);
}

.section--features {
  background: var(--color-bg-alt);
}

.section--simulation {
  background: var(--color-bg);
}

.section--how {
  background: var(--color-bg);
}

.section--disclaimer {
  background: var(--color-bg-alt);
}

.section--privacy {
  background: var(--color-bg);
}

.section--contact {
  background: var(--color-bg-alt);
}

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.section__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.section__lead {
  font-size: 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about__card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about__card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Features Section */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature__title {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.feature__description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Use Cases List */
.usecases-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.usecases-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.usecases-list li strong {
  color: var(--color-text);
}

.usecases-list__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* How It Works Section */
.how__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--color-primary);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.step__title {
  margin-bottom: 1rem;
}

.step__description {
  color: var(--color-text-muted);
}

/* Disclaimer Section */
.disclaimer__box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 2rem;
  border-radius: var(--radius-md);
}

.disclaimer__text {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.disclaimer__text:last-child {
  margin-bottom: 0;
}

.disclaimer__text strong {
  color: #92400e;
}

/* Privacy Section */
.privacy__content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.privacy__content h3:first-child {
  margin-top: 0;
}

.privacy__content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.privacy__content li {
  margin-bottom: 0.5rem;
}

.privacy__content code {
  background: var(--color-bg-alt);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.privacy__summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}

/* Contact Section */
.contact__lead {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.contact__info {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.contact__info p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.contact__info p:last-child {
  margin-bottom: 0;
}

.contact__link {
  font-weight: 600;
  color: var(--color-primary);
}

.contact__link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.contact__note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.site-footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: white;
}

.site-footer__info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.site-footer__version {
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .section {
    padding: 3rem 1.5rem;
  }

  .section__title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
    min-height: 90vh;
  }

  .about__grid,
  .features__grid,
  .how__steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Simulation vs Reality Section */
.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.comparison__card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.comparison__card--simulation {
  border: 2px solid #d1fae5;
}

.comparison__card--cgm {
  border: 2px solid #dbeafe;
}

.comparison__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comparison__icon {
  font-size: 2.5rem;
}

.comparison__title {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-text);
}

.comparison__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comparison__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.comparison__list li:last-child {
  margin-bottom: 0;
}

.comparison__check {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.comparison__footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.comparison__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
}

.comparison__badge--simulation {
  background: #d1fae5;
  color: #065f46;
}

.comparison__badge--medical {
  background: #dbeafe;
  color: #1e3a8a;
}

.comparison__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.comparison__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.simulation__cta {
  margin-top: 3rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dbeafe 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-primary);
}

.simulation__cta-text {
  margin: 0;
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-text);
}

/* Responsive - Stack comparison cards on mobile */
@media (max-width: 768px) {
  .comparison {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comparison__divider {
    padding: 0;
  }

  .comparison__vs {
    transform: rotate(90deg);
  }
}

/* Print Styles */
@media print {
  .site-header,
  .hero__background,
  .site-footer,
  .btn {
    display: none !important;
  }

  .section {
    page-break-inside: avoid;
  }
}
