/* Responsive Design */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .container {
    padding: 0 147px;
  }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 1439px) {
  :root {
    --container-padding: 80px;
  }

  .hero-title {
    font-size: 65px;
  }

  .feature-content {
    gap: 80px;
  }

  .bg-circle {
    right: 400px;
    width: 800px;
    height: 600px;
  }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
  :root {
    --container-padding: 40px;
    --section-gap: 32px;
  }

  /* Header */
  .header-content {
    padding: 20px 0;
  }

  .nav-list {
    gap: 32px;
  }

  .nav-link {
    font-size: 12px;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
    min-height: 90vh;
  }

  .hero-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: 48px;
    line-height: 1;
  }

  .hero-description {
    font-size: 20px;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
  }

  /* Features */
  .feature-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .feature-reverse .feature-content {
    flex-direction: column;
  }

  .feature-title {
    font-size: 36px;
  }

  .feature-description {
    font-size: 18px;
  }

  .feature-circle {
    width: 300px;
    height: 300px;
  }

  .feature-phone {
    width: 160px;
    height: 320px;
  }

  /* Footer */
  .footer-title {
    font-size: 36px;
  }

  .footer-description {
    font-size: 20px;
  }

  .store-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .store-button {
    min-width: 200px;
  }

  /* Background adjustments */
  .bg-circle {
    right: 200px;
    width: 600px;
    height: 450px;
  }
}

/* Mobile Large (481px to 767px) */
@media (max-width: 767px) {
  :root {
    --container-padding: 24px;
  }

  /* Header */
  .nav {
    display: none;
  }

  .app-buttons {
    display: none;
  }

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

  .header-content {
    padding: 16px 0;
  }

  .logo-text {
    font-size: 18px;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
    min-height: 80vh;
  }

  .hero-content {
    gap: 32px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 18px;
  }

  .coming-soon-badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 24px;
  }

  .phone-mockup {
    width: 160px;
    height: 320px;
  }

  /* Features */
  .features {
    padding: 60px 0;
  }

  .feature {
    padding: 24px 0;
  }

  .feature-content {
    gap: 32px;
  }

  .feature-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .feature-description {
    font-size: 16px;
  }

  .feature-circle {
    width: 250px;
    height: 250px;
  }

  .feature-phone {
    width: 140px;
    height: 280px;
  }

  /* Task Cards */
  .task-card {
    width: 140px;
    padding: 12px;
  }

  .task-label,
  .task-title {
    font-size: 10px;
  }

  /* Analytics Card */
  .analytics-card {
    width: 160px;
    padding: 16px;
  }

  .analytics-label {
    font-size: 12px;
  }

  .analytics-date {
    font-size: 9px;
  }

  .number-primary,
  .number-secondary {
    font-size: 12px;
  }

  /* Chat Messages */
  .message-bubble p {
    font-size: 10px;
  }

  .message-time {
    font-size: 8px;
  }

  /* Footer */
  .footer {
    padding: 32px 0;
    margin-top: 60px;
  }

  .footer-content {
    gap: 32px;
  }

  .footer-text-block {
    gap: 24px;
  }

  .footer-title {
    font-size: 28px;
  }

  .footer-description {
    font-size: 16px;
  }

  .store-button {
    min-width: 180px;
    padding: 10px 14px;
  }

  .store-label {
    font-size: 9px;
  }

  .store-name {
    font-size: 18px;
  }

  /* Background adjustments */
  .bg-circle {
    right: 100px;
    width: 400px;
    height: 300px;
  }

  .footer-bg .bg-circle {
    left: -200px;
    width: 600px;
    height: 450px;
  }
}

/* Mobile Small (320px to 480px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  /* Header */
  .logo-icon {
    width: 36px;
    height: 18px;
  }

  .logo-part:nth-child(1) {
    width: 8px;
    height: 8px;
  }

  .logo-part:nth-child(2) {
    width: 18px;
    height: 19px;
  }

  .logo-part:nth-child(3) {
    width: 16px;
    height: 20px;
  }

  .logo-part:nth-child(4) {
    width: 20px;
    height: 20px;
  }

  .logo-text {
    font-size: 16px;
  }

  /* Hero */
  .hero-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 16px;
  }

  .phone-mockup {
    width: 140px;
    height: 280px;
  }

  /* Features */
  .feature-title {
    font-size: 24px;
  }

  .feature-description {
    font-size: 14px;
  }

  .feature-circle {
    width: 200px;
    height: 200px;
  }

  .feature-phone {
    width: 120px;
    height: 240px;
  }

  /* Task Cards */
  .task-card {
    width: 120px;
    padding: 10px;
  }

  /* Analytics Card */
  .analytics-card {
    width: 140px;
    padding: 14px;
  }

  /* Footer */
  .footer-title {
    font-size: 24px;
  }

  .footer-description {
    font-size: 14px;
  }

  .store-button {
    min-width: 160px;
    padding: 8px 12px;
  }

  .store-name {
    font-size: 16px;
  }

  /* Background adjustments */
  .bg-circle {
    right: 50px;
    width: 300px;
    height: 225px;
  }
}

/* Mobile Navigation Menu */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 33, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav.active {
    top: 84px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 24px 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
  }

  .nav-link:hover {
    background: rgba(141, 49, 255, 0.1);
    transform: none;
  }

  .nav-link::after {
    display: none;
  }

  /* Mobile menu button animation */
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .phone-frame {
    box-shadow:
      0px 0px 2.34px 0px rgba(0, 21, 64, 0.14),
      0px 2.34px 4.68px 0px rgba(0, 21, 64, 0.05);
  }
}

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

  .phone-mockup {
    animation: none;
  }

  .coming-soon-badge {
    animation: none;
  }

  .progress-fill {
    animation: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Already using dark theme by default */
}

/* Print Styles */
@media print {
  .header,
  .mobile-menu-btn,
  .app-buttons,
  .hero-bg,
  .footer-bg {
    display: none;
  }

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

  .phone-mockup {
    animation: none;
  }

  .coming-soon-badge {
    animation: none;
  }

  body {
    background: white;
    color: black;
  }

  .feature-title,
  .feature-description {
    color: black;
  }
}
