/* ================================
   LUMA OPTICS - CRUSOE MICROSITE
   Brand Colors & Variables
   ================================ */

:root {
    /* Luma Brand Colors */
    --color-bg-dark: #0a1628;
    --color-bg-darker: #060d17;
    --color-bg-card: #0f1f35;
    --color-bg-card-hover: #142743;

    /* Primary Accent - Teal/Mint */
    --color-primary: #4ecdc4;
    --color-primary-light: #7eddd6;
    --color-primary-dark: #3db3ab;
    --color-primary-glow: rgba(78, 205, 196, 0.3);

    /* Secondary - Gold/Amber for Golden Reference */
    --color-gold: #f5a623;
    --color-gold-light: #ffc857;
    --color-gold-dark: #d4900a;
    --color-gold-glow: rgba(245, 166, 35, 0.3);

    /* Warning/Attention - for Reality Check */
    --color-warning: #ff6b6b;
    --color-warning-light: #ff8f8f;

    /* Success */
    --color-success: #4ecdc4;

    /* Neutrals */
    --color-white: #ffffff;
    --color-gray-100: #f0f4f8;
    --color-gray-200: #d9e2ec;
    --color-gray-300: #9fb3c8;
    --color-gray-400: #627d98;
    --color-gray-500: #486581;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --content-max-width: 1600px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

/* ================================
   RESET & BASE STYLES
   ================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ================================
   HEADER
   ================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(to bottom, var(--color-bg-darker), transparent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-white);
}

.header-badge {
    padding: 8px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
}

/* ================================
   PROGRESS BAR
   ================================ */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-bg-darker);
    z-index: 101;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width var(--transition-base);
}

/* ================================
   NAVIGATION SIDEBAR
   ================================ */

.nav-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
}

/* Dots column (always visible) */
.nav-sidebar-dots {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 14px;
    background: rgba(10, 22, 40, 0.8);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border: 1px solid var(--color-gray-500);
    border-left: none;
    backdrop-filter: blur(10px);
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gray-500);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.nav-dot:hover {
    background: var(--color-gray-300);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Expanded panel (shown on hover) */
.nav-sidebar-panel {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    min-width: 200px;
    padding: 16px;
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid var(--color-gray-500);
    border-left: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-sidebar:hover .nav-sidebar-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.nav-sidebar:hover .nav-sidebar-dots {
    opacity: 0;
    pointer-events: none;
}

.nav-sidebar-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gray-400);
    padding: 8px 12px 12px;
    border-bottom: 1px solid var(--color-gray-500);
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgba(78, 205, 196, 0.1);
}

.nav-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray-500);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.nav-item:hover .nav-item-dot {
    background: var(--color-gray-300);
}

.nav-item.active .nav-item-dot {
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
}

.nav-item-label {
    font-size: 13px;
    color: var(--color-gray-300);
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav-item:hover .nav-item-label {
    color: var(--color-white);
}

.nav-item.active .nav-item-label {
    color: var(--color-primary-light);
    font-weight: 500;
}

/* ================================
   SECTIONS BASE
   ================================ */

.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) 24px;
}

.section-content {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
}

/* Wide section for testing with space for nav dots */
.section-testing .section-content {
    max-width: calc(100% - 80px);
    padding: 0 20px;
    margin-right: 60px;
}

/* Example data badge */
.example-data-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--color-gold-light);
}

.example-data-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Compact width for compatibility matrix */
.section-reality .section-content {
    max-width: 1100px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-gray-300);
    max-width: 700px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-warning {
    background: linear-gradient(135deg, var(--color-warning), var(--color-warning-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--color-primary-glow);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ================================
   SECTION 1: HERO
   ================================ */

.section-hero {
    background: radial-gradient(ellipse at 50% 0%, var(--color-bg-card) 0%, var(--color-bg-dark) 60%);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.fiber-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background:
        radial-gradient(circle at 30% 40%, var(--color-primary-glow) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(78, 205, 196, 0.15) 0%, transparent 35%);
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-gray-300);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-gray-500);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray-400);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-gray-400);
    font-size: 13px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 12px auto 0;
    border-right: 2px solid var(--color-gray-400);
    border-bottom: 2px solid var(--color-gray-400);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================
   SECTION 2: ARCHITECTURE
   ================================ */

