/* ============================================================
   FAST LANE AUTOMOTIVE — Premium Full-Width Design
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
    --red: #C02026;
    --red-dark: #9B1A1F;
    --red-light: #E8383E;
    --gray: #2B2B2B;
    --gray-light: #4A4A4A;

    --bg: #ffffff;
    --bg-alt: #F5F6F8;
    --bg-dark: #0F1923;

    --text: #1F2937;
    --text-2: #6B7280;
    --text-3: #9CA3AF;
    --white: #fff;

    --border: #E5E7EB;
    --border-2: #F3F4F6;

    --ff-h: 'Outfit', sans-serif;
    --ff-b: 'Inter', sans-serif;

    --topbar-h: 38px;
    --header-h: 70px;

    --page-pad: clamp(16px, 4vw, 56px);

    --sh-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --sh-md: 0 4px 12px rgba(0, 0, 0, .08);
    --sh-lg: 0 8px 30px rgba(0, 0, 0, .1);
    --sh-xl: 0 20px 50px rgba(0, 0, 0, .12);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h)+var(--topbar-h))
}

body {
    font-family: var(--ff-b);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

a {
    color: var(--red);
    text-decoration: none;
    transition: .2s
}

a:hover {
    color: var(--red-dark)
}

ul {
    list-style: none
}

img {
    max-width: 100%;
    display: block
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-h);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray)
}

/* ---------- LAYOUT ---------- */
.section {
    padding: 100px 0
}

.section-inner {
    width: 100%;
    padding: 0 var(--page-pad)
}

.accent-text {
    color: var(--red)
}

.text-small {
    font-size: .8rem;
    color: var(--text-3)
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 12px;
}

.section__label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--red)
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 12px
}

.section__desc {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 600px
}

.section__desc--wide {
    max-width: none;
    width: 100%
}

.section__header {
    margin-bottom: 56px
}

.section__header--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 56px
}

.section__header--center .section__label::before {
    display: none
}

.section__header--center .section__desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-b);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: .25s ease;
    text-decoration: none;
}

.btn--primary {
    background: var(--red);
    color: #fff;
    padding: 13px 28px;
    box-shadow: 0 4px 16px rgba(192, 32, 38, .25)
}

.btn--primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 32, 38, .3);
    color: #fff
}

.btn--ghost {
    background: transparent;
    color: #fff;
    padding: 13px 28px;
    border: 2px solid rgba(255, 255, 255, .25)
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .5);
    color: #fff
}

.btn--lg {
    padding: 15px 34px;
    font-size: .95rem
}

.btn--full {
    width: 100%;
    justify-content: center
}

.btn:hover svg {
    transform: translateX(3px)
}

.btn svg {
    transition: transform .2s
}

/* ---------- TOP BAR ---------- */
.topbar {
    background: var(--red);
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
    height: var(--topbar-h);
    width: 100%;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 0 var(--page-pad);
}

.topbar__left,
.topbar__right {
    display: flex;
    gap: 20px;
    align-items: center
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .8)
}

.topbar a:hover {
    color: #fff
}

