/* ═══════════════════════════════════════════════════════════════════════════
   MediFlow — Landing Page
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #1D7A6B;
  --brand-dark: #155a50;
  --brand-light: #E1F5EE;
  --brand-text: #0F6E56;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F5F4F0;
  --text-1: #1a1a18;
  --text-2: #5F5E5A;
  --text-3: #888780;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--text-1);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 12px 24px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,122,107,.25); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-white { background: white; color: var(--brand); }
.btn-white:hover { background: #f0f0f0; }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,248,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text-1); }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero h1 {
  font-size: 48px; font-weight: 700; line-height: 1.15; letter-spacing: -0.5px;
}
.highlight { color: var(--brand); }
.hero-sub {
  font-size: 18px; color: var(--text-2); margin-top: 16px; max-width: 480px; line-height: 1.6;
}
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.hero-note { font-size: 13px; color: var(--text-3); }
.hero-badges {
  display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap;
}
.hero-badges .badge {
  background: var(--brand-light); color: var(--brand-text);
  padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
}

/* ─── APP MOCKUP ─────────────────────────────────────────────────────────── */
.app-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}
.mockup-bar {
  background: var(--surface-2); padding: 10px 14px;
  display: flex; gap: 6px; border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,0.12);
}
.mockup-body { display: grid; grid-template-columns: 56px 1fr; min-height: 280px; }
.mockup-sidebar {
  background: var(--surface-2); padding: 12px 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.m-brand { width: 28px; height: 28px; border-radius: 6px; background: var(--brand); margin: 0 auto 8px; }
.m-nav { display: flex; flex-direction: column; gap: 4px; }
.m-nav span {
  height: 8px; border-radius: 3px; background: rgba(0,0,0,0.06);
}
.m-nav span.active { background: var(--brand-light); }
.mockup-content { padding: 16px; }
.m-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.m-cards span { height: 48px; border-radius: 6px; background: var(--surface-2); }
.m-grid {
  height: 140px; border-radius: 6px; background: var(--surface-2);
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 23px, var(--border) 23px, var(--border) 24px
  );
}

/* ─── FEATURES ───────────────────────────────────────────────────────────── */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 600; }
.section-header p { color: var(--text-2); margin-top: 8px; font-size: 17px; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .2s;
}
.feature-card:hover {
  border-color: var(--brand); box-shadow: 0 4px 20px rgba(29,122,107,0.08);
  transform: translateY(-2px);
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ─── SCREENSHOTS ────────────────────────────────────────────────────────── */
.screenshots { padding: 80px 0; background: var(--surface-2); }
.screenshot-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 32px;
}
.tab {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 8px 18px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s; color: var(--text-2);
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--brand); color: white; border-color: var(--brand); }

.screenshot-display { text-align: center; }
.screenshot-placeholder {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 800px; margin: 0 auto;
  height: 400px; display: flex; align-items: center; justify-content: center;
}
.placeholder-text { color: var(--text-3); font-size: 14px; }

/* ─── TECH ───────────────────────────────────────────────────────────────── */
.tech { padding: 80px 0; }
.tech-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.tech-item {
  text-align: center; padding: 24px;
}
.tech-item strong { display: block; font-size: 15px; margin-bottom: 6px; }
.tech-item p { font-size: 13px; color: var(--text-2); }

/* ─── DOWNLOAD ───────────────────────────────────────────────────────────── */
.download {
  padding: 100px 0;
  background: var(--brand);
  color: white;
  text-align: center;
}
.download h2 { font-size: 36px; font-weight: 600; }
.download p { font-size: 17px; opacity: 0.85; margin-top: 10px; }
.download-buttons { margin-top: 28px; }
.download-info { display: block; margin-top: 14px; font-size: 13px; opacity: 0.7; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 32px 0; border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ─── PRICING ────────────────────────────────────────────────────────────── */
.pricing { padding: 100px 0; background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.pricing-card.highlighted {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 12px 30px rgba(29,122,107,0.1);
}
.pricing-card.highlighted h3 { color: var(--brand-text); }
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.pricing-card .price { font-size: 40px; font-weight: 700; color: var(--brand); margin-bottom: 24px; }
.pricing-card.highlighted .price { color: var(--brand-text); }
.pricing-card ul { list-style: none; padding: 0; margin-bottom: 32px; flex-grow: 1; }
.pricing-card li { margin-bottom: 12px; font-size: 15px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.pricing-card li::before { content: "✓"; color: var(--brand); font-weight: bold; }
.pricing-card.highlighted li::before { color: var(--brand-text); }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 40px auto 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 16px auto 0; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
