/* ============================================
   CertifyOS Theme — Medical Education Platform
   Color system: Forest Green + Warm Amber + Cream
   ============================================ */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F0EBE1;
  --bg-dark: #1B4332;
  --fg: #18181B;
  --fg-muted: #6B6560;
  --accent: #D97706;
  --accent-light: #FEF3C7;
  --green: #1B4332;
  --green-mid: #2D6A4F;
  --green-light: #D8F3DC;
  --red: #DC2626;
  --border: #E5DDD3;
  --border-strong: #C4B9A8;
  --white: #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
  --section-py: 100px;
  --section-px: 40px;
  --radius: 12px;
  --radius-sm: 6px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--white); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.wordmark-c { color: var(--green); }
.wordmark-os { color: var(--accent); }

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--fg); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px var(--section-px) 100px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27,67,50,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 52px;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  background: var(--white);
}

.hero-meta-item {
  padding: 16px 28px;
  border-right: 1px solid var(--border);
}

.hero-meta-item:last-child { border-right: none; }

.hero-meta-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.hero-meta-val {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.hero-meta-divider { display: none; }

/* ============================================
   Stats Band
   ============================================ */

.stats-band {
  background: var(--green);
  padding: 40px var(--section-px);
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 48px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
}

/* ============================================
   Why Section
   ============================================ */

.why-section {
  padding: var(--section-py) var(--section-px);
}

.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.why-label, .section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.why-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 64px;
  max-width: 600px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.why-card {
  background: var(--bg);
  padding: 36px;
}

.why-card--problem .why-card-icon { margin-bottom: 16px; }
.why-card--solution .why-card-icon { margin-bottom: 16px; }

.why-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}

.why-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.why-card--solution { background: var(--white); }

/* ============================================
   Courses Section
   ============================================ */

.courses-section {
  padding: var(--section-py) var(--section-px);
  background: var(--bg-alt);
}

.courses-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.courses-header {
  margin-bottom: 60px;
}

.courses-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-card--featured {
  border: 2px solid var(--green);
  background: linear-gradient(135deg, var(--white) 0%, #F0FFF4 100%);
}

.course-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  width: fit-content;
}

.course-tag--mandatory {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.course-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
}

.course-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  flex: 1;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}

.course-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

.course-modules { margin-top: 8px; }

.module-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-list li {
  font-size: 13px;
  color: var(--fg);
  padding-left: 16px;
  position: relative;
}

.module-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.courses-coming {
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.coming-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.coming-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.coming-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
}

/* ============================================
   Outcomes Section
   ============================================ */

.outcomes-section {
  padding: var(--section-py) var(--section-px);
}

.outcomes-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.outcomes-header {
  margin-bottom: 60px;
}

.outcomes-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.testimonial-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card--featured {
  background: var(--green);
  border-color: var(--green);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card--featured .testimonial-quote { color: rgba(255,255,255,0.3); }

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 24px;
}

.testimonial-card--featured blockquote { color: var(--white); }

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.testimonial-card--featured .testimonial-author { color: var(--white); }

.testimonial-location {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.testimonial-card--featured .testimonial-location { color: rgba(255,255,255,0.5); }

.analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.analytics-item {
  background: var(--bg);
  padding: 32px 24px;
  text-align: center;
}

.analytics-pct {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.analytics-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* ============================================
   Compliance Section
   ============================================ */

.compliance-section {
  padding: var(--section-py) var(--section-px);
  background: var(--bg-alt);
}

.compliance-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.compliance-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 20px 0 24px;
}

.compliance-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.compliance-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compliance-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.regulation-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.regulation-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.regulation-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-item { display: flex; flex-direction: column; gap: 2px; }

.reg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.reg-source {
  font-size: 11px;
  color: var(--fg-muted);
}

.market-block {
  background: var(--green);
  border-radius: var(--radius);
  padding: 28px;
}

.market-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.market-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.mkt-item { display: flex; flex-direction: column; }

.mkt-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.mkt-year {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.mkt-arrow { opacity: 0.7; }

.mkt-cagr {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   Closing
   ============================================ */

.closing-section {
  padding: 120px var(--section-px);
  background: var(--fg);
  text-align: center;
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}

.closing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 36px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 28px;
}

.closing-body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px var(--section-px) 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 300px; }

.wordmark--footer {
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  :root { --section-py: 72px; --section-px: 24px; }

  .header-nav { display: none; }

  .hero-headline { letter-spacing: -1px; }

  .hero-meta { flex-direction: column; width: 100%; }
  .hero-meta-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; }
  .hero-meta-item:last-child { border-bottom: none; }

  .stats-inner { flex-wrap: wrap; gap: 24px; justify-content: center; }
  .stat-item { padding: 0 24px; }
  .stat-divider { display: none; }

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

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

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card--featured { order: -1; }

  .analytics-row { grid-template-columns: 1fr; }

  .compliance-inner { grid-template-columns: 1fr; gap: 48px; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .stat-item { padding: 0 16px; }
  .stat-num { font-size: 32px; }

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

  .closing-headline { letter-spacing: -0.5px; }
}