.section-architecture {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.arch-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
}

.arch-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.arch-card-highlight {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(78, 205, 196, 0.08) 100%);
}

.arch-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.arch-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
}

.arch-icon.infiniband {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.arch-icon.ethernet {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.arch-icon.gpu {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.arch-card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.device-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-500);
}

.device-row:last-child {
    border-bottom: none;
}

.device-label {
    font-size: 14px;
    color: var(--color-gray-300);
}

.device-value {
    font-size: 13px;
    font-family: monospace;
    color: var(--color-primary);
}

.device-badge {
    padding: 4px 10px;
    background: var(--color-primary-glow);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

.arch-description {
    font-size: 14px;
    color: var(--color-gray-300);
    margin-bottom: 20px;
}

.connection-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.endpoint {
    padding: 8px 16px;
    background: var(--color-bg-darker);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    position: relative;
}

.connector::before,
.connector::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.connector::before { left: -4px; }
.connector::after { right: -4px; }

/* ================================
   SECTION 3: NETWORK TOPOLOGY ANIMATION
   ================================ */

.section-topology {
    background: radial-gradient(1400px 800px at 50% 10%, #0b2347 0%, var(--color-bg-darker) 55%, #030712 100%);
    overflow: visible;
    padding-top: 60px;
    padding-bottom: 60px;
}

.topology-content {
    max-width: 1500px;
    padding: 0 40px;
}

/* Hero text above topology */
.topo-hero {
    text-align: center;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-topology.is-visible .topo-hero {
    opacity: 1;
    transform: translateY(0);
}

.topo-kicker {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(34, 211, 238, 0.8);
    font-size: 12px;
}

.topo-title {
    margin: 10px 0 8px;
    font-weight: 750;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.08;
}

.topo-highlight {
    color: rgba(34, 211, 238, 0.9);
}

.topo-subtitle {
    margin: 0 auto;
    max-width: 680px;
    color: rgba(233, 243, 255, 0.70);
    font-size: 14px;
}

/* Topology card container */
.topology-card {
    margin-top: 26px;
    background: linear-gradient(180deg, rgba(9, 20, 42, 0.7) 0%, rgba(6, 12, 26, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 20px 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-topology.is-visible .topology-card {
    opacity: 1;
    transform: translateY(0);
}

.topology-card svg {
    width: 100%;
    height: auto;
    min-height: 500px;
    display: block;
}

/* SVG Labels */
.topo-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    fill: rgba(233, 243, 255, 0.7);
}

.topo-label.gpu-label {
    fill: rgba(251, 191, 36, 0.85);
}

.topo-sub {
    font-size: 11px;
    fill: rgba(233, 243, 255, 0.55);
}

/* Node styling */
.topo-node rect {
    rx: 12;
    ry: 12;
    fill: rgba(255, 255, 255, 0.04);
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 1;
}

.topo-node-title {
    font-size: 12px;
    fill: rgba(233, 243, 255, 0.85);
    font-weight: 650;
}

.topo-node-meta {
    font-size: 10px;
    fill: rgba(233, 243, 255, 0.55);
}

/* Color accents */
.topo-node.ib rect {
    stroke: rgba(139, 92, 246, 0.55);
}

.topo-node.eth rect {
    stroke: rgba(34, 211, 238, 0.55);
}

.topo-node.gpu rect {
    stroke: rgba(251, 191, 36, 0.55);
}

.glow-ib {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.35));
}

.glow-eth {
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.30));
}

.glow-gpu {
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.25));
}

/* Links */
.topo-link {
    fill: none;
    stroke: rgba(255, 255, 255, 0.10);
    stroke-width: 2;
}

.topo-link.ib {
    stroke: rgba(139, 92, 246, 0.35);
}

.topo-link.eth {
    stroke: rgba(34, 211, 238, 0.35);
}

