/* ==========================================================
   KRISPYGAUGE — styles.css
   Black + Amber performance product launch page
   ========================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --amber:        #FF8C00;
    --amber-light:  #FFB347;
    --amber-dim:    #CC7000;
    --amber-glow:   rgba(255, 140, 0, 0.35);
    --amber-faint:  rgba(255, 140, 0, 0.08);
    --amber-border: rgba(255, 140, 0, 0.2);
    --amber-border-strong: rgba(255, 140, 0, 0.5);

    --bg:           #080808;
    --bg-alt:       #0C0C0C;
    --bg-card:      #101010;
    --bg-card-h:    #161616;

    --text:         #EBEBEB;
    --text-muted:   #888888;
    --text-dim:     #555555;

    --font-display: 'Orbitron', 'Courier New', monospace;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius:       4px;
    --nav-h:        72px;
    --section-pad:  7rem 2.5rem;
    --max-w:        1320px;
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 2px; }

/* ---- Shared ---- */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--section-pad);
}

.overline {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--amber);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 500px;
    margin-top: -1.5rem;
    margin-bottom: 3.5rem;
    line-height: 1.65;
}

.section-header {
    margin-bottom: 0;
}

.text-amber { color: var(--amber); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.1rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--amber);
    color: #000;
    box-shadow: 0 0 28px rgba(255, 140, 0, 0.28);
}
.btn-primary:hover {
    background: var(--amber-light);
    box-shadow: 0 0 55px rgba(255, 140, 0, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--amber);
    border: 1px solid var(--amber-border);
}
.btn-secondary:hover {
    background: var(--amber-faint);
    border-color: var(--amber);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.15);
    transform: translateY(-2px);
}

.btn-buy {
    background: var(--amber);
    color: #000;
    font-size: 0.85rem;
    font-weight: 900;
    padding: 1.15rem 2.8rem;
    letter-spacing: 0.18em;
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.35);
    width: 100%;
    justify-content: center;
}
.btn-buy:hover {
    background: var(--amber-light);
    box-shadow: 0 0 90px rgba(255, 140, 0, 0.6);
    transform: translateY(-3px);
}

/* ---- Reveal Animation ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 140, 0, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
    background: rgba(8, 8, 8, 0.97);
    border-bottom-color: rgba(255, 140, 0, 0.15);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    user-select: none;
}
.logo-krispy { color: var(--text); }
.logo-gauge  { color: var(--amber); }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--amber) !important;
    color: #000 !important;
    padding: 0.5rem 1.4rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
    background: var(--amber-light) !important;
    box-shadow: 0 0 20px var(--amber-glow) !important;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.25s ease;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    z-index: 999;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--amber-border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 140, 0, 0.07);
    transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--amber); }
.nav-mobile-menu a:last-child { border-bottom: none; }
.mobile-cta {
    color: var(--amber) !important;
    font-weight: 700 !important;
}


/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

/* Dot grid background */
.hero-dot-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 140, 0, 0.14) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 75% 75% at 62% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 62% 50%, black 20%, transparent 75%);
    pointer-events: none;
}

/* Radial glow behind gauge */
.hero-radial-glow {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.09) 0%, rgba(255, 140, 0, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Scanlines */
.scanlines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.08) 3px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-w);
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 3rem;
}

/* Hero text side */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    align-items: flex-start;
}

.hero-badge-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-badge {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 140, 0, 0.35);
    background: rgba(255, 140, 0, 0.06);
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}
.hero-title-krispy { color: var(--text); }
.hero-title-gauge  {
    color: var(--amber);
    text-shadow:
        0 0 40px rgba(255, 140, 0, 0.7),
        0 0 80px rgba(255, 140, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 400px;
}

.hero-ctas {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-stat-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 140, 0, 0.12);
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--amber);
    line-height: 1;
}
.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 140, 0, 0.15);
}

/* Hero gauge side */
.hero-gauge-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative rotating rings behind canvas */
.gauge-outer-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 140, 0, 0.1);
    pointer-events: none;
}
.gauge-outer-ring:nth-child(1) {
    width: 105%;
    height: 105%;
    animation: ring-spin 30s linear infinite;
    border-style: dashed;
}
.gauge-outer-ring--2 {
    width: 115%;
    height: 115%;
    animation: ring-spin 50s linear infinite reverse;
    border-color: rgba(255, 140, 0, 0.05);
}
/* Orbit dot on ring 1 */
.gauge-outer-ring:nth-child(1)::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--amber), 0 0 24px rgba(255, 140, 0, 0.4);
}

