/* ============================================================
   RESPONSIVE STYLES — SMM SPOT  |  All screen sizes
   ============================================================
   Breakpoints (mobile-first cascade, largest → smallest):
   1920px+  → Ultra-wide / 4K
   1400px+  → Large desktop
   ≤1280px  → Standard desktop (default ─ no query needed)
   ≤1200px  → Small desktop / large laptop
   ≤1024px  → Tablet landscape / small laptop
   ≤768px   → Tablet portrait
   ≤600px   → Large mobile
   ≤390px   → Small mobile
   ============================================================ */

/* ── Ultra-wide / 4K (1920px+) ── */

@media (min-width: 1920px) {
    :root {
        --container-max:  1540px;
        --section-padding: 140px 0;
    }

    .hero          { padding: calc(var(--navbar-height) + 100px) 0 100px; }
    .hero-inner    { gap: 96px; }
    .hero-title    { font-size: clamp(5rem, 3.6vw, 6rem); }
    .hero-visual   { padding-right: 80px; }
    .hero-visual-wrap { min-height: 620px; }

    .nav-pill {
        max-width: 1500px;
        padding: 14px 32px;
    }
    .nav-links a   { font-size: 15px; }
}

/* ── Large Desktop (1400px – 1919px) ── */

@media (min-width: 1400px) and (max-width: 1919px) {
    :root { --container-max: 1360px; }
    .hero-inner { gap: 80px; }
}

/* ── Small Desktop / Large Laptop (≤1280px) ── */

@media (max-width: 1280px) {
    /* Let the container use full viewport width with standard padding */
    :root { --container-pad: 0 28px; }

    .hero-title    { font-size: clamp(2.4rem, 4.2vw, 4.6rem); }
    .hero-visual   { padding-right: 32px; }
    .hero-visual-wrap { min-height: 500px; }

    .hfc-views     { right: -2%; }
    .hfc-followers { right: -4%; }
}

/* ── Laptop / Small Desktop (≤1200px) ── */

@media (max-width: 1200px) {
    :root { --section-padding: 96px 0; }

    .hero-title    { font-size: clamp(2.2rem, 4vw, 4.2rem); }
    .nav-links a   { padding: 7px 10px; font-size: 13px; }

    /* Footer */
    .footer-grid   { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }

    /* Pricing — tighten gap */
    .pricing-cards { gap: 20px; }
}

/* ── Tablet Landscape / Small Laptop (≤1024px) ── */

@media (max-width: 1024px) {
    :root {
        --section-padding: 88px 0;
        --container-pad:   0 24px;
    }

    /* ─ Navbar ─ */
    .nav-links    { display: none; }
    .hamburger    { display: flex; }
    .nav-icon-btn { display: none; }
    .nav-divider  { display: none; }
    .btn-nav-login { display: none; }

    /* ─ Hero ─ */
    .hero { padding: calc(var(--navbar-height) + 52px) 0 64px; }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content  { order: 1; }
    .hero-visual   { order: 2; display: flex; justify-content: center; padding-right: 0; }

    .hero-badge      { margin: 0 auto 22px; }
    .hero-subtitle   { margin: 0 auto 32px; max-width: 580px; }
    .hero-actions    { justify-content: center; }
    .hero-proof-strip { margin: 24px auto 0; }
    .cheapest-pill   { font-size: 0.56em; }
    .cheapest-pill-icon { width: 28px; height: 28px; font-size: 13px; }

    /* Floating cards — pull in a bit */
    .hfc-youtube   { left: -1%; }
    .hfc-followers { right: -2%; }
    .hero-emoji-rail { right: -2%; }

    /* ─ Stats ─ */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }

    /* ─ Services bento (≤1024px) — 2 cols: featured spans top row ─ */
    .services-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .service-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    /* ─ Features ─ */
    .features-grid { grid-template-columns: repeat(2, 1fr); }

    /* ─ Dashboard preview ─ */
    .preview-layout { grid-template-columns: 1fr; gap: 48px; }
    .preview-text   { max-width: 100%; }
    .preview-panel  { max-width: 560px; margin: 0 auto; }

    /* ─ Pricing ─ */
    .pricing-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-8px); }

    /* ─ Testimonials ─ */
    .testimonial-card { min-width: 320px; max-width: 320px; }

    /* ─ CTA ─ */
    .cta-inner { padding: 72px 40px; }

    /* ─ Footer ─ */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand-col { grid-column: span 2; }
}

