/* =========================
   AUTOMATCHSA PREMIUM STYLE
   File: /premium-site/assets/automatch-style.css
========================= */

/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #0f172a;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* =========================
   HEADER / NAV
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.nav {
    min-height: 82px;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.logo span {
    color: #3b82f6;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-nav a {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    transition: 0.25s ease;
    opacity: 0.9;
}

.desktop-nav a:hover {
    color: #60a5fa;
    opacity: 1;
}

.nav-login {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    padding: 15px 24px;
    border-radius: 999px;
    text-align: center;
    line-height: 1.15;
    box-shadow:
        0 15px 40px rgba(37,99,235,0.35),
        inset 0 1px 0 rgba(255,255,255,0.18);
    transition: 0.3s ease;
}

.nav-login:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 18px;
    background: #020617;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a {
    padding: 14px 0;
    color: #f8fafc;
    font-weight: 800;
}

.mobile-menu.open {
    display: flex;
}

.mobile-cta {
    background: #2563eb;
    color: white !important;
    text-align: center;
    border-radius: 16px;
    padding: 14px !important;
    margin-top: 8px;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    border-radius: 18px;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgba(37,99,235,0.35);
}

.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow:
        0 20px 60px rgba(37,99,235,0.45),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.secondary {
    background: rgba(255,255,255,0.14);
    color: white;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.secondary-dark {
    background: #020617;
    color: white;
}

/* =========================
   HERO SECTIONS
========================= */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(2,6,23,0.88) 0%,
            rgba(2,6,23,0.82) 35%,
            rgba(2,6,23,0.70) 55%,
            rgba(2,6,23,0.52) 100%
        ),
        url("images/hero-buyer.jpg");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;

    color: white;
    padding: 150px 0 120px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.20), transparent 42%),
        linear-gradient(to bottom, rgba(2,6,23,0), rgba(2,6,23,0.18));
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(248,250,252,0), #f8fafc);
    pointer-events: none;
}

.sales-hero,
.dealer-hero {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.95),
            rgba(15, 23, 42, 0.88),
            rgba(29, 78, 216, 0.65)
        ),
        url("images/hero-buyer.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.dealer-hero {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.95),
            rgba(15, 23, 42, 0.88),
            rgba(29, 78, 216, 0.65)
        ),
        url("images/trust-handshake.jpg");
    background-size: cover;
    background-position: center;
}

.sales-hero {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.95),
            rgba(15, 23, 42, 0.88),
            rgba(29, 78, 216, 0.65)
        ),
        url("images/buyer-benefits.jpg");
    background-size: cover;
    background-position: center;
}