@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#gaugeCanvas {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1;
    filter: drop-shadow(0 0 50px rgba(255, 140, 0, 0.18));
}

.gauge-ambient-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.gauge-label-bottom {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255, 140, 0, 0.35);
    white-space: nowrap;
    z-index: 3;
    text-transform: uppercase;
}

/* Scroll cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.hero-scroll-cue:hover { opacity: 1; }

.scroll-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.scroll-chevrons span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--amber);
    border-bottom: 1.5px solid var(--amber);
    transform: rotate(45deg);
    animation: chevron-bounce 1.8s ease-in-out infinite;
}
.scroll-chevrons span:nth-child(2) { animation-delay: 0.2s; opacity: 0.6; }
.scroll-chevrons span:nth-child(3) { animation-delay: 0.4s; opacity: 0.3; }

@keyframes chevron-bounce {
    0%, 100% { opacity: 0.3; transform: rotate(45deg) translateY(-2px); }
    50%       { opacity: 1;   transform: rotate(45deg) translateY(2px); }
}


/* ==========================================================
   MARQUEE STRIP
   ========================================================== */
.marquee-strip {
    width: 100%;
    overflow: hidden;
    background: var(--amber);
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.25);
    position: relative;
    z-index: 10;
}
.marquee-track { overflow: hidden; }
.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.mq-item {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 2rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #000;
    white-space: nowrap;
    user-select: none;
}
.mq-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    flex-shrink: 0;
}


/* ==========================================================
   PRODUCT SHOWCASE
   ========================================================== */
.showcase {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}
.showcase::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.3), transparent);
}

.showcase-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--section-pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

/* Visual side */
.showcase-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-gauge-container {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.showcase-orbit-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 140, 0, 0.18);
    animation: ring-spin 18s linear infinite;
}
.showcase-orbit-ring::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    margin-left: -4px;
    width: 8px; height: 8px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--amber);
}

#showcaseCanvas {
    width: 100%;
    aspect-ratio: 1;
    filter: drop-shadow(0 0 40px rgba(255, 140, 0, 0.25));
    position: relative;
    z-index: 2;
}

.showcase-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 8, 8, 0.92);
    border: 1px solid var(--amber-border);
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius);
    text-align: center;
    z-index: 5;
}
.showcase-badge--left  { left: -50px; }
.showcase-badge--right { right: -50px; }

.sb-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--amber);
    line-height: 1;
}
.sb-unit {
    display: block;
    font-family: var(--font-display);
    font-size: 0.58rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* Info side */
.showcase-info {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.01em;
}
.showcase-body {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 480px;
}
.showcase-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0.25rem 0;
}
.showcase-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 400;
}
.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.check-icon svg { width: 100%; height: 100%; }


/* ==========================================================
   FEATURES GRID
   ========================================================== */
.features {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.1);
    margin-top: 3.5rem;
}

.feat-card {
    position: relative;
    background: var(--bg-card);
    padding: 2.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    overflow: hidden;
    transition: background 0.3s ease;
}
.feat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feat-card:hover { background: var(--bg-card-h); }
.feat-card:hover::after { transform: scaleX(1); }

/* Corner glow on hover */
.feat-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.feat-card:hover::before { opacity: 1; }

.feat-card--highlight {
    background: rgba(255, 140, 0, 0.03);
    border-right: 1px solid rgba(255, 140, 0, 0.2);
    border-left: 1px solid rgba(255, 140, 0, 0.2);
}
.feat-card--special {
    background: rgba(255, 140, 0, 0.05);
}

.feat-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--amber);
    color: #000;
    font-family: var(--font-display);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.22rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
}
.feat-badge--unique {
    background: transparent;
    color: var(--amber);
    border: 1px solid var(--amber);
}

.feat-icon-wrap {
    width: 50px;
    height: 50px;
}
.feat-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.feat-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.04em;
}
.feat-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.68;
}


