/* ==========================================================================
   Importadora M&G — Public front (2026)
   Light navy + electric blue, orange for offers. Dark mode via [data-theme].
   Admin/auth keep using app.css.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
    --bg: #f5f9fd;
    --bg-2: #eaf3fb;
    --surface: #ffffff;
    --surface-2: #f0f6fc;
    --glass: rgba(255, 255, 255, 0.82);
    --line: rgba(15, 42, 68, 0.08);
    --line-2: rgba(15, 42, 68, 0.14);
    --text: #0f2a44;
    --text-2: #2c4a66;
    --muted: #5f7891;
    --muted-2: #93a6b9;
    --navy: #0f3a66;
    --navy-2: #154a80;
    --navy-3: #1d5c9c;
    --primary: #1e88e5;
    --primary-2: #1670c4;
    --primary-deep: #0d4f94;
    --primary-soft: rgba(30, 136, 229, 0.1);
    --sky: #4fc3f7;
    --accent: #ffb020;
    --on-accent: #0f2a44;
    --accent-soft: rgba(255, 176, 32, 0.16);
    --ok: #16a34a;
    --ok-soft: rgba(22, 163, 74, 0.12);
    --warn: #c98a04;
    --warn-soft: rgba(232, 163, 23, 0.16);
    --bad: #e5484d;
    --bad-soft: rgba(229, 72, 77, 0.12);
    --wa: #19b15a;

    /* Hero / page-hero zone: light by default, deep blue in dark mode */
    --hero-bg: radial-gradient(1100px 620px at 78% -10%, #cfe8ff 0%, rgba(207, 232, 255, 0) 62%), linear-gradient(180deg, #e8f4ff 0%, #f5f9fd 100%);
    --hero-fg: #0f2a44;
    --hero-fg-2: #4d6782;
    --hero-accent: #1e88e5;
    --hero-chip-bg: rgba(255, 255, 255, 0.78);
    --hero-chip-line: rgba(15, 42, 68, 0.12);
    --hero-grid: rgba(15, 42, 68, 0.05);
    --rot: linear-gradient(100deg, #0d4f94, #1e88e5 45%, #4fc3f7);
    --au-blend: normal;
    --au1: #7cc8ff;
    --au1-o: 0.45;
    --au2: #4fc3f7;
    --au2-o: 0.3;
    --au3: #b9dcff;
    --au3-o: 0.55;

    --f-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --f-body: 'Figtree', 'Segoe UI', sans-serif;
    --f-mono: 'Geist Mono', ui-monospace, monospace;

    --r-xs: 8px;
    --r-sm: 12px;
    --r: 18px;
    --r-lg: 26px;
    --r-xl: 36px;
    --sh-1: 0 1px 2px rgba(15, 42, 68, 0.05), 0 4px 14px rgba(15, 42, 68, 0.05);
    --sh-2: 0 10px 30px rgba(15, 42, 68, 0.08), 0 2px 6px rgba(15, 42, 68, 0.04);
    --sh-3: 0 30px 70px rgba(15, 42, 68, 0.18);
    --sh-blue: 0 14px 34px rgba(30, 136, 229, 0.32);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-h: 76px;
    --container: 1320px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #06122a;
    --bg-2: #0a1a3a;
    --surface: #0d2148;
    --surface-2: #132b5a;
    --glass: rgba(10, 26, 58, 0.82);
    --line: rgba(140, 180, 255, 0.1);
    --line-2: rgba(140, 180, 255, 0.18);
    --text: #eaf2ff;
    --text-2: #c2d4f2;
    --muted: #8ea6cc;
    --muted-2: #61789e;
    --navy: #0a2a66;
    --navy-2: #0f3780;
    --navy-3: #1546a0;
    --primary: #2f7bff;
    --primary-2: #1f66e6;
    --primary-deep: #0b3fb3;
    --primary-soft: rgba(47, 123, 255, 0.18);
    --sky: #5cc8ff;
    --hero-bg: radial-gradient(1100px 620px at 78% -10%, #0f3d8a 0%, rgba(15, 61, 138, 0) 62%), linear-gradient(180deg, #061633 0%, #06122a 100%);
    --hero-fg: #ffffff;
    --hero-fg-2: rgba(234, 242, 255, 0.72);
    --hero-accent: #5cc8ff;
    --hero-chip-bg: rgba(255, 255, 255, 0.08);
    --hero-chip-line: rgba(255, 255, 255, 0.16);
    --hero-grid: rgba(255, 255, 255, 0.05);
    --rot: linear-gradient(100deg, #7cc4ff, #ffffff 45%, #9ee7ff);
    --au-blend: screen;
    --au1: #1e6fff;
    --au1-o: 0.6;
    --au2: #00b4ff;
    --au2-o: 0.42;
    --au3: #3d5afe;
    --au3-o: 0.45;
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --sh-2: 0 12px 30px rgba(0, 0, 0, 0.35);
    --sh-3: 0 30px 70px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

/* Dark content blocks keep light-on-dark styling in both themes */
.cta, .footer, .price-card, .mobile-menu {
    --hero-fg: #ffffff;
    --hero-fg-2: rgba(234, 242, 255, 0.72);
    --hero-accent: #7fd6ff;
    --hero-chip-bg: rgba(255, 255, 255, 0.08);
    --hero-chip-line: rgba(255, 255, 255, 0.18);
    --au-blend: screen;
    --au1: #1e6fff;
    --au1-o: 0.55;
    --au2: #00b4ff;
    --au2-o: 0.35;
    --au3: #3d5afe;
    --au3-o: 0.4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s, color 0.4s;
}

h1, h2, h3, h4, h5 {
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.04;
    margin: 0;
    color: inherit;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--f-mono); letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Primitives
   -------------------------------------------------------------------------- */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.kicker b {
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.kicker.on-dark { background: var(--hero-chip-bg); color: var(--hero-fg); border: 1px solid var(--hero-chip-line); backdrop-filter: blur(8px); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.section { padding: 110px 0; position: relative; }
.section.sm { padding: 72px 0; }
.section.alt { background: var(--bg-2); }

.s-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.75rem; flex-wrap: wrap; }
.s-head.center { flex-direction: column; align-items: center; text-align: center; }
.s-head h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); margin-top: 0.6rem; max-width: 18ch; }
.s-head.center h2 { max-width: 22ch; }
.s-head p { color: var(--muted); max-width: 52ch; margin-top: 0.8rem; font-size: 1.02rem; }
.s-head .s-actions { display: flex; gap: 0.6rem; align-items: center; }

.text-grad {
    background: linear-gradient(100deg, var(--primary) 10%, var(--sky) 55%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
    --mx: 0px;
    --my: 0px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 0.93rem;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transform: translate(var(--mx), var(--my));
    transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease);
}

.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.97); }
.btn i { transition: transform 0.35s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-arrow-up-right { transform: translateX(3px); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.84rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); color: #fff; }
:root[data-theme="dark"] .btn-dark { background: #fff; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf4ff; color: var(--navy); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-glass { background: var(--hero-chip-bg); border-color: var(--hero-chip-line); color: var(--hero-fg); backdrop-filter: blur(10px); }
.btn-glass:hover { border-color: var(--hero-accent); color: var(--hero-fg); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 30px rgba(25, 177, 90, 0.3); }
.btn-wa:hover { background: #12994b; color: #fff; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #f09c00; color: var(--on-accent); }
.btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    position: relative;
    transition: all 0.3s var(--ease);
}

.icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--primary); font-size: 0.93rem; }
.link-arrow i { transition: transform 0.3s var(--ease); font-size: 0.8em; }
.link-arrow:hover i { transform: translate(3px, -3px); }

/* Badges --------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    white-space: nowrap;
    background: var(--surface-2);
    color: var(--text-2);
}

.badge-hot { background: var(--accent); color: var(--on-accent); }
.badge-blue { background: var(--primary); color: #fff; }
.badge-glass { background: rgba(15, 42, 68, 0.6); color: #fff; backdrop-filter: blur(8px); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--ok-soft); color: var(--ok); }
.badge-warning { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--bad-soft); color: var(--bad); }
.badge-secondary { background: var(--surface-2); color: var(--muted); }

/* Forms ---------------------------------------------------------------------- */

.field label,
.f-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.input,
.select {
    width: 100%;
    font: inherit;
    font-size: 0.93rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    padding: 0.78rem 0.95rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    appearance: none;
    -webkit-appearance: none;
}

.select {
    padding-right: 2.4rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238b95ae' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
}

.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input::placeholder { color: var(--muted-2); }

.with-icon { position: relative; }
.with-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; font-size: 0.9rem; }
.with-icon > .input { padding-left: 2.6rem; }