.hero-grid,
.dealer-hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #dbeafe;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero h1,
.sales-hero h1,
.dealer-hero h1 {
    font-size: clamp(54px, 6vw, 86px);
    line-height: 0.92;
    letter-spacing: -4px;
    margin-bottom: 28px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.hero p,
.sales-hero p,
.dealer-hero p {
    max-width: 690px;
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.trust-row span {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 800;
}

.trust-row span::before {
    content: "✓ ";
    color: #60a5fa;
    font-weight: 900;
}

/* =========================
   HERO CARDS
========================= */

.hero-card {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.match-card,
.dealer-glass-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 38px;
    border-radius: 36px;
    box-shadow:
        0 50px 140px rgba(0,0,0,0.45),
        0 0 40px rgba(59,130,246,0.10),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.small-title {
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-card h2,
.dealer-glass-card h2 {
    color: #ffffff;
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -2px;
    margin-bottom: 20px;
    font-weight: 900;
}

.match-card p,
.dealer-glass-card p {
    color: rgba(255,255,255,0.82);
    margin-bottom: 24px;
    line-height: 1.7;
}

.progress {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress div {
    width: 72%;
    height: 100%;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.match-card ul,
.dealer-glass-card ul {
    list-style: none;
}

.match-card li,
.dealer-glass-card li {
    padding: 12px 0;
    color: rgba(255,255,255,0.86);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
    font-size: 14px;
}

.hero-response {
    margin-top: 22px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    font-weight: 700;
}

.hero-response strong {
    color: #ffffff;
}

/* =========================
   SECTION BASE
========================= */

.section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-heading h2 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 18px;
    color: #071b3b;
}

.section-heading p {
    color: #64748b;
    font-size: 18px;
}

.section-kicker {
    color: #2563eb;
    font-weight: 900;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================
   TRUST BADGES
========================= */

.trust-badges {
    background: #f8fafc;
    padding: 42px 0 26px;
    position: relative;
    z-index: 4;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.badge-grid div {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(15,23,42,0.07);
}

.badge-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    color: #071b3b;
}

.badge-grid span {
    color: #64748b;
    font-size: 14px;
}

/* =========================
   STATS
========================= */

.stats-section {
    background: #020617;
    padding: 42px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 26px;
    color: white;
    text-align: center;
}

.stat-card h3 {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-card p {
    color: #cbd5e1;
    font-size: 14px;
}

/* =========================
   STEPS
========================= */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.step span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #071b3b;
}

.step p {
    color: #64748b;
}

/* =========================
   CALCULATOR / SUPPORT
========================= */

.calculator-section,
.support-section {
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.07), transparent 26%),
        linear-gradient(180deg, #eef4ff, #f8fafc);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calculator-grid h2 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
    color: #071b3b;
}

.calculator-grid p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 28px;
}

.calculator-card {
    background: white;
    border-radius: 34px;
    padding: 38px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.calc-row span {
    color: #64748b;
}

.calc-row strong {
    font-size: 20px;
}

.calc-result {
    margin-top: 28px;
    background: #020617;
    color: white;
    padding: 28px;
    border-radius: 28px;
}

.calc-result span {
    color: #93c5fd;
}

.calc-result h3 {
    font-size: 34px;
    margin: 12px 0;
}

.calc-result p {
    color: #dbeafe;
    margin: 0;
}

/* =========================
   ECOSYSTEM
========================= */

.ecosystem-section {
    background: #f8fafc;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ecosystem-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.ecosystem-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.ecosystem-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.ecosystem-card p {
    color: #64748b;
    margin-bottom: 18px;
}

.ecosystem-card a {
    color: #2563eb;
    font-weight: 900;
}

/* =========================
   DASHBOARD PREVIEW
========================= */

.dashboard-preview-section {
    background: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.dashboard-copy h2 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.dashboard-copy p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 28px;
}

.dashboard-mockup {
    background: #020617;
    border-radius: 34px;
    padding: 20px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.24);
}

.mockup-top {
    display: flex;
    gap: 8px;
    padding: 8px 8px 18px;
}

.mockup-top span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.mockup-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
}

.mockup-stat {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-stat small {
    color: #cbd5e1;
}

.mockup-stat strong {
    color: white;
}

.mockup-line {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 18px;
}

.mockup-line.wide {
    width: 100%;
}

.mockup-line.small {
    width: 50%;
}

.mockup-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.mockup-pill-row span {
    background: rgba(37, 99, 235, 0.35);
    color: #dbeafe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

/* =========================
   SPLIT / BUYER BENEFITS
========================= */

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split h2 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
    color: #071b3b;
}

.split p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 28px;
}

.feature-box {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.96),
            rgba(15, 23, 42, 0.88)
        );
    color: white;
    padding: 40px;
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(15,23,42,0.18);
}

.feature-box h3 {
    font-size: 28px;
    margin-bottom: 18px;
}

.feature-box ul {
    list-style: none;
}

.feature-box li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbeafe;
}

/* =========================
   WHY SECTION
========================= */

.why-section {
    background: #f8fafc;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.why-card span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.why-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.why-card p {
    color: #64748b;
}

/* =========================
   PROOF SECTION
========================= */

.proof-section {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.94),
            rgba(15, 23, 42, 0.88),
            rgba(29, 78, 216, 0.68)
        ),
        url("images/hero-buyer.jpg");
    background-size: cover;
    background-position: center;
    color: white;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.proof-card,
.proof-mini-grid div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    padding: 34px;
    backdrop-filter: blur(16px);
}

.proof-card h2 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 18px;
}

.proof-card p {
    color: #dbeafe;
    font-size: 18px;
}

.proof-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.proof-mini-grid strong {
    display: block;
    margin-bottom: 8px;
}

.proof-mini-grid span {
    color: #dbeafe;
    font-size: 14px;
}

/* =========================
   JOURNEY
========================= */

.journey-section {
    background: white;
}

.journey-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.journey-step {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.journey-step span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.journey-step h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.journey-step p {
    color: #64748b;
}

/* =========================
   TRUST SECTION
========================= */

.trust-section {
    background: #f8fafc;
}

.trust-section h2 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
    color: #071b3b;
}

