/**
 * INDEX.CSS - Responsive landing page design for zones/index.html
 */

:root {
    --landing-surface: #ffffff;
    --landing-bg: #f6f8fc;
    --landing-border: #e5e9f2;
    --landing-text: #1d2636;
    --landing-muted: #637089;
    --landing-primary: #3563e9;
    --landing-primary-2: #2f54c4;
    --landing-success: #0ea672;
    --landing-shadow: 0 14px 34px rgba(24, 46, 89, 0.12);
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f7fc 100%);
    color: var(--landing-text);
}

.container {
    width: min(1140px, calc(100% - 2.5rem));
    margin: 0 auto;
}

/* Header / navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--landing-border);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header--scrolled {
    box-shadow: 0 10px 28px rgba(21, 36, 72, 0.14);
}

.header--hidden {
    transform: translateY(-100%);
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--landing-text);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.nav__logo-text {
    font-size: 1.3rem;
}

.nav__logo-text--primary {
    color: #0e1e44;
}

.nav__logo-text--secondary {
    color: var(--landing-primary);
}

.nav__logo-badge {
    font-size: 0.74rem;
    color: #fff;
    background: linear-gradient(135deg, #304ecc 0%, #396ff8 100%);
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
}

.nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__link {
    color: var(--landing-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__link:hover {
    color: var(--landing-primary);
    background-color: #ecf2ff;
}

.nav__item--auth {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--landing-border);
    border-radius: 10px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav__toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: #263045;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle--active .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle--active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-primary-2) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(53, 99, 233, 0.28);
}

.btn--primary:hover {
    color: #fff;
}

.btn--secondary {
    background: #fff;
    color: var(--landing-primary);
    border-color: #d6dff1;
}

.btn--sm {
    min-height: 38px;
    padding: 0.5rem 0.95rem;
    font-size: 0.86rem;
}

.btn--lg {
    min-height: 48px;
    padding: 0.8rem 1.35rem;
    font-size: 0.95rem;
}

.btn--full {
    width: 100%;
}

/* Hero section */
.hero {
    position: relative;
    padding: 4rem 0 2.4rem;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ecf2ff;
    border: 1px solid #d8e4ff;
    color: #2a4eaf;
    border-radius: 999px;
    padding: 0.4rem 0.78rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #0f2248;
}

.hero__title--highlight {
    color: var(--landing-primary);
}

