/* ===== Medteal — Landing Page Styles ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #6366f1;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.nav-brand .logo {
  width: 28px;
  height: 28px;
  display: block;
}

.nav-brand .brand-name {
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

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

.btn-login {
  padding: 8px 20px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary) !important;
  font-weight: 600;
}

.btn-login:hover {
  background: var(--primary);
  color: var(--white) !important;
}

.btn-primary {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s;
}

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

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 10px;
  border-bottom: 1px solid var(--gray-light);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-hero {
  padding: 16px 36px;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--radius);
  transition: all 0.3s;
  display: inline-block;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-install {
  padding: 16px 36px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 2px solid var(--white);
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

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

.hero-note {
  font-size: 14px;
  opacity: 0.9;
}

.dashboard-preview {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.2);
}

.preview-header {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat-box {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  opacity: 0.8;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--light);
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card.featured {
  border: 2px solid var(--primary);
}

.feature-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--success);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  color: var(--gray);
  font-size: 15px;
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-card {
  text-align: center;
  padding: 30px 20px;
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.benefit-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark);
}

.benefit-card p {
  color: var(--gray);
  font-size: 15px;
}

/* Mobile App Section */
.mobile-app {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.mobile-app-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mobile-app-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.mobile-app-text p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.95;
}

.mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.mobile-features li {
  padding: 10px 0;
  font-size: 16px;
  opacity: 0.95;
}

.btn-install-large {
  padding: 16px 40px;
  background: var(--white);
  color: var(--primary);
  border: none;
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 10px;
}

.btn-install-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.install-note {
  font-size: 14px;
  opacity: 0.8;
}

.phone-mockup {
  background: var(--dark);
  border-radius: 40px;
  padding: 15px;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  margin: 0 auto;
}

.phone-screen {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
}

.app-preview {
  padding: 20px;
}

.app-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.app-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.app-stat {
  background: var(--light);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-stat-icon {
  font-size: 24px;
}

.app-stat-text {
  color: var(--dark);
  font-weight: 600;
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
  background: var(--light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 3px solid var(--primary);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark);
}

.price {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.price span {
  font-size: 18px;
  color: var(--gray);
}

.price-desc {
  color: var(--gray);
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  color: var(--gray);
  border-bottom: 1px solid var(--gray-light);
}

.btn-pricing {
  display: block;
  padding: 14px 30px;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.3s;
}

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

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

.btn-pricing.primary:hover {
  background: var(--primary-dark);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-cta {
  padding: 18px 40px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  border-radius: var(--radius);
  display: inline-block;
  transition: all 0.3s;
}

.btn-cta:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta-note {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.8;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background: var(--dark);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--gray-light);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  color: var(--gray-light);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: var(--gray-light);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .features-grid,
  .benefits-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .mobile-app-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .btn-hero,
  .btn-install {
    padding: 12px 24px;
    font-size: 16px;
  }
}
