/* Compact Responsive Landing Page Styles */
body { 
  font-family: 'Inter', sans-serif; 
  background: var(--bg-primary); 
  color: var(--text-primary); 
  line-height: 1.4; 
  margin: 0; 
  padding: 0; 
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Compact Hero Section - Fully Responsive */
.hero { 
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%); 
  color: white; 
  padding: clamp(2rem, 4vw, 3rem) var(--space-lg) clamp(1.5rem, 3vw, 2rem); 
  text-align: center; 
  min-height: clamp(280px, 35vh, 400px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero h1 { 
  font-size: clamp(1.5rem, 4vw, 2.25rem); 
  font-weight: 700; 
  margin-bottom: clamp(0.5rem, 2vw, 0.75rem); 
  line-height: 1.2; 
  max-width: 700px;
}

.hero .subtitle { 
  font-size: clamp(0.875rem, 2.5vw, 1rem); 
  margin-bottom: clamp(1rem, 3vw, 1.5rem); 
  opacity: 0.95; 
  max-width: 500px; 
  margin-left: auto; 
  margin-right: auto; 
}

.hero-buttons { 
  display: flex; 
  gap: clamp(0.5rem, 2vw, 0.75rem); 
  justify-content: center; 
  flex-wrap: wrap; 
  width: 100%;
  max-width: 350px;
}

.btn-primary, .btn-secondary { 
  flex: 1;
  min-width: 120px;
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem); 
  border-radius: clamp(4px, 0.5vw, 8px); 
  text-decoration: none; 
  font-weight: 600; 
  font-size: clamp(0.8125rem, 2vw, 0.9375rem); 
  transition: all 0.3s ease; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.btn-primary { 
  background: white; 
  color: #16a34a; 
  box-shadow: 0 1px 4px rgba(0,0,0,0.1); 
}

.btn-primary:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
}

.btn-secondary { 
  background: rgba(255,255,255,0.15); 
  color: white; 
  border: 1px solid rgba(255,255,255,0.3); 
}

.btn-secondary:hover { 
  background: rgba(255,255,255,0.25); 
}

/* Compact Responsive Sections */
.section { 
  padding: clamp(1.5rem, 4vw, 2.5rem) 0; 
}

.section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.section-title { 
  font-size: clamp(1.25rem, 3.5vw, 1.75rem); 
  font-weight: 700; 
  text-align: center; 
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem); 
  color: var(--text-primary); 
}

.section-subtitle { 
  text-align: center; 
  color: var(--text-secondary); 
  font-size: clamp(0.8125rem, 2vw, 0.9375rem); 
  margin-bottom: clamp(1.25rem, 3vw, 2rem); 
  max-width: 500px; 
  margin-left: auto; 
  margin-right: auto; 
}

/* Compact Responsive Feature Grid */
.features-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: clamp(0.75rem, 2vw, 1.25rem); 
}

.feature-card { 
  background: var(--bg-secondary); 
  padding: clamp(1rem, 2.5vw, 1.25rem); 
  border-radius: clamp(8px, 1vw, 12px); 
  box-shadow: 0 1px 3px var(--shadow-color); 
  transition: all 0.3s ease; 
  border: 1px solid var(--border-color); 
  text-align: center; 
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 3px 8px var(--shadow-color); 
  border-color: var(--accent-primary); 
}

[data-theme="dark"] .feature-card:hover {
  border-color: var(--accent-secondary);
}

.feature-icon { 
  font-size: clamp(1.75rem, 3vw, 2rem); 
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem); 
  display: block; 
}

.feature-card h3 { 
  color: var(--accent-primary); 
  font-size: clamp(0.875rem, 2vw, 1rem); 
  font-weight: 600; 
  margin-bottom: clamp(0.375rem, 1vw, 0.5rem); 
}

[data-theme="dark"] .feature-card h3 {
  color: var(--accent-secondary);
}

.feature-card p { 
  color: var(--text-secondary); 
  font-size: clamp(0.75rem, 1.8vw, 0.8125rem); 
  line-height: 1.4; 
  flex-grow: 1;
  margin: 0;
}

