/* ═══════════════════════════════════════════════════════════════
   CLINICALFLOW WEBSITE — DESIGN SYSTEM & STYLES
   Light theme · Teal/blue glow · Premium medical SaaS aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── VARIABLES ─── */
:root {
  /* Background */
  --bg:              #F6F9FE;
  --bg-white:        #FFFFFF;
  --bg-surface:      #EFF4FB;
  --bg-dark:         #0B0F14;
  --bg-dark-surface: #151B23;

  /* Text */
  --text-primary:    #0F172A;
  --text-secondary:  #475569;
  --text-tertiary:   #94A3B8;
  --text-on-dark:    #F1F5F9;
  --text-on-dark-secondary: #94A3B8;

  /* Accent */
  --accent:          #0891B2;
  --accent-light:    #06B6D4;
  --accent-lighter:  #22D3EE;
  --accent-blue:     #3B82F6;
  --accent-indigo:   #6366F1;
  --gradient:        linear-gradient(135deg, #0891B2, #06B6D4, #3B82F6);
  --gradient-btn:    linear-gradient(135deg, #0891B2 0%, #06B6D4 50%, #22D3EE 100%);
  --gradient-glow:   radial-gradient(ellipse at center, rgba(8,145,178,0.18) 0%, transparent 70%);

  /* Glow */
  --glow-soft:       rgba(8, 145, 178, 0.08);
  --glow-med:        rgba(8, 145, 178, 0.14);
  --glow-strong:     rgba(8, 145, 178, 0.25);

  /* Borders */
  --border:          rgba(8, 145, 178, 0.08);
  --border-med:      rgba(8, 145, 178, 0.15);
  --border-strong:   rgba(8, 145, 178, 0.25);

  /* Shadows */
  --shadow-xs:       0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-sm:       0 1px 4px rgba(15, 23, 42, 0.04);
  --shadow-md:       0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg:       0 8px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl:       0 16px 60px rgba(15, 23, 42, 0.10);
  --shadow-glow:     0 0 60px rgba(8, 145, 178, 0.12);
  --shadow-glow-lg:  0 0 120px rgba(8, 145, 178, 0.18);
  --shadow-card:     0 2px 16px rgba(15, 23, 42, 0.05), 0 0 40px rgba(8, 145, 178, 0.06);

  /* Radius */
  --radius-xs:       6px;
  --radius-sm:       10px;
  --radius:          16px;
  --radius-lg:       24px;
  --radius-xl:       32px;
  --radius-full:     9999px;

  /* Typography */
  --font:            'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:            'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Layout */
  --max-width:       1200px;
  --max-width-narrow: 800px;
  --section-gap:     140px;
  --nav-height:      72px;
}


/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}
body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-light); }
::selection {
  background: rgba(8, 145, 178, 0.2);
  color: var(--text-primary);
}


/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow {
  max-width: var(--max-width-narrow);
}
.section {
  padding: var(--section-gap) 0;
  position: relative;
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--surface {
  background: var(--bg-surface);
}


/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(40px, 5.5vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.5vw, 28px); }
h4 { font-size: 20px; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }


/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--glow-soft);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge svg {
  width: 14px;
  height: 14px;
}


/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--gradient-btn);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(8, 145, 178, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(8, 145, 178, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #FFFFFF;
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-med);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 20px var(--glow-soft);
  color: var(--text-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 20px;
}
.btn--ghost:hover {
  color: var(--accent);
}

.btn--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-md);
}
.btn--dark:hover {
  background: var(--bg-dark-surface);
  color: var(--text-on-dark);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: var(--radius);
}
.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.35s ease;
}
.nav.scrolled {
  background: rgba(246, 249, 254, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}
.nav-inner {
  max-width: none;
  margin: 0;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo:hover { color: var(--text-primary); }
.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}
.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--glow-soft);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}
.nav-mobile-toggle svg { width: 24px; height: 24px; }


/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Background glow orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(8,145,178,0.10) 0%, rgba(6,182,212,0.05) 40%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 100px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  margin-bottom: 28px;
}
.hero h1 {
  margin-bottom: 24px;
  position: relative;
}
.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.hero .btn-group {
  justify-content: center;
  margin-bottom: 64px;
}

/* Hero app screenshot */
.hero-visual {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: var(--gradient-glow);
  border-radius: var(--radius-xl);
  z-index: 0;
}
.hero-screenshot {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-med);
  box-shadow: var(--shadow-xl), var(--shadow-glow-lg);
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
/* Placeholder for screenshot */
.hero-screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #0B0F14 0%, #151B23 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 18px;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   LOGOS / TRUST BAR (Optional: "Built with" section)
   ═══════════════════════════════════════════════════════════════ */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
}
.trust-logos svg, .trust-logos img {
  height: 28px;
  width: auto;
}


/* ═══════════════════════════════════════════════════════════════
   PROBLEM STATEMENT
   ═══════════════════════════════════════════════════════════════ */
.problem {
  text-align: center;
}
.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.problem-stat {
  padding: 40px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.problem-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-strong);
}
.problem-stat-number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.problem-stat-label {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════ */
.features-header {
  text-align: center;
  margin-bottom: 72px;
}
.features-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 20px auto 0;
}

/* Feature grid: alternating layout */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-content { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--glow-soft);
  border: 1px solid var(--border-med);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-content h3 {
  font-size: 28px;
}
.feature-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}
.feature-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* Feature visual (screenshot / illustration container) */
.feature-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--border-med);
  box-shadow: var(--shadow-card);
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: var(--gradient-glow);
  z-index: 0;
  border-radius: var(--radius-xl);
}
.feature-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}
.feature-visual-placeholder {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 15px;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS (3-step)
   ═══════════════════════════════════════════════════════════════ */
.steps-header {
  text-align: center;
  margin-bottom: 72px;
}
.steps-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 20px auto 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent-blue));
  opacity: 0.25;
}
.step-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-strong);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 2px 12px rgba(8, 145, 178, 0.3);
  position: relative;
  z-index: 1;
}
.step-card h4 {
  margin-bottom: 12px;
  font-size: 20px;
}
.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════
   MODES (Online / Offline comparison)
   ═══════════════════════════════════════════════════════════════ */