/* --------------------------------------------------------------------------
   Chrome: progress, topbar, nav
   -------------------------------------------------------------------------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2000;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--primary), var(--sky), var(--accent));
}

@supports (animation-timeline: scroll()) {
    .scroll-progress { animation: progress-grow linear both; animation-timeline: scroll(root); }
    @keyframes progress-grow { to { transform: scaleX(1); } }
}

.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    position: relative;
    z-index: 1031;
}

.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 1rem; }
.topbar-group { display: flex; align-items: center; gap: 1.5rem; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--sky); margin-right: 0.4rem; }

.nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--nav-h);
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
    transition: transform 0.45s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.nav.is-scrolled { box-shadow: 0 10px 40px rgba(15, 42, 68, 0.08); }

.nav.is-overlay:not(.is-scrolled) {
    background: transparent;
    border-color: var(--hero-chip-line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--hero-fg);
}

.nav.is-overlay { position: fixed; left: 0; right: 0; top: 40px; }
.nav.is-overlay.is-scrolled { top: 0; }

.nav .container { display: flex; align-items: center; gap: 1.75rem; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }

.logo-emblem { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; }
.logo-emblem::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.35), transparent 70%);
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s;
}
.logo-emblem img { position: relative; width: 50px; height: 50px; filter: drop-shadow(0 6px 12px rgba(15, 42, 68, 0.22)); transition: transform 0.6s var(--ease-spring); }
.logo:hover .logo-emblem img { transform: rotate(-8deg) scale(1.06); }
.logo:hover .logo-emblem::before { opacity: 1; }

.logo-wm { display: flex; flex-direction: column; line-height: 0.88; font-style: italic; transform: skewX(-6deg); }
.logo-wm small { font-family: var(--f-body); font-weight: 900; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--primary); margin-left: 2px; }
.logo-wm strong { font-family: var(--f-body); font-weight: 900; font-size: 1.85rem; letter-spacing: -0.02em; }
.logo-wm b { color: #e3172f; font-weight: 900; }
.nav.is-overlay:not(.is-scrolled) .logo-wm small { color: var(--hero-accent); }
.footer .logo-wm small, .mobile-menu .logo-wm small { color: #7fd6ff; }
.footer .logo-wm b, .mobile-menu .logo-wm b, :root[data-theme="dark"] .logo-wm b { color: #ff4d5e; }

.nav-links { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    position: relative;
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.93rem;
    opacity: 0.8;
    transition: opacity 0.25s, background 0.25s;
}
.nav-links a:hover { opacity: 1; background: rgba(140, 140, 150, 0.12); }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    animation: underline-in 0.6s var(--ease) both;
    transform-origin: left;
}
.nav.is-overlay:not(.is-scrolled) .nav-links a.active::after { background: var(--hero-accent); }
@keyframes underline-in { from { transform: scaleX(0); } }

.nav-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.nav-search .input { border-radius: 999px; padding: 0.62rem 1rem 0.62rem 2.5rem; background: var(--surface-2); border-color: transparent; font-size: 0.88rem; }
.nav-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 0.85rem; }
.nav.is-overlay:not(.is-scrolled) .nav-search .input { background: var(--hero-chip-bg); color: var(--hero-fg); border-color: var(--hero-chip-line); }
.nav.is-overlay:not(.is-scrolled) .nav-search .input::placeholder { color: var(--hero-fg-2); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions .icon-btn { background: transparent; }
.nav.is-overlay:not(.is-scrolled) .icon-btn { color: var(--hero-fg); border-color: var(--hero-chip-line); }
.nav.is-overlay:not(.is-scrolled) .icon-btn:hover { background: var(--hero-chip-bg); }

.count-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid var(--bg);
    transition: transform 0.4s var(--ease-spring);
}
.count-dot[data-count="0"] { transform: scale(0); }

.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.nav-toggle { display: none; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: var(--navy);
    color: #fff;
    padding: 1.5rem 24px 2rem;
    display: flex;
    flex-direction: column;
    clip-path: circle(0 at calc(100% - 46px) 38px);
    transition: clip-path 0.7s var(--ease);
    pointer-events: none;
}

.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 38px); pointer-events: auto; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-menu-head .icon-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.mobile-menu nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-family: var(--f-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s var(--ease);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu nav a i { font-size: 1rem; color: var(--sky); }
.mobile-menu .mobile-foot { margin-top: auto; display: grid; gap: 0.6rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: min(100svh, 940px);
    padding: calc(var(--nav-h) + 40px + 44px) 0 160px;
    color: var(--hero-fg);
    background: var(--hero-bg);
    overflow: hidden;
    isolation: isolate;
}

.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: 0.9; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: var(--au-blend); animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 50%; top: 0; background: var(--au1); opacity: var(--au1-o); }
.aurora span:nth-child(2) { width: 34vw; height: 34vw; left: 70%; top: 35%; background: var(--au2); opacity: var(--au2-o); animation-duration: 22s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 38vw; height: 38vw; left: 10%; top: 45%; background: var(--au3); opacity: var(--au3-o); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-8vw, 6vh) scale(1.15); }
    100% { transform: translate(5vw, -4vh) scale(0.92); }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--hero-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    animation: grid-pan 30s linear infinite;
}
@keyframes grid-pan { to { background-position: 72px 72px, 72px 72px; } }

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 220px;
    z-index: -1;
    background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }

.hero h1 {
    font-size: clamp(2.5rem, 4.8vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 1.2rem 0 1.2rem;
}

.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; clip-path: inset(0 -0.1em); height: 1.02em; line-height: 1.02; padding-bottom: 0.14em; box-sizing: content-box; }
.rotator > span {
    grid-area: 1 / 1;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.8s var(--ease), opacity 0.8s;
    background: var(--rot);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rotator > span.is-current { transform: none; opacity: 1; }
.rotator > span.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero-lead { font-size: 1.08rem; color: var(--hero-fg-2); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem; border-radius: 14px; background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 0.35s var(--ease), border-color 0.3s; }
.hero-trust li:hover { transform: translateY(-2px); border-color: var(--hero-accent); }
.hero-trust i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--hero-accent); font-size: 0.9rem; }
.hero-trust span { display: flex; flex-direction: column; line-height: 1.15; font-size: 0.74rem; color: var(--hero-fg-2); }
.hero-trust strong { font-size: 0.86rem; color: var(--hero-fg); font-weight: 700; }

/* Card deck */
.deck { position: relative; height: 540px; perspective: 1400px; }
.deck-card {
    position: absolute;
    inset: 0 0 auto auto;
    width: min(100%, 470px);
    height: 400px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--navy-2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
    transform-origin: 50% 100%;
    transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s;
    will-change: transform;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card.is-svg img { object-fit: contain; padding: 14%; background: linear-gradient(160deg, var(--navy-3), var(--navy)); }
.deck-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 22, 48, 0.9)); }
.deck-card[data-pos="0"] { transform: translate3d(0, 0, 0) rotate(0); z-index: 3; }
.deck-card[data-pos="1"] { transform: translate3d(-46px, 26px, -80px) rotate(-6deg); z-index: 2; opacity: 0.75; filter: brightness(0.7); }
.deck-card[data-pos="2"] { transform: translate3d(-88px, 52px, -160px) rotate(-11deg); z-index: 1; opacity: 0.5; filter: brightness(0.5); }
.deck-card[data-pos="out"] { transform: translate3d(140px, -40px, 60px) rotate(12deg); opacity: 0; z-index: 4; }
.deck-info { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.deck-info small { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }
.deck-info h3 { font-size: 1.55rem; margin-top: 0.3rem; color: #fff; }
.deck-price { font-family: var(--f-mono); font-size: 1.3rem; color: #fff; margin-top: 0.3rem; }
.deck-go { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; flex-shrink: 0; transition: transform 0.4s var(--ease), background 0.3s; }
.deck-card:hover .deck-go { transform: rotate(-45deg); background: var(--primary); color: #fff; }
.deck-badge { position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2; }
.deck-nav { position: absolute; right: 0; bottom: 0; z-index: 6; display: flex; gap: 0.5rem; align-items: center; padding: 0.35rem; border-radius: 999px; background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--sh-1); }
.deck-nav .icon-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.deck-nav .icon-btn { background: var(--hero-chip-bg); color: var(--hero-fg); border-color: var(--hero-chip-line); backdrop-filter: blur(8px); }
.deck-dots { display: flex; gap: 6px; margin: 0 0.5rem; }
.deck-dots span { width: 22px; height: 4px; border-radius: 2px; background: var(--hero-chip-line); overflow: hidden; position: relative; }
.deck-dots span.is-active::after { content: ''; position: absolute; inset: 0; background: var(--hero-accent); transform-origin: left; animation: dot-fill var(--deck-time, 5s) linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } }

.hero-float {
    position: absolute;
    right: -10px;
    top: -22px;
    z-index: 5;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    box-shadow: var(--sh-3);
    animation: bob 6s ease-in-out infinite;
}
.hero-float i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.hero-float strong { display: block; font-size: 0.88rem; line-height: 1.2; }
.hero-float span { font-size: 0.75rem; color: var(--muted); }
@keyframes bob { 50% { transform: translateY(-10px); } }

@supports (animation-timeline: view()) {
    .hero-inner { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 600px; }
    @keyframes hero-out { to { transform: translateY(80px) scale(0.96); opacity: 0.3; } }
}

/* Finder (filter row) ------------------------------------------------------ */

.finder-wrap { position: relative; z-index: 10; margin-top: -110px; }

.finder {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--sh-3);
    padding: 1rem;
}

.finder-tabs { display: flex; gap: 0.3rem; padding: 0.15rem 0.2rem 0.85rem; overflow-x: auto; scrollbar-width: none; }
.finder-tabs a { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.86rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: all 0.25s; }
.finder-tabs a:hover { color: var(--text); background: var(--surface-2); }
.finder-tabs a.active { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .finder-tabs a.active { background: var(--primary); }

.finder-row { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto; gap: 0.6rem; }
.finder-row .select, .finder-row .input { background-color: var(--surface-2); border-color: transparent; height: 54px; font-weight: 600; }
.finder-row .select:focus, .finder-row .input:focus { background-color: var(--surface); border-color: var(--primary); }
.finder-row .btn { height: 54px; border-radius: var(--r-sm); padding: 0 1.6rem; }
.finder-pop { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; padding: 0.9rem 0.2rem 0.1rem; font-size: 0.84rem; color: var(--muted); }
.finder-pop a { padding: 0.32rem 0.8rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; transition: all 0.25s; }
.finder-pop a:hover { border-color: var(--primary); color: var(--primary); }

/* Stats ---------------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
    position: relative;
    padding: 1.8rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.stat i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.1rem; }
.stat strong { display: block; font-family: var(--f-display); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 1.4rem 0 0.4rem; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.stat.is-hl { background: linear-gradient(150deg, var(--primary), var(--primary-deep)); color: #fff; border-color: transparent; box-shadow: var(--sh-blue); }
.stat.is-hl i { background: rgba(255, 255, 255, 0.16); color: #fff; }
.stat.is-hl span { color: rgba(255, 255, 255, 0.75); }
.stat.is-hl::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, 0.07); right: -90px; top: -90px; }

/* Brands --------------------------------------------------------------------- */

.brands-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 0; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand-tile {
    width: 170px;
    color: var(--text-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 0.75rem;
    border-radius: var(--r);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--muted);
    transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.brand-tile img { width: 72px; height: 48px; object-fit: contain; filter: grayscale(0.6); opacity: 0.9; transition: filter 0.4s, opacity 0.4s, transform 0.5s var(--ease-spring); }
.brand-tile:hover { background: var(--surface-2); color: var(--text); }
.brand-tile:hover img { filter: none; opacity: 1; transform: scale(1.12); }
:root[data-theme="dark"] .brand-tile img { filter: grayscale(0.6) brightness(1.6); }
:root[data-theme="dark"] .brand-tile:hover img { filter: brightness(1.6); }

/* --------------------------------------------------------------------------
   Vehicle card
   -------------------------------------------------------------------------- */

.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.vgrid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.car {
    --rx: 0deg;
    --ry: 0deg;
    --gx: 50%;
    --gy: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
    will-change: transform;
}

.car::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(30, 136, 229, 0.10), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

.car:hover { box-shadow: var(--sh-3); border-color: transparent; }
.car:hover::before { opacity: 1; }

.car-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.6s; }
.car:hover .car-media img { transform: scale(1.07); }
.car-media img.is-loading { opacity: 0; }

.car-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%) var(--surface-2);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    z-index: 0;
    transition: opacity 0.5s;
}
.car-media.is-loaded::after { opacity: 0; animation: none; }
.car-media img { position: relative; z-index: 1; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.car-badges { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2; display: flex; gap: 0.35rem; flex-wrap: wrap; max-width: 70%; }
.car-tools { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 4; display: flex; flex-direction: column; gap: 0.4rem; }

.fav-btn, .cmp-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--sh-1);
    font-size: 0.9rem;
    transition: transform 0.35s var(--ease-spring), background 0.25s, color 0.25s;
}
.fav-btn:hover, .cmp-btn:hover { transform: scale(1.12); }
.fav-btn.is-active { color: #fff; background: var(--primary); }
.fav-btn.is-active i::before { content: '\f004'; font-weight: 900; }
.cmp-btn.is-active { color: #fff; background: var(--navy); }
.fav-btn.pop { animation: pop 0.5s var(--ease-spring); }
@keyframes pop { 40% { transform: scale(1.35); } }

.car-strip {
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    border-radius: 14px;
    background: rgba(15, 42, 68, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    overflow: hidden;
}
.car-strip > span { padding: 0.45rem 0.75rem; font-size: 0.8rem; font-weight: 700; line-height: 1.15; }
.car-strip > span + span { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.car-strip small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.car-strip .strip-price { background: var(--primary); text-align: right; font-family: var(--f-mono); font-size: 0.98rem; }
.car-strip .strip-price.is-offer { background: var(--accent); color: var(--on-accent); }
.car-strip .strip-price.is-offer small { color: rgba(15, 42, 68, 0.65); }

.sold-stamp { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(15, 42, 68, 0.45); }
.sold-stamp span { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.08em; color: #fff; border: 3px solid #fff; border-radius: 10px; padding: 0.3rem 1rem; transform: rotate(-8deg); animation: stamp 0.8s var(--ease-spring) both; }
@keyframes stamp { from { transform: rotate(-8deg) scale(2); opacity: 0; } }

.car-body { padding: 1.1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.car-brand { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.car-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 0.15rem; }
.car-title a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.car-line { font-size: 0.83rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-specs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0.75rem 0; border-top: 1px solid var(--line); text-align: center; }
.car-specs span { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 0.25rem; }
.car-specs span + span { border-left: 1px solid var(--line); }
.car-specs i { color: var(--muted-2); font-size: 0.9rem; }
.car-actions { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; margin-top: auto; position: relative; z-index: 3; }
.car-actions .btn { padding: 0.68rem 1rem; font-size: 0.84rem; }
.car-del { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted-2); text-decoration: line-through; }

/* List view */
.vgrid.is-list { grid-template-columns: 1fr; }
.vgrid.is-list .car { flex-direction: row; }
.vgrid.is-list .car-media { width: 38%; aspect-ratio: auto; min-height: 240px; flex-shrink: 0; }
.vgrid.is-list .car-body { padding: 1.5rem; }
.vgrid.is-list .car-title { font-size: 1.4rem; }
.vgrid.is-list .car-actions { max-width: 360px; }

/* Rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3.75rem) / 4); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 1rem 0.3rem 2rem; margin: -1rem -0.3rem 0; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 0.5rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

/* Body types bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 1rem; }
.bento-tile {
    position: relative;
    border-radius: var(--r-lg);
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.5s var(--ease), box-shadow 0.5s, color 0.4s;
    isolation: isolate;
}
.bento-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(150deg, var(--primary), var(--primary-deep)); opacity: 0; transition: opacity 0.5s var(--ease); }
.bento-tile:hover { transform: translateY(-6px); box-shadow: var(--sh-3); color: #fff; }
.bento-tile:hover::before { opacity: 1; }
.bento-tile:first-child { grid-column: span 2; grid-row: span 2; background: var(--navy); color: #fff; }
.bento-tile:first-child h4 { font-size: 2.2rem; }
.bento-tile h4 { font-size: 1.3rem; }
.bento-tile small { font-size: 0.82rem; opacity: 0.65; font-weight: 600; }
.bento-icon { position: absolute; right: -6%; bottom: -12%; font-size: 7rem; opacity: 0.08; transition: transform 0.8s var(--ease), opacity 0.5s; }
.bento-tile:first-child .bento-icon { font-size: 15rem; opacity: 0.12; }
.bento-tile:hover .bento-icon { transform: translateX(-14%) rotate(-6deg); opacity: 0.22; }
.bento-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); transition: transform 0.4s var(--ease), background 0.3s; align-self: flex-start; }
.bento-tile:first-child .bento-arrow { background: rgba(255, 255, 255, 0.12); color: #fff; }
.bento-tile:hover .bento-arrow { background: #fff; color: var(--primary); transform: rotate(-45deg); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 4; background: linear-gradient(160deg, var(--navy-3), var(--navy)); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.is-svg img { object-fit: contain; padding: 10%; }
@supports (animation-timeline: view()) {
    .split-media img { animation: parallax linear both; animation-timeline: view(); }
    @keyframes parallax { from { transform: scale(1.18) translateY(-6%); } to { transform: scale(1.18) translateY(6%); } }
}
.split-chip { position: absolute; left: 1.4rem; bottom: 1.4rem; display: flex; gap: 0.75rem; align-items: center; padding: 0.9rem 1.1rem; border-radius: 18px; background: var(--glass); backdrop-filter: blur(14px); color: var(--text); box-shadow: var(--sh-2); }
.split-chip strong { font-family: var(--f-display); font-size: 1.8rem; letter-spacing: -0.04em; color: var(--primary); }
.split-chip span { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.split h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0.6rem 0 1rem; }
.split > div > p { color: var(--muted); font-size: 1.02rem; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; margin: 2rem 0; }
.perk { display: grid; grid-template-columns: 44px 1fr; gap: 0.85rem; }
.perk i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.perk strong { display: block; font-size: 0.98rem; }
.perk span { font-size: 0.86rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 2.2rem 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.step:hover { transform: translateY(-8px); box-shadow: var(--sh-2); }
.step-icon { position: relative; width: 72px; height: 72px; margin: 0 auto 1.4rem; border-radius: 22px; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-soft); color: var(--primary); transition: transform 0.6s var(--ease-spring), background 0.4s, color 0.4s; }
.step:hover .step-icon { transform: rotate(-8deg) scale(1.08); background: var(--primary); color: #fff; }
.step-num { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; }
.step h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* CTA band */
.cta {
    position: relative;
    border-radius: var(--r-xl);
    padding: 4.5rem 3rem;
    text-align: center;
    color: #fff;
    background: var(--navy);
    overflow: hidden;
    isolation: isolate;
}
.cta .aurora { filter: blur(60px); opacity: 0.7; }
.cta h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); max-width: 18ch; margin: 1rem auto; }
.cta p { color: var(--hero-fg-2); max-width: 52ch; margin: 0 auto; }
.cta .hero-ctas { justify-content: center; }

/* Popular chips */
.pop-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.pop-chips a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.15rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--text-2); transition: all 0.3s var(--ease); }
.pop-chips a i { font-size: 0.7rem; color: var(--muted-2); transition: transform 0.3s var(--ease); }
.pop-chips a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.pop-chips a:hover i { transform: translateX(3px); color: var(--primary); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; font-size: 0.8rem; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq .faq-body { padding: 0 1.4rem 1.3rem; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
}

/* --------------------------------------------------------------------------
   Page hero (catalog / sold) + listing
   -------------------------------------------------------------------------- */

.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + 40px + 6px) 0 96px;
    color: var(--hero-fg);
    background: var(--hero-bg);
    overflow: hidden;
    isolation: isolate;
}
.page-hero .aurora { opacity: 0.6; }
.page-hero.sold .aurora span:nth-child(1) { background: #12a150; }
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.ph-copy { min-width: 0; }
section.page-hero .crumbs { color: var(--hero-fg-2); }
.page-hero .crumbs a:hover { color: var(--hero-accent); }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin: 0.6rem 0 0.6rem; }
.ph-accent .w > span, .ph-accent:not(:has(.w)) { background: linear-gradient(100deg, var(--primary) 0%, var(--sky) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero.sold .ph-accent .w > span, .page-hero.sold .ph-accent:not(:has(.w)) { background-image: linear-gradient(100deg, #12a150 0%, #2ec4b6 100%); }
.page-hero p { color: var(--hero-fg-2); max-width: 52ch; font-size: 1rem; }
.ph-stats { display: flex; gap: 0.6rem; flex-shrink: 0; }
.ph-stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border-radius: 18px;
    background: var(--hero-chip-bg);
    border: 1px solid var(--hero-chip-line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--sh-1);
    color: var(--hero-fg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.ph-stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.ph-stat > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.ph-stat strong { display: block; font-family: var(--f-display); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.ph-stat span { display: block; font-size: 0.76rem; color: var(--hero-fg-2); white-space: nowrap; }
.ph-stat.is-main { background: linear-gradient(150deg, var(--primary), var(--primary-deep)); border-color: transparent; color: #fff; box-shadow: var(--sh-blue); }
.ph-stat.is-main > i { background: rgba(255, 255, 255, 0.18); color: #fff; }
.ph-stat.is-main strong { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 600; }
.ph-stat.is-main span { color: rgba(255, 255, 255, 0.8); }
.page-hero.sold .ph-stat.is-main { background: linear-gradient(150deg, #12a150, #0b6b3a); box-shadow: 0 14px 34px rgba(18, 161, 80, 0.3); }
.ph-stat.is-link .ph-go { margin-left: 0.4rem; color: var(--primary); transition: transform 0.3s var(--ease); }
.ph-stat.is-link:hover .ph-go { transform: translateX(4px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.82rem; color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs i { font-size: 0.55rem; opacity: 0.6; }

.filterbar-wrap { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 20; margin-top: -58px; transition: top 0.45s var(--ease); }
.filterbar {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) auto;
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: var(--r-lg);
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid var(--line);
    box-shadow: var(--sh-3);
}
.filterbar .input, .filterbar .select { height: 50px; background-color: var(--surface); border-color: var(--line); font-weight: 600; }
.filterbar .btn { height: 50px; border-radius: var(--r-sm); }

.listing { padding: 2.5rem 0 6rem; }
.listing-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.listing-bar .result { color: var(--muted); }
.listing-bar .result strong { color: var(--text); font-family: var(--f-mono); font-size: 1.05rem; }
.listing-bar .bar-tools { display: flex; gap: 0.5rem; align-items: center; }
.listing-bar .select { width: auto; border-radius: 999px; padding: 0.6rem 2.4rem 0.6rem 1rem; font-weight: 600; font-size: 0.88rem; }
.view-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.view-toggle button { width: 38px; height: 34px; border: 0; background: transparent; border-radius: 999px; color: var(--muted); cursor: pointer; transition: all 0.25s; }
.view-toggle button.is-active { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .view-toggle button.is-active { background: var(--primary); }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem 0.4rem 0.9rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.82rem; font-weight: 700; animation: chip-in 0.5s var(--ease-spring) both; }
.chip i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 0.58rem; }
.chip:hover { background: var(--primary); color: #fff; }
.chip:hover i { background: #fff; color: var(--primary); }
.chip.clear { background: transparent; color: var(--muted); }
@keyframes chip-in { from { transform: scale(0.6); opacity: 0; } }

/* Filters drawer (app.js toggles .is-open) */
.filters {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    width: min(420px, 100vw);
    background: var(--surface);
    box-shadow: var(--sh-3);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.55s var(--ease);
}
.filters.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.35rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem 1.5rem; }
.drawer-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; }
.f-group { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 0.55rem 0.4rem; border-radius: 10px; font-size: 0.86rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: all 0.3s var(--ease); }
.seg input:checked + label { background: var(--surface); color: var(--primary); box-shadow: var(--sh-1); }
.seg input:focus-visible + label { outline: 2px solid var(--primary); }

.empty { text-align: center; padding: 4.5rem 2rem; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line-2); }
.empty-icon { width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 26px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 2rem; animation: bob 4s ease-in-out infinite; }
.empty h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.empty p { color: var(--muted); margin-bottom: 1.5rem; }
.empty .row-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* Pagination (CodeIgniter default markup) */
.pager-wrap { display: flex; justify-content: center; margin-top: 3rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.pagination li a, .pagination li span { min-width: 44px; height: 44px; padding: 0 0.9rem; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 0.88rem; font-weight: 500; transition: all 0.25s; }
.pagination li a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.pagination li.active a, .pagination li.active span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--sh-blue); }

/* --------------------------------------------------------------------------
   Vehicle detail
   -------------------------------------------------------------------------- */

.detail { padding: 2rem 0 5rem; }
.detail-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin: 1.2rem 0 1.6rem; flex-wrap: wrap; }
.detail-top h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; margin-top: 0.8rem; }
.detail-top p { color: var(--muted); margin-top: 0.6rem; max-width: 64ch; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.detail-tools { display: flex; gap: 0.5rem; }
.detail-tools .fav-btn, .detail-tools .cmp-btn { width: 46px; height: 46px; border: 1px solid var(--line-2); box-shadow: none; background: var(--surface); }
.detail-tools .fav-btn.is-active { background: var(--primary); }
.detail-tools .cmp-btn.is-active { background: var(--navy); color: #fff; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 2rem; align-items: start; }

.gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); }
.gallery .carousel-item { aspect-ratio: 16 / 10; cursor: zoom-in; }
.gallery .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery .carousel-control-prev, .gallery .carousel-control-next { width: 72px; opacity: 1; }
.gallery .carousel-control-prev span, .gallery .carousel-control-next span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.95); color: var(--navy); box-shadow: var(--sh-2); transition: transform 0.3s var(--ease-spring); }
.gallery .carousel-control-prev:hover span, .gallery .carousel-control-next:hover span { transform: scale(1.12); }
.gallery-meta { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 3; display: flex; justify-content: space-between; pointer-events: none; }
.gallery-meta > * { pointer-events: auto; }
.gallery-empty { aspect-ratio: 16 / 10; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--surface-2); }
.gallery-empty img { width: 55%; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
.thumb { border: 0; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; opacity: 0.5; cursor: pointer; background: var(--surface-2); outline: 2px solid transparent; outline-offset: 2px; transition: opacity 0.3s, outline-color 0.3s, transform 0.3s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.thumb.active { opacity: 1; outline-color: var(--primary); }

.quick-specs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; margin-top: 1.25rem; }
.qs { padding: 1.1rem 0.9rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; transition: transform 0.4s var(--ease), border-color 0.3s; }
.qs:hover { transform: translateY(-4px); border-color: var(--primary); }
.qs i { width: 40px; height: 40px; margin: 0 auto 0.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.qs small { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.qs strong { display: block; font-size: 0.95rem; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabs { display: flex; gap: 0.3rem; padding: 0.35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 1.5rem; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(var(--nav-h) + 12px); z-index: 5; box-shadow: var(--sh-1); transition: top 0.45s var(--ease); }
.tabs a { padding: 0.55rem 1.05rem; border-radius: 999px; font-size: 0.88rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: all 0.3s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--primary); color: #fff; }

.panel { margin-top: 1.25rem; padding: 2rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 80px); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.3rem; }
.panel-head h3 { font-size: 1.45rem; }
.panel-head span { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.8; white-space: pre-line; }

.spec-table { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.spec-table div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.spec-table span { color: var(--muted); }
.spec-table strong { font-weight: 700; text-align: right; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.6rem; }
.feature-grid div { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 14px; background: var(--surface-2); font-size: 0.92rem; font-weight: 600; transition: transform 0.3s var(--ease); }
.feature-grid div:hover { transform: translateX(4px); }
.feature-grid i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }

.buy-box { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 1rem; transition: top 0.45s var(--ease); }
.price-card { position: relative; padding: 1.8rem; border-radius: var(--r-lg); color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.price-card .aurora { inset: -40%; opacity: 0.55; filter: blur(50px); }
.price-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.price-main { font-family: var(--f-display); font-size: 2.9rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; margin: 0.35rem 0 0.3rem; }
.price-old { font-family: var(--f-mono); color: rgba(255, 255, 255, 0.5); text-decoration: line-through; font-size: 0.95rem; }
.price-save { display: inline-block; margin-left: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.76rem; font-weight: 800; }
.price-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.1rem 0 1.4rem; }
.price-tags span { padding: 0.32rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.76rem; font-weight: 600; }
.price-tags i { color: #7ee2a8; margin-right: 0.3rem; }
.price-card .btn { width: 100%; }
.price-card .btn + .btn { margin-top: 0.55rem; }
.price-note { text-align: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin-top: 1rem; }

.calc { padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.calc h4 { font-size: 1.1rem; display: flex; gap: 0.6rem; align-items: center; }
.calc h4 i { color: var(--primary); }
.pay-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.pay-list li { display: grid; grid-template-columns: 40px 1fr; gap: 0.75rem; align-items: start; padding: 0.75rem; border-radius: 14px; background: var(--surface-2); }
.pay-list li > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.05rem; }
.pay-list li.is-visa { background: linear-gradient(120deg, rgba(26, 31, 113, 0.1), rgba(247, 182, 0, 0.14)); }
.pay-list li.is-visa > i { background: #1a1f71; color: #f7b600; font-size: 1.3rem; }
.pay-list strong { display: block; font-size: 0.94rem; }
.pay-list span { font-size: 0.82rem; color: var(--muted); }

.dealer { padding: 1.3rem 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 0.7rem; font-size: 0.9rem; }
.dealer div { display: flex; justify-content: space-between; gap: 1rem; }
.dealer span { color: var(--muted); }

.mobile-buy { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(4, 12, 28, 0.95); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 14px; object-fit: contain; transform: scale(0.94); transition: transform 0.5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox .icon-btn { position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.2); width: 52px; height: 52px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-family: var(--f-mono); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Overlays: favorites drawer, compare, toast, scrim, whatsapp
   -------------------------------------------------------------------------- */

.scrim { position: fixed; inset: 0; z-index: 1250; background: rgba(6, 18, 40, 0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }

.fav-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300; width: min(430px, 100vw); background: var(--bg); box-shadow: var(--sh-3); display: flex; flex-direction: column; transform: translateX(105%); transition: transform 0.55s var(--ease); }
.fav-drawer.is-open { transform: none; }
.fav-drawer-body { padding: 1rem 1.5rem; overflow-y: auto; flex: 1; display: grid; gap: 0.75rem; align-content: start; }
.fav-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.6rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: chip-in 0.5s var(--ease) both; }
.fav-item img { width: 92px; height: 68px; object-fit: cover; border-radius: 12px; }
.fav-item strong { display: block; font-size: 0.93rem; line-height: 1.25; }
.fav-item span { font-family: var(--f-mono); font-size: 0.84rem; color: var(--primary); }
.fav-empty { text-align: center; color: var(--muted); padding: 3.5rem 1rem; }
.fav-empty i { display: block; font-size: 2.2rem; color: var(--line-2); margin-bottom: 1rem; }

.cmp-tray {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1240;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0.6rem 0.6rem 1rem;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    box-shadow: var(--sh-3);
    transform: translate(-50%, 150%);
    transition: transform 0.6s var(--ease-spring);
}
.cmp-tray.is-visible { transform: translate(-50%, 0); }
.cmp-thumbs { display: flex; }
.cmp-thumbs img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--navy); margin-left: -10px; background: #fff; }
.cmp-thumbs img:first-child { margin-left: 0; }
.cmp-tray .cmp-text { font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.cmp-tray .icon-btn { width: 36px; height: 36px; background: transparent; color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.2); }

.cmp-modal { position: fixed; inset: 0; z-index: 1350; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.cmp-sheet { width: min(980px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); opacity: 0; transform: translateY(30px) scale(0.97); transition: opacity 0.45s, transform 0.55s var(--ease); }
.cmp-modal.is-open { pointer-events: auto; }
.cmp-modal.is-open .cmp-sheet { opacity: 1; transform: none; }
.cmp-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cmp-table th, .cmp-table td { padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table th { width: 160px; color: var(--muted); font-weight: 600; font-size: 0.84rem; }
.cmp-table thead td img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 0.6rem; }
.cmp-table thead td strong { display: block; font-family: var(--f-display); font-size: 1.1rem; }
.cmp-table .cmp-price { font-family: var(--f-mono); color: var(--primary); font-weight: 600; }
.cmp-table .is-best { color: var(--ok); font-weight: 700; }

.toast-stack { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); z-index: 2050; display: grid; gap: 0.5rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: 0.88rem; font-weight: 600; box-shadow: var(--sh-3); animation: toast-in 0.5s var(--ease-spring) both; }
.toast i { color: var(--sky); }
.toast.is-leaving { animation: toast-out 0.35s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

.flash-stack { position: fixed; top: 96px; right: 20px; z-index: 2050; display: grid; gap: 0.6rem; max-width: min(420px, calc(100vw - 40px)); }
.flash { display: flex; gap: 0.8rem; align-items: center; padding: 0.95rem 1rem; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--sh-3); font-size: 0.9rem; animation: toast-in 0.5s var(--ease-spring) both; transition: opacity 0.4s, transform 0.4s; }
.flash.is-leaving { opacity: 0; transform: translateX(16px); }
.flash-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-size: 0.8rem; }
.flash.success .flash-icon { background: var(--ok); }
.flash.error .flash-icon { background: var(--bad); }
.flash button { margin-left: auto; border: 0; background: none; color: rgba(255, 255, 255, 0.5); cursor: pointer; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1230; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; font-size: 1.65rem; box-shadow: 0 14px 34px rgba(25, 177, 90, 0.4); transition: transform 0.4s var(--ease-spring); }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); color: #fff; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, 0.65); padding: 5.5rem 0 2rem; overflow: hidden; isolation: isolate; }
.footer .aurora { opacity: 0.25; inset: 40% -20% -40%; }
.footer-news { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem 2.2rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 4rem; flex-wrap: wrap; }
.footer-news h3 { color: #fff; font-size: 1.7rem; max-width: 22ch; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer .logo { color: #fff; }
.footer-about p { margin: 1.2rem 0 1.5rem; max-width: 36ch; font-size: 0.93rem; }
.footer h5 { color: #fff; font-family: var(--f-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; font-size: 0.93rem; }
.footer ul a { position: relative; transition: color 0.25s; }
.footer ul a:hover { color: #fff; }
.footer ul i { color: var(--sky); width: 18px; }
.socials { display: flex; gap: 0.5rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); transition: all 0.35s var(--ease); }
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-word { margin: 4rem 0 1.5rem; pointer-events: none; user-select: none; }
.footer-word svg { display: block; width: 100%; height: auto; overflow: visible; }
.fw-text { font-family: var(--f-body); font-weight: 900; font-style: italic; font-size: 140px; letter-spacing: -0.02em; fill: url(#fw-fill); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; paint-order: stroke; }
.fw-amp { fill: url(#fw-amp); stroke: rgba(255, 77, 94, 0.35); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   Motion utilities
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: none; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 60ms + 120ms); }
.split-words.is-visible .w > span { transform: none; }

.fade-up { animation: fade-up 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 100ms + 200ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } }

/* Page transition names */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal, .reveal-scale { opacity: 1; transform: none; }
    .split-words .w > span { transform: none; }
    .fade-up, .hero-inner, .split-media img { animation: none !important; opacity: 1; transform: none; }
    .scroll-progress { display: none; }
    .rotator > span:not(.is-current) { display: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1279.98px) {
    .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rail { grid-auto-columns: calc((100% - 2.5rem) / 3); }
    .nav-search { display: none; }
    .nav-actions { margin-left: auto; }
    .detail-grid { grid-template-columns: minmax(0, 1fr) 370px; }
    .quick-specs { grid-template-columns: repeat(3, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    :root { --nav-h: 68px; }
    .topbar { display: none; }
    .nav.is-overlay { top: 0; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-grid; }
    .nav-actions .hide-md { display: none; }
    .hero { padding: calc(var(--nav-h) + 50px) 0 150px; min-height: auto; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .deck { height: 480px; max-width: 520px; width: 100%; margin: 1rem auto 0; }
    .deck-card { height: 350px; left: 0; right: 0; margin: 0 auto; }
    .hero-float { right: 0; top: -18px; }
    .finder-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .finder-row .f-q, .finder-row .btn { grid-column: 1 / -1; }
    .vgrid, .vgrid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rail { grid-auto-columns: calc((100% - 1.25rem) / 2); }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-hero-inner { flex-direction: column; align-items: flex-start; }
    .page-hero { padding-top: calc(var(--nav-h) + 24px); }
    .ph-stats { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
    .ph-stat { min-width: 0; }
    .ph-stat strong, .ph-stat span { white-space: normal; }
    .filterbar .fb-q { grid-column: 1 / -1; }
    .filterbar-wrap { position: relative; top: 0; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .buy-box { position: static; }
    .tabs { top: calc(var(--nav-h) + 8px); }
    .mobile-buy { display: flex; align-items: center; gap: 0.75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1235; padding: 0.75rem 1rem; background: var(--glass); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
    .mobile-buy strong { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.03em; }
    .mobile-buy .btn { margin-left: auto; }
    body:has(.mobile-buy) .wa-float { bottom: 92px; }
    body:has(.mobile-buy) .cmp-tray { bottom: 92px; }
    body:has(.mobile-buy) .footer { padding-bottom: 6rem; }
    .vgrid.is-list .car { flex-direction: column; }
    .vgrid.is-list .car-media { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 639.98px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }
    .section { padding: 72px 0; }
    .section.sm { padding: 52px 0; }
    .s-head { flex-direction: column; align-items: flex-start; }
    .s-head.center { align-items: center; }
    .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
    .hero-trust li { flex: 1 1 140px; }
    .deck { height: 420px; }
    .deck-card { height: 300px; }
    .deck-card[data-pos="1"] { transform: translate3d(-18px, 18px, -80px) rotate(-4deg); }
    .deck-card[data-pos="2"] { transform: translate3d(-34px, 34px, -160px) rotate(-8deg); }
    .finder-row { grid-template-columns: minmax(0, 1fr); }
    .vgrid, .vgrid.cols-3 { grid-template-columns: minmax(0, 1fr); }
    .rail { grid-auto-columns: 84%; }
    .stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .stat { padding: 1.2rem; }
    .stat strong { font-size: 2.1rem; margin-top: 1rem; }
    .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
    .bento-tile:first-child { grid-column: span 2; grid-row: span 1; }
    .bento-tile:first-child h4 { font-size: 1.6rem; }
    .perks { grid-template-columns: minmax(0, 1fr); }
    .cta { padding: 3rem 1.4rem; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .filterbar { grid-template-columns: minmax(0, 1fr); }
    .ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-stat:nth-child(3) { display: none; }
    .ph-stat .ph-go { display: none; }
    .ph-stat { padding: 0.6rem 0.7rem; gap: 0.55rem; }
    .ph-stat > i { width: 34px; height: 34px; }
    .quick-specs { grid-template-columns: repeat(2, 1fr); }
    .spec-table { grid-template-columns: minmax(0, 1fr); }
    .panel { padding: 1.4rem; }
    .price-main { font-size: 2.4rem; }
    .cmp-tray .cmp-text { display: none; }
}

/* --------------------------------------------------------------------------
   Bootstrap carousel essentials (only bootstrap.bundle JS is loaded)
   -------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; }
.carousel-item { position: relative; display: none; float: left; width: 100%; margin-right: -100%; backface-visibility: hidden; transition: transform 0.7s var(--ease); }
.carousel-item.active, .carousel-item-next, .carousel-item-prev { display: block; }
.carousel-item-next:not(.carousel-item-start), .active.carousel-item-end { transform: translateX(100%); }
.carousel-item-prev:not(.carousel-item-end), .active.carousel-item-start { transform: translateX(-100%); }
.carousel-control-prev, .carousel-control-next { position: absolute; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 0; color: #fff; background: none; border: 0; cursor: pointer; }
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

/* Small utilities */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.d-flex { display: flex; } .gap-2 { gap: 0.5rem; } .text-center { text-align: center; }
.w-100 { width: 100%; }
.pt-0 { padding-top: 0 !important; }
.vgrid > .reveal, .rail > .reveal { display: flex; }
.vgrid > .reveal > .car, .rail > .reveal > .car { width: 100%; }

@media (max-width: 639.98px) { .bento-tile[style*="grid-column"] { grid-column: span 2 !important; } }
