/*
 * SLIDES.CSS - Slide Container, Transitions & Specific Layouts
 * Kick-Off Presentation Framework
 */

/* ============================
   SLIDE CONTAINER
   ============================ */
.slide-container {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ============================
   INDIVIDUAL SLIDE
   ============================ */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Allow top-aligned content for scrolling */
    align-items: center;
    padding: var(--header-safe-area) 40px 100px; /* More bottom padding for scroll comfort */
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    filter: blur(8px);
    transition: all 0.8s var(--ease-out);
    pointer-events: none;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Centering trick: pseudo-elements as flex spacers */
.slide::before,
.slide::after {
    content: "";
    flex-grow: 1;
    min-height: 0;
}

/* Ensure scrollbar looks clean but doesn't take much space */
.slide::-webkit-scrollbar {
    width: 6px;
}
.slide::-webkit-scrollbar-track {
    background: transparent;
}
.slide::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.slide::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    pointer-events: all;
    visibility: visible;
}

/* ============================
   SLIDE INDICATOR
   ============================ */
.slide-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s var(--ease-out);
}

.slide-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary-glow);
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================
   SCRUM CYCLE VISUAL
   ============================ */
.scrum-cycle {
    width: 600px;
    height: 600px;
    position: relative;
    margin: 0 auto;
}

.cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px var(--primary-glow);
    border: 4px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.cycle-center span {
    font-weight: 900;
    font-size: 2rem;
    color: white;
}

.cycle-center small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.cycle-step {
    position: absolute;
    width: 140px;
    padding: 20px;
    background: rgba(30, 30, 35, 0.9);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: 0.3s var(--ease-out);
}

.cycle-step:hover {
    border-color: var(--success);
    transform: scale(1.08);
}

.cycle-step i {
    font-size: 2rem;
    color: var(--success);
    margin-bottom: 10px;
    display: block;
}

.cycle-step h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cycle-step p {
    font-size: 0.75rem;
    color: var(--text-grey);
    line-height: 1.3;
}

/* Cycle step positions */
.step-1 { top: 0; left: 50%; transform: translateX(-50%); }
.step-2 { top: 25%; right: 0; }
.step-3 { bottom: 25%; right: 0; }
.step-4 { bottom: 0; left: 50%; transform: translateX(-50%); }
.step-5 { bottom: 25%; left: 0; }
.step-6 { top: 25%; left: 0; }

/* ============================
   TIMELINE
   ============================ */
.timeline-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    margin: 60px 0 80px;
}

.timeline-progress {
    height: 100%;
    background: var(--success);
    border-radius: 2px;
    width: 0%;
    transition: width 1s 0.5s var(--ease-out);
    box-shadow: 0 0 15px var(--success);
}

.timeline-item {
    position: absolute;
    top: -50px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--bg-deep);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: 0.3s var(--ease-out);
    margin-top: 50px;
    position: relative;
}

.timeline-item.done .timeline-dot {
    border-color: var(--success);
    background: var(--success);
    box-shadow: 0 0 20px var(--success);
}

.timeline-item.current .timeline-dot {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.timeline-item.current .timeline-dot::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.timeline-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    max-width: 120px;
    color: var(--text-grey);
}

.timeline-item.done .timeline-label,
.timeline-item.current .timeline-label {
    color: var(--text-white);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-grey);
}

/* ============================
   JOURNEY MAP
   ============================ */
.journey-map {
    width: 100%;
    max-width: 1200px;
    position: relative;
    margin-top: 40px;
}

.journey-line {
    height: 2px;
    background: var(--border-light);
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1;
}

.journey-progress {
    height: 2px;
    background: var(--primary);
    position: absolute;
    top: 40px;
    left: 0;
    width: 20%;
    z-index: 2;
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.8s var(--ease-out);
}

.journey-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.journey-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s var(--ease-out);
}

.journey-dot {
    width: 80px;
    height: 80px;
    background: var(--bg-deep);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-grey);
    transition: 0.5s var(--ease-out);
    position: relative;
}

.journey-step.active .journey-dot {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    background: rgba(255, 140, 0, 0.1);
}

.journey-step.active .journey-dot::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.journey-step span {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-grey);
}

.journey-step.active span {
    color: white;
}

/* ============================
   VIEWPORT / CONTENT SCENE
   ============================ */
.viewport {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.content-scene {
    position: absolute;
    inset: 0;
    padding: 40px;
    opacity: 0;
    transform: scale(0.95);
    transition: 0.6s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content-scene.active {
    opacity: 1;
    transform: scale(1);
}

.scene-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ============================
   ROADMAP STEPS
   ============================ */
.roadmap-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    gap: 2rem;
}

.roadmap-step {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: 0.3s var(--ease-out);
}

.roadmap-step:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.roadmap-step::after {
    content: "→";
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

.roadmap-step:last-child::after {
    display: none;
}

.roadmap-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-dim);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    border: 2px solid rgba(255, 140, 0, 0.2);
}

.roadmap-step h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.roadmap-step p {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.5;
}

/* ============================
   CEREMONIES GRID
   ============================ */
.ceremonies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
}