.topbar span {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

/* ---------- HEADER ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
    width: 100%;
}

.header--scrolled {
    box-shadow: var(--sh-md)
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    width: 100%;
    padding: 0 var(--page-pad);
}

.logo-img {
    height: 42px;
    width: auto
}

.nav__list {
    display: flex;
    gap: 36px
}

.nav__link {
    color: var(--gray-light);
    font-size: .88rem;
    font-weight: 600;
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: .3s;
}

.nav__link:hover,
.nav__link--active {
    color: var(--gray)
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%
}

.btn--nav {
    padding: 10px 22px;
    font-size: .84rem;
    border-radius: 8px
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray);
    transition: .3s
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #0F1923 0%, #162236 50%, #1B3A5C 100%);
    overflow: hidden;
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0
}

.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 80px 80px;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 20s infinite ease-in-out
}

.hero__orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(192, 32, 38, .12);
    top: -100px;
    right: 15%;
    animation-delay: 0s
}

.hero__orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(192, 32, 38, .08);
    bottom: 5%;
    left: 5%;
    animation-delay: -7s
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    33% {
        transform: translate(40px, -40px) scale(1.05)
    }

    66% {
        transform: translate(-30px, 30px) scale(.95)
    }
}

.hero__particles {
    position: absolute;
    inset: 0
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(192, 32, 38, .4);
    border-radius: 50%;
    animation: particleDrift 10s infinite ease-in-out;
}

@keyframes particleDrift {

    0%,
    100% {
        opacity: .15;
        transform: translateY(0)
    }

    50% {
        opacity: .6;
        transform: translateY(-40px)
    }
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding: 120px var(--page-pad) 80px;
}

.hero__badge {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    padding: 7px 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero__title-sub {
    font-size: clamp(.85rem, 1.5vw, 1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 32px;
    line-height: 1.7
}

.hero__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 28px
}

.hero__highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
    font-weight: 600
}

.hero__highlights li svg {
    color: rgba(232, 56, 62, 1);
    flex-shrink: 0
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

/* Hero Dashboard */
.hero__visual {
    position: relative
}

.hero__dashboard {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero__dashboard-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .02);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.dot--red {
    background: #ff5f57
}

.dot--yellow {
    background: #febc2e
}

.dot--green {
    background: #28c840
}

.hero__dashboard-title {
    font-size: .7rem;
    color: rgba(255, 255, 255, .35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__dashboard-spacer {
    flex: 1
}

.hero__dashboard-pill {
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .9);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(192, 32, 38, .18);
    border: 1px solid rgba(192, 32, 38, .30)
}

.hero__dashboard-body {
    padding: 24px
}

.hero__mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px
}

.hero__mini-stat {
    text-align: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
}

.hero__mini-stat-num {
    display: block;
    font-family: var(--ff-h);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.hero__mini-stat-label {
    font-size: .65rem;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .5px
}

.hero__chart {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 100px;
    padding: 8px 0
}

.hero__bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, rgba(192, 32, 38, .4), rgba(192, 32, 38, .8));
    height: var(--h);
    min-height: 10px;
    animation: barGrow 1.2s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * .1s);
    transform-origin: bottom;
    transform: scaleY(0);
}

@keyframes barGrow {
    to {
        transform: scaleY(1)
    }
}

.hero__data-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px
}

.hero__data-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .05);
    width: 100%
}

.hero__data-line--short {
    width: 60%
}

/* Floating cards */
.hero__float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .95);
    color: var(--gray);
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: var(--sh-lg);
    font-size: .82rem;
    font-weight: 600;
    animation: floatCard 6s infinite ease-in-out;
    z-index: 2;
}

.hero__float-card--1 {
    top: -12px;
    right: -10px;
    animation-delay: 0s
}

.hero__float-card--2 {
    bottom: 20px;
    left: -8px;
    animation-delay: -3s
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

/* ---------- TRUST STRIP ---------- */
.trust-strip {
    background: var(--red);
    color: #fff;
    width: 100%;
    padding: 0;
}

.trust-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.trust-item {
    flex: 1;
    text-align: center;
    padding: 28px 20px;
    border-right: 1px solid rgba(255, 255, 255, .15);
}

.trust-item:last-child {
    border-right: none
}

.trust-item strong {
    display: block;
    font-family: var(--ff-h);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.trust-item span {
    font-size: .75rem;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .5px
}

.trust-divider {
    display: none
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--bg)
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 80px;
    align-items: center
}

.about__text p {
    color: var(--text-2);
    margin-bottom: 14px;
    font-size: .93rem
}

.about__card-stack {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.about__card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: .3s ease;
}

.about__card:hover {
    transform: translateX(6px);
    box-shadow: var(--sh-md);
    border-color: rgba(192, 32, 38, .2)
}

.about__card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--sh-sm)
}

.about__card h4 {
    font-size: .95rem;
    margin-bottom: 4px
}

.about__card p {
    font-size: .83rem;
    color: var(--text-2);
    margin: 0
}