.modes-header {
  text-align: center;
  margin-bottom: 60px;
}
.modes-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 20px auto 0;
}
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.mode-card {
  padding: 44px 36px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-strong);
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-btn);
}
.mode-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}
.mode-card h3 {
  margin-bottom: 8px;
}
.mode-card > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}
.mode-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mode-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.mode-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}
.mode-price {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-tertiary);
}
.mode-price strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════════════
   NOTE FORMATS (SOAP / HPI / Problem-Oriented)
   ═══════════════════════════════════════════════════════════════ */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.format-card {
  padding: 32px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.format-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.format-card h4 {
  margin-bottom: 4px;
}
.format-card .format-full-name {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.format-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.format-sections {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.format-tag {
  padding: 4px 10px;
  background: var(--glow-soft);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--mono);
}


/* ═══════════════════════════════════════════════════════════════
   SECURITY / HIPAA
   ═══════════════════════════════════════════════════════════════ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.security-card {
  padding: 32px;
  background: var(--bg-dark-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.security-card:hover {
  border-color: rgba(8, 145, 178, 0.2);
  box-shadow: 0 0 30px rgba(8, 145, 178, 0.08);
  transform: translateY(-2px);
}
.security-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(8, 145, 178, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-light);
}
.security-icon svg {
  width: 22px;
  height: 22px;
}
.security-card h4 {
  color: var(--text-on-dark);
  margin-bottom: 10px;
  font-size: 18px;
}
.security-card p {
  color: var(--text-on-dark-secondary);
  font-size: 14px;
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD / CTA
   ═══════════════════════════════════════════════════════════════ */
.download {
  text-align: center;
}
.download-header {
  margin-bottom: 48px;
}
.download-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 20px auto 0;
}
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.download-card {
  padding: 36px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.3s ease;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-strong);
}
.download-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
}
.download-card-icon svg {
  width: 100%;
  height: 100%;
}
.download-card h4 {
  margin-bottom: 4px;
}
.download-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.download-card .btn {
  width: 100%;
}
.download-info {
  font-size: 14px;
  color: var(--text-tertiary);
}
.download-info code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════ */
.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(8,145,178,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta h2 {
  margin-bottom: 20px;
  position: relative;
}
.cta p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  position: relative;
}
.cta .btn-group {
  justify-content: center;
  position: relative;
}


/* ═══════════════════════════════════════════════════════════════
   KEYBOARD SHORTCUTS GRID
   ═══════════════════════════════════════════════════════════════ */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.shortcut-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.shortcut-item kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  background: var(--bg-white);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow-xs), 0 1px 0 rgba(8, 145, 178, 0.06);
  white-space: nowrap;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION HEADER UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.section-title {
  margin-top: 20px;
}
.section-subtitle {
  font-size: 18px;
  max-width: 600px;
  margin: 20px auto 0;
}

/* Dark-section badge variant */
.badge--dark {
  border-color: rgba(8, 145, 178, 0.3);
  background: rgba(8, 145, 178, 0.1);
}


/* ═══════════════════════════════════════════════════════════════
   DENTAL CHARTING (light-theme cards using security-grid layout)
   ═══════════════════════════════════════════════════════════════ */
.dental-card {
  padding: 32px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.dental-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-strong);
}
.dental-card .feature-icon {
  margin-bottom: 16px;
}
.dental-card h4 {
  margin-bottom: 8px;
}
.dental-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD — DISABLED / COMING SOON STATE
   ═══════════════════════════════════════════════════════════════ */
.download-card--disabled {
  opacity: 0.6;
  pointer-events: none;
}
.download-card--disabled .btn {
  cursor: default;
}

/* Pricing note below download cards */
.download-pricing-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.download-pricing-note a {
  color: var(--accent);
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--text-tertiary);
  font-size: 13px;
}


/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(8,145,178,0.08); }
  50%      { box-shadow: 0 0 60px rgba(8,145,178,0.18); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero animations */
.hero-badge    { animation: fadeInUp 0.6s ease both; }
.hero h1       { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-subtitle { animation: fadeInUp 0.6s ease 0.2s both; }
.hero .btn-group { animation: fadeInUp 0.6s ease 0.3s both; }
.hero-visual   { animation: fadeInUp 0.8s ease 0.4s both; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --section-gap: 100px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-row.reverse .feature-content { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-inner {
    padding: 0 24px;
  }
  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Active nav link */
.nav-links a.active {
  color: var(--accent);
  background: var(--glow-soft);
}

/* Focus visible only on keyboard */
body.using-mouse *:focus { outline: none; }


@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
    --nav-height: 64px;
  }
  .container { padding: 0 20px; }

  /* Nav */
  .nav-inner {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    transform: none;
    background: rgba(246, 249, 254, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links--open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta .btn--ghost { display: none; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 60px; }
  .hero .btn-group { flex-direction: column; align-items: center; }
  .hero .btn-group .btn { width: 100%; max-width: 320px; }

  /* Grids → single column */
  .problem-stats,
  .steps-grid,
  .modes-grid,
  .formats-grid,
  .security-grid,
  .download-cards {
    grid-template-columns: 1fr;
  }
  .steps-grid::before { display: none; }

  /* Shortcuts grid → single column on mobile */
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn--lg { padding: 16px 28px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
}