@media (max-width: 900px) {
    .ceremonies-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   RESPONSIVE SLIDES
   ============================ */
@media (max-width: 1200px) {
    .scrum-cycle {
        width: 500px;
        height: 500px;
    }
    
    .cycle-center {
        width: 160px;
        height: 160px;
    }
    
    .cycle-step {
        width: 120px;
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .slide {
        padding: 80px 20px;
    }
    
    .roadmap-steps {
        flex-direction: column;
    }
    
    .roadmap-step::after {
        display: none;
    }
    
    .viewport {
        height: auto;
        min-height: 300px;
    }
    
    .journey-dot {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .scrum-cycle {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cycle-step {
        position: static;
        width: 100%;
        transform: none;
    }
    
    .cycle-center {
        position: static;
        transform: none;
        margin: 0 auto 2rem;
    }
}

/* ============================
   PROJECT LOGS / STORYTELLING (NEW)
   ============================ */

.story-container { 
    width: 100%; 
    max-width: 100%; 
    height: 85vh;
    display: block; 
    position: relative;
}

.slider-header {
    width: 100%;
    position: relative;
    z-index: 10;
}

.slider-content {
    width: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}


.main-viz-col { display: flex; flex-direction: column; gap: 2rem; }

/* Stepper */
.stepper { 
    display: flex; 
    justify-content: space-between; 
    padding: 0 10px; 
    margin-bottom: 10px; 
    position: relative; 
    width: 100%;
}
.stepper-bg { 
    position: absolute; 
    bottom: -15px; 
    left: 0; 
    width: 100%; 
    height: 4px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 2px; 
}
.stepper-fill { 
    position: absolute; 
    bottom: -15px; 
    left: 0; 
    height: 4px; 
    background: var(--success); 
    width: 0%; 
    border-radius: 2px; 
    transition: width 0.6s ease; 
    box-shadow: 0 0 15px var(--success); 
}
.step-node { 
    font-size: 0.8rem; 
    color: #666; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
}
.step-node.active { 
    color: var(--text-white); 
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2); 
}
.step-node.active[style*="success"], 
.step-node.active { color: var(--success); }

.step-num { 
    width: 24px; 
    height: 24px; 
    border: 1px solid #444; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.7rem; 
    transition: 0.3s; 
    background: var(--bg-deep); 
}
.step-node.active .step-num { 
    border-color: var(--success); 
    background: rgba(46, 204, 113, 0.1); 
    color: var(--success); 
}

.holo-interface {
    display: grid; 
    grid-template-columns: 1fr 400px; 
    gap: 20px; 
    height: 100%; 
    transition: 0.3s;
}

@media (max-width: 1000px) {
    .holo-interface { grid-template-columns: 1fr; }
    .data-panel { display: none; }
}

/* Window Frame */
.window-frame {
    height: 100%; 
    background: #0e0e10; 
    border: 1px solid var(--border-light); 
    border-radius: 16px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.7); 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    position: relative;
    min-height: 80vh;
    width: 100%;
}
.window-header {
    height: 44px; 
    background: #1a1a1a; 
    border-bottom: 1px solid var(--border-light);
    display: flex; 
    align-items: center; 
    padding: 0 20px; 
    gap: 8px;
}
.window-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.window-header .dot.c1 { background: #ff5f56; } 
.window-header .dot.c2 { background: #ffbd2e; } 
.window-header .dot.c3 { background: #27c93f; }
.win-title { margin-left: auto; margin-right: auto; font-family: var(--font-code); font-size: 0.8rem; color: #666; opacity: 0.8; }

.viewport { flex: 1; position: relative; overflow: hidden; transition: background 0.8s; padding: 0 !important; display: flex; align-items: stretch; justify-content: stretch; }

/* --- SCENE 0: IDEA (Optimized Orbital Layout) --- */
#scene-0 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s var(--ease-out);
}

.window-frame.state-0 #scene-0 {
    opacity: 1;
    pointer-events: all;
}

.mm-orbit-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    overflow: visible;
}

.mm-center {
    width: 180px;
    height: 180px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 50px var(--primary-glow);
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: 2s var(--ease-out);
    animation: mmCenterEntry 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               centerPulse 16s infinite ease-in-out;
}

@keyframes mmCenterEntry {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.mm-center span {
    font-weight: 900;
    font-size: 1.6rem;
    color: white;
    letter-spacing: 1px;
}

.center-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    opacity: 0.9;
}

.center-badge {
    position: absolute;
    bottom: -15px;
    background: white;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

body.light-mode .center-badge {
    color: #cc7000; /* Darker orange for contrast */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mm-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    animation: orbitRotate 200s linear infinite;
}

.mm-card {
    position: absolute;
    width: 160px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: all;
    z-index: 5;
    animation: mmCardEntry 3.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i) * 0.15s + 0.5s);
}

body.light-mode .mm-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .mm-label {
    color: var(--text-main);
}

.window-frame.state-0 .mm-card {
    /* Entry + Counter-rotation */
    animation: mmCardEntry 3.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               counterRotate 200s linear infinite;
    animation-delay: calc(var(--i) * 0.2s + 1.0s), 0s;
}

.mm-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Floating removed as requested */
    animation-delay: calc(var(--i) * 1s);
}

.mm-card:hover .mm-card-inner {
    transform: scale(1.05);
}

@keyframes mmCardEntry {
    from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes mmCardFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Base satellite positioning - Calibrated for 7 items */
.sat-1 { top: 12%; left: 50%; }
.sat-2 { top: 26.3%; left: 79.7%; }
.sat-3 { top: 58.4%; left: 87.1%; }
.sat-4 { top: 84.2%; left: 66.5%; }
.sat-5 { top: 84.2%; left: 33.5%; }
.sat-6 { top: 58.4%; left: 12.9%; }
.sat-7 { top: 26.3%; left: 20.3%; }

.mm-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.05) translateY(-10px);
}