/* ── Tablet Portrait (≤768px) ── */

@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
        --navbar-height:   68px;
        --container-pad:   0 20px;
    }

    /* ─ Section typography ─ */
    .section-title  { font-size: clamp(1.75rem, 5vw, 2.25rem); }
    .section-header { margin-bottom: 48px; }
    .section-label  { font-size: 11px; }

    /* ─ Hero ─ */
    .hero       { padding: calc(var(--navbar-height) + 36px) 0 52px; }
    .hero-inner { gap: 32px; }

    .hero-title   { font-size: clamp(2rem, 7vw, 3rem); }
    .hero-badge   { font-size: 12px; padding: 6px 14px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { padding: 12px 26px; }
    .hero-subtitle { max-width: 480px; }

    .hero-orb-1 { width: 380px; height: 380px; }
    .hero-orb-2 { width: 320px; height: 320px; }

    /* Floating cards — tablet sizes */
    .hfc-youtube   { left: -2%; width: 148px; }
    .hfc-followers { right: 0%; width: 174px; bottom: 2%; }
    .hfc-views     { right: 0%; top: 0%; width: 138px; }
    .hfc-comments  { left: 0%; width: 150px; }
    .hero-emoji-rail { display: none; }

    /* Cheapest pill ─ slightly smaller on tablet */
    .cheapest-pill      { font-size: 0.54em; }
    .cheapest-pill-icon { width: 26px; height: 26px; font-size: 12px; }

    /* ─ Proof strip ─ */
    .hero-proof-strip { padding: 12px 16px; }

    /* ─ Stats ─ */
    .stats-strip { padding: 56px 0; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: clamp(2rem, 6vw, 2.75rem); }

    /* ─ Services ─ */
    .services-bento { grid-template-columns: 1fr; }
    .service-card.featured { grid-column: span 1; grid-row: span 1; }

    /* ─ Features ─ */
    .features-grid { grid-template-columns: 1fr; }

    /* ─ Dashboard ─ */
    .dash-body      { grid-template-columns: 44px 1fr; }
    .dash-stats-row { grid-template-columns: repeat(3, 1fr); }
    .panel-body     { grid-template-columns: 1fr; }
    .panel-widget.full { grid-column: span 1; }

    /* ─ Testimonials ─ */
    .testimonial-card { min-width: 300px; max-width: 300px; padding: 24px; }
    .testi-text       { font-size: var(--fs-sm); }

    /* ─ FAQ ─ */
    .faq-q       { font-size: var(--fs-sm); }
    .faq-trigger { padding: 18px 20px; }

    /* ─ CTA ─ */
    .cta-inner   { padding: 60px 28px; border-radius: var(--r-2xl); }
    .cta-title   { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .cta-trust   { gap: 16px; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

    /* ─ Footer ─ */
    .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand-col { grid-column: span 1; }
    .footer-bottom   { flex-direction: column; text-align: center; }
    .footer-legal    { justify-content: center; }

    /* ─ Back to top ─ */
    #back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 15px; }
}

/* ── Large Mobile (≤600px) ── */

@media (max-width: 600px) {
    :root {
        --section-padding: 64px 0;
        --container-pad:   0 16px;
        --navbar-height:   62px;
    }

    /* ─ Navbar ─ */
    .nav-actions    { display: none; }
    .navbar         { padding: 8px 14px 0; }
    .nav-pill       { padding: 9px 12px; }
    .logo-icon-wrap { width: 26px; height: 26px; font-size: 13px; }

    /* ─ Hero ─ */
    .hero      { padding: calc(var(--navbar-height) + 28px) 0 44px; }
    .hero-inner { gap: 24px; }

    .hero-title    {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        letter-spacing: -0.03em;
    }
    .hero-badge    { font-size: 11px; padding: 6px 14px; margin-bottom: 16px; }
    .hero-subtitle { font-size: 14px; line-height: 1.7; margin-bottom: 24px; max-width: 100%; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 13px 24px;
    }

    /* Cheapest pill — mobile */
    .cheapest-pill      { font-size: 0.52em; gap: 5px; padding: 4px 12px 4px 4px; }
    .cheapest-pill-icon { width: 24px; height: 24px; font-size: 11px; }

    /* ─ Proof strip ─ */
    .hero-proof-strip {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
        margin-top: 20px;
    }
    .proof-sep      { display: none; }
    .proof-tp-badge { padding-right: 0; }

    /* Hide desktop floating cards — replaced by mobile stats */
    .hfc               { display: none; }
    .hero-emoji-rail   { display: none; }
    .follow-click-hand { display: none; }

    /* Visual wrap: flex column, centered */
    .hero-visual-wrap {
        min-height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    /* Profile card — centered, proper size */
    .hero-profile-card {
        width: clamp(200px, 60vw, 250px);
        gap: 10px;
        padding: 20px 16px 16px;
    }
    .hpc-avatar-wrap { width: 76px; height: 76px; }
    .hpc-name        { font-size: 15px; }
    .hero-follow-btn { padding: 9px 20px; font-size: 13px; }
    .follow-btn-wrap { padding-bottom: 0; }

    /* Mobile stats: 2×2 clean grid */
    .hero-mobile-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 12px;
        width: clamp(200px, 64vw, 260px);
    }

    /* Proof strip moved to end of hero-inner by JS */
    .hero-proof-mobile-bottom {
        width: 100%;
        margin-top: 24px;
        justify-content: center;
        animation: none; /* already visible */
    }
    /* Hide original proof-strip inside hero-content on mobile */
    .hero-content .hero-proof-strip {
        display: none;
    }

    /* ─ Stats strip ─ */
    .stats-strip  { padding: 52px 0; }
    .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .stat-item    { padding: 22px 12px; }
    .stat-number  { font-size: clamp(1.75rem, 7vw, 2.4rem); }
    .stat-label   { font-size: 11px; }
    .stat-icon    { width: 44px; height: 44px; font-size: 18px; margin-bottom: 10px; }

    /* ─ Services ─ */
    .services-bento  { grid-template-columns: 1fr; gap: 14px; }
    .service-card    { padding: 22px 18px; }
    .section-header  { margin-bottom: 36px; }
    .service-card-title { font-size: var(--fs-base); }

    /* ─ Features ─ */
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-card  { padding: 22px 18px; }
    .feature-icon  { width: 48px; height: 48px; font-size: 20px; margin-bottom: 12px; }

    /* ─ Dashboard preview ─ */
    .preview-panel { max-width: 100%; }
    .panel-body    { grid-template-columns: 1fr; gap: 12px; }
    .panel-widget.full { grid-column: span 1; }

    /* ─ Pricing ─ */
    .pricing-cards { grid-template-columns: 1fr; max-width: 100%; }
    .pricing-card  { padding: 28px 20px; }
    .pricing-card.popular { transform: none; padding-top: 44px; }
    .price-amount  { font-size: clamp(2.5rem, 10vw, 3.5rem); }

    /* ─ Testimonials ─ */
    .testimonial-card { min-width: 260px; max-width: 260px; padding: 20px; }
    .testi-text       { font-size: 13px; }

    /* ─ FAQ ─ */
    .faq-trigger { padding: 16px 18px; }
    .faq-q       { font-size: 13px; }
    .faq-a       { padding: 0 18px 18px; font-size: 13px; }

    /* ─ CTA ─ */
    .cta-inner   { padding: 48px 20px; border-radius: var(--r-xl); }
    .cta-title   { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .cta-actions .btn { font-size: 14px; }

    /* ─ Footer ─ */
    .footer          { padding-top: 40px; padding-bottom: 20px; }
    .footer-grid     { gap: 24px; padding-bottom: 28px; }
    
    /* Reduce footer brand column size on mobile */
    .footer-desc     { font-size: 12px; line-height: 1.6; margin-bottom: 14px; max-width: 100%; }
    .footer-logo     { font-size: 18px; margin-bottom: 12px; }
    .footer-socials  { gap: 8px; }
    .social-icon     { width: 32px; height: 32px; font-size: 14px; }
    
    /* Tighten footer columns */
    .footer-col-title   { font-size: 12px; margin-bottom: 14px; letter-spacing: 0.06em; }
    .footer-links       { gap: 8px; }
    .footer-links a     { font-size: 12px; }
    .footer-contact-list { gap: 10px; margin-top: 2px; }
    .footer-contact-item { font-size: 12px; gap: 8px; }
    .footer-contact-item i { font-size: 12px; }
    
    /* Newsletter form optimization */
    .newsletter-form   { flex-direction: column; gap: 8px; }
    .newsletter-input  { width: 100%; padding: 10px 14px; font-size: 12px; }
    .newsletter-btn    { width: 100%; height: 40px; font-size: 14px; justify-content: center; }
    
    /* Footer bottom */
    .footer-bottom   { flex-direction: column; text-align: center; gap: 10px; padding: 16px 0; }
    .footer-copy     { font-size: 11px; }
    .footer-legal    { justify-content: center; flex-wrap: wrap; gap: 10px; }
    .footer-legal a  { font-size: 11px; }

    /* ─ Section labels / titles ─ */
    .section-label { font-size: 10px; }
    .section-title { font-size: clamp(1.6rem, 6vw, 2rem); letter-spacing: -0.02em; }
}

/* ── Small Mobile (≤390px) ── */

@media (max-width: 390px) {
    :root {
        --section-padding: 56px 0;
        --container-pad:   0 14px;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(1.55rem, 7.5vw, 2rem);
        letter-spacing: -0.035em;
        line-height: 1.1;
    }
    .hero-badge    { font-size: 10px; padding: 5px 12px; }
    .hero-subtitle { font-size: 13px; }

    /* Cheapest pill — smallest */
    .cheapest-pill      { font-size: 0.5em; gap: 4px; }
    .cheapest-pill-icon { width: 22px; height: 22px; font-size: 10px; }

    /* Proof strip */
    .hero-proof-strip { padding: 10px 12px; gap: 8px; }
    .proof-tp-brand   { font-size: 12px; }
    .proof-tp-icon    { width: 30px; height: 30px; font-size: 15px; }
    .proof-users-count { font-size: 13px; }
    .proof-av { width: 26px; height: 26px; font-size: 10px; }

    /* Profile card — slightly smaller at 390px */
    .hero-profile-card { width: clamp(180px, 58vw, 220px); }
    .hpc-avatar-wrap   { width: 66px; height: 66px; }

    /* Mobile stats — same 2×2 column layout, tighter */
    .hero-mobile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
        width: clamp(180px, 58vw, 220px);
        margin-top: 10px;
    }
    .hms-item  {
        flex-direction: column;
        padding: 10px 8px 9px;
        border-radius: 12px;
        gap: 3px;
        text-align: center;
    }
    .hms-icon  { font-size: 14px; margin-bottom: 0; }
    .hms-value { font-size: 13px; }
    .hms-label { font-size: 8px; }

    /* Stats strip */
    .stat-number { font-size: 1.75rem; }

    /* Testimonials */
    .testimonial-card { min-width: 240px; max-width: 240px; }

    /* Typography */
    .section-title { font-size: clamp(1.5rem, 7vw, 1.9rem); }

    /* ─ Footer ─ */
    .footer          { padding-top: 36px; padding-bottom: 16px; }
    .footer-grid     { gap: 20px; padding-bottom: 20px; }
    
    .footer-desc     { font-size: 11px; line-height: 1.5; margin-bottom: 10px; }
    .footer-logo     { font-size: 16px; margin-bottom: 10px; }
    .footer-socials  { gap: 6px; }
    .social-icon     { width: 28px; height: 28px; font-size: 12px; }
    
    .footer-col-title   { font-size: 11px; margin-bottom: 10px; }
    .footer-links       { gap: 6px; }
    .footer-links a     { font-size: 11px; gap: 5px; }
    .footer-contact-list { gap: 8px; }
    .footer-contact-item { font-size: 11px; gap: 6px; }
    .footer-contact-item i { font-size: 11px; }
    
    .newsletter-form   { gap: 6px; }
    .newsletter-input  { padding: 9px 12px; font-size: 11px; }
    .newsletter-btn    { height: 36px; font-size: 13px; }
    
    .footer-bottom   { gap: 8px; padding: 12px 0; }
    .footer-copy     { font-size: 10px; }
    .footer-legal    { gap: 8px; }
    .footer-legal a  { font-size: 10px; }
}

/* ── Reduced Motion ── */

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

    .hero-orb-1, .hero-orb-2, .hero-orb-3 { animation: none; }
    .hero-profile-card { animation: none; }
    .hfc, .hero-emoji-rail, .cheapest-pill, .cheapest-pill::before { animation: none; }
    .follow-click-hand { display: none; }
    .cursor-glow { display: none; }
    #hero-cursor-glow { display: none; }

    html { scroll-behavior: auto; }
}

/* ── High Contrast ── */

@media (forced-colors: active) {
    .btn-gradient, .btn-nav-cta, .plan-cta, .newsletter-btn {
        background: ButtonText;
        color: ButtonFace;
        forced-color-adjust: none;
    }

    .gradient-text {
        -webkit-text-fill-color: unset;
        background: none;
        color: HighlightText;
    }
}
