/* KliniTrack Landing Page — Design System */

:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #DBEAFE;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #EA580C;
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0F172A;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --max-width: 1120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover { background: var(--primary-light); border-color: var(--primary-light); }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
.nav-scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
}
.brand-text { color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.highlight { color: var(--primary); }
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 16px; }
.hero-microcopy {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
}

/* Phone mockup */
.phone-frame {
  width: 280px;
  margin: 0 auto;
  background: #1C1C1E;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.phone-screenshot {
  width: 100%;
  border-radius: 24px;
  display: block;
}

/* Features */
.features {
  padding: 96px 0;
  background: var(--bg);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How it works */
.how-it-works {
  padding: 96px 0;
  background: var(--bg-alt);
}
.steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step-card {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-card-accent {
  border-color: var(--primary);
  border-width: 2px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 30%);
}
.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  margin: 0 auto 20px;
}
.step-card-accent .step-icon {
  background: var(--primary);
  color: #fff;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.step-connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
}

/* Pricing */
.pricing {
  padding: 96px 0;
  background: var(--bg);
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 32px;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card-featured {
  border-color: var(--primary);
  border-width: 2px;
  position: relative;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 20%);
}
.pricing-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.pricing-card-featured .pricing-badge {
  background: var(--primary);
  color: #fff;
}
.pricing-amount { margin-bottom: 8px; }
.price { font-size: 56px; font-weight: 800; color: var(--text); }
.currency { font-size: 16px; color: var(--text-secondary); font-weight: 500; }
.pricing-per-month {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.pricing-features {
  text-align: left;
  margin: 24px 0 32px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* FAQ */
.faq {
  padding: 96px 0;
  background: var(--bg-alt);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA */
.cta {
  padding: 96px 0;
  background: var(--primary);
  text-align: center;
  color: #fff;
}
.cta h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.cta-microcopy {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 16px;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-dark);
  color: #fff;
}
.footer-inner { display: flex; flex-direction: column; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand-text { color: #fff; }
.footer-tagline { font-size: 14px; color: var(--text-tertiary); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { font-size: 14px; color: #CBD5E1; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--text-tertiary); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero h1 { font-size: 32px; }
  .hero-subtitle { margin: 0 auto 24px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-disclaimer { margin: 0 auto; text-align: left; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps-flow { flex-direction: column; gap: 16px; }
  .step-connector { transform: rotate(90deg); padding: 4px 0; }
  .step-card { max-width: 100%; }
  .pricing-cards { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .section-header h2 { font-size: 28px; }
}