.hero__description {
    color: var(--landing-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin-bottom: 1.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero__stat {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e3ebfa;
    border-radius: 14px;
    padding: 0.95rem 0.9rem;
}

.hero__stat-number {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #173d93;
}

.hero__stat-label {
    display: block;
    margin-top: 0.2rem;
    color: var(--landing-muted);
    font-size: 0.84rem;
}

.hero__dashboard-preview {
    position: relative;
    background: #fff;
    border: 1px solid #dde6f7;
    border-radius: 20px;
    box-shadow: var(--landing-shadow);
    overflow: hidden;
}

.hero__dashboard-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.hero__floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #dfebff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(24, 50, 103, 0.15);
    padding: 0.6rem 0.7rem;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    min-width: 145px;
}

.hero__floating-card strong {
    display: block;
    color: #0f2b6d;
    line-height: 1;
}

.hero__floating-card span {
    color: #5f6f8d;
    font-size: 0.74rem;
}

.hero__floating-card--orders {
    top: 1rem;
    left: 1rem;
}

.hero__floating-card--drivers {
    right: 1rem;
    bottom: 1rem;
}

.hero__wave {
    margin-top: 1.8rem;
}

.hero__wave svg {
    display: block;
    width: 100%;
    height: 95px;
}

.hero__wave path {
    fill: #ffffff;
}

/* Generic section intro */
.section-badge {
    display: inline-block;
    background: #edf3ff;
    color: #2f54c4;
    border: 1px solid #d8e5ff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    margin-bottom: 0.65rem;
    color: #12284e;
}

.section-title span {
    color: var(--landing-primary);
}

.section-subtitle {
    color: var(--landing-muted);
    max-width: 740px;
    margin-inline: auto;
}

/* Features section */
.features {
    padding: 2.1rem 0 4rem;
}

.features__header,
.pricing__header {
    text-align: center;
    margin-bottom: 1.9rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: 0 8px 22px rgba(26, 42, 80, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(26, 42, 80, 0.15);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-content: center;
    background: linear-gradient(135deg, #eaf1ff 0%, #dde8ff 100%);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card__title {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
}

.feature-card__description {
    color: var(--landing-muted);
    margin-bottom: 0.75rem;
}

.feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card__list li {
    color: #41506a;
    font-size: 0.9rem;
    margin: 0.35rem 0;
}

/* Stats */
.stats-section {
    padding: 0 0 4rem;
}

.stats-section__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.stats-section__item {
    background: linear-gradient(170deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #dde6f7;
    border-radius: 15px;
    padding: 1.15rem;
    text-align: center;
}

.stats-section__number {
    display: block;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    color: #12398f;
}

.stats-section__label {
    display: block;
    margin-top: 0.3rem;
    color: var(--landing-muted);
    font-size: 0.9rem;
}

/* Pricing */
.pricing {
    padding: 0 0 4rem;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.pricing-card {
    background: #fff;
    border: 1px solid #dce5f7;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 24px rgba(22, 42, 81, 0.1);
    overflow: hidden;
}

.pricing-card__badge {
    background: linear-gradient(135deg, #f08a20 0%, #df6709 100%);
    color: #fff;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.42rem 0.65rem;
}

.pricing-card__header,
.pricing-card__body,
.pricing-card__footer {
    padding: 1.1rem 1.1rem 0;
}

.pricing-card__header {
    text-align: center;
}

.pricing-card__icon {
    font-size: 1.45rem;
}

.pricing-card__name {
    margin: 0.45rem 0 0.3rem;
    font-size: 1rem;
    letter-spacing: 1px;
}

.pricing-card__price {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #102d71;
}

.pricing-card__period {
    display: block;
    font-size: 0.85rem;
    color: var(--landing-muted);
    margin-top: 0.25rem;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card__features li {
    border-top: 1px solid #edf2fb;
    padding: 0.65rem 0.15rem;
    color: #42526e;
    font-size: 0.92rem;
}

.pricing-card__footer {
    margin-top: auto;
    padding-bottom: 1.2rem;
}

.pricing-card--popular {
    border-color: #aac2ff;
    transform: translateY(-8px);
}

/* CTA */
.cta-section {
    padding: 0 0 4rem;
}

.cta-section__content {
    background: linear-gradient(135deg, #143380 0%, #1f4fbc 48%, #285ddb 100%);
    border-radius: 20px;
    padding: 2.1rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 38px rgba(25, 52, 113, 0.32);
}

.cta-section__title {
    color: #fff;
    margin-bottom: 0.65rem;
    font-size: clamp(1.55rem, 3.2vw, 2.3rem);
}

.cta-section__title span {
    color: #8fd6ff;
}

.cta-section__description {
    color: rgba(255, 255, 255, 0.88);
    max-width: 760px;
    margin: 0 auto 1.1rem;
}

.cta-section__actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cta-section__note {
    margin-top: 1rem;
    color: #cfe2ff;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #0e1730;
    color: #e2e8f8;
    padding: 3rem 0 1.2rem;
}

.footer a {
    color: #c6d3f5;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 1.2rem;
}

.footer__description {
    color: #99abd7;
    margin: 0.8rem 0;
}

.footer__social {
    display: flex;
    gap: 0.55rem;
}

.footer__social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(208, 220, 248, 0.2);
    border-radius: 10px;
    display: grid;
    place-content: center;
}

.footer__links-title {
    color: #f3f6ff;
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
}

.footer__links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__links li {
    margin: 0.45rem 0;
}

.footer__newsletter-text {
    color: #99abd7;
    margin-bottom: 0.6rem;
}

.footer__newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer__newsletter-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(208, 220, 248, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #eef4ff;
    border-radius: 10px;
    padding: 0.68rem 0.72rem;
}

.footer__newsletter-form button {
    border: 0;
    background: var(--landing-success);
    color: #fff;
    border-radius: 10px;
    padding: 0.68rem 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.footer__bottom {
    margin-top: 1.35rem;
    border-top: 1px solid rgba(208, 220, 248, 0.16);
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    color: #9fb0da;
}

.footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    z-index: 1001;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: rgba(17, 26, 48, 0.95);
    border: 1px solid rgba(206, 222, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(3, 10, 26, 0.35);
    padding: 0.85rem 0.95rem;
    color: #edf2ff;
    display: none;
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.cookie-banner__text {
    margin: 0;
    color: #dbe5ff;
}

.cookie-banner__text a {
    color: #9ac1ff;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.55rem;
    flex-shrink: 0;
}

/* Scroll reveal target */
.feature-card,
.pricing-card,
.hero__stat {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-card.animate,
.pricing-card.animate,
.hero__stat.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
    .hero__container {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        max-width: 720px;
    }

    .features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav__toggle {
        display: inline-flex;
    }

    .nav__list {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.55rem);
        padding: 0.9rem;
        border: 1px solid var(--landing-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 34px rgba(14, 30, 66, 0.16);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
    }

    .nav__list--open {
        display: flex;
    }

    .nav__item--auth {
        margin-top: 0.3rem;
        flex-direction: column;
        align-items: stretch;
    }

    .hero {
        padding-top: 2.6rem;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }

    .stats-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(1140px, calc(100% - 1.4rem));
    }

    .hero__actions,
    .cta-section__actions {
        flex-direction: column;
    }

    .features__grid,
    .pricing__grid,
    .stats-section__grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .pricing-card--popular {
        transform: none;
    }

    .footer__newsletter-form {
        flex-direction: column;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}