/* ========================================
   ATI TMS Landing Page - Modern SaaS Style
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;

    /* Borders */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle .arrow {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.nav-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Dropdown as button (mobile-friendly, avoids anchor color overrides) */
button.dropdown-item-btn {
    width: 100%;
    text-align: left;
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background: var(--bg-light);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform var(--transition-slow), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

.btn-ghost-white {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* Dashboard Preview */
.hero-image {
    display: flex;
    justify-content: center;
}

.dashboard-preview-img {
    width: 100%;
    max-width: 820px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: block;
}

.dashboard-preview {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    width: 100%;
    max-width: 560px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-light);
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-medium);
}

.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #eab308; }
.preview-dots span:nth-child(3) { background: #22c55e; }

.preview-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.preview-content {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    min-height: 300px;
}

.preview-sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-item {
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-gray);
}

.sidebar-item.active {
    background: var(--primary);
}

.preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-card {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    height: 60px;
}

.preview-card.wide {
    height: 80px;
}

.preview-card.chart {
    flex: 1;
    background: linear-gradient(to right, var(--bg-gray), rgba(37, 99, 235, 0.1));
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
    padding: 3rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.trust-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* ========================================
   Core features showcase (Quotes dashboard)
   ======================================== */
.core-features-showcase {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.core-features-inner {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: center;
}

.core-features-content .section-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.core-features-content .section-title {
    margin-bottom: 0.75rem;
}

.core-features-content .section-subtitle {
    margin-bottom: 1.5rem;
}

.core-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.core-features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.core-features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.core-features-list li strong {
    color: var(--text-primary);
}

.core-features-image-wrap {
    position: relative;
}

.core-features-img {
    width: 100%;
    min-width: 0;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    display: block;
}

@media (max-width: 1024px) {
    .core-features-inner {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .core-features-showcase {
        padding: 3rem 0;
    }

    .core-features-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .core-features-image-wrap {
        order: -1;
    }

    .core-features-img {
        max-width: 100%;
    }
}

/* ========================================
   How It Works
   ======================================== */
/* Transport Plan section (Shipper only) */
.transport-plan {
    padding: 0;
}

.transport-plan.audience-hidden {
    display: none;
}

.transport-plan-wrap {
    background: linear-gradient(165deg, #f0f7ff 0%, #e8f4fc 40%, var(--bg-light) 100%);
    padding: var(--section-padding) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.transport-plan-header {
    margin-bottom: 2rem;
}

.transport-plan-tag {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
}

.transport-plan-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.transport-plan-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.transport-plan-intro {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.transport-plan-image-wrap {
    margin: 0 auto 2.5rem;
    text-align: center;
}

.transport-plan-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    display: block;
    margin: 0 auto;
}

.transport-plan-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.transport-plan-subtitle {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.transport-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.transport-step-card {
    padding: 1rem;
    background: var(--bg-white);
    min-width: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.transport-step-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}

.transport-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-bottom: 0.875rem;
}

.transport-step-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.transport-step-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.transport-plan-benefits-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.transport-plan-benefits,
.transport-plan-features {
    min-width: 0;
}

.transport-benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.transport-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.transport-benefit-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
}

.transport-plan-cta {
    text-align: center;
}

.transport-plan-cta .btn {
    min-height: 48px;
    padding: 0.875rem 1.75rem;
}

@media (max-width: 1100px) {
    .transport-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .transport-plan-wrap {
        padding: 3rem 0;
    }

    .transport-plan-title {
        font-size: 1.625rem;
    }

    .transport-steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .transport-plan-benefits-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .transport-plan-intro {
        padding: 1rem 1.25rem;
    }

    .transport-plan-lead {
        font-size: 0.9375rem;
    }
}

/* Audience-based visibility for pricing cards */
.pricing-card.audience-hidden {
    display: none;
}

.how-it-works {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border-medium);
    margin-top: 28px;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-grid-multi {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.pricing-card {
    position: relative;
    padding: 2.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-fees {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.fee-item:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.fee-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.fee-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.pricing-savings {
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-contact {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    stroke: #22c55e;
    flex-shrink: 0;
}

/* Comparison Table */
.pricing-comparison {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.pricing-comparison h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.comparison-items {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comp-name {
    color: var(--text-secondary);
}

.comp-price {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-medium);
}

.comparison-total .comp-name {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-total .comp-price {
    font-size: 1.25rem;
    color: #dc2626;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: 50%;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}

.author-title {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.75;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .logo-img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* ========================================
   Responsive - Mobile-first polish
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

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

    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .nav-container {
        height: 64px;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem max(1.25rem, env(safe-area-inset-left)) 1.5rem;
        border-top: 1px solid var(--border-light);
        box-shadow: var(--shadow-xl);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 0.875rem 0;
        min-height: 48px;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu .nav-link:last-of-type {
        border-bottom: none;
    }

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
    }

    .nav-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.875rem 0;
        min-height: 48px;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
        background: none;
    }

    .nav-dropdown.open .arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
        background: #dbeafe;
        border: 1px solid #93c5fd;
        border-radius: var(--radius-md);
        margin-top: 0.25rem;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 220px;
        opacity: 1;
        visibility: visible;
        padding: 0.5rem 0 0.5rem 1rem;
        margin-bottom: 0.5rem;
    }

    .nav-menu .dropdown-menu .dropdown-item,
    .nav-menu #dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        padding: 0.75rem 0.5rem;
        min-height: 44px;
        border-radius: var(--radius-sm);
        color: #0f172a !important;
        font-weight: 600;
        font-size: 1rem;
        -webkit-text-fill-color: #0f172a !important;
        opacity: 1;
        border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    }

    .nav-menu .dropdown-menu .dropdown-item:last-child,
    .nav-menu #dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }

    .nav-menu .dropdown-menu .dropdown-item span,
    .nav-menu #dropdown-menu .dropdown-item span {
        color: #0f172a !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #0f172a !important;
    }

    .nav-menu .dropdown-menu .dropdown-item-btn,
    .nav-menu #dropdown-menu .dropdown-item-btn {
        color: #0f172a !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        -webkit-text-fill-color: #0f172a !important;
    }

    .nav-menu .dropdown-menu .dropdown-item:hover,
    .nav-menu .dropdown-menu .dropdown-item:focus,
    .nav-menu #dropdown-menu .dropdown-item:hover,
    .nav-menu #dropdown-menu .dropdown-item:focus {
        background: rgba(37, 99, 235, 0.15);
        color: #1d4ed8 !important;
        -webkit-text-fill-color: #1d4ed8;
    }

    .nav-menu .dropdown-menu .dropdown-item-btn:hover,
    .nav-menu .dropdown-menu .dropdown-item-btn:focus,
    .nav-menu #dropdown-menu .dropdown-item-btn:hover,
    .nav-menu #dropdown-menu .dropdown-item-btn:focus {
        color: #1d4ed8 !important;
        -webkit-text-fill-color: #1d4ed8;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
        max-width: 100%;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }

    .hero-cta .btn {
        width: 100%;
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .section-tag {
        font-size: 0.8125rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-grid-multi {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-name {
        font-size: 1.35rem;
    }

    .steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

    .trust-bar {
        padding: 2rem 0;
    }

    .trust-logos {
        gap: 1.5rem;
    }

    .trust-logo {
        font-size: 0.8125rem;
    }

    .cta-section {
        padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom));
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons .btn {
        width: 100%;
        min-height: 48px;
    }

    .cta-note {
        font-size: 0.875rem;
    }

    .footer {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-links a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .pricing-comparison {
        padding: 1rem;
        margin-top: 2rem;
    }

    .comparison-items {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.875rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .dashboard-preview-img,
    .dashboard-preview {
        max-width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .price-amount {
        font-size: 2.25rem;
    }

    .pricing-fees,
    .pricing-contact {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.9375rem;
    }

    .footer-bottom {
        font-size: 0.8125rem;
        padding-top: 1.5rem;
    }
}

/* Touch-friendly: reduce hover lift on touch devices to avoid sticky state */
@media (hover: none) {
    .btn-primary:hover,
    .btn-white:hover {
        transform: none;
    }

    .pricing-card:hover {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: none;
    }
}
