/* ==========================================================
   DAY ZERO AI — "GPU to AI. 0Day."
   Cinematic 4-Act Scroll Narrative
   ========================================================== */

/* ======== SECTION SHELL ======== */
.dz-section {
    background: linear-gradient(180deg, #080d18 0%, #0a1222 30%, #0c1628 70%, #080d18 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.dz-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 400px at 20% 30%, rgba(0,200,83,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 80% 60%, rgba(124,77,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.dz-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,200,83,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,200,83,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

/* ======== ACT STRUCTURE ======== */
.dz-act {
    position: relative;
    z-index: 1;
}

/* =============================================================
   ACT 1: THE PROBLEM — Full impact headline
   ============================================================= */
.dz-act-problem {
    padding: 64px 0 28px;
    text-align: center;
}

.dz-label {
    margin-bottom: 12px;
}
.dz-label span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(0,200,83,0.55);
    border: 1px solid rgba(0,200,83,0.15);
    padding: 5px 18px;
    border-radius: 20px;
    background: rgba(0,200,83,0.04);
}

.dz-headline {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: -1.5px;
    line-height: 1.25;
    max-width: 800px;
    margin: 0 auto;
}
.dz-headline .dz-gap-word {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ff6d00, #ff9100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Pulsing underline on "Gap" */
.dz-headline .dz-gap-word::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6d00, #ff9100);
    border-radius: 2px;
    animation: gapPulse 2.5s ease-in-out infinite;
}
@keyframes gapPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.6); }
    50% { opacity: 1; transform: scaleX(1); }
}


/* =============================================================
   ACT 2: THE CONTRAST — Others (painful) vs Maxta (instant)
   ============================================================= */
.dz-act-contrast {
    padding: 0 0 32px;
    max-width: 880px;
    margin: 0 auto;
}

/* --- Path container --- */
.dz-path {
    padding: 20px 24px;
    border-radius: 16px;
    position: relative;
}
.dz-path-others {
    background: rgba(255,60,60,0.04);
    border: 1px solid rgba(255,80,80,0.12);
}
.dz-path-maxta {
    background: rgba(0,200,83,0.04);
    border: 1px solid rgba(0,200,83,0.15);
}

.dz-path-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.dz-path-others .dz-path-label { color: #ff6b6b; }
.dz-path-maxta .dz-path-label { color: #00C853; }

/* --- Step chain --- */
.dz-path-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.dz-step {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-8px);
    animation: stepReveal 0.4s ease forwards;
    animation-delay: var(--step-delay, 0s);
}
/* Pause animation until scrolled into view */
.dz-path:not(.visible) .dz-step {
    animation-play-state: paused;
}
.dz-path.visible .dz-step {
    animation-play-state: running;
}

@keyframes stepReveal {
    to { opacity: 1; transform: translateX(0); }
}

.dz-step-text {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.dz-step-pain .dz-step-text {
    background: rgba(255,60,60,0.08);
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,80,80,0.08);
}
.dz-step-win .dz-step-text {
    background: rgba(0,200,83,0.12);
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,200,83,0.2);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 20px;
}

/* Connector between steps */
.dz-step-connector {
    display: flex;
    align-items: center;
    padding: 0 4px;
}
.dz-connector-line {
    width: 20px;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.dz-connector-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.dz-connector-green .dz-connector-line {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,200,83,0.3), rgba(0,200,83,0.8));
}
.dz-connector-green .dz-connector-dot {
    width: 6px;
    height: 6px;
    background: #00C853;
    box-shadow: 0 0 10px rgba(0,200,83,0.5);
}

/* Verdict (time) */
.dz-path-verdict {
    margin-top: 10px;
    text-align: right;
}
.dz-verdict-time {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 6px;
}
.dz-path-others .dz-verdict-time {
    color: #ff6b6b;
    background: rgba(255,60,60,0.08);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}