.trust-section p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 28px;
}

/* =========================
   FAQ
========================= */

.faq-section {
    background: #ffffff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.faq-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #071b3b;
}

.faq-card p {
    color: #64748b;
}

/* =========================
   PACKAGES / SALES PAGE
========================= */

.packages-section {
    background: white;
    padding-top: 78px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.featured {
    background: #020617;
    color: white;
}

.popular-label {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 18px;
}

.pricing-card p {
    color: #64748b;
    margin-bottom: 24px;
    min-height: 90px;
}

.pricing-card.featured p {
    color: #cbd5e1;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-card li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-card.featured li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.price {
    display: none !important;
}

/* =========================
   PRE FOOTER CTA
========================= */

.pre-footer-cta {
    background: #020617;
    color: white;
    padding: 70px 0;
}

.pre-footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.pre-footer-grid h2 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 16px;
}

.pre-footer-grid p {
    color: #cbd5e1;
}

/* =========================
   FINAL CTA
========================= */

.cta {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -2px;
    color: #071b3b;
}

.cta p {
    color: #64748b;
    margin: 12px 0 24px;
}

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

/* =========================
   FOOTER
========================= */

footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: white;
}

.footer-grid p {
    color: #94a3b8;
    margin-top: 18px;
}

.footer-grid h4 {
    margin-bottom: 16px;
}

.footer-grid a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 12px;
}

/* =========================
   FLOATING / MOBILE CTA
========================= */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 90px;
    background: #22c55e;
    color: white;
    padding: 16px 18px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.35);
    z-index: 999;
}

.mobile-bottom-cta {
    display: none;
}

/* =========================
   ANIMATIONS
========================= */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .desktop-nav a {
        font-size: 12px;
    }

    .logo {
        font-size: 28px;
    }
}

@media (max-width: 980px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        min-height: 72px;
    }

    .hero-grid,
    .dealer-hero-grid,
    .calculator-grid,
    .badge-grid,
    .stats-grid,
    .steps,
    .ecosystem-grid,
    .dashboard-grid,
    .split-grid,
    .why-grid,
    .proof-grid,
    .proof-mini-grid,
    .journey-line,
    .faq-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 110px 0 80px;
        background-position: center;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-content,
    .hero-card {
        max-width: 100%;
    }

    .hero h1,
    .sales-hero h1,
    .dealer-hero h1 {
        font-size: clamp(48px, 12vw, 72px);
        line-height: 0.96;
        letter-spacing: -2px;
    }

    .hero p,
    .sales-hero p,
    .dealer-hero p {
        font-size: 17px;
    }

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

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

    .trust-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .match-card,
    .dealer-glass-card {
        max-width: 100%;
    }

    .sales-hero,
    .dealer-hero {
        padding: 72px 0;
    }

    .section {
        padding: 70px 0;
    }

    .pricing-card {
        min-height: auto;
    }

    .pricing-card p {
        min-height: auto;
    }

    .pre-footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-bottom-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 14px;
        border-top: 1px solid #e5e7eb;
        z-index: 999;
    }

    .mobile-bottom-cta a {
        width: 100%;
        background: #2563eb;
        color: white;
        text-align: center;
        padding: 16px;
        border-radius: 18px;
        font-weight: 900;
    }

    .whatsapp-float {
        bottom: 90px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, 1180px);
    }

    .logo {
        font-size: 25px;
    }

    .hero {
        padding: 96px 0 76px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);
        letter-spacing: -2px;
    }

    .match-card {
        padding: 28px;
        border-radius: 28px;
    }

    .match-card h2 {
        font-size: 34px;
    }

    .section-heading h2,
    .calculator-grid h2,
    .split h2,
    .trust-section h2,
    .pre-footer-grid h2,
    .cta h2 {
        letter-spacing: -1.5px;
    }

    .badge-grid div,
    .step,
    .why-card,
    .journey-step,
    .faq-card,
    .calculator-card,
    .feature-box {
        border-radius: 24px;
        padding: 26px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 86px;
        padding: 13px 15px;
        font-size: 13px;
    }
}

/* =========================
   LEGAL / COMPLIANCE PAGES
   Add to bottom of automatch-style.css
========================= */