/* ---------- PRODUCTS ---------- */
.products {
    background: var(--bg-alt)
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.products__grid--modules {
    margin-top: 0
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 32px;
    transition: .3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.product-card:hover {
    box-shadow: var(--sh-xl);
    transform: translateY(-6px);
    border-color: transparent
}

.product-card:hover::after {
    transform: scaleX(1)
}

.product-card__ribbon {
    position: absolute;
    top: 20px;
    right: -28px;
    background: var(--red);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 44px;
    transform: rotate(45deg);
}

.product-card__icon-wrap {
    margin-bottom: 20px
}

.product-card__icon-wrap svg {
    width: 48px;
    height: 48px
}

.product-card__title {
    font-size: 1.15rem;
    margin-bottom: 14px
}

.product-card__desc {
    color: var(--text-2);
    font-size: .88rem;
    margin-bottom: 10px
}

.product-card__highlight {
    margin: 16px 0;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
    font-size: .88rem;
    color: var(--gray);
}

.product-card__list {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-2)
}

.product-card__list li {
    font-size: .83rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.product-card__list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- PARC SECTION ---------- */
.parc-section {
    position: relative;
    background: linear-gradient(135deg, #0F1923 0%, #162236 50%, #1B3050 100%);
    color: #fff;
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}

.parc-section__bg {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 32, 38, .12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.parc-section__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 var(--page-pad);
}

.parc-section__label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red-light);
    margin-bottom: 10px;
    padding: 5px 14px;
    background: rgba(192, 32, 38, .12);
    border-radius: 100px;
}

.parc-section__header {
    margin-bottom: 56px;
}

.parc-section__header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 10px;
}

.parc-section__header p {
    color: rgba(255, 255, 255, .55);
    max-width: 620px;
    font-size: .95rem;
}

.parc-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.parc-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 18px 16px;
    transition: .3s ease;
    border-left: 3px solid transparent;
}

.parc-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    border-left-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.parc-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.parc-card__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 32, 38, .12);
    border-radius: 8px;
    color: var(--red-light);
}

.parc-card__icon svg {
    width: 18px;
    height: 18px;
}

.parc-card__num {
    font-family: var(--ff-h);
    font-size: 1.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .08);
    line-height: 1;
}

.parc-card h4 {
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.35;
}

.parc-card p {
    color: rgba(255, 255, 255, .5);
    font-size: .83rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    background: var(--bg-alt);
    padding: 80px 0
}

.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 56px;
    background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--sh-md);
}

.cta-banner__text h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 4px
}

.cta-banner__text p {
    color: var(--text-2);
    font-size: 1rem;
    font-style: italic
}

/* ---------- INDUSTRIES ---------- */
.industries {
    background: var(--bg)
}

.industries__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto
}

.industry-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: .3s ease;
}

.industry-card:hover {
    box-shadow: var(--sh-lg);
    transform: translateY(-3px);
    border-color: transparent
}

.industry-card__top {
    margin-bottom: 0
}

.industry-card__icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 32, 38, .06);
    border-radius: 10px;
}

.industry-card h3 {
    font-size: .88rem;
    margin-bottom: 0;
    line-height: 1.35
}

.industry-card p {
    font-size: .85rem;
    color: var(--text-2);
    line-height: 1.6
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--bg-alt)
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: .2s;
}

.contact-card:hover {
    box-shadow: var(--sh-sm);
    border-color: rgba(192, 32, 38, .15)
}

.contact-card__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 32, 38, .06);
    border-radius: 12px;
}

.contact-card h4 {
    font-size: .92rem;
    margin-bottom: 3px
}

.contact-card p {
    font-size: .88rem;
    color: var(--text-2);
    margin: 0
}

.address-postal {
    white-space: nowrap
}

.contact__form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--sh-md);
}

.contact__form h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-2)
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.form-group {
    margin-bottom: 16px
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: .9rem;
    background: var(--bg-alt);
    transition: .2s;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 32, 38, .08)
}

.form-input::placeholder {
    color: var(--text-3)
}

.form-note {
    font-size: .73rem;
    color: var(--text-3);
    margin-top: 14px;
    text-align: center
}

.form-status {
    font-size: .85rem;
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
    min-height: 1.1em
}

.form-status--ok {
    color: #10B981
}

.form-status--err {
    color: var(--red)
}

/* ---------- FOOTER ---------- */
.footer {
    background: linear-gradient(180deg, #0F1923 0%, #162236 100%);
    color: rgba(255, 255, 255, .6);
    width: 100%;
}

.footer__main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    padding: 70px var(--page-pad) 50px;
}

.footer h4 {
    color: #fff;
    font-size: .8rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px
}

.footer__logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 4px
}

.footer__links a {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .45);
    font-size: .85rem
}

.footer__links a:hover {
    color: var(--red-light)
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    text-align: center;
    font-size: .8rem;
    width: 100%;
    padding: 24px var(--page-pad);
}

