/* ==========================================================================
   YARIS HV - COCKPIT MOTORSPORT ULTRA-PREMIUM DESIGN SYSTEM
   Inspired by MoTeC Racing Telemetry & Toyota Gazoo Racing (TGR) Cockpit
   GPU-Accelerated 60/120 FPS Fluid Transitions & Glassmorphism
   ========================================================================== */

:root {
    color-scheme: dark;
    --carbon-deep: #07090c;
    --carbon: #0c0f13;
    --carbon-surface: #12161c;
    --carbon-card: rgba(18, 23, 30, 0.78);
    --carbon-card-hover: rgba(24, 30, 40, 0.88);
    --panel: #161b22;
    --alloy: #edf0ef;
    --alloy-dim: #cfd6dc;
    --muted: #8d98a2;
    --line: rgba(255, 255, 255, 0.08);
    --line-subtle: rgba(255, 255, 255, 0.04);
    --line-titanium: rgba(255, 255, 255, 0.16);
    --titanium-glow: rgba(255, 255, 255, 0.25);
    
    /* Gazoo Racing Red (Main App & Primary Track Action) */
    --red: #ee3342;
    --red-hover: #ff3b4b;
    --red-active: #cc2231;
    --red-glow: rgba(238, 51, 66, 0.45);
    --red-glow-soft: rgba(238, 51, 66, 0.2);
    --red-subtle: rgba(238, 51, 66, 0.08);

    /* Telemetry Ice Blue (OBD Bridge, Diagnostics, Cooling Airflow) */
    --ice: #83d9e3;
    --ice-hover: #9ee6ee;
    --ice-glow: rgba(131, 217, 227, 0.45);
    --ice-glow-soft: rgba(131, 217, 227, 0.2);
    --ice-subtle: rgba(131, 217, 227, 0.08);

    /* Status Indicators */
    --green-ready: #27ae60;
    --green-glow: rgba(39, 174, 96, 0.45);
    --amber-shift: #f39c12;
    --amber-glow: rgba(243, 156, 18, 0.45);

    /* Typography */
    --display: "Barlow Condensed", Impact, sans-serif;
    --body: "Barlow", system-ui, -apple-system, sans-serif;
    --mono: "IBM Plex Mono", monospace;

    /* Curves & Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --speed-fast: 0.18s;
    --speed-norm: 0.28s;
    --speed-slow: 0.45s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }

body {
    margin: 0;
    background-color: var(--carbon-deep);
    background-image:
        /* Volumetric top light — racing instrument panel warmup glow */
        radial-gradient(ellipse 1400px 700px at 50% -120px, rgba(238, 51, 66, 0.14), transparent 68%),
        /* Right ambient: ice telemetry edge bleed */
        radial-gradient(ellipse 980px 700px at 100% 22%, rgba(131, 217, 227, 0.09), transparent 65%),
        /* Left ambient: subtle red counter-accent */
        radial-gradient(ellipse 1000px 760px at 0% 64%, rgba(238, 51, 66, 0.07), transparent 65%),
        /* Centre volumetric light cone (cockpit instrument illumination) */
        radial-gradient(ellipse 700px 500px at 50% 38%, rgba(24, 31, 40, 0.55), transparent 72%),
        /* Deep vignette — corners to black */
        radial-gradient(ellipse at 50% 50%, rgba(14, 18, 23, 0.3) 0%, rgba(4, 6, 8, 0.98) 100%),
        url("carbon-pattern-3k.svg");
    background-size: 100% auto, 100% auto, 100% auto, 100% auto, 100% 100%, 48px 48px;
    background-attachment: fixed, fixed, fixed, fixed, fixed, scroll;
    color: var(--alloy);
    font: 17px/1.6 var(--body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cockpit Multi-Level Vignette — instrument cluster ambient depth */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(4, 6, 8, 0.45) 100%),
        radial-gradient(ellipse at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; opacity: .45; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 4px;
}
::selection { background: var(--red); color: white; }
[hidden] { display: none !important; }

h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: .92; letter-spacing: -.015em; }
h2 { font-size: clamp(42px, 4.6vw, 68px); }
h3 { font-size: 25px; line-height: 1.18; font-weight: 600; }

.shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 100px; }
.muted { color: var(--muted); }
.micro, .eyebrow, .demo-tag, .feature-code, .feature-detail {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
}
.eyebrow {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.signal {
    width: 7px;
    height: 7px;
    background: var(--red);
    display: inline-block;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(238, 51, 66, 0.2), 0 0 10px var(--red);
    animation: signal-blink 2s infinite var(--ease-in-out-smooth);
}
@keyframes signal-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    background: var(--alloy);
    color: var(--carbon);
    z-index: 100;
    padding: 12px 20px;
    font-family: var(--mono);
    font-weight: 600;
    border-radius: 4px;
}
.skip-link:focus { top: 12px; }