.legal-hero{
    background:
        linear-gradient(135deg, rgba(2,6,23,.96), rgba(15,23,42,.90), rgba(37,99,235,.45)),
        url("images/hero-buyer.jpg");
    background-size:cover;
    background-position:center;
    color:#fff;
    padding:110px 0 76px;
}

.legal-hero h1{
    font-size:clamp(44px,6vw,76px);
    line-height:.95;
    letter-spacing:-3px;
    margin:12px 0 18px;
}

.legal-hero p{
    max-width:760px;
    color:#dbeafe;
    font-size:18px;
    line-height:1.7;
}

.legal-content{
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.07), transparent 28%),
        linear-gradient(180deg,#f8fafc,#eef4ff);
    padding:70px 0 90px;
}

.legal-card{
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:34px;
    padding:46px;
    box-shadow:0 30px 80px rgba(15,23,42,.10);
}

.legal-card h2{
    color:#071b3b;
    font-size:28px;
    letter-spacing:-.6px;
    margin:32px 0 12px;
}

.legal-card h2:first-child{
    margin-top:0;
}

.legal-card h3{
    color:#071b3b;
    font-size:20px;
    margin-bottom:8px;
}

.legal-card p,
.legal-card li{
    color:#475569;
    font-size:16px;
    line-height:1.8;
}

.legal-card ul{
    margin:14px 0 20px 22px;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin:24px 0;
}

.contact-grid div{
    background:#f8fafc;
    border:1px solid rgba(15,23,42,.08);
    border-radius:22px;
    padding:22px;
}