/* ---------- MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center
}

.modal.active {
    display: flex
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px)
}

.modal__content {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    box-shadow: var(--sh-xl);
    max-height: 80vh;
    overflow-y: auto;
}

.modal__content h3 {
    margin-bottom: 14px
}

.modal__content p {
    color: var(--text-2);
    font-size: .9rem;
    margin-bottom: 12px
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-3)
}

.modal__close:hover {
    color: var(--red)
}

.modal__content--wide {
    max-width: 560px
}

.modal__intro {
    color: var(--text-2);
    font-size: .9rem;
    margin-bottom: 20px
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #1a1a1a;
    color: #e5e7eb;
    padding: 20px var(--page-pad);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s
}

.cookie-banner--visible {
    transform: translateY(0);
    visibility: visible
}

body.has-cookie-banner {
    padding-bottom: 120px
}

.cookie-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 32px
}

.cookie-banner__text h4 {
    font-family: var(--ff-h);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px
}

.cookie-banner__text p {
    font-size: .84rem;
    line-height: 1.55;
    color: #d1d5db;
    max-width: 820px
}

.cookie-banner__text a {
    color: #60a5fa;
    text-decoration: underline
}

.cookie-banner__text a:hover {
    color: #93c5fd
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0
}

.cookie-banner__customize {
    background: none;
    border: none;
    color: #4ade80;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 4px;
    white-space: nowrap
}

.cookie-banner__customize:hover {
    color: #86efac
}

.cookie-banner__accept {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 22px;
    font-family: var(--ff-h);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s
}

.cookie-banner__accept:hover {
    background: var(--red-dark)
}

.cookie-prefs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px
}

.cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border-2);
    border-radius: 10px
}

.cookie-pref__info {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.cookie-pref__info strong {
    font-size: .92rem;
    color: var(--text)
}

.cookie-pref__info span {
    font-size: .82rem;
    color: var(--text-2);
    line-height: 1.45
}

.cookie-pref__toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer
}

.cookie-pref__toggle--disabled {
    cursor: not-allowed;
    opacity: .7
}

.cookie-pref__toggle input {
    opacity: 0;
    width: 0;
    height: 0
}

.cookie-pref__slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: .2s
}

.cookie-pref__slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s
}

.cookie-pref__toggle input:checked + .cookie-pref__slider {
    background: var(--red)
}

.cookie-pref__toggle input:checked + .cookie-pref__slider::before {
    transform: translateX(20px)
}

.cookie-prefs__actions {
    display: flex;
    justify-content: flex-end
}

@media(max-width:768px) {
    body.has-cookie-banner {
        padding-bottom: 200px
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start
    }

    .cookie-banner__actions {
        width: 100%;
        flex-direction: column-reverse;
        align-items: stretch
    }

    .cookie-banner__accept {
        width: 100%;
        text-align: center
    }

    .cookie-banner__customize {
        align-self: center
    }
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: .7s cubic-bezier(.16, 1, .3, 1)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 100px 40px 60px
    }

    .hero__visual {
        max-width: 500px
    }

    .products__grid {
        grid-template-columns: 1fr 1fr
    }

    .parc-section__grid {
        grid-template-columns: 1fr 1fr
    }

    .industries__grid {
        grid-template-columns: 1fr 1fr
    }

    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 30px
    }

    .trust-item strong {
        font-size: 1.4rem
    }

    .cta-banner__inner {
        flex-direction: column;
        text-align: center
    }
}

@media(max-width:768px) {
    .topbar__right {
        display: none
    }

    .section-inner,
    .hero__inner,
    .parc-section__inner,
    .header__inner,
    .topbar__inner,
    .footer__main,
    .footer__bottom {
        padding-left: 20px;
        padding-right: 20px
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .products__grid {
        grid-template-columns: 1fr
    }

    .parc-section__grid {
        grid-template-columns: 1fr
    }

    .industries__grid {
        grid-template-columns: 1fr
    }

    .contact__grid {
        grid-template-columns: 1fr
    }

    .footer__main {
        grid-template-columns: 1fr
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .nav {
        display: none
    }

    .hamburger {
        display: flex
    }

    .btn--nav {
        display: none
    }

    .trust-strip__inner {
        flex-direction: column
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .15);
        padding: 18px 20px
    }

    .trust-item:last-child {
        border-bottom: none
    }

    .hero__float-card {
        display: none
    }

    .hero__actions {
        flex-direction: column
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center
    }

    .nav.open {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(10px);
        z-index: 999;
        align-items: center;
        justify-content: center;
    }

    .nav.open .nav__list {
        flex-direction: column;
        gap: 24px;
        text-align: center
    }

    .nav.open .nav__link {
        font-size: 1.3rem
    }
}

.analytics {
    background: var(--bg-alt)
}

.analytics__layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 28px;
    align-items: start
}

.analytics__kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.analytics-kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--sh-sm);
    transition: .3s ease;
    overflow: hidden;
}

.analytics-kpi:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    border-color: rgba(192, 32, 38, .15)
}

.analytics-kpi__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.analytics-kpi__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 32, 38, .06);
    border-radius: 12px;
    color: var(--red)
}

.analytics-kpi__trend {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-2);
    background: var(--bg-alt);
    border: 1px solid var(--border-2);
    padding: 6px 10px;
    border-radius: 999px
}

.analytics-kpi__value {
    font-family: var(--ff-h);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--gray);
    line-height: 1.1
}

.analytics-kpi__label {
    margin-top: 4px;
    font-size: .82rem;
    color: var(--text-2)
}

.analytics-spark {
    margin-top: 14px;
    width: 100%;
    height: 34px
}

.analytics-spark__line {
    fill: none;
    stroke: rgba(192, 32, 38, .85);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 140;
    stroke-dashoffset: 140
}

.analytics.analytics--visible .analytics-spark__line {
    animation: sparkDraw 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards
}

.analytics.analytics--live .analytics-spark__line {
    animation: sparkFlow 2.8s linear infinite
}

.analytics.analytics--live .analytics-kpi:nth-child(1) .analytics-spark__line { animation-delay: 0s }
.analytics.analytics--live .analytics-kpi:nth-child(2) .analytics-spark__line { animation-delay: .4s }
.analytics.analytics--live .analytics-kpi:nth-child(3) .analytics-spark__line { animation-delay: .8s }
.analytics.analytics--live .analytics-kpi:nth-child(4) .analytics-spark__line { animation-delay: 1.2s }

.analytics__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "wide wide"
        "mix region";
    gap: 18px
}

.analytics__block {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--border)
}

.analytics__block .section__title {
    font-size: clamp(1.5rem, 3vw, 2rem)
}

.analytics__cards--segments {
    grid-template-columns: repeat(3, 1fr)
}

.analytics__cards--forecasting {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "forecast-wide forecast-wide forecast-wide"
        "tyre-pred battery-pred oil-pred"
}

.analytics__cards--forecasting .analytics-card--wide {
    grid-area: forecast-wide;
    grid-column: 1 / -1
}

.analytics__cards--forecasting .analytics-card--prediction:nth-child(2) {
    grid-area: tyre-pred
}

.analytics__cards--forecasting .analytics-card--prediction:nth-child(3) {
    grid-area: battery-pred
}

.analytics__cards--forecasting .analytics-card--prediction:nth-child(4) {
    grid-area: oil-pred
}

.analytics-card--prediction {
    min-height: 300px
}

.analytics-card--rich {
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%)
}

.analytics-card--rich .analytics-card__header {
    align-items: flex-start;
    flex-wrap: wrap
}

.analytics-card__sub {
    margin: 4px 0 0;
    font-size: .76rem;
    color: var(--text-3);
    font-weight: 500
}

.forecast-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 18px 14px;
    border-bottom: 1px solid var(--border-2)
}

.forecast-metrics--compact {
    grid-template-columns: 1fr 1fr
}

.forecast-metric {
    padding: 12px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.forecast-metric--accent {
    background: rgba(192, 32, 38, .05);
    border-color: rgba(192, 32, 38, .15)
}

.forecast-metric__value {
    font-family: var(--ff-h);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray);
    line-height: 1.1
}

.forecast-metric--accent .forecast-metric__value {
    color: var(--red)
}

.forecast-metric__label {
    font-size: .72rem;
    color: var(--text-2);
    font-weight: 600
}

.forecast-metric__delta {
    font-size: .68rem;
    font-weight: 700;
    color: var(--text-3);
    margin-top: 2px
}

.forecast-metric__delta--up {
    color: #059669
}

.chart-axis__unit {
    font-size: 11px;
    fill: var(--text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px
}

.chart-axis__tick {
    font-size: 12px;
    fill: var(--text-2);
    font-weight: 600;
    text-rendering: optimizeLegibility
}

.chart-axis__tick--forecast {
    fill: rgba(192, 32, 38, .75)
}

.chart-data-tag rect {
    fill: var(--red);
    stroke: none
}

.chart-data-tag text {
    fill: #fff;
    font-size: 13px;
    font-weight: 800;
    text-anchor: middle;
    font-family: var(--ff-h);
    text-rendering: optimizeLegibility
}

.chart-data-tag--forecast rect {
    fill: rgba(192, 32, 38, .75)
}

.chart-source {
    margin: 8px 0 0;
    font-size: .72rem;
    color: var(--text-3);
    font-style: italic
}

.bar-chart--labeled {
    padding-top: 28px
}

.bar-chart--labeled .bar strong {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .68rem;
    font-weight: 800;
    color: var(--red);
    white-space: nowrap
}

.bar-chart--labeled .bar span {
    bottom: -22px
}

.analytics-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: .3s ease
}

.analytics-card--wide {
    grid-area: wide;
    grid-column: 1 / -1
}

.analytics-card--mix {
    grid-area: mix
}

.analytics-card--region {
    grid-area: region
}

.analytics-card:not(.analytics-card--wide) {
    min-height: 360px
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    border-color: rgba(192, 32, 38, .15)
}

.analytics-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--border-2)
}

.analytics-card__header h3 {
    font-size: 1rem;
    margin: 0
}

.analytics-card__meta {
    font-size: .78rem;
    color: var(--text-2)
}

.analytics-card__body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.analytics-card__body--center {
    align-items: center;
    gap: 12px
}

.chart-line {
    width: 100%;
    height: 220px;
    display: block;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased
}

.chart-line--labeled {
    height: 240px
}

.chart-line--compact.chart-line--labeled {
    height: 175px
}

.chart-line__grid path {
    stroke: rgba(31, 41, 55, .08);
    stroke-width: 1
}

.chart-line__path {
    fill: none;
    stroke: var(--red);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1)
}

.chart-line__forecast {
    fill: none;
    stroke: rgba(192, 32, 38, .65);
    stroke-width: 4;
    stroke-dasharray: 8 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dashoffset: 84;
    opacity: 0;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1) .35s, opacity .8s ease .35s
}

.analytics.analytics--visible .chart-line__forecast {
    stroke-dashoffset: 0;
    opacity: 1
}

.analytics.analytics--live .chart-line__forecast {
    animation: forecastMarch 1.4s linear infinite
}

.chart-line__band {
    fill: rgba(192, 32, 38, .12);
    opacity: 0;
    transition: opacity 1.2s ease .5s
}

.analytics.analytics--visible .chart-line__band {
    opacity: 1
}

.analytics.analytics--live .chart-line__band {
    animation: areaPulse 3.5s ease-in-out infinite
}

.chart-line__area {
    opacity: 0;
    transition: opacity 1.2s ease .45s
}

.analytics.analytics--visible .chart-line__area {
    opacity: 1
}

.chart-line__points circle {
    fill: #fff;
    stroke: var(--red);
    stroke-width: 2;
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transform-box: fill-box;
    transition: opacity .35s ease, transform .45s cubic-bezier(0.34, 1.56, 0.64, 1)
}

.analytics.analytics--visible .chart-line__points circle {
    opacity: 1;
    transform: scale(1)
}

.analytics.analytics--visible .chart-line__points circle:nth-child(1) { transition-delay: .55s }
.analytics.analytics--visible .chart-line__points circle:nth-child(2) { transition-delay: .65s }
.analytics.analytics--visible .chart-line__points circle:nth-child(3) { transition-delay: .75s }
.analytics.analytics--visible .chart-line__points circle:nth-child(4) { transition-delay: .85s }
.analytics.analytics--visible .chart-line__points circle:nth-child(5) { transition-delay: .95s }
.analytics.analytics--visible .chart-line__points circle:nth-child(6) { transition-delay: 1.05s }
.analytics.analytics--visible .chart-line__points circle:nth-child(7) { transition-delay: 1.15s }
.analytics.analytics--visible .chart-line__points circle:nth-child(8) { transition-delay: 1.25s }

.analytics.analytics--live .chart-line__points circle {
    animation: pointPulse 2.4s ease-in-out infinite
}

.analytics-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: .78rem;
    color: var(--text-2)
}

.analytics-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.analytics-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.analytics-legend__dot--actual {
    background: var(--red)
}

.analytics-legend__dot--forecast {
    background: rgba(192, 32, 38, .55)
}

.analytics-legend__dot--band {
    background: rgba(192, 32, 38, .18);
    border: 1px solid rgba(192, 32, 38, .25)
}

.chart-donut {
    width: 200px;
    height: 200px;
    transition: transform .4s ease
}

.analytics.analytics--live .chart-donut {
    animation: donutFloat 4.5s ease-in-out infinite
}

.chart-donut circle {
    fill: none;
    stroke-width: 16;
    transform: rotate(-90deg);
    transform-origin: 50% 50%
}

.chart-donut__track {
    stroke: rgba(31, 41, 55, .10)
}

.chart-donut__seg {
    stroke-linecap: round;
    transition: stroke-dasharray 1.6s cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1)
}

.chart-donut__seg--1 {
    stroke: var(--red)
}

.chart-donut__seg--2 {
    stroke: rgba(192, 32, 38, .65)
}

.chart-donut__seg--3 {
    stroke: rgba(15, 25, 35, .35)
}

.chart-donut__seg--4 {
    stroke: rgba(192, 32, 38, .45)
}

.chart-donut__seg--5 {
    stroke: rgba(15, 25, 35, .55)
}

.chart-donut text {
    transform: rotate(90deg);
    transform-origin: 50% 50%
}

.chart-donut__value {
    font-family: var(--ff-h);
    font-size: 1.1rem;
    font-weight: 800;
    fill: var(--gray)
}

.chart-donut__label {
    font-size: .78rem;
    fill: var(--text-2)
}

.donut-legend {
    width: 100%;
    display: grid;
    gap: 8px;
    font-size: .82rem;
    color: var(--text-2);
    margin-top: auto
}

.donut-legend__row {
    display: flex;
    align-items: center;
    gap: 10px
}

.donut-legend--stats {
    width: 100%;
    max-width: 300px
}

.donut-legend--stats .donut-legend__row {
    justify-content: flex-start;
    gap: 8px;
    font-size: .78rem
}

.donut-legend--stats strong {
    color: var(--gray);
    font-weight: 800;
    margin-left: auto
}

.donut-legend--stats em {
    font-style: normal;
    font-size: .72rem;
    font-weight: 700;
    color: var(--red);
    min-width: 38px;
    text-align: right
}

.donut-legend__swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px
}

.donut-legend__swatch--1 {
    background: var(--red)
}

.donut-legend__swatch--2 {
    background: rgba(192, 32, 38, .65)
}

.donut-legend__swatch--3 {
    background: rgba(15, 25, 35, .35)
}

.donut-legend__swatch--4 {
    background: rgba(192, 32, 38, .45)
}

.donut-legend__swatch--5 {
    background: rgba(15, 25, 35, .55)
}

.bar-chart {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 140px;
    padding: 8px 4px 0
}

.bar-chart .bar {
    flex: 1;
    height: var(--h);
    min-height: 10px;
    background: linear-gradient(to top, rgba(192, 32, 38, .35), rgba(192, 32, 38, .85));
    border-radius: 8px 8px 4px 4px;
    position: relative;
    transform-origin: bottom;
    transform: scaleY(0)
}

.analytics.analytics--visible .bar-chart .bar {
    animation: barGrow 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards
}

.analytics.analytics--live .bar-chart .bar {
    animation: barBreathe 3.2s ease-in-out infinite
}

.analytics.analytics--live .bar-chart .bar:nth-child(1) { animation-delay: 0s }
.analytics.analytics--live .bar-chart .bar:nth-child(2) { animation-delay: .25s }
.analytics.analytics--live .bar-chart .bar:nth-child(3) { animation-delay: .5s }
.analytics.analytics--live .bar-chart .bar:nth-child(4) { animation-delay: .75s }
.analytics.analytics--live .bar-chart .bar:nth-child(5) { animation-delay: 1s }
.analytics.analytics--live .bar-chart .bar:nth-child(6) { animation-delay: 1.25s }
.analytics.analytics--live .bar-chart .bar:nth-child(7) { animation-delay: 1.5s }

.analytics.analytics--visible .bar-chart .bar:nth-child(1) { animation-delay: .05s }
.analytics.analytics--visible .bar-chart .bar:nth-child(2) { animation-delay: .10s }
.analytics.analytics--visible .bar-chart .bar:nth-child(3) { animation-delay: .15s }
.analytics.analytics--visible .bar-chart .bar:nth-child(4) { animation-delay: .20s }
.analytics.analytics--visible .bar-chart .bar:nth-child(5) { animation-delay: .25s }
.analytics.analytics--visible .bar-chart .bar:nth-child(6) { animation-delay: .30s }
.analytics.analytics--visible .bar-chart .bar:nth-child(7) { animation-delay: .35s }

.bar-chart .bar span {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--text-2)
}

.bar-chart__note {
    margin-top: auto;
    font-size: .78rem;
    color: var(--text-3)
}

.analytics.analytics--visible [data-draw] {
    stroke-dashoffset: 0
}

.analytics:not(.analytics--visible) [data-draw] {
    stroke-dashoffset: 99999
}

@keyframes sparkDraw {
    to { stroke-dashoffset: 0 }
}

@keyframes sparkFlow {
    to { stroke-dashoffset: -56 }
}

@keyframes forecastMarch {
    to { stroke-dashoffset: -32 }
}

@keyframes areaPulse {
    0%, 100% { fill: rgba(192, 32, 38, .12) }
    50% { fill: rgba(192, 32, 38, .22) }
}

@keyframes pointPulse {
    0%, 100% { opacity: 1 }
    50% { opacity: .55 }
}

@keyframes barBreathe {
    0%, 100% { transform: scaleY(1) }
    50% { transform: scaleY(1.07) }
}

@keyframes donutFloat {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-5px) }
}

@media (prefers-reduced-motion: reduce) {
    .analytics.analytics--live .analytics-spark__line,
    .analytics.analytics--live .chart-line__forecast,
    .analytics.analytics--live .chart-line__band,
    .analytics.analytics--live .chart-line__points circle,
    .analytics.analytics--live .bar-chart .bar,
    .analytics.analytics--live .chart-donut {
        animation: none !important
    }
}

@media(max-width:1024px) {
    .analytics__layout {
        grid-template-columns: 1fr;
    }

    .analytics__cards--segments {
        grid-template-columns: 1fr
    }

    .analytics__cards--forecasting {
        grid-template-areas:
            "forecast-wide"
            "tyre-pred"
            "battery-pred"
            "oil-pred";
        grid-template-columns: 1fr
    }
}

@media(max-width:768px) {
    .analytics__kpis {
        grid-template-columns: 1fr;
    }

    .forecast-metrics {
        grid-template-columns: 1fr
    }

    .forecast-metrics--compact {
        grid-template-columns: 1fr
    }

    .analytics__cards--segments {
        grid-template-columns: 1fr
    }

    .analytics__cards {
        grid-template-columns: 1fr;
        grid-template-areas:
            "wide"
            "mix"
            "region";
    }

    .analytics-card:not(.analytics-card--wide) {
        min-height: auto
    }
}

/* ---------- LEGAL PAGES ---------- */
.legal-hero {
    padding: calc(var(--header-h) + var(--topbar-h) + 48px) var(--page-pad) 40px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-2)
}

