/* ============================================
   DENTAL VOICE PRO - ENHANCED TYPOGRAPHY SYSTEM
   ============================================

   Multi-Font Architecture:
   - Sora: Modern tech headings
   - Plus Jakarta Sans: Professional UI text
   - Space Grotesk: Technical/feature headings
   - Inter: Clean body copy
   - IBM Plex Mono: Code & technical specs
   - Libre Baskerville: Elegant callouts

   This creates a professional, trustworthy
   typographic system perfect for dental
   technology and AI-powered solutions.
============================================ */

/* Font Imports - Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100;200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

/* ============================================
   TYPOGRAPHY VARIABLE SYSTEM
============================================ */
:root {
  /* Font Families */
  --font-display: 'Sora', 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', 'Manrope', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-serif: 'Libre Baskerville', 'Georgia', serif;

  /* Font Sizes - Fluid & Responsive */
  --text-2xs: clamp(0.625rem, 0.6rem + 0.2vw, 0.7rem);
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.9rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.1rem, 1.05rem + 0.3vw, 1.2rem);
  --text-xl: clamp(1.2rem, 1.15rem + 0.35vw, 1.35rem);
  --text-2xl: clamp(1.4rem, 1.3rem + 0.5vw, 1.6rem);
  --text-3xl: clamp(1.75rem, 1.6rem + 0.75vw, 2rem);
  --text-4xl: clamp(2.1rem, 1.9rem + 1vw, 2.5rem);
  --text-5xl: clamp(2.6rem, 2.3rem + 1.5vw, 3.2rem);
  --text-6xl: clamp(3.2rem, 2.8rem + 2vw, 4rem);
  --text-7xl: clamp(3.8rem, 3.3rem + 2.5vw, 5rem);
  --text-8xl: clamp(4.5rem, 3.8rem + 3.5vw, 6.5rem);
  --text-9xl: clamp(5.5rem, 4.5rem + 5vw, 8rem);

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Font Weights */
  --weight-thin: 100;
  --weight-extralight: 200;
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;
}

/* ============================================
   BODY & BASE STYLES
============================================ */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* ============================================
   HEADING STYLES - DISPLAY & SECTION HEADERS
============================================ */
h1, .h1,
.hero-title,
.display-title {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 1.25rem;
}

h2, .h2,
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 1rem;
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  margin-bottom: 0.875rem;
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  margin-bottom: 0.75rem;
}

h5, .h5 {
  font-family: var(--font-ui);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
  margin-bottom: 0.625rem;
}

h6, .h6 {
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ============================================
   BODY TEXT & PARAGRAPHS
============================================ */
p, .body-text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-normal);
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.lead-text,
.subtitle,
.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-normal);
  color: var(--gray-600);
}

.large-text {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

.small-text {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.tiny-text {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

/* ============================================
   TECHNICAL & FEATURE TEXT
============================================ */
.tech-label,
.feature-label,
.stat-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gray-500);
}

.stat-value,
.metric-value,
.big-number {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  color: var(--primary-black);
}

.code-text,
.monospace,
.technical-spec {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  background: var(--gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
}

/* ============================================
   BUTTON & CTA TYPOGRAPHY
============================================ */
button,
.btn,
.cta-button {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-none);
}

.btn-lg {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-normal);
}

.btn-sm {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* ============================================
   SPECIALTY TEXT STYLES
============================================ */
.elegant-text,
.testimonial-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-normal);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-loose);
}

.display-quote,
.pullquote {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  font-style: italic;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--primary-black);
}

.eyebrow,
.overline,
.kicker {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================
   GRADIENT TEXT EFFECTS
============================================ */
.gradient-text-primary {
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--accent-blue) 80%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-tech {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVIGATION & HEADER TEXT
============================================ */
.nav-logo h1,
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Kept visually hidden for accessibility/SEO - logo SVG contains visible text */
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
}

/* ============================================
   FEATURE & PRICING CARD TEXT
============================================ */
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  margin-bottom: 0.75rem;
  color: var(--primary-black);
}

.feature-card p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--gray-600);
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--primary-black);
}

.pricing-amount .price {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-none);
  color: var(--primary-black);
}

.pricing-features li {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-700);
}

/* ============================================
   BADGE & PILL TEXT
============================================ */
.badge,
.pill,
.tag {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* ============================================
   FOOTER TEXT
============================================ */
.footer-section h4 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--white);
}

.footer-section a,
.footer-section li {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY ADJUSTMENTS
============================================ */
@media (max-width: 1024px) {
  :root {
    --text-9xl: clamp(4.5rem, 7vw, 6rem);
    --text-8xl: clamp(4rem, 6vw, 5rem);
    --text-7xl: clamp(3.2rem, 5vw, 4rem);
  }
}

@media (max-width: 768px) {
  :root {
    --text-7xl: clamp(2.5rem, 6vw, 3.5rem);
    --text-6xl: clamp(2rem, 5vw, 2.75rem);
    --text-5xl: clamp(1.75rem, 4.5vw, 2.25rem);
  }

  h1, .h1, .hero-title {
    line-height: var(--leading-snug);
    margin-bottom: 1rem;
  }

  h2, .h2, .section-title {
    line-height: var(--leading-snug);
    margin-bottom: 0.875rem;
  }

  .lead-text, .subtitle {
    font-size: var(--text-xl);
    line-height: var(--leading-normal);
  }

  .pricing-amount .price {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  :root {
    --text-7xl: clamp(2rem, 8vw, 2.75rem);
    --text-5xl: clamp(1.5rem, 6vw, 2rem);
    --text-base: clamp(0.9rem, 3.5vw, 1rem);
  }

  p, .body-text {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
  }

  .lead-text, .subtitle {
    font-size: var(--text-lg);
  }

  .pricing-amount .price {
    font-size: 2.5rem;
  }

  .stat-value,
  .metric-value {
    font-size: var(--text-5xl);
  }
}

/* ============================================
   ADVANCED TYPOGRAPHY FEATURES
============================================ */

/* OpenType Features */
.feature-small-caps {
  font-feature-settings: "smcp" 1;
}

.feature-oldstyle-nums {
  font-feature-settings: "onum" 1;
}

.feature-tabular-nums {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.feature-proportional-nums {
  font-feature-settings: "pnum" 1;
}

/* Text Rendering Optimizations */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

p {
  text-wrap: pretty;
  orphans: 3;
  widows: 3;
}

/* Selection Styling */
::selection {
  background: rgba(0, 102, 255, 0.15);
  color: var(--primary-black);
  text-shadow: none;
}

::-moz-selection {
  background: rgba(0, 102, 255, 0.15);
  color: var(--primary-black);
  text-shadow: none;
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
============================================ */

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    font-weight: var(--weight-medium);
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-extrabold);
  }

  p, .body-text {
    font-weight: var(--weight-medium);
  }
}

/* Font loading optimization */
@font-face {
  font-display: swap;
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
  body {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}
