/* ========================================
   PlankIt Website - Responsive Styles
   ======================================== */

/* ========== Tablet (768px and below) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-l);
    }

    /* Header */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 20, 25, 0.98);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-l);
        border-top: 1px solid var(--border-secondary);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: var(--spacing-l);
        border-bottom: 1px solid var(--border-secondary);
    }

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

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

    .header-actions .btn-header {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxxl);
    }

    .hero-title {
        font-size: var(--font-xlarge);
    }

    .hero-subtitle {
        font-size: var(--font-xxl);
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-image {
        order: -1;
    }

    .app-demo-image {
        max-width: 500px;
    }

    .image-placeholder {
        height: 300px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxl);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxl);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxl);
    }

    /* Steps */
    .step-item {
        flex-direction: column;
        gap: var(--spacing-xxl);
    }

    .step-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .step-image .image-placeholder {
        height: 250px;
    }

    /* Feature Screenshots - Tablet */
    .step-image .feature-screenshot {
        max-height: 300px;
    }

    .data-feature-image .feature-screenshot {
        max-height: 250px;
    }

    /* Data Features */
    .data-feature-card {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-xl);
    }

    .data-feature-image .image-placeholder {
        height: 200px;
    }

    /* Page Header */
    .page-title {
        font-size: var(--font-large);
    }

    .page-subtitle {
        font-size: var(--font-l);
    }

    /* Section spacing */
    .hero,
    .features,
    .contact,
    .download,
    .feature-detail,
    .cta-section,
    .privacy-content {
        padding: var(--spacing-xxxxl) 0;
    }

    .page-header {
        padding: var(--spacing-xxxxl) 0 var(--spacing-xxxl);
    }
}

/* ========== Mobile (480px and below) ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-l);
    }

    /* Hero */
    .hero {
        min-height: 100vh;
    }

    .app-demo-image {
        max-width: 400px;
    }

    /* Typography */
    .hero-title {
        font-size: var(--font-large);
    }

    .hero-subtitle {
        font-size: var(--font-xl);
    }

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

    .section-title {
        font-size: var(--font-large);
    }

    .feature-title {
        font-size: var(--font-xl);
    }

    .feature-description {
        font-size: var(--font-m);
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-m) var(--spacing-xl);
        font-size: var(--font-m);
    }

    .btn-download,
    .btn-large {
        padding: var(--spacing-l) var(--spacing-xxl);
        font-size: var(--font-l);
    }

    /* Header */
    .logo h1 {
        font-size: var(--font-xxl);
    }

    .language-toggle {
        padding: var(--spacing-s) var(--spacing-m);
        font-size: var(--font-s);
    }

    /* Stats */
    .stat-value {
        font-size: var(--font-xxl);
    }

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

    /* Contact */
    .contact-email {
        font-size: var(--font-l);
    }

    /* Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-xl);
    }

    .step-title {
        font-size: var(--font-xl);
    }

    .step-description {
        font-size: var(--font-m);
    }

    /* Data Features */
    .data-feature-title {
        font-size: var(--font-xl);
    }

    .data-feature-description {
        font-size: var(--font-m);
    }

    /* Privacy */
    .privacy-section h2 {
        font-size: var(--font-xxl);
    }

    .privacy-section h3 {
        font-size: var(--font-xl);
    }

    .privacy-section p,
    .privacy-section li {
        font-size: var(--font-m);
    }

    /* Feature cards */
    .feature-card {
        padding: var(--spacing-xxl);
    }

    .icon-placeholder {
        font-size: 48px;
    }

    /* Image placeholders */
    .image-placeholder {
        height: 200px;
        font-size: var(--font-m);
    }

    .step-image .image-placeholder,
    .data-feature-image .image-placeholder {
        height: 180px;
    }

    /* Feature Screenshots - Mobile */
    .step-image .feature-screenshot {
        max-height: 250px;
    }

    .data-feature-image .feature-screenshot {
        max-height: 200px;
    }

    /* Spacing adjustments */
    .features-grid,
    .stats-grid {
        gap: var(--spacing-xl);
    }

    .steps,
    .data-features {
        gap: var(--spacing-xxl);
    }

    .feature-detail-header {
        margin-bottom: var(--spacing-xxxl);
    }

    .hero,
    .features,
    .contact,
    .download,
    .feature-detail,
    .cta-section {
        padding: var(--spacing-xxxl) 0;
    }

    .page-header {
        padding: var(--spacing-xxxl) 0 var(--spacing-xxl);
    }

    .privacy-content {
        padding: var(--spacing-xxxl) 0 var(--spacing-xxxxl);
    }
}

/* ========== Large Desktop (1440px and above) ========== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

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

    .section-title {
        font-size: 56px;
    }
}

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

/* ========== High Contrast Mode ========== */
@media (prefers-contrast: high) {
    .feature-card,
    .data-feature-card {
        border-width: 2px;
    }

    .btn {
        border-width: 2px;
        border-style: solid;
    }
}

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