/* Compact Responsive Highlight Section */
.highlight-section { 
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); 
  padding: clamp(1.5rem, 4vw, 2.5rem) 0; 
}

[data-theme="dark"] .highlight-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.highlight-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: clamp(0.75rem, 2vw, 1.25rem); 
}

.highlight-card { 
  background: var(--bg-secondary); 
  padding: clamp(1rem, 2.5vw, 1.25rem); 
  border-radius: clamp(8px, 1vw, 12px); 
  box-shadow: 0 1px 3px var(--shadow-color); 
  border-left: 3px solid var(--accent-primary); 
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px var(--shadow-color);
}

[data-theme="dark"] .highlight-card {
  border-left-color: var(--accent-secondary);
}

.highlight-card h3 { 
  color: var(--text-primary); 
  font-size: clamp(0.8125rem, 2vw, 0.9375rem); 
  font-weight: 600; 
  margin-bottom: clamp(0.375rem, 1vw, 0.5rem); 
  display: flex; 
  align-items: center; 
  gap: clamp(0.375rem, 1vw, 0.5rem); 
}

.highlight-card p { 
  color: var(--text-secondary); 
  font-size: clamp(0.75rem, 1.8vw, 0.8125rem); 
  line-height: 1.4; 
  margin: 0;
}

/* Compact Responsive Footer */
.footer { 
  background: #0f172a; 
  color: #94a3b8; 
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 1.5rem); 
  text-align: center; 
  font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
}

[data-theme="dark"] .footer {
  background: #000000;
  color: #64748b;
}

.footer p { 
  margin-bottom: 0; 
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer a { 
  color: #22c55e; 
  text-decoration: none; 
  transition: color 0.3s ease;
}

.footer a:hover { 
  text-decoration: underline; 
  color: #16a34a;
}

/* ===== COMPACT RESPONSIVE BREAKPOINTS ===== */

/* Mobile First - Extra Small (320px+) */
@media (max-width: 575px) {
  .hero {
    padding: 1.5rem 1rem 1.25rem;
    min-height: 250px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 240px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    min-width: auto;
    padding: 0.625rem 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .feature-card, .highlight-card {
    padding: 0.875rem;
  }
  
  .section {
    padding: 1.25rem 0;
  }
}

/* Small Tablets (576px+) */
@media (min-width: 576px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .highlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .hero {
    min-height: 280px;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }
  
  .highlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .hero {
    padding: 2.5rem 1.5rem 2rem;
    min-height: 320px;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Large Tablets / Small Desktops (992px+) */
@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .highlight-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .hero {
    min-height: 350px;
  }
  
  .section {
    padding: 2.25rem 0;
  }
}

/* Desktops (1200px+) */
@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .highlight-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .hero {
    min-height: 380px;
  }
  
  .section {
    padding: 2.5rem 0;
  }
}

/* Large Desktops (1400px+) */
@media (min-width: 1400px) {
  .section .container {
    max-width: 1320px;
  }
  
  .hero {
    min-height: 400px;
  }
}

/* ===== COMPACT TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .feature-card:hover,
  .highlight-card:hover {
    transform: none;
  }
  
  .btn-primary:active {
    transform: scale(0.98);
  }
  
  .btn-secondary:active {
    transform: scale(0.98);
  }
  
  /* Slightly larger touch targets on mobile */
  .btn-primary, .btn-secondary {
    min-height: 44px;
  }
}

/* ===== COMPACT LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 200px;
    padding: 1.5rem 1rem 1rem;
  }
  
  .hero h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.5rem;
  }
  
  .hero .subtitle {
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
  .hero {
    padding: 1.25rem 0.75rem 1rem;
    min-height: 220px;
  }
  
  .section .container {
    padding: 0 0.75rem;
  }
  
  .features-grid,
  .highlight-grid {
    gap: 0.5rem;
  }
  
  .feature-card,
  .highlight-card {
    padding: 0.75rem;
  }
}

/* ===== PRINT OPTIMIZATION ===== */
@media print {
  .hero {
    min-height: auto;
    padding: 1rem;
    background: #16a34a !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .feature-card,
  .highlight-card {
    break-inside: avoid;
    padding: 0.75rem;
  }
}