/* ==========================================================
   COMPATIBILITY
   ========================================================== */
.compat {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}
.compat::before, .compat::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
}
.compat::before {
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.25), transparent);
}
.compat::after {
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.25), transparent);
}

.compat-bg-word {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 18rem);
    font-weight: 900;
    color: rgba(255, 140, 0, 0.025);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.compat-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.compat-text { display: flex; flex-direction: column; gap: 1.5rem; }

.compat-body {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.78;
    margin-top: -0.5rem;
}

.compat-unique-block {
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-left: 3px solid var(--amber);
    padding: 1.4rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.unique-header { margin-bottom: 0.1rem; }
.unique-pill {
    display: inline-block;
    background: var(--amber);
    color: #000;
    font-family: var(--font-display);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 0.22rem 0.65rem;
    border-radius: 2px;
    text-transform: uppercase;
}
.unique-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.02em;
}
.compat-unique-block p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.68;
}

/* CAN diagram */
.compat-visual {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding-top: 0.5rem;
}

.can-diagram {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.can-node {
    background: var(--bg-card);
    border: 1px solid var(--amber-border);
    border-radius: 6px;
    padding: 1.1rem 1rem;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.06);
}
.cn-label-top {
    display: block;
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--amber);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.cn-body {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cn-body svg { width: 52px; height: 52px; }
.cn-label-bottom {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

#diagCanvas {
    width: 60px;
    height: 60px;
}

/* Animated CAN wire */
.can-wire {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.can-wire-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 140, 0, 0.15);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}
.can-wire-pulse {
    position: absolute;
    top: 0; left: -35%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    animation: pulse-travel 2.2s ease-in-out infinite;
}
@keyframes pulse-travel {
    0%   { left: -35%; }
    100% { left: 135%; }
}
.can-wire-pulse--reverse {
    position: absolute;
    top: 0; left: 135%;
    width: 35%;
    height: 100%;
    background: linear-gradient(270deg, transparent, #FFE040, transparent);
    animation: pulse-travel-reverse 0.65s ease-in forwards;
    pointer-events: none;
}
@keyframes pulse-travel-reverse {
    0%   { left: 135%; }
    100% { left: -35%; }
}
.can-wire-label {
    font-family: var(--font-display);
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    color: var(--amber);
    text-transform: uppercase;
    opacity: 0.7;
}

/* Keypad emulator */
.keypad-emulator {
    background: var(--bg-card);
    border: 1px solid var(--amber-border);
    border-radius: 6px;
    overflow: hidden;
}
.kp-header {
    background: rgba(255, 140, 0, 0.06);
    border-bottom: 1px solid var(--amber-border);
    padding: 0.75rem 1.1rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--amber);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.kp-dot {
    width: 7px; height: 7px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--amber);
    animation: dot-pulse 1.4s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%       { opacity: 1;   transform: scale(1.1); }
}
.kp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 140, 0, 0.08);
    padding: 1px;
}
.kp-btn {
    background: var(--bg-alt);
    border: 1px solid transparent;
    padding: 8px 4px 10px;
    aspect-ratio: 1 / 1;
    font-family: var(--font-display);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1.2;
}
.kp-label {
    display: block;
}
.kp-leds {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kp-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: block;
    transition: background 0.2s, box-shadow 0.2s;
}
.kp-led--green { background: rgba(0, 200, 80, 0.18); }
.kp-led--amber { background: rgba(255, 140, 0, 0.18); }
.kp-led--red   { background: rgba(220, 40, 40, 0.18); }

.kp-btn:hover {
    background: rgba(255, 140, 0, 0.08);
    border-color: rgba(255, 140, 0, 0.3);
    color: var(--text);
}
.kp-btn--active {
    background: rgba(255, 140, 0, 0.12);
    border-color: rgba(255, 140, 0, 0.5);
    color: var(--text);
}
.kp-btn--active .kp-led--green {
    background: #00c850;
    box-shadow: 0 0 6px #00c850, 0 0 12px rgba(0, 200, 80, 0.5);
}
.kp-btn--active .kp-led--amber {
    background: #FF8C00;
    box-shadow: 0 0 6px #FF8C00, 0 0 12px rgba(255, 140, 0, 0.5);
}