/* Data flow lines: animated dashed stroke */
.topo-flow {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 10 10;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.topo-flow.ib {
    stroke: rgba(139, 92, 246, 0.95);
}

.topo-flow.eth {
    stroke: rgba(34, 211, 238, 0.95);
}

/* Transceivers */
.topo-tx {
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.topo-tx circle {
    fill: rgba(255, 255, 255, 0.10);
    stroke-width: 2;
}

.topo-tx.ib circle {
    stroke: rgba(139, 92, 246, 0.9);
}

.topo-tx.eth circle {
    stroke: rgba(34, 211, 238, 0.9);
}

/* Legend */
.topo-legend text {
    font-size: 11px;
    fill: rgba(233, 243, 255, 0.65);
}

/* Keyframes */
@keyframes topo-pulse {
    0% { transform: scale(1); opacity: 0.65; }
    50% { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); opacity: 0.70; }
}

@keyframes topo-data-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -160; }
}

/* Triggered state */
.section-topology.is-visible .topo-flow {
    opacity: 0.95;
    animation: topo-data-flow 1.6s linear infinite;
}

.section-topology.is-visible .topo-tx {
    opacity: 1;
    animation: topo-pulse 1.35s ease-in-out infinite;
}

/* Staggered animation delays */
.section-topology.is-visible .topo-tx.d2 { animation-delay: 0.12s; }
.section-topology.is-visible .topo-tx.d3 { animation-delay: 0.24s; }
.section-topology.is-visible .topo-tx.d4 { animation-delay: 0.36s; }
.section-topology.is-visible .topo-tx.d5 { animation-delay: 0.48s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .topo-flow, .topo-tx { animation: none !important; }
    .topo-hero, .topology-card, .topo-flow, .topo-tx { transition: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
    .topology-card {
        padding: 12px 8px 8px;
    }

    .topology-card svg {
        min-height: 400px;
    }
}

/* ================================
   SECTION 4: LUMA CLOUD
   ================================ */

.section-cloud {
    background: var(--color-bg-darker);
}

.cloud-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.cloud-image-container {
    position: relative;
}

.image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-gray-500);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.showcase-image {
    width: 100%;
    display: block;
}

.image-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-gray-300);
}

.caption-icon svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.cloud-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-md);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.feature-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 14px;
    color: var(--color-gray-300);
}

/* ================================
   SECTION 4: GOLDEN REFERENCE
   ================================ */

.section-golden {
    background: var(--color-bg-dark);
    overflow: hidden;
}

.golden-glow {
    position: absolute;
    top: 50%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 60%);
    filter: blur(80px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.golden-showcase {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: start;
}

.golden-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 0 40px var(--color-gold-glow);
}

.golden-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.golden-badge svg {
    width: 16px;
    height: 16px;
}

.golden-image-container {
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.golden-image {
    width: 100%;
}

.golden-benefits {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.benefit {
    display: flex;
    gap: 20px;
}

.benefit-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.benefit-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.benefit-content p {
    font-size: 14px;
    color: var(--color-gray-300);
}

/* ================================
   SECTION 5: TESTING
   ================================ */

.section-testing {
    background: linear-gradient(180deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
}

.testing-tabs {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: var(--color-bg-darker);
    border-bottom: 1px solid var(--color-gray-500);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray-300);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
}

.tab-btn:hover {
    background: var(--color-bg-card);
    color: var(--color-white);
}

.tab-btn.active {
    background: var(--color-bg-card);
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-count {
    padding: 4px 10px;
    background: var(--color-primary-glow);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

.tab-content {
    padding: 32px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.test-overview {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-gray-500);
}

.test-stats {
    display: flex;
    gap: 24px;
}

.test-stat {
    text-align: center;
    padding: 16px 24px;
    background: var(--color-bg-darker);
    border-radius: var(--radius-md);
}

.test-stat .stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.test-stat .stat-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.test-stat.passed .stat-num { color: var(--color-primary); }
.test-stat.na .stat-num { color: var(--color-gray-400); }
.test-stat.failed .stat-num { color: var(--color-warning); }

.test-description {
    flex: 1;
}

.test-description h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.test-description p {
    font-size: 14px;
    color: var(--color-gray-300);
}

.test-image-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-gray-500);
}

.test-image {
    width: 100%;
}

/* ================================
   SECTION 6: REALITY CHECK
   ================================ */

.section-reality {
    background: var(--color-bg-dark);
}

.reality-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.reality-card {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
}

.reality-card.warning {
    border-left: 4px solid var(--color-warning);
}

.reality-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.15);
    border-radius: var(--radius-md);
}