/* --- Header & Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line-titanium);
    background: rgba(12, 16, 21, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}
.nav {
    min-height: 87px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    line-height: 1;
}
.brand img {
    border-radius: 6px;
    border: 1px solid var(--line-titanium);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.brand > span {
    font: 700 27px/.9 var(--display);
    letter-spacing: .04em;
}
.brand b { color: var(--red); text-shadow: 0 0 12px var(--red-glow-soft); }
.brand small {
    display: block;
    font: 8px var(--mono);
    letter-spacing: .12em;
    margin-top: 8px;
    color: var(--muted);
}
.nav nav {
    display: flex;
    gap: 32px;
    font-size: 13px;
    font-family: var(--mono);
    color: var(--muted);
    letter-spacing: .04em;
}
.nav nav a {
    padding-block: 12px;
    position: relative;
    transition: color var(--speed-fast) var(--ease-out-expo);
}
.nav nav a:hover, .text-link:hover {
    color: #fff;
}
.nav nav a:hover::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
}

/* --- Buttons (MoTeC & Racing Switchgear Style) --- */
.button {
    position: relative;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(180deg, var(--red) 0%, #d82333 100%);
    color: #fff;
    padding: 16px 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 4px 18px var(--red-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform var(--speed-fast) var(--ease-out-expo),
                box-shadow var(--speed-norm) var(--ease-out-expo),
                background var(--speed-fast);
    will-change: transform;
}
.button:hover {
    background: linear-gradient(180deg, var(--red-hover) 0%, var(--red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px var(--red-glow);
}
.button > span:last-child { font-size: 22px; line-height: 1; }

.button-small { padding: 10px 18px; gap: 14px; font-size: 13px; }

/* Ice Blue Diagnostic Button (for OBD Bridge) */
.button-ice,
.sniffer-card .button {
    background: linear-gradient(180deg, var(--ice) 0%, #6bc7d2 100%);
    color: #061115;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 18px var(--ice-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.button-ice:hover,
.sniffer-card .button:hover {
    background: linear-gradient(180deg, var(--ice-hover) 0%, var(--ice) 100%);
    box-shadow: 0 8px 28px var(--ice-glow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}
.button-ice:active,
.sniffer-card .button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px var(--ice-glow);
}

.button-outline {
    background: rgba(20, 25, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--alloy);
    border: 1px solid var(--line-titanium);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.button-outline:hover {
    background: rgba(30, 38, 48, 0.8);
    border-color: var(--ice);
    box-shadow: 0 6px 20px var(--ice-glow-soft);
    color: #fff;
    transform: translateY(-2px);
}

.button-light {
    background: linear-gradient(180deg, #ffffff 0%, var(--alloy) 100%);
    color: var(--carbon-deep);
    border-color: #fff;
    min-width: 285px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.button-light:hover {
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.text-link {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    padding-block: 9px;
    color: var(--alloy);
    transition: color var(--speed-fast);
}
.text-link span {
    color: var(--red);
    font-size: 20px;
    line-height: 1;
    transition: transform var(--speed-fast) var(--ease-out-expo);
}
.text-link:hover { color: #fff; }
.text-link:hover span { transform: translateX(3px) translateY(-1px); }

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    padding-top: 70px;
    padding-bottom: 70px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(66px, 7.8vw, 114px);
    line-height: .86;
    letter-spacing: -.025em;
}
.hero h1 > span { color: var(--muted); }
.hero h1 em {
    font-style: normal;
    color: var(--red);
    text-shadow: 0 0 25px var(--red-glow-soft);
}
.hero-description {
    margin-block: 28px 26px;
    color: var(--alloy-dim);
    max-width: 480px;
    font-size: 17px;
    line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-copy > .micro {
    margin-top: 26px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .1em;
}
.hero-copy > .micro span { padding-inline: 8px; color: var(--red); font-weight: 700; }

/* --- 3D HV Battery Thermal Scene (MoTeC CAD View) --- */
.thermal-scene {
    --cool: #b5c4c9;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(35, 45, 55, 0.65), rgba(12, 16, 21, 0.94) 75%),
        url("carbon-pattern-3k.svg");
    background-size: auto, 44px;
    border: 1px solid var(--line-titanium);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-width: 0;
    transition: border-color var(--speed-norm), box-shadow var(--speed-norm);
}
.thermal-scene:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 24px rgba(131, 217, 227, 0.15);
}
.thermal-scene.is-cooling {
    --cool: var(--ice);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 35px var(--ice-glow-soft);
    border-color: rgba(131, 217, 227, 0.4);
}

.scene-top, .scene-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    font: 10px var(--mono);
    letter-spacing: .06em;
}
.scene-top {
    border-bottom: 1px solid var(--line);
    background: rgba(10, 13, 17, 0.7);
}
.demo-tag {
    color: var(--ice);
    font-size: 9px;
    padding: 3px 8px;
    border: 1px solid rgba(131, 217, 227, 0.35);
    background: var(--ice-subtle);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--ice-subtle);
}
/* Standalone badge ice-pulse */
.demo-tag.badge-standalone {
    animation: badge-ice-pulse 2.4s infinite var(--ease-in-out-smooth);
    will-change: box-shadow, border-color;
}
@keyframes badge-ice-pulse {
    0%, 100% {
        box-shadow: 0 0 8px var(--ice-subtle), 0 0 0 1px rgba(131, 217, 227, 0.2);
        border-color: rgba(131, 217, 227, 0.4);
    }
    50% {
        box-shadow: 0 0 16px var(--ice-glow-soft), 0 0 0 2px rgba(131, 217, 227, 0.35);
        border-color: rgba(131, 217, 227, 0.8);
    }
}

.technical-grid {
    height: 330px;
    overflow: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(131, 217, 227, 0.04) 0%, transparent 60%),
        linear-gradient(rgba(131, 217, 227, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(131, 217, 227, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px, 28px 28px;
    perspective: 900px;
}

.orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    left: calc(50% - 150px);
    top: 15px;
    border: 1px solid rgba(131, 217, 227, 0.12);
    border-radius: 50%;
}
.orbit-two {
    width: 410px;
    height: 410px;
    left: calc(50% - 205px);
    top: -40px;
    border-style: dashed;
    border-color: rgba(238, 51, 66, 0.1);
}

.battery-assembly {
    position: absolute;
    width: 290px;
    height: 200px;
    top: 58px;
    left: calc(50% - 145px);
    transform: rotateX(48deg) rotateZ(-28deg);
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out-expo);
}

.battery-lid {
    position: absolute;
    inset: 12px 6px 22px;
    transform: translateZ(65px);
    background: linear-gradient(135deg, rgba(160, 180, 190, 0.35) 0%, rgba(45, 55, 68, 0.25) 50%, rgba(120, 140, 155, 0.45) 100%);
    border: 1px solid rgba(185, 205, 215, 0.45);
    border-radius: 7px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.05);
    transition: transform .8s var(--ease-out-expo), border-color .6s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.is-cooling .battery-lid {
    transform: translateZ(92px);
    border-color: rgba(131, 217, 227, 0.6);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px var(--ice-glow-soft);
}
.battery-lid span {
    position: absolute;
    top: 12px;
    left: 14px;
    font: 8px var(--mono);
    color: #e5edf0;
    letter-spacing: .15em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.battery-lid b {
    position: absolute;
    bottom: 8px;
    right: 18px;
    font: 700 50px var(--display);
    color: rgba(210, 230, 240, 0.85);
    letter-spacing: .02em;
    text-shadow: 0 0 15px rgba(131, 217, 227, 0.4);
}

.battery-pack {
    position: absolute;
    inset: 28px 14px 30px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    transform: translateZ(20px);
}
.battery-pack i {
    border: 1px solid #6b7f88;
    border-top: 5px solid #8d9fa7;
    background: repeating-linear-gradient(0deg, #10151a, #2a333c 2px, #1c232a 4px);
    box-shadow: 3px 6px 0 #070a0e, 0 0 14px rgba(131, 217, 227, 0.1);
    transition: border-top-color .6s var(--ease-out-expo), box-shadow .6s var(--ease-out-expo);
    border-radius: 1px;
}
.is-cooling .battery-pack i {
    border-top-color: var(--ice);
    box-shadow: 3px 6px 0 #070a0e, 0 0 24px rgba(131, 217, 227, 0.55);
}

.battery-base {
    position: absolute;
    inset: 10px 0;
    background: linear-gradient(145deg, #5b6972, #181e24 48%, #44515a);
    border: 2px solid #5a6d78;
    transform: translateZ(-6px);
    border-radius: 8px;
    box-shadow: 5px 10px 0 #0d1217, 20px 35px 35px rgba(0, 0, 0, 0.6);
}
.battery-base span {
    position: absolute;
    bottom: 3px;
    left: 20px;
    font: 7px var(--mono);
    color: #a8bcc5;
    letter-spacing: .12em;
}

.airflow {
    position: absolute;
    inset: 35% 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    transform: rotate(-28deg);
    opacity: .55;
    pointer-events: none;
}
.airflow i {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #9cb1b8 50%, transparent 100%);
    transform-origin: left;
    filter: drop-shadow(0 0 4px rgba(156, 177, 184, 0.5));
    animation: air-pass 3.2s linear infinite;
    will-change: transform, opacity;
}
.is-cooling .airflow {
    opacity: .95;
}
.is-cooling .airflow i {
    animation: air-pass 1.3s linear infinite;
    background: linear-gradient(90deg, transparent 0%, var(--ice) 50%, transparent 100%);
    filter: drop-shadow(0 0 6px var(--ice));
}
.airflow i:nth-child(2) { animation-delay: -.35s; }
.airflow i:nth-child(3) { animation-delay: -.7s; }
.airflow i:nth-child(4) { animation-delay: -1.05s; }

@keyframes air-pass {
    0% { transform: translateX(-80%); opacity: 0; }
    35% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(80%); opacity: 0; }
}

/* Airflow reactive to fan level (via data-fan-level on .simulator) */
[data-active-level="1"] .airflow { opacity: .4; }
[data-active-level="1"] .airflow i { animation-duration: 3.0s; background: linear-gradient(90deg, transparent, var(--ice) 50%, transparent); filter: drop-shadow(0 0 3px var(--ice)); }
[data-active-level="2"] .airflow { opacity: .55; }
[data-active-level="2"] .airflow i { animation-duration: 2.4s; background: linear-gradient(90deg, transparent, #6dcfda 50%, transparent); filter: drop-shadow(0 0 4px #6dcfda); }
[data-active-level="3"] .airflow { opacity: .72; }
[data-active-level="3"] .airflow i { animation-duration: 1.9s; background: linear-gradient(90deg, transparent, #a3c5c9 50%, transparent); filter: drop-shadow(0 0 5px #a3c5c9); }
[data-active-level="4"] .airflow { opacity: .82; }
[data-active-level="4"] .airflow i { animation-duration: 1.5s; background: linear-gradient(90deg, transparent, #c4b88a 50%, transparent); filter: drop-shadow(0 0 5px rgba(200,180,100,0.7)); }
[data-active-level="5"] .airflow { opacity: .92; }
[data-active-level="5"] .airflow i { animation-duration: 1.1s; background: linear-gradient(90deg, transparent, #d9865a 50%, transparent); filter: drop-shadow(0 0 6px rgba(217,134,90,0.8)); }
[data-active-level="6"] .airflow { opacity: 1; }
[data-active-level="6"] .airflow i { animation-duration: 0.7s; background: linear-gradient(90deg, transparent, var(--red) 50%, transparent); filter: drop-shadow(0 0 8px var(--red)) drop-shadow(0 0 14px var(--red-glow-soft)); }

/* Battery pack reactive glow by fan level */
[data-active-level="1"] .battery-pack i { border-top-color: var(--ice); box-shadow: 3px 6px 0 #070a0e, 0 0 10px rgba(131, 217, 227, 0.2); }
[data-active-level="2"] .battery-pack i { border-top-color: #6dcfda; box-shadow: 3px 6px 0 #070a0e, 0 0 12px rgba(109, 207, 218, 0.25); }
[data-active-level="3"] .battery-pack i { border-top-color: #a3c5c9; box-shadow: 3px 6px 0 #070a0e, 0 0 14px rgba(163, 197, 201, 0.3); }
[data-active-level="4"] .battery-pack i { border-top-color: var(--amber-shift); box-shadow: 3px 6px 0 #070a0e, 0 0 16px rgba(243, 156, 18, 0.35); }
[data-active-level="5"] .battery-pack i { border-top-color: #e07a12; box-shadow: 3px 6px 0 #070a0e, 0 0 18px rgba(224, 122, 18, 0.4); }
[data-active-level="6"] .battery-pack i { border-top-color: var(--red); box-shadow: 3px 6px 0 #070a0e, 0 0 22px var(--red-glow-soft); }

.diagram-note {
    position: absolute;
    font: 8px/1.7 var(--mono);
    color: var(--muted);
    letter-spacing: .06em;
}
.diagram-note b { font-weight: 600; color: #e1e7ea; }
.note-left {
    bottom: 35px;
    left: 22px;
    border-left: 2px solid var(--ice);
    padding-left: 10px;
    box-shadow: -4px 0 10px var(--ice-subtle);
}
.note-right { top: 22px; right: 22px; text-align: right; }

.scene-reading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 24px 20px;
    gap: 15px;
}
.scene-reading .micro { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.scene-reading p {
    font: 600 52px/1.1 var(--mono);
    letter-spacing: -.05em;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.scene-reading strong { font-weight: 600; }
.scene-reading p span { font-size: 24px; color: var(--muted); margin-left: 6px; }
.thermal-status {
    font: 600 10px var(--mono);
    color: var(--cool);
    padding-bottom: 10px;
    letter-spacing: .08em;
    text-shadow: 0 0 10px var(--cool);
}

.scene-bottom {
    background: rgba(10, 13, 17, 0.85);
    border-top: 1px solid var(--line);
    padding-block: 14px;
}
.scene-toggle {
    color: var(--ice);
    background: rgba(131, 217, 227, 0.08);
    border: 1px solid rgba(131, 217, 227, 0.3);
    border-radius: 4px;
    font: 600 11px var(--mono);
    min-height: 34px;
    padding: 0 16px;
    transition: all var(--speed-fast) var(--ease-out-expo);
}
.scene-toggle:hover {
    background: rgba(131, 217, 227, 0.2);
    border-color: var(--ice);
    box-shadow: 0 0 15px var(--ice-glow-soft);
    color: #fff;
    transform: translateY(-1px);
}
.scene-toggle span { margin-left: 8px; }
.scene-disclaimer {
    padding: 8px 24px;
    color: var(--muted);
    font-size: 10px;
    background: rgba(8, 10, 14, 0.95);
    letter-spacing: .02em;
}

/* --- Spec Strip (MoTeC Racing Telemetry Bar) --- */
.spec-strip {
    background: linear-gradient(90deg, rgba(20, 26, 33, 0.95) 0%, rgba(26, 34, 44, 0.95) 50%, rgba(20, 26, 33, 0.95) 100%);
    border-block: 1px solid var(--line-titanium);
    color: var(--alloy);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: 28px;
}
.spec-grid > div {
    padding-left: 28px;
    border-left: 1px solid var(--line-titanium);
    display: flex;
    flex-direction: column;
}
.spec-grid > div:first-child { border: 0; padding-left: 0; }
.spec-grid b {
    font: 700 34px/1 var(--display);
    color: #fff;
    letter-spacing: .02em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.spec-grid span {
    font: 10px var(--mono);
    color: var(--ice);
    margin-top: 8px;
    letter-spacing: .08em;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.section-heading .eyebrow, .engineering .eyebrow, .release-section .eyebrow {
    color: var(--red);
}
.section-intro {
    max-width: 380px;
    color: var(--alloy-dim);
    font-size: 15px;
    line-height: 1.6;
}
.section-intro .text-link { margin-top: 14px; }

/* --- Cockpit Simulator Shell (.simulator) --- */
.simulator {
    border: 1px solid var(--line-titanium);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.9) 0%, rgba(14, 18, 23, 0.95) 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}
.sim-topline {
    padding: 16px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 13, 17, 0.75);
}
.sim-brand {
    font: 700 20px var(--display);
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sim-brand::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--green-ready);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--green-glow);
    animation: ready-pulse 2s infinite var(--ease-in-out-smooth);
}
@keyframes ready-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.sim-brand b { color: var(--red); text-shadow: 0 0 10px var(--red-glow-soft); }

.sim-disclaimer {
    padding: 10px 26px;
    background: rgba(131, 217, 227, 0.05);
    color: #adc6cc;
    font: 10px/1.6 var(--mono);
    border-bottom: 1px solid var(--line);
    letter-spacing: .03em;
}

.sim-tabs {
    display: flex;
    padding-inline: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(14, 18, 23, 0.5);
    gap: 6px;
}
.sim-tabs button {
    border: none;
    border-bottom: 3px solid transparent;
    padding: 16px 24px 14px;
    background: none;
    color: var(--muted);
    font: 600 12px var(--mono);
    display: flex;
    gap: 12px;
    align-items: center;
    letter-spacing: .06em;
    transition: color var(--speed-fast), border-color var(--speed-fast), background var(--speed-fast);
}
.sim-tabs button:hover {
    color: var(--alloy);
    background: rgba(255, 255, 255, 0.02);
}
.sim-tabs button[aria-selected="true"] {
    color: #fff;
    border-bottom-color: var(--red);
    background: linear-gradient(180deg, rgba(238, 51, 66, 0.08) 0%, rgba(238, 51, 66, 0) 100%);
    box-shadow: inset 0 -2px 10px var(--red-glow-soft);
}
.sim-tabs button span {
    font-size: 10px;
    color: var(--red);
    font-weight: 700;
}

.sim-panel {
    padding: 34px 30px;
    min-height: 350px;
}

/* --- Panel 1: Fan Dashboard --- */
.fan-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 32px;
    align-items: center;
}
.data-label {
    font: 10px var(--mono);
    color: var(--muted);
    letter-spacing: .08em;
}
.big-reading {
    font: 600 clamp(44px, 5vw, 68px)/1.15 var(--mono);
    letter-spacing: -.05em;
    margin-block: 10px 6px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}
.big-reading small {
    font-size: 24px;
    color: var(--muted);
    margin-left: 6px;
}

.temperature-scale {
    display: flex;
    height: 6px;
    margin-block: 20px 10px;
    background: linear-gradient(90deg, var(--ice) 0 45%, #9ab5b9 45% 65%, var(--amber-shift) 65% 80%, var(--red) 80% 100%);
    border-radius: 3px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.temperature-scale::after {
    content: "";
    position: absolute;
    top: -5px;
    left: var(--marker, 42%);
    width: 4px;
    height: 16px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 8px #ffffff, 0 2px 4px rgba(0,0,0,0.5);
    transition: left .4s var(--ease-out-expo);
    will-change: left;
}
.scale-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font: 10px var(--mono);
}

.fan-center {
    text-align: center;
    padding-block: 14px;
    border-inline: 1px solid var(--line);
}
.fan-ring {
    width: 142px;
    height: 142px;
    margin: 0 auto 16px;
    border: 2px solid rgba(131, 217, 227, 0.35);
    outline: 8px solid rgba(25, 33, 42, 0.9);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #2d3844 0%, #131920 70%);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.7);
    transition: border-color .4s, box-shadow .4s;
}
.fan-rotor {
    width: 96px;
    height: 96px;
    fill: #bcd0d9;
    animation: rotor 1.5s linear infinite;
    filter: drop-shadow(0 0 6px rgba(131, 217, 227, 0.35));
    will-change: transform;
}
@keyframes rotor {
    to { transform: rotate(360deg); }
}
.fan-center strong {
    font: 600 17px var(--mono);
    display: block;
    color: #fff;
    letter-spacing: .05em;
}
.fan-center p {
    color: var(--ice);
    font: 11px var(--mono);
    margin-top: 5px;
    text-shadow: 0 0 8px var(--ice-glow-soft);
}

/* Rotary Motorsport Level Buttons */
.fan-controls .data-label { display: block; margin-bottom: 16px; }
.level-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.level-buttons button {
    position: relative;
    background: rgba(28, 35, 44, 0.85);
    color: #bac7d0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    min-height: 48px;
    font: 600 13px var(--mono);
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--speed-fast) var(--ease-out-expo);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.level-buttons button::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    transition: all var(--speed-fast);
}
.level-buttons button:hover {
    background: rgba(38, 48, 60, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}
.level-buttons button[aria-pressed="true"] {
    background: linear-gradient(180deg, #edf3f5 0%, #cfdce2 100%);
    color: #0d1217;
    border-color: #fff;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), inset 0 1px 0 #fff;
    animation: button-pulse 2s infinite var(--ease-in-out-smooth);
}
.level-buttons button[aria-pressed="true"]::before {
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: led-pulse 1.4s infinite ease-in-out;
}
.level-buttons button[data-level="1"][aria-pressed="true"]::before {
    background: var(--ice);
    box-shadow: 0 0 8px var(--ice), 0 0 16px var(--ice-glow-soft);
    animation-duration: 2.2s;
}
.level-buttons button[data-level="2"][aria-pressed="true"]::before {
    background: #5ecfdb;
    box-shadow: 0 0 8px #5ecfdb, 0 0 16px rgba(94, 207, 219, 0.4);
    animation-duration: 1.8s;
}
.level-buttons button[data-level="3"][aria-pressed="true"]::before {
    background: var(--amber-shift);
    box-shadow: 0 0 8px var(--amber-shift), 0 0 16px var(--amber-glow);
    animation-duration: 1.4s;
}
.level-buttons button[data-level="4"][aria-pressed="true"]::before {
    background: #e07a12;
    box-shadow: 0 0 8px #e07a12, 0 0 16px rgba(224, 122, 18, 0.4);
    animation-duration: 1.0s;
}
.level-buttons button[data-level="5"][aria-pressed="true"]::before {
    background: var(--red);
    box-shadow: 0 0 8px var(--red), 0 0 16px var(--red-glow-soft);
    animation-duration: 0.7s;
}
.level-buttons button[data-level="6"][aria-pressed="true"]::before {
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: led-pulse 0.38s infinite ease-in-out;
}

@keyframes led-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.65); }
}

@keyframes button-pulse {
    0%, 100% { box-shadow: 0 0 16px rgba(255, 255, 255, 0.25), inset 0 1px 0 #fff; }
    50% { box-shadow: 0 0 24px var(--red-glow-soft), inset 0 1px 0 #fff; }
}

.level-buttons button[data-level="6"] {
    border-color: rgba(238, 51, 66, 0.35);
}
.level-buttons button[data-level="6"][aria-pressed="true"] {
    background: linear-gradient(180deg, var(--red) 0%, #b81b28 100%);
    color: #fff;
    border-color: #ff6b78;
    box-shadow: 0 0 25px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: button-pulse-l6 0.76s infinite var(--ease-in-out-smooth);
}
@keyframes button-pulse-l6 {
    0%, 100% { box-shadow: 0 0 20px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 35px var(--red), inset 0 1px 0 #fff; }
}

/* Per-level graduated active background: ice→warm→red heatmap */
.level-buttons button[data-level="1"][aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(131, 217, 227, 0.22) 0%, rgba(131, 217, 227, 0.12) 100%);
    color: #e0f7f9;
    border-color: rgba(131, 217, 227, 0.6);
    box-shadow: 0 0 18px var(--ice-glow-soft), inset 0 1px 0 rgba(131, 217, 227, 0.4);
}
.level-buttons button[data-level="2"][aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(94, 207, 219, 0.2) 0%, rgba(94, 207, 219, 0.10) 100%);
    color: #d0f0f4;
    border-color: rgba(94, 207, 219, 0.55);
    box-shadow: 0 0 18px rgba(94, 207, 219, 0.3), inset 0 1px 0 rgba(94, 207, 219, 0.4);
}
.level-buttons button[data-level="3"][aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.22) 0%, rgba(243, 156, 18, 0.12) 100%);
    color: #fde8b0;
    border-color: rgba(243, 156, 18, 0.6);
    box-shadow: 0 0 18px var(--amber-glow), inset 0 1px 0 rgba(243, 156, 18, 0.4);
}
.level-buttons button[data-level="4"][aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(224, 122, 18, 0.22) 0%, rgba(224, 122, 18, 0.12) 100%);
    color: #fdd5a0;
    border-color: rgba(224, 122, 18, 0.6);
    box-shadow: 0 0 18px rgba(224, 122, 18, 0.35), inset 0 1px 0 rgba(224, 122, 18, 0.4);
}
.level-buttons button[data-level="5"][aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(238, 51, 66, 0.22) 0%, rgba(238, 51, 66, 0.12) 100%);
    color: #ffc4c9;
    border-color: rgba(238, 51, 66, 0.6);
    box-shadow: 0 0 18px var(--red-glow-soft), inset 0 1px 0 rgba(238, 51, 66, 0.4);
    animation: button-pulse 0.9s infinite var(--ease-in-out-smooth);
}

.level-description {
    margin-top: 15px;
    min-height: 44px;
    font-size: 13px;
    color: var(--alloy-dim);
    line-height: 1.5;
}
.demo-event {
    font: 10px/1.7 var(--mono);
    color: var(--ice);
    background: rgba(14, 18, 24, 0.75);
    border: 1px solid var(--line);
    border-left: 3px solid var(--ice);
    padding: 10px 14px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
}

/* --- Panel 2: Speed & Dragy Dashboard --- */
.speed-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}
.speed-dashboard .big-reading {
    font-size: clamp(65px, 7vw, 92px);
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.shift-lights {
    display: flex;
    gap: 6px;
    margin-top: 18px;
    padding: 6px;
    background: rgba(10, 13, 17, 0.9);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.shift-lights i {
    height: 10px;
    background: #1b232a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    flex: 1;
    transition: background 0.08s, box-shadow 0.08s;
    will-change: background, box-shadow;
}
.shift-lights i.on:nth-child(-n+4) {
    background: var(--green-ready);
    box-shadow: 0 0 10px var(--green-glow);
}
.shift-lights i.on:nth-child(n+5):nth-child(-n+7) {
    background: var(--amber-shift);
    box-shadow: 0 0 12px var(--amber-glow);
}
.shift-lights i.on:nth-child(n+8) {
    background: var(--red);
    box-shadow: 0 0 14px var(--red-glow);
}

.timer-readings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-block: 20px;
}
.timer-readings > div {
    background: rgba(14, 18, 24, 0.7);
    border: 1px solid var(--line-titanium);
    border-radius: 6px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.timer-readings output {
    display: block;
    font: 600 32px var(--mono);
    color: var(--ice);
    letter-spacing: -.03em;
    margin-top: 6px;
    text-shadow: 0 0 12px var(--ice-glow-soft);
}

.sim-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.sim-actions .button {
    font-size: 13px;
    padding: 11px 18px;
}
.run-status {
    min-height: 22px;
    color: var(--muted);
    font: 600 11px var(--mono);
    margin-top: 14px;
    letter-spacing: .08em;
}

/* --- Panel 3: Cell Matrix --- */
.sensor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.sensor {
    padding: 22px 20px;
    background: rgba(22, 28, 36, 0.75);
    border: 1px solid var(--line-titanium);
    border-top: 3px solid var(--ice);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--speed-fast) var(--ease-out-expo), box-shadow var(--speed-fast);
}
.sensor:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 16px var(--ice-subtle);
}
.sensor small {
    font: 600 12px var(--mono);
    color: var(--muted);
    letter-spacing: .06em;
    display: block;
}
.sensor output {
    display: block;
    font: 600 30px var(--mono);
    color: #fff;
    padding-top: 14px;
    letter-spacing: -.03em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
.sensor-note {
    font: 12px/1.6 var(--mono);
    color: var(--muted);
    margin-top: 22px;
}

.sim-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: rgba(10, 13, 17, 0.85);
    border-top: 1px solid var(--line);
    padding: 14px 26px;
    color: var(--muted);
    font: 10px/1.6 var(--mono);
    letter-spacing: .04em;
}

/* --- Engineering & Feature List --- */
.engineering {
    display: grid;
    grid-template-columns: .95fr 1fr;
    gap: 90px;
    border-top: 1px solid var(--line);
}
.engineering-heading > p:last-child {
    max-width: 350px;
    color: var(--alloy-dim);
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.6;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-list article {
    padding: 28px;
    background: rgba(16, 22, 30, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    transition: transform var(--speed-fast) var(--ease-out-expo),
                border-color var(--speed-norm) var(--ease-out-expo),
                box-shadow var(--speed-norm) var(--ease-out-expo);
    will-change: transform, box-shadow;
}
.feature-list article:hover {
    transform: translateY(-3px);
    border-color: rgba(238, 51, 66, 0.38);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 0 28px var(--red-subtle),
        0 0 1px rgba(238, 51, 66, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.feature-code {
    color: var(--red);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}
.feature-list h3 {
    margin-bottom: 10px;
    color: #fff;
}
.feature-list p {
    font-size: 15px;
    color: var(--alloy-dim);
    line-height: 1.6;
}
.feature-detail {
    display: block;
    font-size: 10px;
    color: var(--ice);
    margin-top: 14px;
    letter-spacing: .08em;
}

/* --- Setup Section --- */
.setup-section {
    background: linear-gradient(180deg, rgba(16, 20, 26, 0.8) 0%, rgba(12, 15, 19, 0.9) 100%);
    border-block: 1px solid var(--line);
}
.setup-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    margin: 50px 0 40px;
    gap: 36px;
    position: relative;
}
.setup-steps li {
    background: rgba(22, 28, 36, 0.6);
    border: 1px solid var(--line-titanium);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--speed-norm) var(--ease-out-expo), border-color var(--speed-norm), box-shadow var(--speed-norm);
}
.setup-steps li:hover {
    transform: translateY(-3px);
    border-color: rgba(238, 51, 66, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--red-subtle);
}
.step-number {
    display: block;
    color: var(--red);
    font: 700 48px var(--display);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    text-shadow: 0 0 14px var(--red-glow-soft);
}
.setup-steps h3 {
    margin-bottom: 12px;
    color: #fff;
}
.setup-steps p {
    color: var(--alloy-dim);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.compatibility {
    border-block: 1px solid var(--line-titanium);
    padding: 0 8px;
    scroll-margin-top: 100px;
}
.compatibility summary {
    padding-block: 22px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.compatibility summary span {
    color: var(--red);
    font: 24px var(--mono);
    transition: transform var(--speed-fast);
}
.compatibility[open] summary span {
    transform: rotate(45deg);
}
.details-content {
    padding-bottom: 26px;
    max-width: 950px;
    color: var(--alloy-dim);
    font-size: 15px;
    line-height: 1.65;
}
.details-content p + p { margin-top: 14px; }

/* ==========================================================================
   OBD Bridge & Sniffer Section (R3: High-Impact Dual APK & Telemetry Guide)
   ========================================================================== */

.apk-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

/* Main APK Card (Gazoo Racing Rosso Corsa) */
.main-apk-card {
    background: linear-gradient(180deg, rgba(28, 20, 24, 0.88) 0%, rgba(16, 12, 14, 0.96) 100%);
    border: 1px solid rgba(238, 51, 66, 0.28);
    border-left: 4px solid var(--red);
    border-radius: 8px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), 0 0 30px var(--red-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform var(--speed-norm) var(--ease-out-expo), box-shadow var(--speed-norm);
}
.main-apk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 35px var(--red-glow-soft);
    border-color: rgba(238, 51, 66, 0.5);
}
.main-apk-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}
.main-apk-card h3 {
    font-size: 30px;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -.01em;
}
.main-apk-card p {
    color: var(--alloy-dim);
    font-size: 15px;
    line-height: 1.65;
}
.main-apk-card .sniffer-features li::before {
    content: "▸";
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.main-apk-card .sniffer-features code {
    font-family: var(--mono);
    color: var(--red);
    background: rgba(238, 51, 66, 0.12);
    border: 1px solid rgba(238, 51, 66, 0.25);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
}
.main-apk-card .card-actions {
    margin-top: 15px;
}
.main-apk-card .card-actions .button {
    width: 100%;
    margin-bottom: 12px;
}
.main-apk-card .card-actions .micro {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 10px;
}

.sniffer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 24px;
}

.sniffer-card {
    background: linear-gradient(180deg, rgba(20, 27, 34, 0.85) 0%, rgba(13, 18, 23, 0.95) 100%);
    border: 1px solid rgba(131, 217, 227, 0.25);
    border-left: 4px solid var(--ice);
    border-radius: 8px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), 0 0 30px var(--ice-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform var(--speed-norm) var(--ease-out-expo), box-shadow var(--speed-norm);
}
.sniffer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 35px var(--ice-glow-soft);
    border-color: rgba(131, 217, 227, 0.45);
}

.sniffer-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}
.sniffer-card h3 {
    font-size: 30px;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -.01em;
}
.sniffer-card p {
    color: var(--alloy-dim);
    font-size: 15px;
    line-height: 1.65;
}

.sniffer-features {
    list-style: none;
    padding: 0;
    margin: 22px 0 26px;
    border-block: 1px solid var(--line);
    padding-block: 18px;
}
.sniffer-features li {
    padding-block: 8px;
    font-size: 14px;
    color: var(--alloy);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.sniffer-features li::before {
    content: "▸";
    color: var(--ice);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.sniffer-features code {
    font-family: var(--mono);
    color: var(--ice);
    background: rgba(131, 217, 227, 0.12);
    border: 1px solid rgba(131, 217, 227, 0.25);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
}

.sniffer-card .card-actions {
    margin-top: 15px;
}
.sniffer-card .card-actions .button {
    width: 100%;
    margin-bottom: 12px;
}
.sniffer-card .card-actions .micro {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 10px;
}

/* 3-Step Sniffer Guide Box with Illuminated Vertical Axis */
.sniffer-guide-box {
    background: linear-gradient(180deg, rgba(18, 23, 29, 0.85) 0%, rgba(11, 15, 20, 0.95) 100%);
    border: 1px solid var(--line-titanium);
    border-radius: 8px;
    padding: 34px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.guide-header {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}
.guide-header h3 {
    margin-top: 8px;
    font-size: 24px;
    color: #fff;
}

.sniffer-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}
/* Vertical illuminated telemetry rail connecting 01 -> 02 -> 03 */
.sniffer-steps::before {
    content: "";
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--ice) 0%, rgba(131, 217, 227, 0.3) 50%, var(--ice) 100%);
    box-shadow: 0 0 10px var(--ice-glow-soft);
    pointer-events: none;
}
.sniffer-steps li {
    position: relative;
    padding-left: 56px;
}
.sniffer-steps .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(18, 25, 33, 0.95);
    border: 2px solid var(--ice);
    box-shadow: 0 0 14px var(--ice-glow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 16px var(--display);
    color: var(--ice);
    margin: 0;
    padding: 0;
}
.sniffer-steps h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.sniffer-steps p {
    font-size: 14px;
    color: var(--alloy-dim);
    line-height: 1.55;
    margin: 0;
}
.sniffer-steps code {
    font-family: var(--mono);
    color: var(--ice);
    background: rgba(131, 217, 227, 0.12);
    border: 1px solid rgba(131, 217, 227, 0.25);
    padding: 2px 6px;
    border-radius: 3px;
}

/* --- Release Notes Section --- */
.release-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.release-section h2 { margin-bottom: 22px; }
.release-card {
    background: rgba(18, 23, 30, 0.75);
    border: 1px solid var(--line-titanium);
    border-left: 4px solid var(--red);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.release-version {
    display: flex;
    align-items: center;
    gap: 14px;
    font: 600 16px var(--mono);
    color: var(--red);
    margin-bottom: 22px;
}
.release-version span {
    font-size: 9px;
    color: #fff;
    background: var(--red);
    padding: 4px 9px;
    letter-spacing: .08em;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--red-glow-soft);
}
.release-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.3;
}
.release-card ul {
    padding-left: 18px;
    color: var(--alloy-dim);
    font-size: 14px;
    line-height: 1.6;
}
.release-card li { padding-bottom: 8px; }
.release-card > p {
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 16px;
}

/* --- Download Banner Section --- */
.download-section {
    background: radial-gradient(circle at 30% 50%, #d82333 0%, #a81725 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(238, 51, 66, 0.35);
}
.download-section::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 150%;
    border-inline: 2px solid rgba(255, 255, 255, 0.15);
    top: -25%;
    left: 65%;
    transform: skew(-24deg);
    pointer-events: none;
}
.download-inner {
    padding-block: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}
.download-inner .eyebrow { color: #fff; margin-bottom: 18px; }
.download-inner p:not(.eyebrow) { font-size: 11px; margin-top: 15px; text-align: center; }

.download-dual-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.download-dual-actions .button {
    width: 100%;
    min-width: 300px;
}
.download-dual-actions p {
    font-size: 11px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

/* --- Footer --- */
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    padding-block: 50px;
    font-size: 12px;
}
.footer-brand {
    font: 700 24px var(--display);
    letter-spacing: .04em;
}
.footer-brand span {
    font: 8px var(--mono);
    margin-left: 12px;
    color: var(--muted);
    letter-spacing: .1em;
}
.site-footer p {
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.8;
}
.site-footer p a {
    text-decoration: underline;
    color: var(--alloy);
}

.mobile-download { display: none; }

/* --- Preview Page & 404 Pages --- */
.preview-title { font-size: clamp(50px, 6vw, 84px); }
.preview-footnote {
    color: var(--muted);
    font-size: 13px;
    max-width: 780px;
    margin-top: 30px;
    line-height: 1.6;
}
.preview-page .section { padding-block: 55px; }
.no-script {
    padding: 35px;
    border: 1px solid var(--line-titanium);
    background: var(--carbon-card);
    border-radius: 6px;
    color: var(--alloy-dim);
}
.no-script a { text-decoration: underline; color: var(--ice); }

.error-content { padding-block: 60px; position: relative; }
.error-card {
    background: linear-gradient(180deg, rgba(22, 28, 36, 0.88) 0%, rgba(12, 16, 21, 0.96) 100%);
    border: 1px solid var(--line-titanium);
    border-left: 4px solid var(--red);
    border-radius: 8px;
    padding: clamp(30px, 4.5vw, 55px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 35px var(--red-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-width: 820px;
    margin-inline: auto;
}
.error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}
.error-header .eyebrow {
    margin-bottom: 0;
    color: var(--red);
}
.error-number {
    display: block;
    font: 800 clamp(110px, 18vw, 190px)/.8 var(--display);
    color: var(--red);
    margin-bottom: 16px;
    text-shadow: 0 0 40px var(--red-glow-soft);
}
.error-card h1 {
    font-size: clamp(38px, 6.5vw, 72px);
    color: #fff;
    margin-bottom: 16px;
}
.error-card > p {
    color: var(--alloy-dim);
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.65;
    max-width: 620px;
}
.error-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints & High-Refresh OLED Layout Optimization
   ========================================================================== */

@media (min-width: 1600px) {
    .hero { padding-block: 95px; }
    .technical-grid { height: 380px; }
    .battery-assembly { top: 80px; }
}

@media (max-width: 1100px) {
    .shell { width: calc(100% - 56px); }
    .nav nav { gap: 18px; }
    .hero { gap: 24px; }
    .hero h1 { font-size: 8vw; }
    .hero-actions { gap: 14px; }
    .hero-actions .button { padding-inline: 20px; }
    .hero .text-link { font-size: 13px; gap: 10px; }
    .technical-grid { height: 300px; }
    .battery-assembly { transform: rotateX(48deg) rotateZ(-28deg) scale(.85); }
    .scene-reading p { font-size: 44px; }
    .fan-dashboard { gap: 20px; grid-template-columns: 1fr .85fr 1fr; }
    .fan-ring { width: 118px; height: 118px; }
    .fan-rotor { width: 80px; height: 80px; }
    .sim-panel { padding: 26px; }
    .engineering { gap: 65px; }
    .release-section { gap: 40px; }
}

@media (max-width: 800px) {
    .shell { width: calc(100% - 40px); }
    .nav { min-height: 76px; gap: 15px; }
    .nav nav { display: none; }
    .section { padding-block: 65px; }
    .hero { grid-template-columns: 1fr; padding-top: 45px; gap: 42px; }
    .hero h1 { font-size: clamp(72px, 13vw, 105px); }
    .hero-description { max-width: 540px; }
    .hero .text-link { font-size: 14px; gap: 18px; }
    .hero-actions { gap: 20px; }
    .thermal-scene { width: 100%; max-width: 620px; }
    .technical-grid { height: 315px; }
    .battery-assembly { transform: rotateX(48deg) rotateZ(-28deg); }
    .spec-grid b { font-size: 26px; }
    .spec-grid span { font-size: 9px; }
    .spec-grid > div { padding-left: 18px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
    .section-intro { max-width: 490px; }
    .fan-dashboard { grid-template-columns: 1fr 1fr; }
    .fan-center { border-right: 0; }
    .fan-controls { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; }
    .level-description { min-height: 0; }
    .sim-panel { min-height: 470px; }
    .sensor-grid { grid-template-columns: repeat(2, 1fr); }
    .speed-dashboard { gap: 28px; grid-template-columns: 1fr; }
    .speed-dashboard .big-reading { font-size: 64px; }
    .timer-readings { margin-block: 14px; }
    .engineering { grid-template-columns: 1fr; gap: 45px; }
    .engineering-heading > p:last-child { max-width: 550px; }
    .setup-steps { grid-template-columns: 1fr; gap: 24px; }
    .release-section { grid-template-columns: 1fr; gap: 30px; }
    .apk-showcase-grid, .sniffer-grid { grid-template-columns: 1fr; gap: 30px; }
    .download-inner { gap: 30px; }
    .download-inner h2 { font-size: 48px; }
    .download-inner .button { min-width: 235px; font-size: 14px; padding-inline: 20px; }
}

@media (max-width: 520px) {
    html { scroll-padding-top: 90px; }
    .shell { width: calc(100% - 32px); }
    .nav { min-height: 70px; gap: 8px; }
    .brand { gap: 8px; }
    .brand img { width: 34px; height: 34px; }
    .brand > span { font-size: 24px; }
    .brand small { font-size: 6px; }
    .nav .button { font-size: 12px; padding: 9px 12px; gap: 10px; }
    .nav .button > span:not(:last-child) { display: none; }
    .hero { padding-block: 35px 40px; gap: 35px; }
    .hero .eyebrow { font-size: 9px; gap: 7px; margin-bottom: 22px; }
    .hero h1 { font-size: 17vw; }
    .hero-description { font-size: 15px; margin-block: 24px; }
    .hero-actions { gap: 12px; }
    .hero-actions .button { font-size: 14px; padding: 14px 20px; }
    .hero .text-link { font-size: 12px; gap: 12px; }
    .hero-copy > .micro { font-size: 8px; }
    .scene-top { padding-inline: 15px; font-size: 8px; }
    .technical-grid { height: 275px; }
    .battery-assembly { top: 34px; transform: rotateX(48deg) rotateZ(-28deg) scale(.82); }
    .diagram-note { font-size: 7px; }
    .note-left { left: 15px; bottom: 20px; }
    .note-right { right: 15px; top: 15px; }
    .scene-reading { padding-inline: 15px; }
    .scene-reading p { font-size: 42px; }
    .thermal-status { font-size: 8px; }
    .scene-bottom { padding: 10px 15px; font-size: 9px; }
    .scene-toggle { font-size: 10px; }
    .scene-disclaimer { padding-inline: 15px; font-size: 9px; }
    .spec-grid { grid-template-columns: 1fr 1fr; gap: 22px 0; padding-block: 24px; }
    .spec-grid > div:nth-child(3) { border: none; padding-left: 0; }
    .spec-grid > div:nth-child(even) { padding-left: 25px; }
    .spec-grid b { font-size: 29px; }
    .spec-grid span { font-size: 8px; }
    .section { padding-block: 50px; }
    .eyebrow { font-size: 10px; margin-bottom: 18px; }
    h2 { font-size: 43px; }
    .section-heading { margin-bottom: 26px; gap: 20px; }
    .section-intro { font-size: 14px; }
    .sim-topline { padding: 13px 15px; }
    .sim-brand { font-size: 16px; }
    .sim-topline .micro { font-size: 8px; }
    .sim-disclaimer { padding: 10px 15px; font-size: 9px; }
    .sim-tabs { padding: 0; }
    .sim-tabs button { flex: 1; justify-content: center; font-size: 10px; padding: 16px 5px; }
    .sim-tabs button span { display: none; }
    .sim-panel { padding: 22px 16px; min-height: 465px; }
    .fan-dashboard { gap: 24px 16px; }
    .big-reading { font-size: 39px; }
    .big-reading small { font-size: 18px; }
    .data-label { font-size: 9px; }
    .fan-ring { width: 100px; height: 100px; }
    .fan-rotor { width: 66px; height: 66px; }
    .fan-center strong { font-size: 13px; }
    .fan-center p { font-size: 8px; }
    .fan-controls { padding-top: 20px; }
    .sim-footer { padding: 10px 15px; font-size: 8px; gap: 12px; }
    .sim-footer span:last-child { text-align: right; }
    .sensor { padding: 18px 13px; }
    .sensor output { font-size: 25px; }
    .sensor-note { font-size: 12px; }
    .timer-readings output { font-size: 26px; }
    .speed-dashboard { gap: 20px; }
    .sim-actions .button { padding: 10px 12px; }
    .setup-steps { gap: 20px; margin-top: 25px; }
    .setup-steps .step-number { font-size: 36px; margin-bottom: 16px; padding-bottom: 8px; }
    .setup-steps h3 { font-size: 24px; }
    .setup-steps p { font-size: 14px; }
    .setup-steps .text-link { font-size: 13px; }
    .compatibility summary { font-size: 14px; padding-right: 6px; }
    .compatibility summary span { font-size: 20px; }
    .release-card { padding: 24px; }
    .apk-showcase-grid { gap: 20px; }
    .main-apk-card, .sniffer-card, .sniffer-guide-box { padding: 22px 18px; }
    .main-apk-card h3, .sniffer-card h3 { font-size: 24px; }
    .download-inner { flex-direction: column; align-items: flex-start; padding-block: 45px; }
    .download-inner h2 { font-size: 52px; }
    .download-inner > div:last-child { width: 100%; }
    .download-inner .button,
    .download-dual-actions .button,
    .button-light {
        min-width: 0 !important;
        width: 100%;
    }
    .download-inner p:not(.eyebrow) { text-align: left; }
    .error-card { padding: 24px 18px; }
    .error-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .error-actions .button, .error-actions .button-outline, .error-actions .button-ice { width: 100%; justify-content: center; min-width: 0 !important; }
    .site-footer { flex-direction: column; gap: 20px; padding-block: 35px 110px; }
    
    .mobile-download {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        justify-content: space-between;
        align-items: center;
        padding: 12px 18px max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line-titanium);
        background: rgba(12, 16, 21, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    }
    .mobile-download > span {
        font: 700 20px/1 var(--display);
        letter-spacing: .03em;
    }
    .mobile-download small {
        display: block;
        margin-top: 6px;
        font: 8px var(--mono);
        color: var(--ice);
    }
    
    .preview-page .nav > .text-link { font-size: 11px; gap: 5px; }
    .preview-page .nav .brand small { display: none; }
    .preview-page .nav .brand img { display: none; }
    .preview-page .site-footer, .error-page .site-footer { padding-bottom: 35px; }
    .preview-page .section { padding-block: 35px; }
}

/* ==========================================================================
   Mobile Performance & Legacy Android Optimization (60 FPS / No Jank)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Prevent expensive full-screen background re-rasterization on every scroll tick */
    body {
        background-attachment: scroll, scroll, scroll, scroll, scroll, scroll !important;
        background-image:
            radial-gradient(ellipse 900px 500px at 50% -80px, rgba(238, 51, 66, 0.12), transparent 70%),
            radial-gradient(ellipse at 50% 50%, rgba(14, 18, 23, 0.5) 0%, rgba(4, 6, 8, 0.98) 100%),
            url("carbon-pattern-3k.svg") !important;
        background-size: 100% auto, 100% 100%, 48px 48px !important;
        background-repeat: no-repeat, no-repeat, repeat !important;
    }

    /* 2. Remove fixed full-screen pseudo overlays that cause GPU compositing layers */
    body::before {
        display: none !important;
    }

    /* 3. Disable heavy backdrop-filter blur on low-end mobile GPUs, use crisp solid colors */
    .site-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #0d1117 !important;
    }

    .mobile-download {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #0d1117 !important;
    }

    .feature-list article,
    .sim-panel,
    .release-card,
    .main-apk-card,
    .sniffer-card,
    .sniffer-guide-box,
    .error-card,
    .setup-steps li {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #131820 !important;
    }

    /* 4. Use content-visibility to skip rendering off-screen DOM on lower-memory phones */
    .section,
    .spec-strip,
    .engineering,
    .setup-section,
    .sniffer-section,
    .release-section,
    .download-section {
        content-visibility: auto;
        contain-intrinsic-size: 600px;
    }

    /* 5. Smooth scrolling optimization */
    * {
        text-rendering: optimizeSpeed;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
