﻿:root {
    --container: 1200px;
    --radius: 14px;
    --radius-lg: 20px;
    --text: #0f172a;
    --muted: #64748b;
    --bg: #f5f7fb;
    --card: #ffffff;
    --alt: #f8fafc;
    --border: rgba(15,23,42,.10);
    --chip: rgba(15,23,42,.05);
    --shadow: 0 14px 40px rgba(15,23,42,.08);
    --shadow-soft: 0 10px 24px rgba(2,8,23,.10);
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --primary-50: #eff6ff;
    --danger: #ef4444;
    --success: #10b981;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #070b13;
        --card: rgba(255,255,255,.06);
        --alt: rgba(255,255,255,.03);
        --text: rgba(255,255,255,.92);
        --muted: rgba(148,163,184,.95);
        --border: rgba(255,255,255,.10);
        --chip: rgba(255,255,255,.06);
        --shadow: 0 18px 44px rgba(0,0,0,.35);
        --shadow-soft: 0 12px 26px rgba(0,0,0,.25);
        --primary-50: rgba(37,99,235,.16);
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

.section {
    padding: 70px 0;
}

    .section.alt {
        background: var(--alt);
    }

    .section.dark {
        background: radial-gradient(900px 420px at 20% 10%, rgba(96,165,250,.18), transparent 60%), radial-gradient(900px 420px at 80% 25%, rgba(37,99,235,.20), transparent 60%), linear-gradient(135deg, #0b1220 0%, #0f172a 55%, #101a33 100%);
        color: #fff;
        position: relative;
        overflow: hidden;
    }

        .section.dark::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='white' stroke-opacity='.08'%3E%3Cpath d='M0 120h900M0 240h900M0 360h900M0 480h900'/%3E%3Cpath d='M150 0v600M300 0v600M450 0v600M600 0v600M750 0v600'/%3E%3C/g%3E%3C/svg%3E");
            mix-blend-mode: overlay;
            pointer-events: none;
        }

        .section.dark > .container {
            position: relative;
            z-index: 1;
        }

    .section h2 {
        margin: 0 0 10px;
        font-size: clamp(28px, 4.2vw, 44px);
        line-height: 1.1;
        letter-spacing: -0.02em;
        text-align: center;
    }

.section-sub {
    margin: 0 auto 34px;
    max-width: 70ch;
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
}

    .section-sub.left {
        text-align: left;
        margin-left: 0;
    }

.section-sub-dark {
    color: rgba(203,213,225,.95);
}

.grad {
    background: linear-gradient(90deg, #60a5fa, #93c5fd, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: rgba(226,232,240,.95);
    margin-bottom: 12px;
}

    .kicker .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--primary), #60a5fa);
        box-shadow: 0 0 0 6px rgba(37,99,235,.18);
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-2px);
    }

    .btn:active {
        transform: translateY(0) scale(.99);
    }

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-600));
    color: #fff;
    box-shadow: var(--shadow-soft);
}

    .btn-primary:hover {
        box-shadow: var(--shadow);
    }

