@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #0F172A; /* Slate 900 */
  --secondary-color: #F8FAFC; /* Slate 50 */
  --accent-color: #2563EB; /* Blue 600 */
  --accent-color-hover: #1D4ED8; /* Blue 700 */
  --text-muted: #64748B; /* Slate 500 */
  --text-dark: #1E293B; /* Slate 800 */
  --alert-color: #F59E0B; /* Amber 500 */
  --border-color: #E2E8F0; /* Slate 200 */
  --bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --font-family: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--secondary-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding { padding: 8rem 0; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
  background-color: var(--accent-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: flex;
  gap: 1rem;
}

/* Section 1 - Hero */
.hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text-wrapper {
  max-width: 600px;
}

.hero-badges {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  object-fit: contain;
  max-height: 500px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

/* Glassmorphism Floating Cards */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
}

.card-top-right {
  top: -2rem;
  right: -2rem;
  animation-delay: 1s;
}

.card-bottom-left {
  bottom: 2rem;
  left: -3rem;
  animation-delay: 0s;
}

.floating-icon {
  width: 3rem;
  height: 3rem;
  background: #E0E7FF;
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-text .title {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
  display: block;
}

.floating-text .subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

/* Section 2 - Problem */
.problem {
  background-color: white;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.problem-card {
  padding: 2.5rem 2rem;
  background: var(--secondary-color);
  border-radius: 1.5rem;
  text-align: left;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.problem-card:hover {
  background: white;
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.problem-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: #FEE2E2;
  color: #DC2626;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Section 3 - Solution */
.solution {
  background-color: var(--primary-color);
  color: white;
}

.solution h2, .solution h3 {
  color: white;
}

.solution p {
  color: #94A3B8;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
  margin-top: 4rem;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
}

.feature-item-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.solution-image-container {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  padding: 3rem;
  border: 1px solid #1E293B;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.solution-image-container img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  object-fit: contain;
  max-height: 500px;
}

/* Section 4 - How it Works */
.how-it-works {
  background-color: var(--secondary-color);
}

.how-it-works-video {
  max-width: 640px;
  margin: 0 auto 4rem auto;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: white;
}

.how-it-works-video video {
  width: 100%;
  height: auto;
  display: block;
}

.timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.step {
  text-align: center;
  width: 30%;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 7rem;
  height: 7rem;
  background: white;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  margin: 0 auto 2rem auto;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.step:hover .step-number {
  background: var(--accent-color);
  color: white;
  transform: scale(1.1);
}

/* Section 5 - Key Features */
.features {
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.feature-box {
  padding: 2rem;
  background: var(--secondary-color);
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: transparent;
}

.fb-icon {
  width: 4rem;
  height: 4rem;
  background: #E0E7FF;
  color: var(--accent-color);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.fb-icon.warning {
  background: #FEF3C7;
  color: var(--alert-color);
}

/* Section 6 - Comparison */
.comparison {
  background-color: var(--secondary-color);
}

.comparison-table {
  width: 100%;
  max-width: 900px;
  margin: 4rem auto 0;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comp-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--primary-color);
  color: white;
  padding: 1.5rem 2rem;
  font-weight: 600;
  text-align: center;
}

.comp-header > div:first-child { text-align: left; }

.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  text-align: center;
}

.comp-row:last-child { border-bottom: none; }

.comp-row > div:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--primary-color);
}

.comp-cell-ordinary { color: var(--text-muted); }
.comp-cell-medimind { font-weight: 600; color: var(--accent-color); }

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #D1FAE5;
  color: #10B981;
  border-radius: 50%;
  font-size: 0.875rem;
}

.cross-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #FEE2E2;
  color: #EF4444;
  border-radius: 50%;
  font-size: 0.875rem;
}

/* Section 7 - Dual Audience */
.dual-audience {
  background-color: white;
}

.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.audience-card {
  padding: 4rem 3rem;
  border-radius: 2rem;
  color: white;
}

.card-users {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

.card-families {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.audience-card h3 { color: white; margin-bottom: 2rem; font-size: 2rem; }
.audience-card p { color: rgba(255, 255, 255, 0.8); }

.benefit-list {
  list-style: none;
  margin-top: 2rem;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.125rem;
}

.benefit-list li i {
  color: #60A5FA;
}

/* Section 8 - MVP Proof */
.proof {
  background-color: var(--secondary-color);
  text-align: center;
}

.proof-content {
  max-width: 800px;
  margin: 0 auto;
}

.proof-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.proof-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.proof-badge i { font-size: 2rem; color: var(--accent-color); }
.proof-badge span { font-weight: 600; color: var(--primary-color); }

/* Section 9 - Vision */
.vision {
  background-color: white;
  text-align: center;
}

.vision-quote {
  max-width: 900px;
  margin: 0 auto;
}

.vision-quote p {
  font-size: 2rem;
  line-height: 1.4;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 2rem;
}

.vision-quote span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Section 10 - Footer CTA */
.final-cta {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  text-align: center;
  padding: 8rem 0;
}

.final-cta h2 { color: white; }
.final-cta p { color: #94A3B8; max-width: 600px; margin: 0 auto 3rem auto; }

.waitlist-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  color: white;
  font-size: 1rem;
  font-family: var(--font-family);
  outline: none;
}

.waitlist-input::placeholder {
  color: #94A3B8;
}

.waitlist-submit {
  white-space: nowrap;
}

.footer {
  background: var(--primary-color);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748B;
  text-align: center;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  .solution-grid { gap: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .step-number { width: 5rem; height: 5rem; font-size: 2rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero-content, .solution-grid, .audience-split {
    grid-template-columns: 1fr;
  }
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }
  .timeline::before {
    top: 0; left: 50%; width: 2px; height: 100%;
    transform: translateX(-50%);
  }
  .step { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-badges { flex-direction: column; }
  .nav-links, .nav-cta { display: none; }
  .hero { padding-top: 8rem; text-align: center; }
  .hero-actions { justify-content: center; flex-direction: column; }
  .waitlist-form { flex-direction: column; border-radius: 1rem; padding: 1rem; gap: 1rem; background: transparent; border: none; }
  .waitlist-input { border-radius: 9999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
  .waitlist-submit { width: 100%; }
  .comp-header, .comp-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }
  .comp-header > div:not(:first-child) { display: none; }
  .comp-row { border-bottom: 2px solid var(--border-color); padding: 1.5rem; }
  .comp-row > div:nth-child(2)::before { content: 'Ordinary: '; font-weight: normal; color: var(--text-muted); }
  .comp-row > div:nth-child(3)::before { content: 'MediMind: '; font-weight: normal; color: var(--text-muted); }
}