.reality-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-warning);
}

.reality-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.reality-text p {
    font-size: 14px;
    color: var(--color-gray-300);
}

.compatibility-showcase {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.compat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.compat-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.compat-legend {
    display: flex;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray-300);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-item.works .legend-dot { background: #4ade80; }
.legend-item.issues .legend-dot { background: #ef4444; }
.legend-item.workaround .legend-dot { background: #fbbf24; }

.compat-image-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.compat-image {
    width: 100%;
}

.compat-caption {
    font-size: 13px;
    color: var(--color-gray-400);
    font-style: italic;
}

.scenarios-grid {
    margin-top: 24px;
}

.scenarios-grid h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.scenario-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scenario-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.scenario-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.scenario-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.scenario-label {
    padding: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-200);
    text-align: center;
}

.reality-quote {
    text-align: center;
    padding: 40px;
}

.reality-quote blockquote {
    font-size: 20px;
    font-style: italic;
    color: var(--color-gray-200);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.reality-quote blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -30px;
    font-size: 80px;
    color: var(--color-primary-glow);
    font-family: Georgia, serif;
}

/* ================================
   SECTION 7: PARTNERSHIP
   ================================ */

.section-partnership {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.partner-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.partner-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.partner-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-glow);
    border-radius: 50%;
}

.partner-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.partner-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.partner-card p {
    font-size: 14px;
    color: var(--color-gray-300);
}

.cta-section {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(78, 205, 196, 0.08) 100%);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-xl);
    margin-bottom: 60px;
}

.cta-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: var(--color-gray-300);
    margin-bottom: 28px;
}

/* ================================
   FOOTER
   ================================ */

.site-footer {
    padding-top: 40px;
    border-top: 1px solid var(--color-gray-500);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-gray-400);
}

.footer-text {
    font-size: 14px;
    color: var(--color-gray-400);
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--color-gray-500);
}

/* ================================
   KEYBOARD HINT
   ================================ */

.keyboard-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--color-gray-400);
    opacity: 1;
    transition: opacity var(--transition-slow);
    z-index: 50;
}

.keyboard-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

kbd {
    padding: 4px 8px;
    background: var(--color-bg-darker);
    border: 1px solid var(--color-gray-500);
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .cloud-showcase,
    .golden-showcase {
        grid-template-columns: 1fr;
    }

    .partnership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenario-cards {
        grid-template-columns: 1fr;
    }

    .test-overview {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .header {
        padding: 16px 20px;
    }

    .nav-dots {
        display: none;
    }

    .architecture-grid {
        grid-template-columns: 1fr;
    }

    .partnership-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-left-color: var(--color-primary);
        border-bottom-color: transparent;
    }

    .compat-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .compat-legend {
        flex-wrap: wrap;
    }

    .keyboard-hint {
        display: none;
    }
}

/* ================================
   ANIMATIONS
   ================================ */

.section-content {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection Observer Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   LIGHTBOX FOR IMAGE ENLARGEMENT
   ================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

/* Clickable images */
.test-image-container,
.compat-image-container,
.scenario-card,
.golden-image-container {
    cursor: zoom-in;
}

.test-image-container:hover,
.compat-image-container:hover,
.golden-image-container:hover {
    opacity: 0.95;
}

/* Image zoom hint */
.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--color-gray-200);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.test-image-container:hover .zoom-hint,
.compat-image-container:hover .zoom-hint {
    opacity: 1;
}

.test-image-container,
.compat-image-container {
    position: relative;
}

/* ================================
   COMPATIBILITY TABLE
   ================================ */

