/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .navbar__links,
    .navbar__menu {
        display: none;
    }

    .navbar__menu.active {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: #0d1626;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 30;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        justify-content: center;
        padding: 4rem 2rem 2rem;
    }

    /* Each nav item as a full-width tap target */
    .navbar__menu .navbar__link,
    .navbar__menu .navbar__demo,
    .navbar__menu .navbar__login {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1.1rem 1.5rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        background: transparent;
        transition: background 150ms ease, color 150ms ease;
        text-align: center;
        white-space: nowrap;
    }

    .navbar__menu .navbar__link:hover,
    .navbar__menu .navbar__demo:hover,
    .navbar__menu .navbar__login:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    .navbar__menu .navbar__login {
        border-bottom: none;
    }

    .navbar__menu .navbar__demo {
        gap: 0.75rem;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar__menu.active .navbar__menu-signup {
        display: flex;
        margin: 1.5rem auto 0;
        width: 100%;
        max-width: 320px;
        justify-content: center;
        border-radius: 8px;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .navbar__menu-close {
        display: none;
    }

    .navbar__menu.active .navbar__menu-close {
        display: flex;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        width: 2.75rem;
        height: 2.75rem;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-size: 1.5rem;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .navbar__toggle {
        display: flex;
    }

    .hero__content {
        padding: 4rem 0 4rem;
    }

    .hero__title {
        font-size: clamp(2.75rem, 8vw, 4rem);
    }

    .hero__subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* Benefits image needs explicit height when stacked */
    .benefits__image {
        min-height: 320px;
        position: relative;
    }

    /* Traveler list number images — reduce size on tablet */
    .traveler__list li img {
        width: 100px;
        height: 100px;
        margin: -1.5rem -1rem -1.5rem -1.5rem;
    }
}

@media (max-width: 860px) {
    .hero {
        background-position: top center;
        min-height: 0;
    }

    .steps-grid,
    .benefits__grid,
    .traveler__grid,
    .powered__logos,
    .footer__top {
        grid-template-columns: 1fr;
    }

    /* Full-bleed sections: override container constraints */
    .benefits__grid,
    .traveler__grid {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .benefits__panel,
    .traveler__content {
        padding: 2.5rem 1.5rem;
    }

    .benefits__image img,
    .traveler__image img {
        width: 100%;
    }

    /* Step cards: single column, clean borders */
    .step-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 122, 26, 0.3);
        margin-bottom: 0;
        padding-bottom: 1.5rem;
    }

    .step-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .hero__copy {
        margin-left: 0;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .hero__title {
        max-width: 100%;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__copy,
    .benefits__panel,
    .traveler__content,
    .powered__content {
        width: 100%;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(6, 20, 31, 0.55) 0%, rgba(6, 20, 31, 0.35) 60%, rgba(6, 20, 31, 0.15) 100%);
    }

    /* Powered by: stack logos vertically */
    .powered__logos {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .powered__logos::before {
        display: none;
    }

    .powered__logo:nth-child(1),
    .powered__logo:nth-child(2) {
        grid-column: 1;
    }

    /* Trust section: reduce top padding on tablet */
    .trust {
        padding: 3.5rem 0 3rem;
    }
}

@media (max-width: 720px) {
    .navbar {
        position: relative;
        background: rgba(15, 23, 42, 0.9);
        padding: 1rem 0;
        align-self: stretch;
        width: 100%;
    }

    /* Hero becomes a column so navbar sits above content */
    .hero {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .hero__content {
        padding: 2rem 0 3rem;
        flex: 1;
        display: flex;
        align-items: center;
    }

    .hero__actions {
        gap: 0.75rem;
    }

    .hero__note {
        font-size: 0.92rem;
    }

    /* Reduce section padding on small screens */
    .how-it-works {
        padding: 3rem 0 3.5rem;
    }

    .powered {
        padding: 3rem 0;
    }

    .cta {
        padding: 3rem 0 3.5rem;
    }

    /* Reduce section title margin */
    .section-title {
        margin-bottom: 1.75rem;
    }

    .step-card {
        padding: 1.25rem 1rem;
    }

    /* Powered logos: less padding on mobile */
    .powered__logo {
        padding: 1.5rem 1.5rem;
        min-height: 100px;
    }

    /* Traveler list: smaller number images, no negative margins */
    .traveler__list li img {
        width: 48px;
        height: 48px;
        margin: 0;
    }

    .traveler__list li {
        gap: 0.75rem;
        align-items: flex-start;
    }

    /* Footer: tighter gap when stacked */
    .footer__top {
        gap: 2rem;
    }

    /* Footer brand: stack logo and headline vertically */
    .footer__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer__headline {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.15);
        padding-top: 0.75rem;
    }

    /* CTA buttons: full width */
    .cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta__actions .button {
        min-width: 0;
        width: 100%;
    }

    /* Modal: compact on small tablets */
    .modal {
        padding: 1rem;
    }

    .modal__panel {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .modal__video video {
        max-height: 60vh;
    }
}

@media (max-width: 560px) {
    .navbar__brand {
        flex: 1;
    }

    .navbar__signup {
        display: none;
    }

    /* Tighter container padding */
    .container {
        width: calc(100% - 2rem);
    }

    /* Hero */
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__copy {
        margin-left: 0;
        gap: 1.25rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .button {
        min-width: 0;
        width: 100%;
    }

    /* Trust */
    .trust {
        padding: 2.5rem 0 2rem;
    }

    .trust__text {
        font-size: 0.95rem;
    }

    .trust__watermark {
        font-size: 1.8rem;
    }

    /* Traveler list: plain inline numbers, no oversized SVGs */
    .traveler__list li img {
        width: 40px;
        height: 40px;
        margin: 0;
        flex-shrink: 0;
    }

    .traveler__list li {
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Footer bottom: stack */
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Footer brand: remove side border */
    .footer__brand-col {
        border-right: none;
        padding-right: 0;
    }

    /* Footer top: tighter gap */
    .footer__top {
        gap: 1.75rem;
    }

    /* Modal: full-screen sheet */
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal__panel {
        width: 100%;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        padding: 1rem;
        gap: 0.75rem;
    }

    .modal__title {
        font-size: 1.1rem;
        padding-right: 2.5rem;
    }

    .modal__video video {
        max-height: calc(92dvh - 5rem);
    }
}
