/* ========================================
   KI-Sum AI - Responsive Styles
   ======================================== */

/* Tablet Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

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

  .section-title {
    font-size: 2.5rem;
  }

  .products-grid,
  .features-grid,
  .industries-grid,
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .pricing-grid {
    gap: 1.5rem;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column !important;
    text-align: left;
  }

  .timeline-item::after {
    display: none;
  }

  .timeline-date {
    text-align: left !important;
    margin-bottom: 0.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Typography */
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-desc {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .product-hero-title {
    font-size: 2.5rem;
  }

  .product-hero-desc {
    font-size: 1.1rem;
  }

  /* Grids */
  .products-grid,
  .features-grid,
  .industries-grid,
  .pricing-grid,
  .use-cases-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .product-card,
  .feature-card,
  .industry-card,
  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }

  /* Buttons */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .product-cta {
    flex-direction: column;
  }

  .product-cta .btn {
    width: 100%;
  }

  /* FAQ */
  .faq-question {
    font-size: 1rem;
    padding: 1.25rem;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  /* Early Access Form */
  .early-access-form form {
    flex-direction: column;
  }

  .email-input {
    width: 100%;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  /* Trust Badges */
  .trust-badges {
    gap: 1rem;
    padding: 1.5rem;
  }

  .trust-badge {
    font-size: 0.85rem;
  }

  /* Demo Section */
  .demo-container {
    margin: 0 -1.5rem;
    border-radius: 0;
  }

  /* Timeline */
  .timeline-content {
    padding: 1rem;
  }

  /* Spacing */
  section {
    padding: 3rem 0;
  }

  .hero-home {
    padding: 4rem 0 3rem;
  }

  .product-hero {
    padding: 3rem 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  /* Typography */
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .product-hero-title {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Navigation */
  .brand {
    font-size: 1.5rem;
  }

  .logo {
    height: 32px;
  }

  /* Cards */
  .product-card,
  .feature-card,
  .industry-card,
  .pricing-card,
  .use-case-card {
    padding: 1.25rem;
  }

  /* Pricing */
  .pricing-price {
    font-size: 2.5rem;
  }

  .pricing-price sup {
    font-size: 1.25rem;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Features */
  .feature-icon {
    font-size: 2rem;
  }

  .product-icon {
    font-size: 2.5rem;
  }

  /* Trust Badges */
  .trust-badges {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Early Access */
  .early-access-benefits {
    padding: 1.5rem;
  }

  /* Spacing */
  section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Product Icon */
  .product-icon-large img {
    width: 80px;
    height: 80px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-home {
    padding: 3rem 0 2rem;
  }

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

  .nav-links {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  .star {
    width: 1px;
    height: 1px;
  }
}

/* Print Styles */
@media print {
  /* Hide non-essential elements */
  header,
  footer,
  .mobile-menu-toggle,
  .stars-container,
  .neural-bg,
  .loader,
  .cta-buttons,
  .trust-badges {
    display: none !important;
  }

  /* Reset backgrounds */
  body {
    background: white;
    color: black;
  }

  .card,
  .product-card,
  .feature-card,
  .pricing-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  /* Ensure text is readable */
  .hero-title,
  .section-title,
  .product-hero-title {
    -webkit-text-fill-color: black;
    background: none;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  /* Page breaks */
  section {
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .star,
  .particle {
    display: none;
  }
}

/* Dark Mode Override (if system prefers light) */
@media (prefers-color-scheme: light) {
  /* Keep dark theme as designed */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap targets */
  .nav-link,
  .btn,
  .faq-question {
    padding: 1rem;
  }

  /* Remove hover effects */
  .card:hover,
  .product-card:hover,
  .feature-card:hover {
    transform: none;
  }

  /* Improve scrolling performance */
  .stars-container,
  .neural-bg {
    display: none;
  }
}

/* Ultra Wide Screens */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }

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

  .section-title {
    font-size: 3.5rem;
  }

  .products-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}