.dz-verdict-green .dz-verdict-time {
    color: #00C853;
    background: rgba(0,200,83,0.1);
    font-size: 16px;
    letter-spacing: 2px;
}

/* --- VS divider --- */
.dz-vs {
    text-align: center;
    padding: 10px 0;
}
.dz-vs span {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.15);
    position: relative;
}
.dz-vs span::before,
.dz-vs span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: rgba(255,255,255,0.06);
}
.dz-vs span::before { right: calc(100% + 16px); }
.dz-vs span::after { left: calc(100% + 16px); }

/* --- Factory Badge --- */
.dz-factory-badge {
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0,200,83,0.7);
    letter-spacing: 1px;
}
.dz-factory-badge i {
    font-size: 15px;
    color: rgba(0,200,83,0.5);
}


/* =============================================================
   ACT 3: THE BRIDGE
   GPU ──[Gap1]──[Gap2]──[Gap3]──[Gap4]── AI
   ============================================================= */
.dz-act-bridge {
    padding: 36px 0 36px;
}

.dz-bridge {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding: 0 20px;
}

/* --- Endpoints: GPU / AI --- */
.dz-bridge-endpoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 6px;
    z-index: 2;
}
.dz-bridge-endpoint i {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.dz-bridge-start i {
    background: rgba(255,109,0,0.12);
    color: #ff9100;
    border: 2px solid rgba(255,109,0,0.25);
}
.dz-bridge-end i {
    background: rgba(0,200,83,0.12);
    color: #69f0ae;
    border: 2px solid rgba(0,200,83,0.25);
    animation: endpointPulse 2s ease-in-out infinite;
}
@keyframes endpointPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0.2); }
    50% { box-shadow: 0 0 0 12px rgba(0,200,83,0); }
}
.dz-bridge-endpoint span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
}

/* --- Track (the horizontal line) --- */
.dz-bridge-track {
    flex: 1;
    position: relative;
    min-height: 240px;
    margin: 0 20px;
}
.dz-bridge-line {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.06);
    z-index: 0;
}
/* Animated fill line — fills left→right when visible */
.dz-bridge-line-fill {
    position: absolute;
    top: 28px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff9100, #7C4DFF, #0091EA, #00C853);
    z-index: 1;
    transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}
.dz-bridge.visible .dz-bridge-line-fill {
    width: 100%;
}

/* --- Nodes (4 gaps on the timeline) --- */
.dz-bridge-node {
    position: absolute;
    top: 0;
    left: var(--node-pos);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 180px;
}

.dz-node-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.5s ease;
}
.dz-bridge-node.visible .dz-node-marker {
    transform: scale(1.1);
}

