/* =========================================================
   NAVBAR — RESPONSIVE + MOBILE MENU
========================================================= */

/* Overlay behind the mobile drawer */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 199;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll & remove parent nav blur filter when menu open */
body.menu-open {
    overflow: hidden;
}
body.menu-open nav {
    z-index: 201;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {

    html {
        font-size: 87.5%;
    }

    .div-container {
        padding: 0 18px;
        height: 62px;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
        z-index: 203;
    }

    /* ── Slide-out drawer ── */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 82vw);
        height: 100dvh;
        background: #ffffff;
        box-shadow: -20px 0 60px rgba(15, 23, 42, 0.18);
        padding: 76px 22px 30px;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 202;
        transform: translateX(110%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0.32s ease;
        margin-left: 0;
        transform-style: flat;
        will-change: transform;
    }
    .nav-menu-wrapper.active {
        transform: translateX(0);
        visibility: visible;
    }

    /* Links inside drawer */
    .nav-links {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    .nav-links ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 12px 14px;
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
        border-radius: 10px;
        transition: background 0.18s ease, color 0.18s ease;
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(99, 102, 241, 0.08);
        color: #4f46e5;
    }
    .nav-links a::after {
        display: none;
    }

    /* Buttons inside drawer */
    .nav-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 18px;
        margin-top: 12px;
        border-top: 1px solid #f1f5f9;
    }
    .nav-buttons a {
        width: 100%;
        text-align: center;
        display: block;
    }
    .login-btn,
    .sign-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 22px;
        font-size: 0.95rem;
    }
}


/* ==========================
   RESPONSIVE  HERO SECTION 
========================== */
@media (max-width: 1080px) {
    .hs-wrap {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hs-copy {
        align-items: center;
    }

    .front-text p {
        max-width: 100%;
    }

    .hs-stats {
        justify-content: center;
    }

    .hs-frame {
        max-width: 500px;
    }
}

@media (max-width: 560px) {
    .front-text {
        padding: 110px 6% 60px;
    }

    .front-text h1 {
        font-size: 36px;
    }

    .front-text p {
        font-size: 14.5px;
    }

    .hs-actions {
        flex-direction: column;
        width: 100%;
    }

    .hs-btn {
        width: 100%;
        justify-content: center;
    }

    .hs-stats {
        flex-wrap: wrap;
        gap: 16px;
        row-gap: 14px;
    }

    .hs-stat-num {
        font-size: 19px;
    }

    .hs-stat span:last-child {
        font-size: 11.5px;
    }

    .hs-stat-divider {
        display: none;
    }

    .hs-floating-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -18px;
    }
}

@media (max-width: 768px) {
    .hs-visual {
        display: none !important;
    }
}


