:root {
    --navy: #0a0f1e;
    --navy-mid: #111827;
    --blue: #16A0FF;
    --blue-light: #4fb4ff;
    --blue-pale: #eff6ff;
    --accent: #06b6d4;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-900: #0f172a;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-mono: var(--font-main);
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .10);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gray-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
       NAVBAR
    ========================================================= */
.navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy) !important;
    letter-spacing: -.4px;
}

.navbar-brand span {
    color: var(--blue);
}

.nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 6px 12px !important;
    border-radius: 8px;
    transition: all .18s;
}

.nav-link:hover {
    color: var(--blue) !important;
    background: var(--blue-pale);
}

.btn-google {
    background: var(--blue);
    color: #fff !important;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 600;
    padding: 8px 20px;
    transition: all .2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-google:hover {
    background: #128fe0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 160, 255, .35);
}

/* =========================================================
       HERO
    ========================================================= */
.hero {
    background: linear-gradient(155deg, #f0f7ff 0%, #ffffff 50%, #f8faff 100%);
    padding: 96px 0 80px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, .07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-pale);
    border: 1px solid rgba(37, 99, 235, .2);
    color: var(--blue);
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 50px;
    margin-bottom: 22px;
    letter-spacing: .2px;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 36px;
}

.btn-primary-lg {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    text-decoration: none;
}

.btn-primary-lg:hover {
    background: #128fe0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 160, 255, .38);
}

.btn-outline-lg {
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    padding: 13px 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    text-decoration: none;
}

.btn-outline-lg:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-pale);
}

/* Hero mock dashboard card */
.hero-mockup {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .06);
    padding: 20px;
    max-width: 440px;
    margin: 0 auto;
}

.hero-mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.mockup-title {
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-400);
    font-family: var(--font-mono);
    margin-left: 4px;
}

.order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.order-row:last-child {
    border-bottom: none;
}

.retailer-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.order-info {
    flex: 1;
}

.order-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
}

.order-meta {
    font-size: .73rem;
    color: var(--gray-400);
    font-family: var(--font-mono);
}

/* =========================================================
       SECTION DEFAULTS
    ========================================================= */
section {
    padding: 88px 0;
}

.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--navy);
    line-height: 1.2;
}

.section-sub {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 560px;
}

/* =========================================================
       PROBLEM SECTION
    ========================================================= */
.section-problem {
    background: var(--navy);
    color: #fff;
}

.section-problem .section-label {
    color: var(--accent);
}

.section-problem .section-title {
    color: #fff;
}

.section-problem .section-sub {
    color: rgba(255, 255, 255, .65);
}

.problem-item {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: all .22s;
}

.problem-item:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

.problem-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* =========================================================
       FEATURES SECTION
    ========================================================= */
.section-features {
    background: var(--gray-50);
}

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 26px;
    height: 100%;
    transition: all .22s;
    cursor: default;
}

.feature-card:hover {
    border-color: var(--blue-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--blue-pale);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.feature-card h5 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: .85rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

/* =========================================================
       HOW IT WORKS
    ========================================================= */
.section-how {
    background: #fff;
}

.step-card {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: #fff;
    transition: all .22s;
    height: 100%;
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue-light);
    transform: translateY(-3px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.step-card h5 {
    font-size: .93rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.step-card p {
    font-size: .84rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

/* =========================================================
       DASHBOARD PREVIEW
    ========================================================= */
.section-dashboard {
    background: var(--gray-50);
}

.dash-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dash-topbar {
    background: var(--navy);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-topbar-title {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    font-family: var(--font-mono);
    margin-left: 6px;
}

.dash-body {
    padding: 22px;
}

.stat-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--navy);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: .73rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dash-table {
    font-size: .83rem;
}

.dash-table thead th {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--gray-400);
    border-color: var(--gray-200);
    padding: 10px 12px;
}

.dash-table tbody td {
    padding: 12px 12px;
    vertical-align: middle;
    border-color: var(--gray-100);
    color: var(--gray-600);
}

.dash-table tbody td:first-child {
    color: var(--navy);
    font-weight: 600;
}

.order-id {
    font-family: var(--font-mono);
    font-size: .76rem;
    color: var(--gray-400);
}

/* =========================================================
       AUTOMATION SECTION
    ========================================================= */
.section-automation {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.section-automation .section-label {
    color: var(--accent);
}

.section-automation .section-title {
    color: #fff;
}

.section-automation .section-sub {
    color: rgba(255, 255, 255, .65);
}

.workflow-steps {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.wf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wf-box {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    min-width: 130px;
    transition: all .22s;
}

.wf-box:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

.wf-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--accent);
}

.wf-label {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.wf-arrow {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .35);
    padding: 0 6px;
    margin-bottom: 20px;
}

/* =========================================================
       SECURITY SECTION
    ========================================================= */
.section-security {
    background: #fff;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
}

.security-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ecfdf5;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.security-text h6 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
}

.security-text p {
    font-size: .82rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

.security-note {
    background: var(--blue-pale);
    border-left: 4px solid var(--blue);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    font-size: .84rem;
    color: var(--blue);
    font-weight: 500;
    margin-top: 24px;
}

/* =========================================================
       PRICING SECTION
    ========================================================= */
.section-pricing {
    background: var(--gray-50);
}

.price-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: 18px;
    padding: 36px 30px;
    height: 100%;
    position: relative;
    transition: all .22s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border-color: var(--blue);
    background: linear-gradient(160deg, #eff6ff 0%, #fff 100%);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    letter-spacing: .06em;
    white-space: nowrap;
}

.price-plan {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.price-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--navy);
    font-family: var(--font-mono);
    line-height: 1;
}

.price-value sup {
    font-size: 1.1rem;
    vertical-align: super;
}

.price-value small {
    font-size: .85rem;
    color: var(--gray-400);
    font-family: var(--font-main);
    font-weight: 500;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 22px 0 28px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .85rem;
    color: var(--gray-600);
    padding: 6px 0;
}

.price-features li i {
    color: var(--green);
    font-size: .9rem;
}

.btn-plan {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    transition: all .2s;
    border: none;
    cursor: pointer;
}

.btn-plan-primary {
    background: var(--blue);
    color: #fff;
}

.btn-plan-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
    transform: translateY(-1px);
    color: #fff;
}

.btn-plan-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue) !important;
}

