/* ==========================================
   Premium Responsive Styles
   ========================================== */

/* Extra Large Screens (1536px+) */
@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 5rem;
  }

  .section-title {
    font-size: var(--text-5xl);
  }
}

/* Large Screens (1280px - 1535px) */
@media (min-width: 1280px) and (max-width: 1535px) {
  .container {
    max-width: 1200px;
  }
}

/* Desktop (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: 980px;
    padding: 0 var(--space-xl);
  }

  .hero-title {
    font-size: var(--text-6xl);
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-lg);
  }

  section {
    padding: var(--space-3xl) 0;
  }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero-container {
    gap: var(--space-2xl);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-description {
    font-size: var(--text-lg);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section-description {
    font-size: var(--text-base);
  }

  .stat-item {
    min-width: 90px;
    padding: var(--space-md);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }
}

/* Mobile Large (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .container {
    padding: 0 var(--space-md);
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    min-width: 80px;
    padding: var(--space-sm);
  }

  .stat-number {
    font-size: var(--text-xl);
  }

  .stat-label {
    font-size: var(--text-xs);
  }
}

/* Mobile Small (< 640px) */
@media (max-width: 639px) {
  :root {
    --space-unit: 0.875rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  }

  .hero-container {
    gap: var(--space-xl);
  }

  .hero-content {
    text-align: center;
  }

  .hero-badge {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  .hero-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
  }

  .hero-description {
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .stat-item {
    min-width: 90px;
    padding: var(--space-sm);
  }

  .stat-number {
    font-size: var(--text-xl);
  }

  .stat-label {
    font-size: var(--text-xs);
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-title {
    font-size: var(--text-2xl);
    line-height: 1.2;
  }

  .section-description {
    font-size: var(--text-sm);
  }

  /* Bundle Cards Mobile */
  .bundle-card {
    border-radius: var(--radius-xl);
  }

  .bundle-image {
    height: 150px;
  }

  .bundle-icon {
    font-size: 3rem;
  }

  .bundle-content {
    padding: var(--space-lg);
  }

  .bundle-title {
    font-size: var(--text-lg);
  }

  .bundle-description {
    font-size: var(--text-sm);
  }

  /* App Cards Mobile */
  .app-card {
    padding: var(--space-md);
  }

  .app-icon {
    font-size: 2rem;
  }

  .app-name {
    font-size: var(--text-xs);
  }

  /* CTA Section Mobile */
  .cta-content {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
  }

  .cta-title {
    font-size: var(--text-2xl);
  }

  .cta-description {
    font-size: var(--text-base);
  }

  /* Buttons Mobile */
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }

  .btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
  }
}

/* Very Small Screens (< 375px) */
@media (max-width: 374px) {
  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-item {
    width: 100%;
    max-width: 200px;
  }

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

  .btn:hover,
  .glass:hover,
  .bundle-card:hover,
  .app-card:hover,
  .nav-link:hover {
    transform: none;
  }

  /* Increase touch targets */
  .nav-link {
    padding: var(--space-md);
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .theme-toggle {
    width: 48px;
    height: 48px;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);
  }

  .btn-primary {
    border: 2px solid var(--white);
  }

  .nav-link {
    border: 1px solid transparent;
  }

  .nav-link:focus {
    border-color: var(--electric-purple);
  }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  }

  .hero-stats {
    flex-direction: row;
  }
}

/* Print Responsive */
@media print {

  .hero-background,
  .hero-particles,
  .hero::before {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  section {
    padding: 2rem 0;
  }

  .bundle-card,
  .app-card {
    break-inside: avoid;
  }
}