.compat-table-container {
    overflow-x: auto;
    margin-bottom: 24px;
}

.compat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--color-bg-darker);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.compat-table thead {
    background: var(--color-bg-card);
}

.compat-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    color: var(--color-gray-200);
    border-bottom: 2px solid var(--color-gray-500);
    white-space: nowrap;
}

.compat-table th.row-num {
    width: 40px;
    color: var(--color-gray-400);
}

.compat-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--color-gray-500);
    color: var(--color-gray-300);
}

.compat-table tbody tr:last-child td {
    border-bottom: none;
}

.compat-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Status cell colors */
.status-pass {
    background: rgba(74, 222, 128, 0.15) !important;
    color: #4ade80 !important;
    font-weight: 600;
}

.status-fail {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    font-weight: 700;
    position: relative;
    cursor: help;
}

.status-warn {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fbbf24 !important;
    font-weight: 600;
}

.status-na {
    background: rgba(107, 114, 128, 0.1) !important;
    color: var(--color-gray-400) !important;
}

/* Tooltip for failed cells */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-warning);
    border-radius: var(--radius-sm);
    color: var(--color-gray-100);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    width: 280px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
    pointer-events: none;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-warning);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 101;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Device legend styling */
.compat-device-legend {
    margin-top: 24px;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-md);
}

.compat-device-legend h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-200);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.device-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.device-legend-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 13px;
}

.device-legend-item strong {
    color: var(--color-primary);
    font-family: monospace;
    min-width: 70px;
}

.device-legend-item span {
    color: var(--color-gray-300);
}

/* Responsive table */
@media (max-width: 900px) {
    .compat-table {
        font-size: 11px;
    }

    .compat-table th,
    .compat-table td {
        padding: 8px 6px;
    }

    [data-tooltip]::after {
        width: 220px;
        left: 0;
        transform: translateX(0);
    }

    [data-tooltip]::before {
        left: 20px;
        transform: translateX(0);
    }
}

/* ================================
   TEST REPORT TABLES
   ================================ */

.test-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-500);
}

.test-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--color-bg-darker);
}

.test-report-table thead {
    background: #0a0f14;
    position: sticky;
    top: 0;
    z-index: 10;
}

.test-report-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-200);
    border-bottom: 2px solid var(--color-primary);
    white-space: nowrap;
}

.test-report-table td {
    padding: 12px;
    border-bottom: 1px solid var(--color-gray-500);
    vertical-align: top;
    color: var(--color-gray-300);
}

.test-report-table tbody tr {
    background: rgba(26, 35, 46, 0.5);
    transition: background var(--transition-fast);
}

.test-report-table tbody tr:nth-child(even) {
    background: rgba(13, 18, 24, 0.5);
}

.test-report-table tbody tr:hover {
    background: rgba(36, 48, 64, 0.6);
}

/* Category cell styling */
.category-cell {
    font-weight: 600;
    color: var(--color-primary-light);
    border-left: 3px solid var(--color-primary);
    padding-left: 12px !important;
    min-width: 140px;
    background: rgba(78, 205, 196, 0.05);
}

.test-name {
    font-weight: 500;
    color: var(--color-white);
    min-width: 180px;
}

/* Environment badges */
.env-cell {
    white-space: nowrap;
}

.env-badge {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 4px;
    color: var(--color-primary-light);
    font-weight: 500;
}

.env-badge.warning {
    background: rgba(245, 166, 35, 0.15);
    border-color: rgba(245, 166, 35, 0.3);
    color: var(--color-gold-light);
}

.env-badge.cold {
    background: rgba(99, 179, 237, 0.15);
    border-color: rgba(99, 179, 237, 0.3);
    color: #63b3ed;
}

.env-badge.cycle {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
    color: #a78bfa;
}

.env-badge.stress {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--color-warning-light);
}

