/* ===================================================================
   Virtality Landing Page - Dark Night Theme
   Matches dashboard night mode style
   =================================================================== */

/* Import Nunito font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* Dark Theme Variables */
:root {
  --color-primary: #22C55E;
  --color-primary-dark: #16A34A;
  --color-primary-light: rgba(34, 197, 94, 0.15);
  --color-secondary: #3b82f6;
  --color-accent: #f59e0b;

  --color-text: #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;
  --color-bg: #0F0F1A;
  --color-bg-alt: #1A1A2E;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 4px 20px rgba(34, 197, 94, 0.3);

  --header-bg: rgba(15, 15, 26, 0.95);
  --header-text: #E2E8F0;
  --header-border: rgba(255, 255, 255, 0.08);
}

/* Global Dark Styles */
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #0F0F1A 0%, #1A1A2E 50%, #16213E 100%);
  background-attachment: fixed;
  color: var(--color-text);
  min-height: 100vh;
}

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

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

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

/* Header Dark Theme */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Logo dark theme */
.brand-logo-svg text tspan:last-child {
  fill: #E2E8F0 !important;
}

.brand-logo-svg path[fill="none"] {
  stroke: var(--color-primary) !important;
}

/* Logo gradient fix for dark theme */
.site-header__brand .brand-logo-svg #vitGradient1 stop {
  stop-color: #22C55E !important;
}

/* Navigation Links */
.site-nav__link {
  color: var(--color-text-muted);
  font-weight: 600;
}

.site-nav__link:hover {
  color: var(--color-text);
}

.site-nav__link::after {
  background: var(--color-primary);
}

/* Mobile Toggle */
.site-header__toggle span {
  background: var(--color-text);
}

/* Buttons */
.btn--primary {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  border: none;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #16A34A, #15803D);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
  color: white;
}

.btn--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.btn--secondary:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--color-primary);
}

.btn--hero {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-glow);
}

.btn--hero:hover {
  background: linear-gradient(135deg, #16A34A, #15803D);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
  color: white;
}

/* Hero Section */
.hero {
  background: transparent;
  position: relative;
  padding-top: 8rem;
}

/* Hero Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero__badge-icon {
  font-size: 14px;
}

.hero__badge-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Hero Buttons */
.hero__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Hero Trust Items */
.hero__trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-dim);
  font-size: 13px;
}

.hero__background {
  background: transparent;
  opacity: 1;
}

.hero__background::before {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
}

.hero__background::after {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.hero__title {
  color: var(--color-text);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title .glow-text {
  color: var(--color-primary);
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
}

.hero__subtitle {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.hero__disclaimer {
  color: var(--color-text-dim);
}

/* Sections */
.section {
  background: transparent;
}

.section--about,
.section--features,
.section--simulation,
.section--how,
.section--disclaimer,
.section--privacy,
.section--contact {
  background: transparent;
}

.section__title {
  color: var(--color-text);
  font-weight: 900;
}

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

/* About Cards */
.about__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: all 0.3s ease;
}

.about__card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

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

/* Features */
.feature {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: var(--shadow-md);
}

.feature__title {
  color: var(--color-text);
}

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

/* Use Cases List */
.usecases-list li {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
  color: var(--color-text-muted);
}

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

/* How It Works / Steps */
.step__number {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  font-weight: 900;
}

.step__title {
  color: var(--color-text);
}

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

/* Disclaimer */
.disclaimer__box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
}

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

.disclaimer__text strong {
  color: #F59E0B;
}

/* Privacy */
.privacy__content {
  color: var(--color-text-muted);
}

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

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

.privacy__content code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.privacy__summary {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  color: var(--color-text);
}

/* Contact */
.contact__lead {
  color: var(--color-text-muted);
}

.contact__info {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

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

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

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

.contact__note {
  color: var(--color-text-dim);
}

/* Comparison Cards */
.comparison__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.comparison__card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.comparison__card--simulation {
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.comparison__card--cgm {
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.comparison__title {
  color: var(--color-text);
}

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

.comparison__check {
  color: var(--color-primary);
}

.comparison__footer {
  border-top-color: var(--color-border);
}

.comparison__badge--simulation {
  background: rgba(34, 197, 94, 0.2);
  color: var(--color-primary);
}

.comparison__badge--medical {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.comparison__vs {
  background: linear-gradient(135deg, var(--color-primary), #8B5CF6);
}

.simulation__cta {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.simulation__cta-text {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: rgba(15, 15, 26, 0.8);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

.site-footer__nav a {
  color: var(--color-text-muted);
}

.site-footer__nav a:hover {
  color: var(--color-text);
}

.site-footer__info {
  color: var(--color-text-dim);
}

/* Mobile Navigation Dark */
@media (max-width: 768px) {
  .site-nav {
    background: var(--color-bg);
  }

  .site-nav__link {
    border-bottom-color: var(--color-border);
  }

  .hero {
    padding-top: 6rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__badge {
    padding: 6px 12px;
  }

  .hero__badge-text {
    font-size: 12px;
  }
}

/* Floating Plants Animation Enhancement */
@keyframes float-dark {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.3));
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.4));
  }
}

.hero__background::before,
.hero__background::after {
  animation: float-dark 20s infinite ease-in-out;
}

/* Glow Effects */
.glow-text {
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
}

/* Selection highlight */
::selection {
  background: rgba(34, 197, 94, 0.3);
  color: white;
}

/* Citations Section */
.section--citations {
  padding: 80px 2rem;
}

.citations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.citation-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.citation-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.citation-card--wide {
  grid-column: 1 / -1;
}

.citation-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.citation-card__number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.citation-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.citation-card__content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 16px 0;
}

.citation-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.gi-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.gi-badge--low {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}

.gi-badge--medium {
  background: rgba(234, 179, 8, 0.15);
  color: #EAB308;
}

.gi-badge--high {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.citation-card__formula {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #A78BFA;
  text-align: center;
  margin-bottom: 16px;
}

.citation-card__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.citation-card__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.citation-card__source:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
}

.citation-card__source svg {
  opacity: 0.7;
}

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

  .citation-card--wide {
    grid-column: 1;
  }
}

/* Scrollbar Dark Theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 197, 94, 0.6);
}