.legal-hero__inner {
    max-width: 900px;
    margin: 0 auto
}

.legal-hero__label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px
}

.legal-hero h1 {
    font-family: var(--ff-h);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.2
}

.legal-hero__meta {
    font-size: .88rem;
    color: var(--text-2)
}

.legal-hero__intro {
    margin-top: 16px;
    font-size: .95rem;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 760px
}

.legal-body {
    padding: 40px var(--page-pad) 80px
}

.legal-doc {
    max-width: 820px;
    margin: 0 auto;
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.75
}

.legal-doc h2 {
    font-family: var(--ff-h);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px
}

.legal-doc h2:first-child {
    margin-top: 0
}

.legal-doc h3 {
    font-family: var(--ff-h);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 22px 0 8px
}

.legal-doc p {
    margin-bottom: 14px
}

.legal-doc ul,
.legal-doc ol {
    margin: 0 0 16px 1.25rem
}

.legal-doc li {
    margin-bottom: 8px
}

.legal-doc a {
    text-decoration: underline
}

.legal-doc__toc {
    background: var(--bg-alt);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 28px
}

.legal-doc__toc strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: .88rem
}

.legal-doc__toc ol {
    margin-bottom: 0
}

.legal-hub {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px
}

.legal-hub__card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--sh-sm);
    transition: .25s ease
}

.legal-hub__card:hover {
    border-color: rgba(192, 32, 38, .25);
    box-shadow: var(--sh-md);
    transform: translateY(-2px)
}

.legal-hub__card h2 {
    font-family: var(--ff-h);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px
}

.legal-hub__card p {
    font-size: .86rem;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 14px
}

.legal-hub__card a {
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 20px
}

.legal-back:hover {
    color: var(--red)
}