@media(max-width:780px){
    .legal-hero{
        padding:92px 0 60px;
    }

    .legal-card{
        padding:28px;
        border-radius:26px;
    }

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

/* =========================
   MOBILE FINAL FIX - AUTOMATCHSA
   Strong compact mobile layout
========================= */

@media (max-width: 640px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        width: calc(100% - 28px) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .nav {
        min-height: 58px !important;
        padding: 8px 0 !important;
        gap: 12px !important;
    }

    .logo {
        font-size: 21px !important;
        letter-spacing: -0.8px !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .mobile-menu-btn span {
        width: 24px !important;
        height: 2.5px !important;
        margin: 4px 0 !important;
    }

    .mobile-menu {
        padding: 10px 14px 14px !important;
    }

    .mobile-menu a {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }

    .hero {
        min-height: auto !important;
        padding: 34px 0 28px !important;
        align-items: flex-start !important;
        background-position: center top !important;
    }

    .hero::after {
        height: 44px !important;
    }

    .hero-grid,
    .dealer-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        align-items: start !important;
    }

    .hero-content {
        max-width: 100% !important;
    }

    .badge {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
        padding: 6px 9px !important;
        margin-bottom: 10px !important;
        letter-spacing: 0.2px !important;
    }

    .hero h1,
    .sales-hero h1,
    .dealer-hero h1 {
        font-size: 30px !important;
        line-height: 0.98 !important;
        letter-spacing: -1px !important;
        margin-bottom: 10px !important;
    }

    .hero p,
    .sales-hero p,
    .dealer-hero p {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 12px !important;
        max-width: 100% !important;
    }

    .hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .btn,
    .hero-actions .btn {
        width: 100% !important;
        min-height: 38px !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        text-align: center !important;
        box-shadow: none !important;
    }

    .trust-row {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px 8px !important;
        margin-bottom: 0 !important;
    }

    .trust-row span {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
    }

    .hero-card {
        margin-top: 2px !important;
        justify-content: flex-start !important;
    }

    .match-card,
    .dealer-glass-card {
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 18px !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.28) !important;
    }

    .small-title {
        font-size: 9.5px !important;
        margin-bottom: 8px !important;
        letter-spacing: 0.45px !important;
    }

    .match-card h2,
    .dealer-glass-card h2 {
        font-size: 21px !important;
        line-height: 1.08 !important;
        letter-spacing: -0.7px !important;
        margin-bottom: 8px !important;
    }

    .match-card p,
    .dealer-glass-card p {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 8px !important;
    }

    .progress {
        height: 8px !important;
        margin-bottom: 8px !important;
    }

    .match-card li,
    .dealer-glass-card li {
        font-size: 10.5px !important;
        padding: 5px 0 !important;
        line-height: 1.35 !important;
    }

    .sales-hero,
    .dealer-hero {
        min-height: auto !important;
        padding: 36px 0 30px !important;
    }

    .trust-badges {
        padding: 24px 0 16px !important;
    }

    .section,
    .packages-section,
    .cta,
    .pre-footer-cta,
    .stats-section,
    .trust-section,
    .faq-section,
    .journey-section,
    .dashboard-preview-section,
    .ecosystem-section,
    .calculator-section,
    .support-section {
        padding-top: 38px !important;
        padding-bottom: 38px !important;
    }

    .section-heading {
        margin-bottom: 22px !important;
    }

    .section-heading h2,
    .calculator-grid h2,
    .split h2,
    .trust-section h2,
    .proof-card h2,
    .dashboard-copy h2,
    .pre-footer-grid h2,
    .cta h2 {
        font-size: 26px !important;
        line-height: 1.06 !important;
        letter-spacing: -1px !important;
        margin-bottom: 10px !important;
    }

    .section-heading p,
    .calculator-grid p,
    .split p,
    .trust-section p,
    .proof-card p,
    .dashboard-copy p,
    .cta p,
    .pre-footer-grid p {
        font-size: 12.8px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
    }

    .badge-grid,
    .stats-grid,
    .steps,
    .ecosystem-grid,
    .dashboard-grid,
    .calculator-grid,
    .split-grid,
    .why-grid,
    .proof-grid,
    .proof-mini-grid,
    .journey-line,
    .faq-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .badge-grid div,
    .step,
    .why-card,
    .journey-step,
    .faq-card,
    .calculator-card,
    .feature-box,
    .ecosystem-card,
    .pricing-card,
    .stat-card,
    .proof-card,
    .proof-mini-grid div,
    .dashboard-mockup {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .badge-grid strong,
    .step h3,
    .why-card h3,
    .journey-step h3,
    .ecosystem-card h3,
    .faq-card h3 {
        font-size: 17px !important;
        margin-bottom: 6px !important;
    }

    .badge-grid span,
    .step p,
    .why-card p,
    .journey-step p,
    .ecosystem-card p,
    .faq-card p,
    .pricing-card p,
    .feature-box li {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    .step span,
    .why-card span,
    .journey-step span,
    .ecosystem-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
    }

    .stat-card h3 {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }

    .pricing-card {
        min-height: auto !important;
    }

    .pricing-card h3 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .pricing-card li {
        padding: 8px 0 !important;
        font-size: 12.5px !important;
    }

    .calc-row {
        padding: 10px 0 !important;
    }

    .calc-row span {
        font-size: 12.5px !important;
    }

    .calc-row strong {
        font-size: 15px !important;
    }

    .calc-result {
        padding: 16px !important;
        border-radius: 16px !important;
        margin-top: 16px !important;
    }

    .calc-result h3 {
        font-size: 24px !important;
        margin: 8px 0 !important;
    }

    .pre-footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    footer {
        padding: 38px 0 86px !important;
    }

    .footer-grid {
        gap: 20px !important;
    }

    .footer-grid p,
    .footer-grid a {
        font-size: 12.5px !important;
        margin-bottom: 9px !important;
    }

    .footer-grid h4 {
        margin-bottom: 9px !important;
    }

    .whatsapp-float {
        right: 8px !important;
        bottom: 72px !important;
        padding: 10px 12px !important;
        font-size: 11px !important;
        box-shadow: 0 12px 30px rgba(34, 197, 94, 0.30) !important;
    }

    .mobile-bottom-cta {
        display: flex !important;
        padding: 8px !important;
    }

    .mobile-bottom-cta a {
        padding: 10px !important;
        border-radius: 12px !important;
        font-size: 11.5px !important;
    }

    .legal-hero {
        padding: 42px 0 30px !important;
    }

    .legal-hero h1 {
        font-size: 30px !important;
        line-height: 1 !important;
        letter-spacing: -1px !important;
    }

    .legal-hero p {
        font-size: 12.8px !important;
        line-height: 1.5 !important;
    }

    .legal-content {
        padding: 32px 0 48px !important;
    }

    .legal-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .legal-card h2 {
        font-size: 19px !important;
        margin: 24px 0 8px !important;
    }

    .legal-card p,
    .legal-card li {
        font-size: 12.8px !important;
        line-height: 1.6 !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media (max-width: 390px) {
    .hero h1,
    .sales-hero h1,
    .dealer-hero h1 {
        font-size: 28px !important;
    }

    .match-card h2,
    .dealer-glass-card h2 {
        font-size: 20px !important;
    }
}
