:root {
  /* Colors - Exact Apple palette */
  --ink: #1d1d1f;           /* primary text */
  --ink-2: #515154;         /* secondary text */
  --bg: #ffffff;            /* page background */
  --bg-elev: #f5f5f7;       /* light gray sections/cards */
  --link: #0066cc;          /* link blue */
  --cta: #0071e3;           /* primary button blue */

  /* Type scale */
  --h1: clamp(40px, 7vw, 80px);
  --h2: clamp(28px, 4.5vw, 56px);
  --h3: clamp(22px, 3vw, 40px);
  --body: 17px;            /* apple.com reads around 17–19px */
  --tight: 1.05;           /* display leading */
  --normal: 1.35;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
}

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* System font stack that renders SF on Apple devices */
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: var(--normal);
}

/* Links & CTAs */
a { 
  color: var(--link); 
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover { 
  text-decoration: underline;
}

.btn {
  display: inline-block !important; 
  padding: 10px 16px !important; 
  border-radius: 980px !important;
  background: #0071e3 !important; 
  color: #fff !important; 
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  font-size: var(--body) !important;
  transition: all 0.2s ease !important;
}

.btn:hover {
  background: #0056b3 !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

.btn.linky { 
  background: transparent !important; 
  color: #0066cc !important;
  border: 1px solid #0066cc !important;
}

.btn.linky:hover {
  background: rgba(0, 102, 204, 0.08) !important;
  transform: none !important;
}

/* Sections */
.section { 
  padding: var(--space-12) var(--space-4);
}

.section--elev { 
  background: var(--bg-elev);
}

/* Headings */
h1 { 
  font-size: var(--h1); 
  line-height: var(--tight); 
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

h2 { 
  font-size: var(--h2); 
  line-height: var(--tight); 
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

h3 { 
  font-size: var(--h3); 
  line-height: var(--tight);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

p { 
  font-size: var(--body); 
  line-height: var(--normal); 
  color: var(--ink-2);
  margin-bottom: var(--space-3);
}

/* Navigation */
.nav {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  font-weight: 600;
  align-items: center;
}

.nav a {
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(0, 102, 204, 0.08);
  text-decoration: none;
}

/* Header */
.header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid #e5e5ea;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
}

/* Content containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}

/* Spacing utilities */
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  background: var(--bg);
  border-radius: 12px;
  padding: var(--space-6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Footer */
.footer {
  color: #6e6e73;
  font-size: 13px;
  border-top: 1px solid #e5e5ea;
}

/* Logo/Brand */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    gap: var(--space-2);
    font-size: 15px;
  }
  
  .section {
    padding: var(--space-8) var(--space-3);
  }
  
  .container {
    padding: 0 var(--space-3);
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
/* Enhanced Homepage Sections */
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Stats Section */
.stat-card {
  text-align: center;
  padding: var(--space-4);
}

.stat-number {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  color: var(--cta);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 16px;
  color: var(--ink-2);
  font-weight: 500;
}

/* Value Cards */
.value-icon {
  font-size: 48px;
  margin-bottom: var(--space-2);
  display: block;
}

.value-features {
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
}

.value-features li {
  padding: var(--space-1) 0;
  color: var(--ink-2);
  font-size: 15px;
}

.value-features li:before {
  content: "✓";
  color: var(--cta);
  font-weight: bold;
  margin-right: var(--space-1);
}

/* Shade Cards */
.shade-visual {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  margin-bottom: var(--space-2);
  background: linear-gradient(to right, #333, #666);
}

/* Step Cards */
.step-number {
  width: 48px;
  height: 48px;
  background: var(--cta);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.step-content h3 {
  margin-bottom: var(--space-1);
}

.step-content p {
  font-size: 15px;
  line-height: 1.5;
}

/* Testimonials */
.testimonial-content {
  font-style: italic;
  margin-bottom: var(--space-3);
  font-size: 16px;
  line-height: 1.6;
}

.testimonial-author {
  border-top: 1px solid #e5e5ea;
  padding-top: var(--space-2);
}

.testimonial-author strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.testimonial-author span {
  color: var(--ink-2);
  font-size: 14px;
}

/* USA Badge */
.usa-badge {
  text-align: center;
  max-width: 300px;
}

/* Section spacing improvements */
.section + .section {
  margin-top: var(--space-8);
}

.section--elev {
  background: var(--bg-elev);
  padding: var(--space-8) 0;
  margin: var(--space-8) 0;
  border-radius: 16px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .value-icon {
    font-size: 36px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Horizontal Stats Layout - Enhanced */
.stats-section .stats-horizontal {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: var(--space-8) !important;
  flex-wrap: wrap !important;
  margin: 0 auto !important;
  max-width: 800px !important;
  flex-direction: row !important;
}

.stats-section .stats-horizontal .stat-item {
  text-align: center !important;
  padding: var(--space-2) !important;
  min-width: 120px !important;
  flex: 0 0 auto !important;
}

.stats-section .stats-horizontal .stat-number {
  font-size: clamp(28px, 4vw, 40px) !important;
  font-weight: 700 !important;
  color: var(--cta) !important;
  line-height: 1 !important;
  margin-bottom: var(--space-1) !important;
  display: block !important;
}

.stats-section .stats-horizontal .stat-label {
  font-size: 16px !important;
  color: var(--ink-2) !important;
  font-weight: 500 !important;
  display: block !important;
  white-space: nowrap !important;
}

/* Compact sections */
.tint-shades-compact {
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.tint-shades-compact h2 {
  font-size: var(--h3);
  margin-bottom: var(--space-2);
}

.tint-shades-compact p {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 0;
}

/* Compact stats section */
.stats-section {
  padding: var(--space-6) var(--space-4);
}

/* Mobile responsive for horizontal stats */
@media (max-width: 768px) {
  .stats-horizontal {
    gap: var(--space-4);
  }
  
  .stats-horizontal .stat-item {
    min-width: 100px;
  }
  
  .stats-horizontal .stat-number {
    font-size: 20px;
  }
  
  .stats-horizontal .stat-label {
    font-size: 12px;
  }
}

/* Enhanced Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: var(--space-12) var(--space-4);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,113,227,0.08), rgba(0,102,204,0.03));
  z-index: 1;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-3);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--ink-2);
  margin-bottom: var(--space-4);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.usa-badge {
  margin: var(--space-4) auto !important;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: var(--space-8) var(--space-3);
  }
  
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: var(--space-3);
  }
}
