/* ============================================
   BUTTERFLAI V3 - RESPONSIVE STYLES
   Mobile-first responsive breakpoints
   ============================================ */

/* ─────────────────────────────────────────
   TABLET (768px and up)
   ───────────────────────────────────────── */

@media (max-width: 768px) {

    /* Hero orbs - smaller on tablet */
    .v3-orb-1 {
        width: 400px;
        height: 400px;
        filter: blur(60px);
    }

    .v3-orb-2 {
        width: 300px;
        height: 300px;
        filter: blur(50px);
    }

    .v3-orb-3 {
        width: 200px;
        height: 200px;
        filter: blur(40px);
    }

    /* Header */
    .v3-nav-links {
        display: none;
    }

    .v3-nav-cta {
        display: none;
    }

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

    .v3-mobile-nav {
        display: block;
    }

    /* Hero */
    .v3-hero {
        padding: var(--space-3xl) var(--section-padding-x);
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-3xl));
    }

    .v3-hero-visual {
        display: none;
    }

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

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

    /* Problem section */
    .v3-problem-item p {
        font-size: var(--text-subtitle);
    }

    /* Feature sections */
    .v3-feature-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .v3-feature:nth-child(even) .v3-feature-inner {
        direction: ltr;
    }

    .v3-feature-visual {
        order: -1;
        aspect-ratio: auto;
        overflow: visible;
    }

    .v3-feature-video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Audience grid */
    .v3-audience-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .v3-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .v3-footer-links {
        justify-content: center;
    }
}

/* ─────────────────────────────────────────
   MOBILE (480px and down)
   ───────────────────────────────────────── */

@media (max-width: 480px) {

    /* Hero orbs - even smaller on mobile */
    .v3-orb-1 {
        width: 300px;
        height: 300px;
        filter: blur(50px);
        opacity: 0.3;
    }

    .v3-orb-2 {
        width: 200px;
        height: 200px;
        filter: blur(40px);
        opacity: 0.25;
    }

    .v3-orb-3 {
        display: none;
    }

    /* Typography adjustments */
    :root {
        --section-padding-x: 1.25rem;
        --section-padding-y: 3rem;
    }

    /* Hero */
    .v3-hero-description {
        font-size: var(--text-body);
    }

    /* Problem section */
    .v3-problem-item {
        padding: var(--space-lg) 0;
    }

    .v3-problem-conclusion p {
        font-size: var(--text-title);
    }

    /* Demo section */
    .v3-demo-container {
        border-radius: var(--radius-md);
    }

    .v3-demo-question p {
        font-size: var(--text-body);
    }

    /* Question cards */
    .v3-question-card {
        width: 100%;
        text-align: center;
    }

    /* CTA section */
    .v3-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .v3-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Integrations */
    .v3-integrations-logos {
        gap: var(--space-md);
    }

    .v3-integrations-logo {
        height: 24px;
    }

    /* Solution features */
    .v3-solution-features {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .v3-solution-feature {
        text-align: left;
    }
}

/* ─────────────────────────────────────────
   LARGE SCREENS (1200px and up)
   ───────────────────────────────────────── */

@media (min-width: 1200px) {

    /* Larger typography for hero */
    .v3-hero h1 {
        font-size: 5.5rem;
    }

    /* More padding on sections */
    .v3-section {
        padding: calc(var(--section-padding-y) * 1.25) 0;
    }

    /* Feature grid spacing */
    .v3-feature-inner {
        gap: var(--space-4xl);
    }
}

/* ─────────────────────────────────────────
   EXTRA LARGE (1600px and up)
   ───────────────────────────────────────── */

@media (min-width: 1600px) {

    :root {
        --max-width-content: 1400px;
    }

    .v3-hero h1 {
        font-size: 6rem;
    }
}

/* ─────────────────────────────────────────
   HEIGHT-BASED ADJUSTMENTS
   For shorter viewports
   ───────────────────────────────────────── */

@media (max-height: 700px) {

    .v3-hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-xl));
        padding-bottom: var(--space-xl);
    }

    .v3-hero-visual {
        margin-top: var(--space-xl);
    }
}

/* ─────────────────────────────────────────
   LANDSCAPE MOBILE
   ───────────────────────────────────────── */

@media (max-height: 500px) and (orientation: landscape) {

    .v3-hero {
        min-height: auto;
        padding: var(--space-xl) var(--section-padding-x);
        padding-top: calc(var(--header-height) + var(--space-lg));
    }

    .v3-hero-visual {
        display: none;
    }
}

/* ─────────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────────── */

@media print {

    .v3-header,
    .v3-footer,
    .v3-hero-cta,
    .v3-cta-buttons {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .v3-section {
        padding: 1rem 0 !important;
        page-break-inside: avoid;
    }

    h1, h2, h3 {
        color: #000 !important;
    }

    p {
        color: #333 !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}