.btn-plan-outline:hover {
    background: var(--blue-pale);
    color: var(--blue);
}

/* =========================================================
       FAQ SECTION
    ========================================================= */
.section-faq {
    background: #fff;
}

.accordion-item {
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    font-size: .92rem;
    font-weight: 600;
    color: var(--navy);
    background: #fff;
    padding: 18px 22px;
}

.accordion-button:not(.collapsed) {
    color: var(--blue);
    background: var(--blue-pale);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    font-size: .88rem;
    color: var(--gray-600);
    line-height: 1.7;
    padding: 14px 22px 20px;
}

/* =========================================================
       FINAL CTA
    ========================================================= */
.section-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
    text-align: center;
    padding: 100px 0;
}

.section-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}

.section-cta p {
    color: rgba(255, 255, 255, .65);
    font-size: 1.05rem;
    margin-bottom: 34px;
}

/* =========================================================
       FOOTER
    ========================================================= */
footer {
    background: var(--navy);
    padding: 54px 0 32px;
    color: rgba(255, 255, 255, .55);
    font-size: .875rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
}

.footer-brand span {
    color: var(--blue-light);
}

footer p {
    line-height: 1.7;
    margin-top: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li+li {
    margin-top: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .18s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-heading {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-bottom: 14px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, .08);
    margin: 36px 0 20px;
}

/* =========================================================
       BADGE HELPERS
    ========================================================= */
.badge-delivered {
    background: #d1fae5;
    color: #065f46;
}

.badge-transit {
    background: #dbeafe;
    color: #1e40af;
}

.badge-returnsoon {
    background: #fef3c7;
    color: #92400e;
}

.badge-expired {
    background: #fee2e2;
    color: #991b1b;
}

.badge-status {
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

/* =========================================================
       MISC UTILITIES
    ========================================================= */
.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-200);
    display: inline-block;
    margin: 0 10px;
    vertical-align: middle;
}

/* =========================================================
       FLASH MESSAGE ALERTS
    ========================================================= */
.alert {
    padding: 14px 0;
    border: none;
    border-radius: 0;
    font-size: .9rem;
    z-index: 1050;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert .btn-close {
    margin: 0;
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }

    .workflow-steps {
        gap: 8px;
    }

    .wf-arrow {
        display: none;
    }
}

/* =========================================================
       LOGIN MODAL
    ========================================================= */
.login-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.login-modal .modal-body {
    padding: 0;
}

.login-left {
    background: linear-gradient(145deg, #0a0f1e 0%, #1e3a5f 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
}

.login-left .brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.4px;
    margin-bottom: 36px;
}

.login-left .brand span {
    color: var(--blue-light);
}

.login-left h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}

.login-left p {
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.7;
    margin-bottom: 32px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.login-feature .lf-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: var(--accent);
    flex-shrink: 0;
}

.login-feature span {
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .75);
}

.login-right {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.03em;
    margin-bottom: 6px;
}

.login-right .login-sub {
    font-size: .85rem;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    background: #fff;
    color: var(--gray-900);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .22s;
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-google-login:hover {
    border-color: var(--blue);
    background: var(--blue-pale);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .18);
}

.btn-google-login .google-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: .8rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.login-trust {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.login-trust p {
    font-size: .75rem;
    color: var(--gray-400);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

.login-trust p i {
    color: var(--green);
}

.login-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.login-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gray-400);
}

.login-badge i {
    color: var(--green);
    font-size: .8rem;
}

@media (max-width: 575.98px) {
    .login-left {
        padding: 32px 24px;
        min-height: auto;
    }

    .login-right {
        padding: 32px 24px;
    }

    .login-right h3 {
        font-size: 1.2rem;
    }
}