/* ==========================================================================
   AI Director Studio - 3D Camera Fly-through Showcase Styles
   ========================================================================== */

.flagship-3d-scroll-container {
    position: relative;
    width: 100%;
    height: 480vh; /* Long scroll path to stretch out the 3D scroll stages */
    margin: 4rem 0 0 0;
    box-sizing: border-box;
}

.flagship-3d-sticky-view {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #020202;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 1.2rem 0; /* Shrink padding to give more vertical space to UI page */
    box-sizing: border-box;
}

/* Ambient backdrop radial gradient to add drama */
.flagship-3d-sticky-view::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.035) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Top Header Text (Apple/Vivo Launch Event Style)
   ========================================================================== */
.flagship-intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    
    /* Initial state before JS entrance animation takes over */
    opacity: 0;
    transform: translateY(-45px);
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    will-change: opacity, transform;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.flagship-intro-text .intro-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.24rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem; /* Shrink badge margin */
}

.flagship-intro-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 2.8vw, 2.25rem); /* Slightly smaller header font */
    font-weight: 500;
    margin: 0 0 0.35rem 0; /* Shrink header margin */
    letter-spacing: 0.12rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flagship-intro-text .intro-subtitle {
    font-size: 0.82rem; /* Slightly smaller subtitle font */
    color: var(--text-soft);
    margin: 0 0 0.75rem 0; /* Shrink subtitle margin */
    letter-spacing: 0.06rem;
}

.flagship-intro-text .intro-quotes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem; /* Shrink quotes gap */
    margin-top: 0.2rem;
}

.flagship-intro-text .quote-item {
    font-family: var(--font-serif);
    font-size: 0.86rem; /* Slightly smaller quotes font */
    color: var(--accent);
    opacity: 0.85;
    letter-spacing: 0.03rem;
}

/* ==========================================================================
   3D Scene Wrapper (Middle Area)
   ========================================================================== */
.scene-3d-wrapper {
    perspective: 620px; /* Reduced from 1200px for super-wide-angle impact */
    perspective-origin: 50% 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.scene-3d-root {
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Driven by JS translation along Z (strictly horizontal perspective) and offset vertically to avoid spec overlaps in Stage 1 */
    transform: translateZ(0px) rotateX(0deg) rotateZ(0deg) translateY(-1.0rem);
    will-change: transform;
}

/* ==========================================================================
   Tilted Canvas Plate (Mockup Editor Display - Compact & Horizontally Aligned)
   ========================================================================== */
.tilted-canvas-plate {
    position: absolute;
    transform-style: preserve-3d;
    
    /* Initial state before JS entrance animation takes over (hidden & offscreen bottom) */
    opacity: 0;
    transform: translate3d(0, 680px, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);

    width: 1020px; /* Expand width to make the UI page larger and more detailed */
    height: 560px; /* Expand height to capture the full interface details */
    background: rgba(6, 6, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.95), 0 0 100px rgba(123, 97, 255, 0.12);
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    box-sizing: border-box;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    will-change: transform, opacity;
}

/* Curved screen bezel overlay */
.tilted-canvas-plate::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%, rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Canvas Grid Pattern */
.canvas-grid-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

/* Mock Header */
.canvas-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
    font-family: var(--font-ui);
}