/* Result badges */
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.result-badge.pass {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-badge.pass::before {
    content: '✓';
    font-weight: bold;
}

.result-badge.fail {
    background: rgba(248, 81, 73, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.result-badge.fail::before {
    content: '✗';
    font-weight: bold;
}

.result-badge.na {
    background: rgba(125, 138, 150, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(125, 138, 150, 0.2);
}

/* Log file links */
.log-cell {
    min-width: 140px;
}

.log-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-primary-light);
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.log-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.log-link::before {
    content: '📄';
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .test-report-table {
        font-size: 12px;
    }

    .test-report-table th,
    .test-report-table td {
        padding: 10px 8px;
    }

    .test-name {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .test-table-container {
        margin: 0 -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .test-report-table {
        font-size: 11px;
    }

    .test-report-table th,
    .test-report-table td {
        padding: 8px 6px;
    }

    .category-cell {
        min-width: 100px;
    }

    .test-name {
        min-width: 120px;
    }
}

/* ================================
   LOG VIEWER MODAL
   ================================ */

.log-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.log-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.log-modal {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-lg);
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.log-modal-overlay.open .log-modal {
    transform: scale(1);
}

.log-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-gray-500);
    background: var(--color-bg-darker);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.log-modal-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-modal-title svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
}

.log-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-sm);
    color: var(--color-gray-300);
    font-family: inherit;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.log-modal-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-dark);
}

.log-modal-btn svg {
    width: 14px;
    height: 14px;
}

.log-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-gray-400);
    cursor: pointer;
    transition: all 0.15s;
}

.log-modal-close:hover {
    background: var(--color-bg-card);
    color: var(--color-white);
}

.log-modal-close svg {
    width: 20px;
    height: 20px;
}

.log-modal-content {
    flex: 1;
    overflow: auto;
    padding: 16px;
    background: var(--color-bg-darker);
}

.log-modal-pre {
    margin: 0;
    padding: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--color-gray-300);
    white-space: pre-wrap;
    word-break: break-all;
}

.log-modal-pre .line-number {
    display: inline-block;
    width: 4em;
    color: var(--color-gray-500);
    opacity: 0.6;
    user-select: none;
    text-align: right;
    margin-right: 1.5em;
}

/* Log syntax highlighting */
.log-timestamp { color: var(--color-gray-400); }
.log-error { color: #f87171; font-weight: 600; }
.log-success { color: #34d399; font-weight: 600; }
.log-warning { color: #fbbf24; }
.log-info { color: var(--color-primary-light); }
.log-command { color: #22d3ee; }
.log-ip { color: #a78bfa; }
.log-number { color: var(--color-gold-light); }
.log-keyword { color: var(--color-primary); }
.log-path { color: var(--color-gray-400); }
.log-bracket { color: var(--color-gray-500); }

/* Loading state */
.log-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
    color: var(--color-gray-400);
    font-size: 14px;
}

.log-modal-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-gray-500);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error state */
.log-modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    color: var(--color-gray-400);
    text-align: center;
    padding: 40px;
}

.log-modal-error svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-gray-500);
}

/* ================================
   INTERACTIVE TOUR
   ================================ */

.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tour-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tour-spotlight {
    position: absolute;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
    transition: all 0.4s ease;
}

.tour-tooltip {
    position: fixed;
    max-width: 360px;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--color-primary-glow);
    z-index: 501;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tour-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tour-tooltip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tour-tooltip-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-glow);
    border-radius: 50%;
    color: var(--color-primary);
}

.tour-tooltip-icon svg {
    width: 20px;
    height: 20px;
}

.tour-tooltip-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
}

.tour-tooltip-content {
    font-size: 14px;
    color: var(--color-gray-300);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tour-tooltip-content strong {
    color: var(--color-primary-light);
}

.tour-tooltip-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-steps {
    font-size: 12px;
    color: var(--color-gray-400);
}

.tour-btn {
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tour-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
}

.tour-btn-skip {
    background: transparent;
    color: var(--color-gray-400);
    padding: 10px 16px;
}

.tour-btn-skip:hover {
    background: var(--color-bg-darker);
    color: var(--color-gray-200);
}

/* Pulse animation for highlighted elements */
@keyframes tour-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--color-primary-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.tour-highlight {
    animation: tour-pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 502;
}