.btn-ghost {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

@media (prefers-color-scheme: dark) {
    .btn-ghost {
        box-shadow: none;
    }
}

.btn-full {
    width: 100%;
}

.center-cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

/* HERO */
.hero-home {
    background: radial-gradient(900px 420px at 20% 10%, rgba(96,165,250,.25), transparent 60%), radial-gradient(900px 420px at 80% 25%, rgba(37,99,235,.30), transparent 60%), linear-gradient(135deg, #0b1220 0%, #0f172a 55%, #101a33 100%);
    color: #fff;
    padding: 96px 0 56px;
    position: relative;
    overflow: hidden;
}

    .hero-home::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.45)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='white' stroke-opacity='.09'%3E%3Cpath d='M0 120h900M0 240h900M0 360h900M0 480h900'/%3E%3Cpath d='M150 0v600M300 0v600M450 0v600M600 0v600M750 0v600'/%3E%3C/g%3E%3C/svg%3E");
        mix-blend-mode: overlay;
        pointer-events: none;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.hero-copy .lead {
    margin: 0 0 22px;
    max-width: 65ch;
    color: rgba(203,213,225,.95);
    font-size: 1.08rem;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 24px;
}

/* Manufacturer logos (HERO) */
.trust {
    display: flex;
    gap: 16px;
    align-items: center;
    color: rgba(148,163,184,.95);
    font-size: .92rem;
    flex-wrap: wrap;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: nowrap;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: auto;
    object-fit: contain;
    opacity: .85;
    transition: opacity .3s ease, transform .2s ease;
}

.logo-box:hover .logo-img {
    opacity: 1;
    transform: translateY(-2px);
}

/* HERO manufacturer logos: 5% smaller again */
.bosch-logo {
    height: 37px;
}
/* was 43 */
.siemens-logo {
    height: 24px;
}
/* was 29 */
.delphi-logo {
    height: 42px;
}
/* was 48 */
.marelli-logo {
    height: 48px;
}
/* was 57 */

/* HERO image: moved a bit UP + RIGHT */
.hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg) skew(-5deg,2deg) scale(1.1);
    transition: transform .5s ease;
    border: 2px solid rgba(255,255,255,.10);
    /* tweak positioning */
    margin-top: -32px; /* up */
    margin-right: -28px; /* right */
}

    .hero-media:hover {
        transform: perspective(1000px) rotateY(-6deg) rotateX(3deg) skew(-3deg,1deg) scale(1.12);
    }

    .hero-media::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(45deg, rgba(37,99,235,.10) 0%, transparent 50%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-media img {
        width: 100%;
        border-radius: var(--radius-lg);
        position: relative;
        z-index: 0;
        transform: scale(1.05);
    }

/* How section logo */
.wreet-main-logo {
    display: block !important;
    margin: 0 auto 26px !important;
    max-height: 140px !important;
    height: 140px !important;
    width: auto !important;
    opacity: .98 !important;
}

/* How */
.how-it-works {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center;
}

.steps {
    margin: 0;
    padding: 0;
}

    .steps li {
        list-style: none;
        position: relative;
        padding: 18px 0 18px 64px;
        border-bottom: 1px solid var(--border);
    }

        .steps li:last-child {
            border-bottom: none;
        }

        .steps li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 18px;
            width: 44px;
            height: 44px;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--primary), var(--primary-600));
            color: #fff;
            display: grid;
            place-items: center;
            font-weight: 900;
            box-shadow: 0 10px 24px rgba(37,99,235,.22);
        }

        .steps li:nth-child(1)::before {
            content: "1";
        }

        .steps li:nth-child(2)::before {
            content: "2";
        }

        .steps li:nth-child(3)::before {
            content: "3";
        }

    .steps strong {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .steps p {
        margin: 0;
        color: var(--muted);
    }

.link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }

.media-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.software-gif {
    border-radius: 14px;
    width: 100%;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: color-mix(in oklab, var(--primary), transparent 65%);
    }

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--primary-50);
    border: 1px solid color-mix(in oklab, var(--primary), transparent 70%);
    color: var(--primary);
    font-size: 20px;
}

.feature-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

/* ECU */
.ecu-grid-4x2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ecu-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

    .ecu-card:hover {
        transform: translateY(-3px);
        border-color: rgba(37,99,235,.55);
    }

    .ecu-card.selected {
        border-color: rgba(37,99,235,.85);
        background: rgba(37,99,235,.12);
    }

    .ecu-card h4 {
        margin: 6px 0 4px;
    }

    .ecu-card p {
        margin: 0;
        color: rgba(203,213,225,.92);
        font-size: .92rem;
    }

.ecu-logo {
    margin: 0 auto 10px;
    object-fit: contain;
    display: block;
    filter: none;
    transition: transform .2s ease, opacity .2s ease;
    opacity: .95;
}
/* ECU support logo sizes (kept like your original) */
#ecus .bosch-logo {
    height: 35px;
}

#ecus .siemens-logo {
    height: 25px;
}

#ecus .delphi-logo {
    height: 40px;
}

#ecus .marelli-logo {
    height: 50px;
}

#ecus .continental-logo {
    height: 55px;
}

#ecus .denso-logo {
    height: 25px;
}

#ecus .temic-logo {
    height: 45px;
}

#ecus .valeo-logo {
    height: 50px;
}

.ecu-card:hover .ecu-logo {
    transform: translateY(-2px);
    opacity: 1;
}