/* Marker color variants */
.dz-bridge-node--orange .dz-node-marker { background: rgba(255,109,0,0.15); color: #ff9100; border-color: rgba(255,109,0,0.3); }
.dz-bridge-node--purple .dz-node-marker { background: rgba(124,77,255,0.15); color: #b388ff; border-color: rgba(124,77,255,0.3); }
.dz-bridge-node--blue .dz-node-marker   { background: rgba(0,145,234,0.15); color: #40c4ff; border-color: rgba(0,145,234,0.3); }
.dz-bridge-node--green .dz-node-marker  { background: rgba(0,200,83,0.15); color: #69f0ae; border-color: rgba(0,200,83,0.3); }

/* Info card below marker */
.dz-node-card {
    text-align: center;
    padding: 10px 6px;
}
.dz-node-number {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    margin-bottom: 3px;
    display: block;
}
.dz-node-pain {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin: 0 0 2px;
    line-height: 1.3;
}
.dz-node-detail {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
    margin: 0 0 6px;
}
.dz-node-solve {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #69f0ae;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0,200,83,0.08);
    border: 1px solid rgba(0,200,83,0.12);
    transition: all 0.3s;
}
.dz-node-solve:hover {
    background: rgba(0,200,83,0.18);
    color: #b9f6ca;
    transform: translateY(-1px);
}

/* Mobile: hide bridge, show stacked cards */
.dz-bridge-mobile { display: none; }

/* Mobile gap cards */
.dz-gap-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.dz-gap-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.dz-gap-card--orange::before { background: linear-gradient(90deg, #ff6d00, #ff9100); }
.dz-gap-card--purple::before { background: linear-gradient(90deg, #7C4DFF, #b388ff); }
.dz-gap-card--blue::before   { background: linear-gradient(90deg, #0091EA, #40c4ff); }
.dz-gap-card--green::before  { background: linear-gradient(90deg, #00C853, #69f0ae); }
.dz-gap-card:hover { background: rgba(255,255,255,0.06); }
.dz-gap-card:hover::before { transform: scaleX(1); }

.dz-gap-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.dz-gap-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.dz-gap-card--orange .dz-gap-icon { background: rgba(255,109,0,0.12); color: #ff9100; }
.dz-gap-card--purple .dz-gap-icon { background: rgba(124,77,255,0.12); color: #b388ff; }
.dz-gap-card--blue .dz-gap-icon   { background: rgba(0,145,234,0.12); color: #40c4ff; }
.dz-gap-card--green .dz-gap-icon  { background: rgba(0,200,83,0.12); color: #69f0ae; }

.dz-gap-number {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
}
.dz-gap-pain {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin: 0 0 4px;
}
.dz-gap-detail {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    margin: 0 0 8px;
    line-height: 1.5;
}
.dz-gap-solve {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 6px;
    background: rgba(0,200,83,0.1);
    color: #69f0ae;
    border: 1px solid rgba(0,200,83,0.15);
    text-decoration: none;
    transition: all 0.3s ease;
}
.dz-gap-solve:hover {
    background: rgba(0,200,83,0.2);
    color: #b9f6ca;
}


/* =============================================================
   ACT 4: THE PAYOFF — Slogan as cinematic title card
   ============================================================= */
.dz-act-payoff {
    padding: 36px 0 52px;
    text-align: center;
    position: relative;
}

/* Radial glow behind slogan */
.dz-payoff-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(0,200,83,0.08) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.dz-act-payoff.visible .dz-payoff-glow {
    opacity: 1;
}

.dz-slogan {
    position: relative;
    z-index: 1;
}

.dz-slogan-main {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.15;
    margin-bottom: 10px;
}
.dz-s-main { color: #ffffff; }
.dz-s-zero {
    background: linear-gradient(135deg, #00C853, #69f0ae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
/* Subtle glow under "0Day." */
.dz-s-zero::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 8px;
    background: rgba(0,200,83,0.25);
    filter: blur(12px);
    border-radius: 50%;
}

.dz-slogan-power {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.dz-slogan-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.22);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* CTA button */
.dz-slogan-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: rgba(0,200,83,0.15);
    border: 1px solid rgba(0,200,83,0.25);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.35s ease;
}
.dz-slogan-cta:hover {
    background: rgba(0,200,83,0.25);
    border-color: rgba(0,200,83,0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,200,83,0.15);
}
.dz-slogan-cta i {
    font-size: 12px;
    transition: transform 0.3s;
}
.dz-slogan-cta:hover i {
    transform: translateX(4px);
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
    .dz-bridge { display: none; }
    .dz-bridge-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .dz-act-problem { padding: 48px 0 20px; }
    .dz-act-contrast { padding: 0 16px 24px; }
    .dz-act-bridge { padding: 24px 0 24px; }
    .dz-act-payoff { padding: 28px 0 44px; }
    .dz-path { padding: 20px; }
    .dz-path-steps { flex-wrap: wrap; gap: 6px; }
    .dz-step-connector { display: none; }
    .dz-step-text { font-size: 12px; padding: 4px 10px; }
    .dz-bridge-mobile { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .dz-slogan-main { letter-spacing: -1px; }
    .dz-slogan-power { font-size: 16px; }
    .dz-act-problem { padding: 36px 0 16px; }
}