.mm-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-dim);
    border-radius: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: 0.3s;
}

.mm-card:hover .mm-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.mm-label { font-size: 1rem; font-weight: 700; color: #fff; }
.mm-sub { font-size: 0.8rem; color: var(--text-grey); line-height: 1.4; }

.mm-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.mm-path {
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 10, 10;
    opacity: 0;
    pointer-events: none;
    animation: dashFlow 80s linear infinite;
}

.window-frame.state-0 .mm-path {
    animation: dashFlow 80s linear infinite, mmPathEntry 3.2s ease-out forwards;
}

/* Staggered entry for paths matching their cards */
.p1 { animation-delay: 0s, 1.2s !important; }
.p2 { animation-delay: 0s, 1.4s !important; }
.p3 { animation-delay: 0s, 1.6s !important; }
.p4 { animation-delay: 0s, 1.8s !important; }
.p5 { animation-delay: 0s, 2.0s !important; }
.p6 { animation-delay: 0s, 2.2s !important; }
.p7 { animation-delay: 0s, 2.4s !important; }

@keyframes mmPathEntry {
    from { opacity: 0; }
    to { opacity: 0.3; }
}

@keyframes dashFlow {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

@keyframes centerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px var(--primary-glow); }
    50% { transform: scale(1.04); box-shadow: 0 0 80px var(--primary-glow); }
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Orbit rotation is handled on the container */

@keyframes counterRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* --- SCENE 1: WIREFRAME HIGH-FIDELITY --- */
.scene-wireframe {
    position: absolute; inset: 0; background-color: #0f172a; opacity: 0; transition: 1s; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px; display: flex; align-items: stretch; justify-content: stretch; width: 100%; height: 100%;
}
.window-frame.state-1 .scene-wireframe { opacity: 1; pointer-events: all; }

.hf-container-flex { 
    width: 100%; height: 100%; padding: 25px; display: flex; gap: 25px; position: relative;
}

.hf-col { display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.hf-col-details { flex: 1; min-width: 0; }
.hf-col-mockup { flex: 2; min-width: 0; }

.hf-sub-title { font-size: 0.65rem; font-weight: 800; color: rgba(255,255,255,0.4); letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; }

/* Left Column: Details */
.hf-sub-section { 
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 15px; 
    display: flex; flex-direction: column; width: 100%;
}

/* Sitemap Arborescence */
.hf-sitemap { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 5px; transform: scale(0.9); }
.sm-node { 
    font-size: 0.61rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1); color: white; position: relative; z-index: 2;
}
.sm-node.root { background: #ff7675; border: none; font-size: 0.65rem; color: white; box-shadow: 0 4px 10px rgba(255,118,117,0.3); }
.sm-node.branch { background: #0984e3; border: none; color: white; box-shadow: 0 4px 10px rgba(9,132,227,0.3); }
.sm-line-v { width: 2px; height: 15px; background: rgba(255,255,255,0.15); }

.sm-row { display: flex; gap: 10px; padding-top: 15px; position: relative; justify-content: center; width: 100%; }
.sm-row::before { 
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 2px; height: 15px; background: rgba(255,255,255,0.15); 
}
.sm-row::after { 
    content: ""; position: absolute; top: 0; left: 10%; right: 10%;
    height: 2px; background: rgba(255,255,255,0.15); 
}

.sm-node.branch::before {
    content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    width: 2px; height: 15px; background: rgba(255,255,255,0.15);
}

/* Sitemap Arborescence Profonde */
.hf-sitemap { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 5px; transform: scale(0.85); }
.sm-node { 
    font-size: 0.58rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1); color: white; position: relative; z-index: 2;
}
.sm-node.root { background: #ff7675; border: none; box-shadow: 0 4px 10px rgba(255,118,117,0.3); }
.sm-node.branch { background: #0984e3; border: none; box-shadow: 0 4px 10px rgba(9,132,227,0.3); }
.sm-node.sub { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); border-style: dashed; padding: 3px 6px; }

.sm-line-v { width: 2px; height: 12px; background: rgba(255,255,255,0.15); }
.sm-line-v.sm-sub { height: 8px; opacity: 0.5; }

.sm-row { display: flex; gap: 8px; padding-top: 15px; position: relative; justify-content: center; width: 100%; }
.sm-row::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 15px; background: rgba(255,255,255,0.15); }
.sm-row::after { content: ""; position: absolute; top: 0; left: 5%; right: 5%; height: 2px; background: rgba(255,255,255,0.15); }

.sm-branch-group { display: flex; flex-direction: column; align-items: center; position: relative; }
.sm-branch-group::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: 2px; height: 15px; background: rgba(255,255,255,0.15); }

/* Doc Preview Multi-Blocs */
.hf-doc-preview.master { 
    background: #fff; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; 
    height: 180px; transform: rotate(-1deg); box-shadow: 0 15px 40px rgba(0,0,0,0.45); 
    width: 95%; align-self: center; overflow: hidden;
}
.doc-header-block { border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.doc-section-block { display: flex; flex-direction: column; gap: 5px; }
.doc-label { font-size: 0.45rem; font-weight: 900; color: var(--primary); letter-spacing: 1px; }
.doc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.doc-chip { font-size: 0.4rem; background: #f8fafc; border: 1px solid #e2e8f0; padding: 2px 4px; border-radius: 3px; text-align: center; color: #64748b; font-weight: 700; }

/* Doc Preview Multi-Blocs: Master Fidelity */
.hf-doc-preview.master { 
    background: #fff; border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 15px; 
    height: 220px; transform: rotate(-1deg); box-shadow: 0 20px 50px rgba(0,0,0,0.45); 
    width: 95%; align-self: center; overflow: hidden; position: relative;
}
.doc-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: -5px; }
.doc-badge { font-size: 0.4rem; font-weight: 900; background: #fee2e2; color: #dc2626; padding: 2px 6px; border-radius: 4px; border: 1px solid #fecaca; }
.doc-ref { font-size: 0.35rem; color: #94a3b8; font-family: monospace; }

.doc-header-block { border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.doc-line.title { height: auto; background: none; font-size: 0.55rem; font-weight: 950; color: #1e293b; margin: 0; line-height: 1; }
.doc-text-mini { font-size: 0.38rem; color: #64748b; font-weight: 600; margin-top: 4px; }

.doc-section-block { display: flex; flex-direction: column; gap: 6px; }
.doc-label { font-size: 0.42rem; font-weight: 950; color: var(--primary); letter-spacing: 0.5px; border-left: 2px solid var(--primary); padding-left: 5px; }
.doc-text-block { font-size: 0.38rem; color: #475569; line-height: 1.4; text-align: justify; }

.doc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.doc-chip { font-size: 0.38rem; background: #f8fafc; border: 1px solid #e2e8f0; padding: 3px 6px; border-radius: 4px; text-align: center; color: #334155; font-weight: 800; }

.doc-footer-official { margin-top: auto; border-top: 1px dashed #e2e8f0; padding-top: 10px; display: flex; justify-content: space-between; align-items: flex-end; }
.doc-sig-line { font-size: 0.35rem; color: #94a3b8; font-style: italic; border-bottom: 1px solid #cbd5e1; width: 60px; padding-bottom: 2px; }
.doc-stamp { width: 30px; height: 30px; border: 2px double #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.35rem; font-weight: 900; color: #e2e8f0; transform: rotate(-15deg); }

/* Right Column: High-Fidelity Mockup (Master Refined) */
.hf-preview-window { 
    flex: 1; background: #f8fafc; border-radius: 14px; border: 1px solid #cbd5e1; padding: 0;
    display: flex; flex-direction: column; box-shadow: inset 0 0 40px rgba(0,0,0,0.02); 
    position: relative; overflow: hidden; width: 100%; height: 100%;
}
.hf-mockup-header { 
    display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; 
    border-bottom: 1px solid #e2e8f0; background: white; z-index: 5;
}
/* Mockup Base Components */
.mk-logo { width: 12px; height: 12px; background: #1e293b; border-radius: 3px; }
.mk-search-placeholder { flex: 0.5; height: 14px; background: #f1f5f9; border-radius: 100px; font-size: 0.4rem; padding: 0 10px; display: flex; align-items: center; color: #94a3b8; }
.mk-nav { display: flex; gap: 5px; }
.mk-nav div { width: 15px; height: 2px; background: #cbd5e1; border-radius: 1px; }

.hf-mockup-main-area { display: flex; flex: 1; overflow: hidden; }
.hf-mockup-sidebar { 
    width: 35px; background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 15px 0; 
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.mk-sib-item { width: 10px; height: 10px; background: #e2e8f0; border-radius: 2px; }
.mk-sib-item.active { background: var(--primary); }

.hf-mockup-scroll-area.rich { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; flex: 1; padding: 15px; background: #fff; }

/* Mockup Typography & Detail */
.mk-title-sm { font-size: 0.7rem; font-weight: 900; color: #1e293b; }
.mk-title-xs { font-size: 0.55rem; font-weight: 900; color: #1e293b; }
.mk-title-xxs { font-size: 0.45rem; font-weight: 850; color: #334155; margin-bottom: 2px; }
.mk-text-tiny { font-size: 0.4rem; color: #64748b; line-height: 1.3; }
.mk-text-nano { font-size: 0.35rem; color: #94a3b8; line-height: 1.2; }

.mk-slider { background: #f8fafc; border-radius: 10px; padding: 15px; display: flex; flex-direction: column; gap: 10px; border: 1px solid #e2e8f0; text-align: center; }
.mk-slider-dots { display: flex; gap: 4px; justify-content: center; }
.mk-slider-dots span { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; }
.mk-slider-dots span.active { background: var(--primary); width: 8px; border-radius: 2px; }

.mk-split-block.compact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; align-items: center; margin-bottom: -5px; }
.mk-split-img { aspect-ratio: 4/3; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; }
.mk-section-label { font-size: 0.38rem; font-weight: 950; color: var(--primary); letter-spacing: 0.8px; margin-bottom: 3px; text-transform: uppercase; }

.mk-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-card-small { background: #fff; border: 1px solid #f1f5f9; border-radius: 8px; padding: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.mk-c-img { height: 25px; background: #f8fafc; border-radius: 4px; margin-bottom: 5px; border: 1px solid #f1f5f9; }

.mk-details-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mk-li { display: flex; align-items: flex-start; gap: 5px; margin-bottom: 3px; }
.mk-list-bullets .mk-li span { width: 3px; height: 3px; background: var(--primary); border-radius: 50%; margin-top: 3px; flex-shrink: 0; }

.mk-form-simple { display: flex; flex-direction: column; gap: 6px; background: #f8fafc; padding: 8px; border-radius: 6px; border: 1px solid #e2e8f0; }
.mk-input-sm { height: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 3px; }
.mk-btn-sm { height: 12px; background: #cbd5e1; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 0.35rem; font-weight: 900; color: white; letter-spacing: 0.5px; }

.mk-footer-rich { border-top: 1px solid #f1f5f9; padding-top: 12px; display: flex; gap: 8px; margin-top: 10px; }
.mk-foot-block { flex: 1; height: 20px; background: #f8fafc; border-radius: 4px; border: 1px solid #f1f5f9; }

/* Mockup Components: Fidelity Variants */
/* --- REAL MODERN UI OVERHAUL (HIFI) --- */
.hf-mockup-header.hifi { padding: 0 20px; height: 50px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.mk-nav-links { display: flex; gap: 18px; margin-left: 25px; }
.mk-nav-links span { font-size: 0.45rem; font-weight: 700; color: #64748b; cursor: pointer; transition: 0.2s; }
.mk-nav-links span:hover { color: var(--primary); }
.mk-header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.mk-btn-login { font-size: 0.42rem; font-weight: 800; color: #1e293b; cursor: pointer; }
.mk-btn-trial { font-size: 0.42rem; font-weight: 900; background: var(--primary); color: white; padding: 6px 12px; border-radius: 6px; box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3); border: none; cursor: pointer; }
.mk-menu-burger { display: none; font-size: 0.5rem; color: #1e293b; }

.hf-mockup-sidebar.hifi { width: 50px; padding: 20px 0; background: #0f172a; gap: 15px; }
.mk-sib-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 0.7rem; transition: 0.3s; cursor: pointer; }
.mk-sib-icon:hover { color: white; background: rgba(255,255,255,0.05); }
.mk-sib-icon.active { color: white; background: var(--primary); box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4); }

.hf-mockup-scroll-area.real-ui { background: #f8fafc; padding: 0; }

/* Hero V2 */
.mk-hero-v2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; padding: 40px 30px; background: white; border-bottom: 1px solid rgba(0,0,0,0.03); position: relative; overflow: hidden; align-items: center; }
.mk-hero-v2::before { content: ""; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05), transparent 70%); border-radius: 50%; }

.mk-hero-badge { font-size: 0.38rem; font-weight: 900; color: var(--primary); background: rgba(var(--primary-rgb), 0.08); padding: 4px 10px; border-radius: 100px; display: inline-block; margin-bottom: 15px; letter-spacing: 0.5px; }
.mk-hero-content h1 { font-size: 1.3rem; font-weight: 950; color: #0f172a; line-height: 1.2; margin-bottom: 15px; letter-spacing: -0.5px; }
.mk-hero-content h1 span { color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--secondary));    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; 
}
.mk-hero-content p { font-size: 0.5rem; color: #64748b; line-height: 1.5; margin-bottom: 25px; max-width: 90%; }
.mk-hero-btns { display: flex; gap: 12px; }
.mk-p-btn { font-size: 0.45rem; font-weight: 900; background: #0f172a; color: white; padding: 10px 20px; border-radius: 8px; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 25px rgba(15,23,42,0.2); }
.mk-s-btn { font-size: 0.45rem; font-weight: 900; background: white; color: #0f172a; padding: 10px 20px; border-radius: 8px; cursor: pointer; transition: 0.3s; border: 1px solid #e2e8f0; }
.mk-p-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(15,23,42,0.3); }

.mk-viz-card { background: white; border: 1px solid rgba(0,0,0,0.05); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); animation: floatOrb 10s infinite alternate ease-in-out; }
.mk-viz-header { font-size: 0.42rem; font-weight: 850; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.mk-viz-value { font-size: 1.2rem; font-weight: 950; color: #0f172a; margin-bottom: 15px; }
.mk-viz-chart { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.chart-bar { flex: 1; background: #f1f5f9; border-radius: 2px; position: relative; overflow: hidden; }
.chart-bar::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background: var(--primary); opacity: 0.8; }

/* Sections */
.mk-section-header { display: flex; justify-content: space-between; align-items: flex-end; padding: 30px 30px 15px; }
.mk-section-info h3 { font-size: 0.7rem; font-weight: 900; color: #1e293b; margin-bottom: 2px; }
.mk-section-info span { font-size: 0.42rem; color: #94a3b8; font-weight: 600; }
.mk-section-action { font-size: 0.42rem; font-weight: 800; color: #64748b; background: white; padding: 5px 12px; border-radius: 6px; border: 1px solid #e2e8f0; cursor: pointer; }

/* Grid Metrics */
.mk-grid-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 30px 30px; }
.mk-metric-card { background: white; border: 1px solid rgba(0,0,0,0.04); border-radius: 12px; padding: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); transition: 0.3s; }
.mk-metric-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.mk-metric-card.featured { border-color: rgba(var(--primary-rgb), 0.2); background: linear-gradient(135deg, white, #fffcf9); }

.metric-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.metric-icon { width: 30px; height: 30px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: #64748b; }
.mk-metric-card.featured .metric-icon { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.metric-trend { font-size: 0.35rem; font-weight: 900; padding: 2px 6px; border-radius: 4px; }
.metric-trend.up { color: var(--success); background: rgba(46, 204, 113, 0.1); }

.metric-label { font-size: 0.35rem; font-weight: 900; color: #94a3b8; display: block; margin-bottom: 4px; letter-spacing: 0.5px; }
.metric-val { font-size: 0.8rem; font-weight: 950; color: #1e293b; }

.metric-progress { height: 4px; background: #f1f5f9; border-radius: 2px; margin-top: 15px; overflow: hidden; }
.metric-progress .fill { height: 100%; background: var(--primary); border-radius: 2px; }

/* Feed Section */
.mk-feed-section { padding: 0 30px 40px; }
.mk-feed-header { font-size: 0.55rem; font-weight: 900; color: #64748b; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.mk-feed-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: white; border-radius: 10px; border: 1px solid rgba(0,0,0,0.02); margin-bottom: 8px; }
.feed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.feed-content { font-size: 0.42rem; color: #475569; flex: 1; }
.feed-content b { color: #1e293b; }
.feed-time { font-size: 0.35rem; color: #94a3b8; font-weight: 600; }

.mk-slider.hifi { background: linear-gradient(135deg, #fff7ed, #fff); border-color: rgba(var(--primary-rgb), 0.1); }
.mk-slide-content.hifi .mk-title-sm { color: var(--primary); }

.mk-split-img.hifi { 
    background-image: url('https://www.uteek.net/sites/default/files/images/uteek-digital.png'); 
    background-size: cover; background-position: center; border-color: rgba(var(--primary-rgb), 0.1); 
    position: relative; overflow: hidden; 
}

.mk-card-small.hifi { border-color: #f1f5f9; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: 0.3s; }
.mk-c-img.hifi { background: linear-gradient(135deg, #f8fafc, #fff); border-bottom: 1px solid #f1f5f9; }
.mk-c-img.hifi::after { content: "\f03e"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: rgba(var(--primary-rgb), 0.1); font-size: 0.8rem; display: flex; align-items: center; justify-content: center; height: 100%; }

.mk-form-simple.hifi { background: #fffcf9; border-color: rgba(var(--primary-rgb), 0.1); }
.mk-btn-sm.hifi { background: var(--primary); box-shadow: 0 4px 12px rgba(255,107,0,0.3); border: none; cursor: pointer; }

.hf-mockup-toast.hifi { background: var(--primary); box-shadow: 0 10px 30px rgba(255,107,0,0.4); }
.mk-dot.hifi { background: white; box-shadow: 0 0 10px white; }

/* Overlays */
.hf-mockup-popup.rich {
    position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%);
    width: 60%; background: white; border-radius: 12px; padding: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25); border: 1px solid #cbd5e1;
    display: flex; flex-direction: column; z-index: 15;
}
.hf-mockup-popup.hifi { border-color: rgba(var(--primary-rgb), 0.2); box-shadow: 0 40px 80px rgba(0,0,0,0.3); }
.mk-pop-close { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; background: #f1f5f9; border-radius: 50%; }

.hf-mockup-toast.master {
    position: absolute; bottom: 15px; right: 15px; background: #1e293b; color: white;
    border-radius: 100px; padding: 8px 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex; align-items: center; gap: 10px; z-index: 20; font-size: 0.42rem;
}
.mk-dot { width: 5px; height: 5px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; }

/* --- SCENE 2: DESIGN (Comparative View) --- */
.scene-design {
    position: absolute; inset: 0; background: #EEF2F6; opacity: 0; transition: 0.8s; pointer-events: none;
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.window-frame.state-2 .scene-design { opacity: 1; pointer-events: all; }

.ds-comparison-container { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; height: 100%; padding: 25px;
    background-image: radial-gradient(rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.ds-comparison-col { display: flex; flex-direction: column; gap: 12px; align-items: center; position: relative; overflow: hidden; height: 100%; }
.ds-comp-header { font-size: 0.75rem; font-weight: 850; color: #94a3b8; letter-spacing: 1.5px; margin-bottom: 5px; }

.ds-mockup-wrapper { width: 100%; flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.ds-mockup-wrapper .hf-preview-window { flex: 1; width: 100%; box-shadow: 0 15px 40px rgba(0,0,0,0.1); } 
.ds-mockup-wrapper.hifi .hf-preview-window { box-shadow: 0 35px 80px rgba(0,0,0,0.18); border-color: rgba(var(--primary-rgb), 0.15); }

.ds-label-tag { font-size: 0.6rem; font-weight: 950; color: #94a3b8; letter-spacing: 2px; margin-top: 10px; opacity: 0.6; }
.ds-label-tag.hifi { color: var(--primary); opacity: 1; }

/* Designed Badge */
.ds-designed-badge {
    position: absolute; top: 15px; right: 20px; transform: rotate(12deg); z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    animation: popIn 0.6s 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}
.badge-inner { 
    background: var(--primary); color: white; padding: 4px 10px; border-radius: 4px;
    font-size: 0.55rem; font-weight: 900; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(255,107,0,0.3);
}
.badge-seal { 
    font-size: 0.35rem; font-weight: 700; color: rgba(var(--primary-rgb), 0.5);
    border-bottom: 2px double rgba(var(--primary-rgb), 0.3); margin-top: 2px;
}

/* UI Elements inside mockups */
.ds-mock-nav { height: 25px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; padding: 0 15px; gap: 15px; }
.ds-mock-logo { width: 10px; height: 10px; background: #e2e8f0; border-radius: 2px; }
.ds-logo-hifi { color: var(--primary); font-size: 0.6rem; }
.ds-mock-links { display: flex; gap: 8px; }
.ds-mock-links span { width: 25px; height: 3px; background: #f1f5f9; border-radius: 1px; }
.ds-mock-links.hifi span { background: none; height: auto; font-size: 0.45rem; font-weight: 700; color: #64748b; width: auto; }

.ds-mock-body { flex: 1; display: flex; overflow: hidden; }
.ds-mock-sidebar { width: 40px; border-right: 1px solid #f1f5f9; background: #f8fafc; padding: 15px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ds-s-item { width: 12px; height: 12px; background: #e2e8f0; border-radius: 3px; }
.ds-s-item.active { background: #cbd5e1; }
.ds-s-item-hifi { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 0.5rem; color: #94a3b8; border-radius: 6px; }
.ds-s-item-hifi.active { background: #fff7ed; color: var(--primary); }

.ds-mock-content { flex: 1; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.ds-mock-title { width: 60px; height: 8px; background: #f1f5f9; border-radius: 4px; }
.ds-hifi-title { font-size: 0.7rem; font-weight: 850; color: #1e293b; }

.ds-mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds-mock-card { height: 40px; background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 6px; }

.ds-hifi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ds-hifi-card { height: 50px; background: #fff; border: 1px solid #f1f5f9; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.ds-hifi-card.active { border: 1px solid rgba(var(--primary-rgb), 0.1); background: linear-gradient(135deg, white, #fffcf9); display: flex; align-items: center; justify-content: center; position: relative; }
.ds-hifi-chart { width: 25px; height: 25px; border-radius: 50%; border: 3px solid #f1f5f9; border-top-color: var(--primary); transform: rotate(-45deg); }
.ds-hifi-stat { font-size: 0.5rem; font-weight: 900; color: var(--primary); position: absolute; }

.ds-label-tag { 
    font-size: 0.65rem; font-weight: 950; color: #64748b; background: #e2e8f0; padding: 4px 12px; border-radius: 100px;
}
.ds-label-tag.hifi {
    color: var(--primary); background: #fff7ed; box-shadow: 0 4px 10px rgba(255,107,0,0.15); border: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* --- SCENE 3: DEV --- */
.scene-dev { position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr 0.8fr; opacity: 0; pointer-events: none; transition: 0.5s; width: 100%; height: 100%; }
.window-frame.state-3 .scene-dev { opacity: 1; pointer-events: all; }

.code-pane { 
    background: #050506; /* Deep Black Luxe */
    padding: 24px; 
    font-family: var(--font-code); 
    font-size: 0.8rem; 
    line-height: 1.6; 
    color: #c5a97d; /* Champagne Gold (Base) */
    border-right: 1px solid #1a1a1a; 
    overflow: hidden; 
    position: relative; 
    text-align: left;
    box-shadow: inset -20px 0 40px rgba(0,0,0,0.5);
}

.matrix-line {
    opacity: 0;
    transform: translateX(-5px);
    animation: matrixLineIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    font-weight: 500;
}

@keyframes matrixLineIn {
    to { opacity: 0.9; transform: translateX(0); }
}

/* Lux Syntax Highlighting */
.syntax-kwd { color: #8e8e93; font-weight: 600; } /* Silver grey */
.syntax-comp { color: #f2f2f7; } /* Off white */
.syntax-str { color: #d4af37; } /* Gold */
.syntax-attr { color: #a2a2a7; } /* Mid grey */
.syntax-tag { color: #c5a97d; } /* Champagne */

.visual-pane { background: #f6f9fc; display: flex; align-items: center; justify-content: center; position: relative; padding: 40px; }

.stripe-mockup {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 50px 100px -20px rgba(50,50,93,0.25), 0 30px 60px -30px rgba(0,0,0,0.3), inset 0 -2px 6px 0 rgba(10,37,64,0.35);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stripe-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stripe-card.half { flex: 1; }
.stripe-row { display: flex; gap: 20px; }

.s-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #424770;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.s-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #32325d;
}

.s-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e6ebf1;
    border-radius: 4px;
    padding: 12px;
    background: #fcfcfc;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.08);
}

.s-input-icon { color: #8898aa; font-size: 1rem; }
.s-input-placeholder { color: #aab7c4; font-size: 0.95rem; font-family: var(--font-main); }

.stripe-button {
    margin-top: 10px;
    background: #5469d4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(50,50,93,0.11), 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.15s ease;
}

.stripe-button:hover {
    background: #4355b9;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.08);
}

.stripe-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #8898aa;
    margin-top: 10px;
}

.stripe-footer b { color: #6772e5; }

.v-el { opacity: 0; transform: translateY(20px); transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.v-el.show { opacity: 1; transform: translateY(0); }

.syntax-kwd { color: #8e8e93; font-weight: 600; } 
.syntax-comp { color: #f2f2f7; } 
.syntax-str { color: #d4af37; } 
.syntax-attr { color: #a2a2a7; } 
.syntax-tag { color: #c5a97d; } 


/* --- SCENE 4: LIVE --- */
.scene-live {
    position: absolute; inset: 0; background: transparent; opacity: 0; transition: 0.5s; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.window-frame.state-4 .scene-live { opacity: 1; pointer-events: all; }

.delivery-visual {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.platform-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 140px;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.platform-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    pointer-events: none;
}

.platform-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.1);
}

.platform-card i {
    font-size: 3rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
    transition: 0.3s;
}

.platform-card:hover i {
    transform: scale(1.1);
}

.platform-card span {
    font-family: var(--font-title-lux);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.platform-card.web i { color: #3b82f6; }
.platform-card.cloud i { color: #f59e0b; }
.platform-card.integration i { color: #8b5cf6; }
.platform-card.ios i { color: #fff; }
.platform-card.android i { color: #34a853; }

.launch-base {
    text-align: center;
    animation: popIn 0.8s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.live-address { 
    width: auto; 
    min-width: 300px;
    padding: 10px 30px; 
    background: #f1f5f9; 
    border-radius: 50px; 
    margin-bottom: 30px; 
    color: #64748b; 
    font-family: var(--font-code); 
    font-size: 0.9rem; 
    text-align: center; 
    border: 1px solid #e2e8f0; 
    white-space: nowrap;
    display: inline-block;
}
.live-success { font-size: 2rem; color: var(--primary); font-weight: 900; animation: popIn 0.5s 0.2s backwards; }

/* --- SCENE 5: MAINTENANCE --- */
.scene-maintenance {
    position: absolute; inset: 0; background: transparent; opacity: 0; transition: 0.5s; pointer-events: none;
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.window-frame.state-5 .scene-maintenance { opacity: 1; pointer-events: all; }

.maint-container {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.maint-orb {
    width: 120px; height: 120px; background: rgba(46, 204, 113, 0.1); border: 2px solid var(--success);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--success); position: relative;
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.3);
}
.maint-pulse {
    position: absolute; inset: -4px; border: 2px solid var(--success); border-radius: 50%;
    animation: maintPulse 2s infinite; opacity: 0;
}
@keyframes maintPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

.maint-label { font-size: 1.5rem; font-weight: 900; color: var(--success); letter-spacing: 4px; }
.maint-status { font-family: var(--font-code); font-size: 0.9rem; color: #666; letter-spacing: 2px; }

/* Change last step flavor if maintenance (6th step) */
.p-step[data-index="5"].active {
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}
.p-step[data-index="5"].completed {
    background: var(--success);
    border-color: var(--success);
}

/* Data Panel */
.data-panel {
    background: rgba(15,15,20,0.6); 
    border: 1px solid var(--border-light); 
    border-radius: 16px;
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    backdrop-filter: blur(20px);
    height: 100%; 
    font-family: var(--font-body-lux); /* Poppins */
    text-align: left;
}

body.light-mode .data-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}
.panel-header { 
    padding-bottom: 25px; 
    border-bottom: 1px solid var(--border-light); 
}
.panel-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 5px;
}
.panel-stepper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    z-index: 0;
}

body.light-mode .panel-stepper::before {
    background: rgba(0, 0, 0, 0.15);
}
.panel-progress-bar {
    position: absolute;
    top: 50%;
    left: 10px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
    z-index: 1;
    transition: width 2.4s var(--ease-out);
    box-shadow: 0 0 10px var(--primary-glow);
    pointer-events: none;
}
.p-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-title-lux); /* Montserrat */
    color: #94a3b8;
    position: relative;
    z-index: 2;
    transition: 1.6s var(--ease-out);
}

body.light-mode .p-step {
    border-color: rgba(0, 0, 0, 0.15);
    color: #475569;
}

body.light-mode .p-step.completed {
    color: white;
}
.p-step.active {
    background: var(--primary); /* Full */
    border-color: var(--primary);
    color: white !important;

}
.p-step.completed {
    background: #10b981; /* Flashy Green */
    border-color: #10b981;
    color: white;
}
.p-step[data-index="5"] {
    color: white !important;
}
.p-step:hover {
    transform: scale(1.15);
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}
.p-step.active:hover {
    transform: scale(1.1);
}
.p-step.completed:hover {
    background: var(--primary-glow);
    color: white;
}
.panel-content { flex: 1; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; padding-right: 5px; }

.panel-phase-title {
    font-size: 1.4rem;
    font-weight: 950;
    font-family: var(--font-title-lux); /* Montserrat */
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.panel-phase-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.data-row { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateX(20px); transition: 1.6s var(--ease-out); }
.data-row.visible { opacity: 1; transform: translateX(0); }
.data-row.highlight {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
}

body.light-mode .data-row.highlight {
    background: rgba(255, 140, 0, 0.08);
    border-color: rgba(255, 140, 0, 0.2);
}

.data-row.highlight .d-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.d-icon { color: var(--primary); margin-top: 4px; font-size: 0.9rem; }
.d-icon.valid-icon { color: #10b981; } /* Green for validation */
.text-valid { color: #10b981; font-weight: 700; }
.d-text { font-size: 0.9rem; line-height: 1.5; color: #f1f5f9; font-weight: 600; font-family: var(--font-body-lux); }
.d-sub { font-size: 0.8rem; color: #94a3b8; margin-top: 4px; display: block; font-weight: 400; line-height: 1.4; font-family: var(--font-body-lux); }

body.light-mode .d-text { color: #1e293b; }
body.light-mode .d-sub { color: #475569; font-weight: 500; }

/* Animations */
@keyframes dash { to { stroke-dashoffset: 1000; } }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- HOLO PHASE EXPLORER (Slide 06) --- */
.process-container {
    width: 100%;
    max-width: 100%;
    height: 85vh;
    display: block;
    position: relative;
}

.stepper {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
    margin-bottom: 20px;
}
.stepper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}
.step-progress {
    position: absolute;
    top: 50%;
    left: 40px;
    height: 2px;
    background: var(--primary);
    width: 0%;
    z-index: 0;
    transition: 1s ease;
    box-shadow: 0 0 15px var(--primary);
}

.step-node {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    background: var(--bg-deep);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.6s;
    color: var(--text-muted);
    font-weight: 700;
}
.step-node.active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
    background: rgba(255, 140, 0, 0.1);
}

.step-label {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-code);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: 0.6s;
    pointer-events: none;
}
.step-node.active .step-label {
    opacity: 1;
    color: var(--primary);
}