/* Pricing + countdown + FAQ + newsletter (unchanged) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
}

    .pricing-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: color-mix(in oklab, var(--primary), transparent 65%);
    }

    .pricing-card.highlight {
        border-color: color-mix(in oklab, var(--primary), transparent 55%);
        box-shadow: var(--shadow);
    }

.pricing-header {
    text-align: center;
}

    .pricing-header h3 {
        margin: 0 0 8px;
    }

.price {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.price-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-size: .78rem;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--primary-50);
    color: var(--primary-600);
    border: 1px solid color-mix(in oklab, var(--primary), transparent 70%);
    vertical-align: middle;
    font-weight: 900;
}

@media (prefers-color-scheme: dark) {
    .price-pill {
        background: rgba(37,99,235,.16);
        border-color: rgba(37,99,235,.28);
        color: #bfdbfe;
    }
}

.price-note {
    margin: 8px 0 0;
    color: var(--muted);
}

.pricing-features {
    margin: 14px 0 18px;
    padding: 0;
}

    .pricing-features li {
        list-style: none;
        padding: 8px 0 8px 26px;
        position: relative;
        border-bottom: 1px solid var(--border);
    }

        .pricing-features li:last-child {
            border-bottom: none;
        }

        .pricing-features li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 8px;
            color: var(--success);
            font-weight: 900;
        }

.pricing-foot {
    text-align: center;
    margin-top: 22px;
}

.payment-logos {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

    .payment-logos img {
        height: 86px;
        width: auto;
        opacity: .98;
    }

.countdown-section {
    margin: 18px auto 0;
    max-width: 820px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    background: var(--card);
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    margin-bottom: 12px;
}

    .countdown-header i {
        color: var(--primary);
    }

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 78px;
}

.countdown-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    background: var(--primary-50);
    padding: 10px 12px;
    border-radius: 14px;
    min-width: 70px;
    text-align: center;
    border: 1px solid color-mix(in oklab, var(--primary), transparent 70%);
}

.countdown-label {
    font-size: .72rem;
    margin-top: 6px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.countdown-note {
    margin-top: 10px;
    color: var(--muted);
}

    .countdown-note strong {
        color: var(--text);
    }

.countdown-ended {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed var(--border);
    color: var(--muted);
}

.faq-grid {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 12px;
}

.faq-question {
    padding: 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 900;
    transition: background .16s ease;
}

    .faq-question:hover {
        background: var(--chip);
    }

.faq-toggle {
    transition: transform .22s ease;
    color: var(--muted);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease, padding .28s ease;
    color: var(--muted);
}

.faq-item.active .faq-answer {
    padding: 0 16px 16px;
    max-height: 420px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.newsletter {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    align-items: center;
}

.newsletter-copy h2 {
    margin: 0 0 6px;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
}

    .input-group input[type="email"] {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 12px 14px;
        background: transparent;
        color: var(--text);
        outline: none;
        font: inherit;
    }

        .input-group input[type="email"]:focus {
            border-color: color-mix(in oklab, var(--primary), transparent 30%);
            box-shadow: 0 0 0 4px var(--primary-50);
        }

.form-status {
    margin: 10px 0 0;
    font-size: .92rem;
    min-height: 1.25em;
    color: var(--muted);
}

    .form-status.success {
        color: var(--success);
    }

    .form-status.error {
        color: var(--danger);
    }

.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}

/* Reveal animation */
.feature-card,
.pricing-card,
.faq-item,
.ecu-card,
.media-box,
.newsletter {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy .lead {
        margin-inline: auto;
    }

    .kicker {
        justify-content: center;
    }

    .cta {
        justify-content: center;
    }

    /* On smaller screens, match your original: no heavy perspective */
    .hero-media {
        transform: scale(1.05);
        margin-top: 26px; /* reset for stacked layout */
        margin-right: 0; /* reset for stacked layout */
    }

        .hero-media:hover {
            transform: scale(1.07);
        }

        .hero-media img {
            transform: none;
        }

    .how-it-works {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
    }

    .ecu-grid-4x2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .section-sub.left {
        text-align: center;
        margin-inline: auto;
    }

    .trust-logos {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .ecu-grid-4x2 {
        grid-template-columns: 1fr;
    }

    .input-group {
        grid-template-columns: 1fr;
    }
}