/* ==========================================================
   SPECS TABLE
   ========================================================== */
.specs {
    background: var(--bg);
}

.specs-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--amber-border);
    border-radius: var(--radius);
    margin-top: 0;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid rgba(255, 140, 0, 0.08);
    transition: background 0.18s;
}
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr:hover { background: rgba(255, 140, 0, 0.03); }

.spec-key {
    padding: 1.1rem 1.6rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 38%;
    border-right: 1px solid rgba(255, 140, 0, 0.08);
    vertical-align: middle;
}
.spec-val {
    padding: 1.1rem 1.6rem;
    font-size: 0.95rem;
    color: var(--text);
    vertical-align: middle;
}
.spec-val--highlight {
    color: var(--amber);
    font-weight: 500;
}


/* ==========================================================
   BUY SECTION
   ========================================================== */
.buy {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}
.buy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.3), transparent);
}

.buy-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(255, 140, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.buy-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.buy-header { display: flex; flex-direction: column; gap: 0.4rem; }
.buy-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    color: var(--amber);
    letter-spacing: 0.04em;
    text-shadow: 0 0 60px rgba(255, 140, 0, 0.45), 0 0 120px rgba(255, 140, 0, 0.2);
}
.buy-subtitle {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.buy-card {
    background: var(--bg-card);
    border: 1px solid var(--amber-border);
    border-radius: 8px;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 0 80px rgba(255, 140, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.buy-card-top {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

#buyCanvas {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 25px rgba(255, 140, 0, 0.3));
}

.buy-features {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.buy-features li {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bf-check {
    color: var(--amber);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.buy-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}
.buy-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}


/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    background: #050505;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3.5rem 2.5rem 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}
.footer-brand p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 140px;
}
.footer-nav-heading {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--amber);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--amber); }

.footer-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    font-size: 0.78rem;
    color: #aaaaaa;
}
.footer-bottom a {
    color: var(--amber);
    text-decoration: none;
}
.footer-bottom > p:first-child {
    flex: 1;
}
.footer-credit {
    flex: 1;
    text-align: right;
}
.footer-badge {
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .compat-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .compat-bg-word { font-size: 10rem; }
}

@media (max-width: 900px) {
    :root { --section-pad: 5rem 2rem; }

    .showcase-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 2rem;
    }
    .showcase-visual { max-width: 360px; margin: 0 auto; }
    .showcase-badge--left  { left: -35px; }
    .showcase-badge--right { right: -35px; }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 1.5rem 2rem;
    }
    .hero-text {
        align-items: center;
        order: 2;
    }
    .hero-gauge-wrap {
        order: 1;
        max-width: min(320px, 75vw);
        width: 100%;
        margin: 0 auto;
    }
    .hero-subtitle { max-width: 100%; }
    .hero-ctas { justify-content: center; }
    .hero-stat-row { justify-content: center; }
    .hero-radial-glow { left: 50%; right: auto; transform: translate(-50%, -50%); }

    .footer-top { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: flex; }

    .features-grid { grid-template-columns: 1fr; }

    .can-diagram {
        gap: 0.75rem;
    }
    .can-node {
        padding: 0.7rem 0.5rem;
        flex-shrink: 1;
    }
    .cn-body svg, #diagCanvas {
        width: 38px;
        height: 38px;
    }
    .can-wire-label { white-space: nowrap; font-size: 0.46rem; }

    .buy-card-top {
        flex-direction: column;
        align-items: center;
    }
    .buy-features { text-align: center; align-items: center; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-badges { justify-content: center; }
}

@media (max-width: 480px) {
    :root { --section-pad: 4rem 1.5rem; }

    .hero-gauge-wrap { max-width: min(240px, 62vw); }
    .showcase-visual { max-width: min(240px, 62vw); }

    .showcase-inner { padding: 4rem 1.5rem; }
    .nav { padding: 0 1.5rem; }

    .hero-title { font-size: clamp(3.2rem, 14vw, 5rem); }

    .showcase-badge--left,
    .showcase-badge--right { display: none; }

    .buy-card { padding: 1.75rem 1.5rem; }

    .footer-inner { padding: 3rem 1.5rem 1.75rem; }
}
