:root {
    --char: #17130F;
    --char2: #0F0C09;
    --ember: #C1541B;
    --ember2: #E06A28;
    --flame: #F2A93B;
    --brick: #7A2A10;
    --ash: #B8AFA3;
    --ash-dark: #6E655A;
    --cream: #F5EEE1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--char);
    color: var(--cream);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Oswald', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--char2);
}

::-webkit-scrollbar-thumb {
    background: var(--ember);
    border-radius: 3px;
}

/* ── NAVBAR ── */
#navbar {
    transition: all 0.35s ease;
    border-bottom: 1px solid rgba(245, 238, 225, 0.06);
}

#navbar.scrolled {
    background: rgba(15, 12, 9, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

/* ── EMBER GLOW SIGNATURE ── */
.ember-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ember2);
    box-shadow: 0 0 0 0 rgba(224, 106, 40, 0.6);
    animation: emberPulse 2.4s ease-in-out infinite;
}

@keyframes emberPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 106, 40, 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(224, 106, 40, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(224, 106, 40, 0);
    }
}

.ember-particle {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--flame);
    opacity: 0;
    animation: emberRise linear infinite;
}

@keyframes emberRise {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(1);
    }

    10% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: translateY(-420px) translateX(var(--drift, 20px)) scale(0.3);
    }
}

/* ── HERO SLIDER ── */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--char2);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 19, 15, 0.95) 0%, rgba(23, 19, 15, 0.6) 50%, rgba(15, 12, 9, 0.8) 100%);
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 84, 27, 0.35) 0%, transparent 65%);
    filter: blur(10px);
    z-index: 2;
}

.hero-glow2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 42, 16, 0.45) 0%, transparent 65%);
    z-index: 2;
}

.grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 3;
}

/* ── GAUGE / STAT STRIP ── */
.gauge-card {
    border: 1px solid rgba(245, 238, 225, 0.1);
    background: rgba(245, 238, 225, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.gauge-card:hover {
    border-color: rgba(224, 106, 40, 0.4);
    background: rgba(245, 238, 225, 0.08);
    transform: translateY(-3px);
}

/* ── BADGE ── */
.badge-ember {
    background: rgba(224, 106, 40, 0.12);
    color: var(--flame);
    border: 1px solid rgba(224, 106, 40, 0.25);
}

.badge-ash {
    background: rgba(184, 175, 163, 0.08);
    color: var(--ash);
    border: 1px solid rgba(184, 175, 163, 0.18);
}

/* ── SECTION BG ── */
.bg-panel {
    background: var(--char2);
}

.bg-panel-alt {
    background: linear-gradient(180deg, var(--char2) 0%, #140F0B 100%);
}

/* ── PRODUCT CARD ── */
.product-card {
    background: rgba(245, 238, 225, 0.025);
    border: 1px solid rgba(245, 238, 225, 0.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ember), var(--flame));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 10;
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-card:hover {
    border-color: rgba(224, 106, 40, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ── PROCESS LINE ── */
.process-line {
    background: repeating-linear-gradient(180deg, rgba(224, 106, 40, 0.4) 0 8px, transparent 8px 16px);
    width: 2px;
}

.process-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--char2);
    border: 2px solid var(--ember2);
}

/* ── SPEC TABLE ── */
.spec-row {
    border-bottom: 1px dashed rgba(245, 238, 225, 0.1);
}

.spec-row:last-child {
    border-bottom: none;
}

/* ── FORM ── */
.form-input {
    border: 1.5px solid rgba(245, 238, 225, 0.14);
    background: rgba(245, 238, 225, 0.04);
    transition: all 0.3s;
    color: var(--cream);
}

.form-input:focus {
    outline: none;
    border-color: var(--ember2);
    background: rgba(245, 238, 225, 0.07);
    box-shadow: 0 0 0 3px rgba(224, 106, 40, 0.15);
}

.form-input::placeholder {
    color: var(--ash-dark);
}

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: none;
}

.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

.d4 {
    transition-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.a1 {
    animation: fadeUp 0.8s ease 0.1s both;
}

.a2 {
    animation: fadeUp 0.8s ease 0.25s both;
}

.a3 {
    animation: fadeUp 0.8s ease 0.4s both;
}

.a4 {
    animation: fadeUp 0.8s ease 0.55s both;
}

.line-ember {
    width: 44px;
    height: 3px;
    background: var(--ember2);
    border-radius: 2px;
}