.canvas-mock-header .brand-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-mock-header .brand-title {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.canvas-mock-header .brand-badge {
    background: rgba(123, 97, 255, 0.12);
    border: 1px solid rgba(123, 97, 255, 0.25);
    color: #c4b6ff;
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.canvas-mock-header .status-bar {
    font-size: 9px;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

/* Canvas Nodes */
.canvas-nodes-layer {
    position: relative;
    flex-grow: 1;
    width: 100%;
    z-index: 2;
    transform-style: preserve-3d;
}

.mock-canvas-node {
    position: absolute;
    background: rgba(12, 12, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    width: 170px;
    padding: 10px 12px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
    transform: translateZ(8px);
    font-family: var(--font-ui);
}

/* Node Borders */
.mock-canvas-node.node-purple { border-color: rgba(139, 92, 246, 0.3); }
.mock-canvas-node.node-blue { border-color: rgba(59, 130, 246, 0.3); }
.mock-canvas-node.node-green { border-color: rgba(16, 185, 129, 0.3); }
.mock-canvas-node.node-amber { border-color: rgba(245, 158, 11, 0.3); }
.mock-canvas-node.node-rose { border-color: rgba(244, 63, 94, 0.3); }

.mock-canvas-node .node-mock-hdr {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mock-canvas-node .node-mock-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-canvas-node .node-mock-prop {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mock-canvas-node .node-mock-prop label {
    font-size: 7.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mock-canvas-node .node-mock-prop span {
    font-size: 9px;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Node Handles */
.mock-node-dot-handle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #000;
    border: 1px solid var(--accent);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.mock-node-dot-handle.left { left: -3px; }
.mock-node-dot-handle.right { right: -3px; }

/* SVG Connection Overlay */
.canvas-svg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.svg-edge-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    fill: none;
}

.svg-edge-pulse {
    stroke: url(#edge-glow-gradient);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 8, 18;
    animation: edgeDashPulse 5s linear infinite;
}

@keyframes edgeDashPulse {
    to {
        stroke-dashoffset: -100;
    }
}

/* ==========================================================================
   Bottom Technical Specifications Grid (Vivo Style)
   ========================================================================== */
.flagship-intro-specs {
    display: grid;
    grid-template-columns: repeat(6, 150px); /* 6 Column layout parallel, widened from 120px to 150px */
    gap: 28px; /* Increased gap from 16px to 28px for breathability */
    justify-content: center;
    align-items: end; /* Align items to bottom of grid row so expanding hovered cards grows upwards and does not stretch other items */
    z-index: 10;
    width: 100%;
    max-width: 1200px; /* Widened max-width from 900px */
    padding: 0 24px;
    box-sizing: border-box;
    will-change: opacity, transform;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;

    /* Absolute positioning to pin the cards to the bottom of the viewport, below the UI screen */
    position: absolute;
    bottom: 52px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.spec-badge {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Initial state before staggered entrance */
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    will-change: transform, border-color, background-color, box-shadow, opacity;
}

/* Staggered Entrance Animation for 6 Cards */
.flagship-intro-specs.stagger-in .spec-badge,
.flagship-intro-specs.entrance-done .spec-badge {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.flagship-intro-specs.stagger-in .spec-badge:nth-child(1) { transition-delay: 0ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(2) { transition-delay: 80ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(3) { transition-delay: 160ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(4) { transition-delay: 240ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(5) { transition-delay: 320ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(6) { transition-delay: 400ms; }

.spec-badge:hover {
    border-color: rgba(212, 175, 55, 0.35); /* Elegant gold accent border */
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.08);
}

.spec-badge-val {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    font-family: var(--font-ui);
    transition: color 0.3s ease;
}

.spec-badge:hover .spec-badge-val {
    color: var(--accent); /* Golden highlight on hover */
}

.spec-badge-lbl {
    font-size: 9px;
    color: var(--text-soft);
    letter-spacing: 0.04em;
    font-family: var(--font-ui);
}

/* Collapsible Description Detail */
.spec-badge-desc {
    font-size: 9.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-badge:hover .spec-badge-desc {
    max-height: 120px; /* Expands to fit content */
    opacity: 1;
    margin-top: 10px;
    transform: translateY(0);
}

/* Summary Text Section above the cards */
.specs-summary-text {
    position: absolute;
    top: 4.8rem; /* Place below site nav (which is top: 1.25rem) */
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 10;
    width: 100%;
    max-width: 720px; /* Limit width for elegant layout */
    box-sizing: border-box;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-45px);
    will-change: opacity, transform;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.specs-summary-text h3 {
    font-family: 'AlibabaPuHuiTi-SemiBold', var(--font-ui) !important;
    font-size: clamp(1.2rem, 2.1vw, 1.55rem) !important;
    font-weight: 500 !important; /* SemiBold/Regular rendering, no synthetic heavy weight */
    letter-spacing: 0.05em !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-stroke: none !important; /* Remove stroke border to look thinner */
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
    margin: 0 0 10px 0;
}

.specs-summary-sub {
    font-size: 0.8rem;
    color: var(--accent); /* Accent gold color */
    letter-spacing: 0.05em;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.specs-summary-desc {
    font-size: 0.8rem;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Responsive Layout */
@media (max-width: 1100px) {
    .flagship-intro-specs {
        grid-template-columns: repeat(3, 150px);
        gap: 24px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .spec-badge {
        backdrop-filter: blur(4px); /* Performance-sensitive blur downgrade */
        -webkit-backdrop-filter: blur(4px);
    }
}

@media (max-width: 600px) {
    .flagship-intro-specs {
        grid-template-columns: repeat(2, 140px);
        gap: 16px;
        max-width: 340px;
    }
}

/* ==========================================================================
   3D Constellation Dome and Node Styles
   ========================================================================== */

#dome-starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dome-canvas-nodes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform-style: preserve-3d;
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

/* Standardized Dome Node Card */
/* 3D Art Landscape Terrain Layering & Parallax */
.scene-3d-terrain {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 320px;
    z-index: 1.5; /* between starry sky canvas and cards */
    pointer-events: none;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.terrain-ground-grid {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) perspective(300px) rotateX(76deg);
    transform-origin: center bottom;
    width: 160%;
    height: 320px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center bottom;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 85%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 85%);
    z-index: 0; /* behind all mountain ridges */
    opacity: 0.85;
    pointer-events: none;
}

.terrain-ridge {
    position: absolute;
    bottom: 0;
    left: -12%; /* Over-extend width slightly for horizontal rotation/pan visual safety margin */
    width: 124%;
    height: 100%;
    transform-origin: center bottom; /* Keep bottom aligned when scaled */
    will-change: transform;
}

.ridge-far {
    transform: translate3d(0, 30px, -300px) scale(2.0);
    z-index: 1;
    opacity: 0.75;
}

.ridge-mid {
    transform: translate3d(0, 50px, -150px) scale(1.6);
    z-index: 2;
    opacity: 0.88;
}

.ridge-near {
    transform: translate3d(0, 80px, 0px) scale(1.15);
    z-index: 3;
    opacity: 1;
}

/* Standardized Dome Node Card - Obsidian Premium Glassmorphism */
.dome-canvas-node {
    position: absolute;
    width: 220px;
    padding: 12px 14px;
    box-sizing: border-box;
    background: radial-gradient(circle at 50% -10%, rgba(35, 35, 42, 0.85) 0%, rgba(14, 14, 16, 0.72) 75%);
    /* High-end physical micro-border: bright top edge, dark bottom edge */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 22px 22px 10px 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    font-family: var(--font-ui);
    will-change: transform, opacity;
    pointer-events: auto;
    cursor: pointer;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.4s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Micro-micron-level etching pattern */
.dome-canvas-node::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 22px 22px 10px 10px;
    background-image: radial-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px);
    background-size: 14px 14px;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* Category Specific Border highlights - Champagne, Platinum, Titanium, Brass */
/* Orchestration (node-purple) -> Champagne Gold */
.dome-canvas-node.node-purple { 
    border-color: rgba(212, 175, 55, 0.28); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(212, 175, 55, 0.2); 
}
/* Core (node-blue) -> Platinum / White Gold */
.dome-canvas-node.node-blue { 
    border-color: rgba(229, 228, 226, 0.28); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(229, 228, 226, 0.2); 
}
/* Storyboard (node-green) -> Titanium Silver */
.dome-canvas-node.node-green { 
    border-color: rgba(180, 180, 185, 0.28); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(180, 180, 185, 0.2); 
}
/* Integration (node-amber) -> Brushed Brass Gold */
.dome-canvas-node.node-amber { 
    border-color: rgba(197, 160, 89, 0.28); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(197, 160, 89, 0.2); 
}

/* Node Hover Styles - Premium Metallic Glint */
.dome-canvas-node:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.dome-canvas-node.node-purple:hover { 
    border-color: rgba(212, 175, 55, 0.6); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(212, 175, 55, 0.12), inset 0 1px 2px rgba(212, 175, 55, 0.35); 
}
.dome-canvas-node.node-blue:hover { 
    border-color: rgba(229, 228, 226, 0.6); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(229, 228, 226, 0.12), inset 0 1px 2px rgba(229, 228, 226, 0.35); 
}
.dome-canvas-node.node-green:hover { 
    border-color: rgba(255, 255, 255, 0.5); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 255, 255, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.25); 
}
.dome-canvas-node.node-amber:hover { 
    border-color: rgba(197, 160, 89, 0.6); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(197, 160, 89, 0.12), inset 0 1px 2px rgba(197, 160, 89, 0.35); 
}

/* Expanded/Active State (Zoom & Detail Expansion) */
.dome-canvas-node.is-expanded {
    width: 290px;
    z-index: 9999 !important;
    border-color: #ffffff;
    background: rgba(10, 10, 12, 0.92);
}
.dome-canvas-node.node-purple.is-expanded { border-color: rgba(212, 175, 55, 0.95); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.25); }
.dome-canvas-node.node-blue.is-expanded { border-color: rgba(229, 228, 226, 0.95); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 228, 226, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.25); }
.dome-canvas-node.node-green.is-expanded { border-color: rgba(255, 255, 255, 0.95); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 255, 255, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.25); }
.dome-canvas-node.node-amber.is-expanded { border-color: rgba(197, 160, 89, 0.95); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(197, 160, 89, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.25); }

/* Node Header & Body - Flat layout inside cards (no translateZ) */
.dome-canvas-node .node-mock-hdr {
    font-size: 11px; /* Slightly larger */
    font-weight: 700; /* Bolder */
    letter-spacing: 0.05em;
    color: #ffffff; /* Pure white for high contrast */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1; /* keep above etching grid */
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3); /* Glowing text shadow */
}

.dome-canvas-node .node-mock-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1; /* keep above etching grid */
}

.dome-canvas-node .node-mock-prop {
    display: flex;
    justify-content: space-between;
    font-size: 8.5px;
    color: var(--text-soft);
}

.dome-canvas-node .node-mock-prop label {
    color: var(--text-faint);
    text-transform: uppercase;
    font-size: 7.5px;
    letter-spacing: 0.02em;
}

/* Port Dots - Flat layout on edges */
.node-port {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.4);
    top: 50%;
    transform: translateY(-50%); /* Removed translateZ */
    z-index: 10;
    pointer-events: none;
}
.node-port.left { left: -3px; }
.node-port.right { right: -3px; }

.node-purple .node-port { border-color: #d4af37; }
.node-blue .node-port { border-color: #e5e4e2; }
.node-green .node-port { border-color: #b4b4b9; }
.node-amber .node-port { border-color: #c5a059; }

/* Hidden technical details shown only on Click-to-Zoom (Flat transition) */
.node-detail-specs {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0;
    margin-top: 0;
    font-size: 8.5px;
    line-height: 1.6;
    color: var(--text-soft);
    pointer-events: none;
    position: relative;
    z-index: 1; /* keep above etching grid */
}

.dome-canvas-node.is-expanded .node-detail-specs {
    height: auto;
    opacity: 1;
    padding-top: 8px;
    margin-top: 8px;
    pointer-events: auto;
}

.node-detail-desc {
    font-size: 8.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.node-detail-specs-table {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 6px 8px;
}

.node-detail-spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 2px;
}
.node-detail-spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.node-detail-spec-row label {
    font-size: 7px;
    color: var(--text-faint);
    text-transform: uppercase;
}

.node-detail-spec-row span {
    font-size: 8px;
    color: var(--accent);
    font-weight: 500;
}

/* Dimming effect for non-focused nodes */
.dome-canvas-node.dimmed {
    opacity: 0.12;
    pointer-events: none;
    filter: blur(1.5px);
}

/* ==========================================================================
   Flagship Epilogue (Cinematic Typography)
   ========================================================================== */
.flagship-epilogue-section {
    position: relative;
    width: 100%;
    /* Act as the scroll buffer + final page */
    padding: 25vh 20px 20vh 20px;
    background: #020202;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
}

.flagship-epilogue-section .epi-content {
    max-width: 540px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.epi-stanza {
    font-family: 'SimSun', 'Songti SC', 'STSong', serif;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 2.6;
    letter-spacing: 0.25em;
    font-weight: 300;
    margin: 0 0 1.2rem 0;
    color: rgba(220, 220, 225, 0.9);
    transition-duration: 1.4s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}

.epi-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    margin: 4rem auto;
    transition-duration: 1.2s;
}

.epi-tips-intro {
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-bottom: 1.5rem;
    line-height: 2.2;
    letter-spacing: 0.2em;
    font-family: 'SimSun', 'Songti SC', 'STSong', serif;
    transition-duration: 1.2s;
}

.epi-tips {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
    max-width: 380px;
    margin: 0 auto;
}

.epi-tip-item {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 2.2;
    letter-spacing: 0.15em;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    font-family: 'SimSun', 'Songti SC', 'STSong', serif;
    transition-duration: 1.2s;
}

.epi-tip-item:hover {
    border-left-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
}