/* =========================
   RESPONSIVE SECOND SECTION 
========================= */
@media (max-width: 1024px) {
    .second {
        flex-direction: column;
        min-height: auto;
        padding: 80px 6%;
        gap: 60px;
    }

    .second-page-text {
        max-width: 100%;
    }

    .points ul {
        grid-template-columns: 1fr;
    }

    .auto-hub {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .second-page-text h2 {
        font-size: 26px;
    }

    .second-page-text p {
        font-size: 13.5px;
    }

    .points li {
        font-size: 11.5px;
    }

    .second-page-text button {
        font-size: 11px;
        padding: 9px 18px;
        border-radius: 8px;

        .auto-core {
            width: 100px;
            height: 100px;
        }

        .auto-node {
            width: 50px;
            height: 50px;
            font-size: 20px;
        }

        .auto-badge {
            right: 50%;
            transform: translateX(50%);
        }
    }
}


    /* =========================
   RESPONSIVE THIRD SECTION 
========================= */
    @media (max-width: 860px) {
        .third {
            padding: 70px 16px 60px;
            width: 100%;
            max-width: 100vw;
            overflow: hidden;
        }

        .cap-head h2 {
            font-size: 26px;
        }

        .cap-slide {
            flex-direction: column;
            text-align: center;
            gap: 22px;
            padding: 32px 20px;
        }

        .cap-copy p {
            max-width: 100%;
            font-size: 14.5px;
        }

        .cap-icon {
            width: 80px;
            height: 80px;
            font-size: 34px;
        }

        .cap-arrow {
            display: none;
        }

        .cap-stage {
            min-height: 360px;
        }

        .cap-timer {
            grid-template-columns: repeat(9, minmax(0, 1fr));
            gap: 4px;
        }
    }

    @media (max-width: 520px) {
        .cap-timer {
            grid-template-columns: repeat(9, minmax(0, 1fr));
            gap: 3px;
        }

        .cap-rail {
            overflow-x: auto;
            justify-content: flex-start;
            gap: 14px;
            padding: 14px 10px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .cap-rail::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        .cap-rail-track {
            left: 0;
            right: 0;
        }

        .cap-node {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            font-size: 16px;
        }

        .cap-copy h3 {
            font-size: 21px;
        }
    }


/* =========================================================
   ACCESS MODE - RESPONSIVE
========================================================= */
@media (max-width: 860px) {
    .am-visual {
        display: none !important;
    }
}

/* =========================================================
   BENEFITS - RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
    .bn-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
    .benefits { padding: 75px 6%; }
    .bn-head h2 { font-size: 26px; }
    .bn-sub { font-size: 13.5px; }
    .bn-grid { grid-template-columns: 1fr; gap: 16px; }
    .bn-card { padding: 26px 20px; }
    .bn-btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
    .bn-head h2 { font-size: 23px; }
}
    /* =========================
   RESPONSIVE PRICING SECTION 
========================= */
    @media (max-width: 1080px) {
        .plan-card {
            gap: 26px;
        }

        .is-popular {
            transform: none;
        }

        .is-popular:hover {
            transform: translateY(-8px);
        }
    }

    @media (max-width: 560px) {
        .fourth {
            padding: 75px 6%;
        }

        .fourth h2 {
            font-size: 1.85rem;
        }

        .cards {
            padding: 32px 20px;
        }

        .pr-amount {
            font-size: 1.85rem;
        }

        .plan-benefits li {
            font-size: 13px;
        }
    }

    /* =========================================================
   PRICING — MOBILE SWIPE CAROUSEL
========================================================= */

    @media (max-width: 860px) {
        .pricing {
            overflow: hidden;
            width: 100%;
            max-width: 100%;
        }

        .plan-card {
            display: flex;
            flex-wrap: nowrap;
            justify-content: flex-start;
            overflow-x: auto;
            overflow-y: visible;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
            gap: 14px;
            padding: 22px 4px 6px;
            margin: 0;
            width: 100%;
            max-width: 100%;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        /* hide native scrollbar */
        .plan-card::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        .cards {
            flex: 0 0 82%;
            max-width: 82%;
            scroll-snap-align: center;
            scroll-snap-stop: always;
        }

        .is-popular {
            transform: none;
        }

        .is-popular:hover,
        .cards:hover {
            transform: none;
            box-shadow: 0 16px 36px -20px rgba(11, 17, 48, 0.15);
        }

        .is-popular:hover {
            box-shadow: var(--pr-shadow);
        }

        /* dot pagination */
        .pr-dots {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 28px;
        }

        .pr-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--pr-line);
            border: none;
            padding: 0;
            cursor: pointer;
            transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
        }

        .pr-dot.is-active {
            width: 24px;
            border-radius: 5px;
            background: var(--pr-grad);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .plan-card {
            scroll-behavior: auto;
        }
    }

    /* =========================
   BRANDS SECTION 
========================= */
    @media (prefers-reduced-motion: reduce) {
        .fifth [data-reveal] {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }

    @media (max-width: 720px) {
        .fifth {
            padding: 80px 5% 90px;
        }

        .fifth h3 {
            font-size: 2rem;
        }

        .brands-wrapper {
            gap: 12px;
        }

        .arrow-btn {
            width: 42px;
            height: 42px;
            font-size: 14px;
        }

        .brand-tile {
            width: 150px;
            height: 90px;
            padding: 14px;
        }
    }


    /* =========================
   BRANDS VIDEO SECTION 
========================= */
    @media (prefers-reduced-motion: reduce) {

        .how-video [data-reveal],
        .hv-media [data-pop] {
            opacity: 1;
            transform: none;
            transition: none;
        }

        .hv-play-ring,
        .hv-dot {
            animation: none !important;
        }
    }

    @media (max-width: 1080px) {
        .how-video-section {
            flex-direction: column;
            gap: 60px;
        }

        .hv-media {
            max-width: 620px;
            width: 100%;
        }

        .text-video-section {
            max-width: 620px;
            text-align: center;
        }

        .hv-points {
            align-items: center;
        }

        .hv-points li {
            text-align: left;
        }
    }

    @media (max-width: 560px) {
        .how-video {
            padding: 80px 6%;
        }

        .text-video-section h3 {
            font-size: 2.1rem;
        }

        .hv-frame-url {
            display: none;
        }
    }


    /* =========================================================
   ACCESS MEDIA PAGE
========================================================= */

    @media (max-width: 1100px) {
        .am-grid {
            grid-template-columns: 1fr;
            gap: 60px;
        }

        .am-visual {
            order: -1;
        }

        .am-badge-a {
            right: 10px;
        }

        .am-badge-b {
            left: 10px;
        }
    }

    @media (max-width: 640px) {
        .access-mode {
            padding: 90px 6%;
        }

        .am-head h2 {
            font-size: 32px;
        }

        .am-frame {
            max-width: 100%;
        }

        .am-badge {
            font-size: 11.5px;
            padding: 8px 12px;
        }

        .am-badge-a {
            top: -14px;
            right: 4px;
        }

        .am-badge-b {
            bottom: -14px;
            left: 4px;
        }
    }

    @media (prefers-reduced-motion: reduce) {

        .am-eyebrow-dot,
        .am-badge {
            animation: none !important;
        }
    }


    /* =========================================================
   FOOTER — RESPONSIVE
========================================================= */

    @media (max-width: 1080px) {
        .sf-top {
            grid-template-columns: 1fr 1fr;
            row-gap: 50px;
        }

        .sf-contact {
            grid-column: 1 / -1;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 28px;
        }
    }

    @media (max-width: 720px) {
        .site-footer {
            padding: 60px 6% 0;
        }

        .sf-top {
            grid-template-columns: 1fr;
            gap: 44px;
            text-align: left;
        }

        .sf-brand {
            align-items: flex-start;
        }

        .sf-links {
            grid-template-columns: repeat(2, 1fr);
            gap: 36px 20px;
        }

        .sf-desktop-only {
            display: none !important;
        }

        .sf-contact {
            flex-direction: column;
        }

        .sf-bottom {
            flex-direction: column;
            align-items: flex-start;
            padding-bottom: 30px;
            gap: 14px;
        }
    }

    @media (max-width: 420px) {
        .sf-links {
            grid-template-columns: 1fr 1fr;
            gap: 30px 16px;
        }

        .sf-tagline {
            max-width: 100%;
        }

        .sf-bottom-links {
            gap: 16px;
            flex-wrap: wrap;
        }
    }

    /* =========================================================
   NEWSLETTER SECTION — RESPONSIVE
========================================================= */

    @media (max-width: 1080px) {
        .newsletter-container {
            max-width: 90%;
            padding: 45px 35px;
        }
    }

    @media (max-width: 768px) {
        .newsletter {
            padding: 80px 20px;
        }

        .newsletter-container {
            padding: 40px 28px;
            border-radius: 20px;
        }

        .newsletter-container h2 {
            font-size: 2.2rem;
        }

        .newsletter-points li {
            font-size: 1rem;
        }

        .newsletter-form {
            max-width: 100%;
        }
    }

    @media (max-width: 560px) {
        .newsletter {
            padding: 60px 16px;
        }

        .newsletter-container {
            padding: 32px 20px;
            border-radius: 18px;
        }

        .newsletter-container h2 {
            font-size: 1.7rem;
            line-height: 1.3;
        }

        .newsletter-points li {
            font-size: 0.92rem;
            line-height: 1.6;
        }

        .newsletter-form {
            flex-wrap: wrap;
            border-radius: 18px;
            padding: 14px;
            gap: 12px;
        }

        .newsletter-form .icon {
            display: none;
        }

        .newsletter-form input {
            flex: 1 1 100%;
            padding: 12px 8px;
            text-align: center;
            font-size: 0.95rem;
        }

        .newsletter-form button {
            flex: 1 1 100%;
            justify-content: center;
            padding: 13px 20px;
        }

        .last-points p {
            font-size: 0.85rem;
            padding: 0 4px;
        }
    }

    @media (max-width: 380px) {
        .newsletter-container h2 {
            font-size: 1.5rem;
        }

        .newsletter-form button {
            font-size: 0.9rem;
            padding: 12px 16px;
        }
    }


    /* ==========================
   ABOUT PAGE RESPONSIVE
========================== */
    @media (max-width: 980px) {
        .abt-hero {
            grid-template-columns: 1fr;
            padding: 70px 28px 20px;
            text-align: center;
        }

        .abt-hero-copy {
            align-items: center;
        }

        .abt-hero-copy p {
            max-width: 100%;
        }

        .abt-hero-actions {
            justify-content: center;
        }

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

        .abt-stats {
            flex-wrap: wrap;
            gap: 30px;
        }

        .abt-stat-divider {
            display: none;
        }

        .abt-chain {
            display: none;
        }
    }

    @media (max-width: 560px) {
        .abt-hero-copy h1 {
            font-size: 38px;
        }

        .abt-why-grid {
            grid-template-columns: 1fr;
        }

        .abt-why {
            padding: 40px 20px 60px;
        }

        .abt-cta {
            padding: 50px 24px;
        }

        .abt-cta h2 {
            font-size: 28px;
        }
    }

    /* =========================================================
   CONTACT PAGE — RESPONSIVE
========================================================= */

    @media (max-width: 1024px) {
        .contact-cards {
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
    }

    @media (max-width: 860px) {
        .Contact-info {
            height: 60vh;
        }

        .Contact-info h1 {
            font-size: 48px;
        }

        .Contact-Form {
            padding: 0 6% 70px;
        }

        .contact-container {
            padding: 36px 26px;
            margin-top: -80px;
            border-radius: 16px;
        }

        .contact-cards {
            grid-template-columns: 1fr;
            gap: 14px;
        }

        .contact-left h2 {
            font-size: 30px;
        }
    }

    @media (max-width: 480px) {
        .Contact-info h1 {
            font-size: 34px;
        }

        .contact-container {
            padding: 26px 18px;
            margin-top: -60px;
        }

        .contact-left h2 {
            font-size: 24px;
        }

        .form-group input,
        .form-group textarea {
            padding: 13px;
            font-size: 15px;
        }

        .submit-btn {
            padding: 14px;
            font-size: 16px;
        }
    }


/* =========================================================
   PREMIUMM RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
    .pp-trust { grid-template-columns: repeat(2, 1fr); }
    .pp-testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .pp-hero { padding: 110px 6% 40px; }
    .pp-hero h1 { font-size: 32px; }
    .pp-hero p { font-size: 15px; }
    .pp-hero-badges span { font-size: 12px; padding: 8px 12px; }

    .pp-trust { grid-template-columns: 1fr; padding-bottom: 70px; }
    .pp-testimonials, .pp-faq { padding: 70px 6%; }
    .pp-head h2 { font-size: 26px; }

    .pp-cta { padding: 50px 26px; border-radius: 22px; }
    .pp-cta h2 { font-size: 26px; }
    .pp-cta-btn { width: 100%; justify-content: center; }
}