/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Storybook Container */
#storybook {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #5b73ff);
    width: 12.5%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Navigation */
.story-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-btn {
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.2);
}

.page-indicator {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* Side Navigation Buttons */
.side-nav-buttons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-nav-buttons.visible {
    opacity: 1;
}

.side-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.side-nav-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.side-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.side-nav-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.left-nav {
    left: 20px;
}

.right-nav {
    right: 20px;
}

.nav-arrow {
    font-weight: bold;
    line-height: 1;
}

/* Story Container */
.story-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Story Pages */
.story-page {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 40px;
    pointer-events: none;
}

.story-page.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.story-page.prev {
    transform: translateX(-100px);
}

/* Page Content Layout */
.page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.text-content {
    padding: 20px;
}

.text-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.text-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* Page 1: Enhanced Infrastructure Crisis Visualization */
.chaos-visualization {
    width: 450px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.2);
}

.chaos-header {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chaos-title {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.chaos-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.chaos-network {
    flex: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    padding: 20px;
}

.chaos-node {
    position: absolute;
    background: rgba(255, 68, 68, 0.15);
    border: 2px solid rgba(255, 68, 68, 0.5);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    animation: chaosNodeAppear 0.5s ease forwards, chaosShake 3s ease-in-out infinite;
    opacity: 0;
    transform: scale(0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 85px;
    max-width: 120px;
}

.chaos-node:nth-child(1) { animation-delay: 0.2s; }
.chaos-node:nth-child(2) { animation-delay: 0.4s; }
.chaos-node:nth-child(3) { animation-delay: 0.6s; }
.chaos-node:nth-child(4) { animation-delay: 0.8s; }
.chaos-node:nth-child(5) { animation-delay: 1s; }

@keyframes chaosNodeAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes chaosShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-2px) rotate(-1deg); }
    75% { transform: translateX(2px) rotate(1deg); }
}

.chaos-node:hover {
    background: rgba(255, 68, 68, 0.25);
    border-color: rgba(255, 68, 68, 0.8);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

.node-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.node-icon.error { 
    color: #ff4444;
    animation: errorPulse 2s ease-in-out infinite;
}

.node-icon.warning { 
    color: #ffaa00;
    animation: warningFlash 1.5s ease-in-out infinite;
}

.node-icon.critical { 
    color: #ff0000;
    animation: criticalBlink 1s ease-in-out infinite;
}

.node-icon.unknown { 
    color: #888;
    animation: unknownSpin 3s linear infinite;
}

@keyframes errorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes warningFlash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

@keyframes criticalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes unknownSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.node-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 4px;
}

.error-indicator {
    font-size: 0.6rem;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 68, 68, 0.4);
}

.chaos-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.chaos-connections line {
    animation: chaosLineFlicker 2s ease-in-out infinite;
    stroke-dasharray: 5, 5;
    stroke-dashoffset: 10;
}

@keyframes chaosLineFlicker {
    0%, 100% { opacity: 0.6; stroke-dashoffset: 10; }
    50% { opacity: 0.3; stroke-dashoffset: 0; }
}

.crisis-problems {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 68, 68, 0.05);
    border-left: 3px solid #ff4444;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.problem-item:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: translateX(5px);
}

.problem-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.problem-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.problem-text strong {
    color: #ff6b6b;
}




/* Stat Highlights */
.stat-highlights {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Page 2: Pain Points */
.pain-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 400px;
}

.pain-point {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: pain-point-appear 0.8s forwards;
    animation-delay: var(--delay);
}

.pain-point .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.pain-list {
    list-style: none;
    margin-top: 20px;
}

.pain-list li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.pain-list li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

@keyframes pain-point-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page 3: Logo Reveal */
.logo-reveal {
    position: relative;
    text-align: center;
}

.haze-logo {
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #5b73ff, #00d4ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.mission {
    font-size: 1.4rem !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 30px 0 !important;
}

blockquote {
    border-left: 4px solid #00d4ff;
    padding-left: 20px;
    margin: 30px 0;
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* Page 4: Discovery Process */
.discovery-process {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.discovery-step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 40px;
    width: 300px;
    opacity: 0;
    transform: translateX(-50px);
    animation: step-appear 0.8s forwards;
    animation-delay: calc(var(--step) * 0.3s);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.discovery-step:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateX(-40px) scale(1.02);
}

.step-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    border-radius: 50%;
}

.step-label {
    font-size: 1.2rem;
    font-weight: 600;
}

.process-details {
    margin-top: 30px;
}

.process-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.process-item:last-child {
    border-bottom: none;
}

@keyframes step-appear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.discovery-step:hover,
.discovery-step.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateX(10px);
}

/* Discovery step details */
.step-details {
    position: relative;
    margin-top: 30px;
}

.step-detail {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    animation: fadeIn 0.5s ease;
}

.step-detail.active {
    display: block;
}

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

.step-detail h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-detail ul {
    list-style: none;
    margin: 15px 0;
}

.step-detail li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.step-detail li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

/* Page 5: Feature Showcase */
.feature-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    user-select: none;
}

.feature-card:hover,
.feature-card.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    border-radius: 50%;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-details {
    position: relative;
}

.feature-detail {
    display: none;
    animation: fadeIn 0.5s ease;
}

.feature-detail.active {
    display: block;
}

.feature-detail h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-detail ul {
    list-style: none;
    margin: 15px 0;
}

.feature-detail li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.feature-detail li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

/* Page 5: Knowledge Engine */
.knowledge-engine-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    min-width: 600px;
}

.flow-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.flow-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 20px 30px;
    text-align: center;
    transition: all 0.3s ease;
    animation: flowItemAppear 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.flow-row.row-1 .flow-item:nth-child(1) { animation-delay: 0.2s; }
.flow-row.row-1 .flow-item:nth-child(2) { animation-delay: 0.4s; }
.flow-row.row-1 .flow-item:nth-child(3) { animation-delay: 0.6s; }
.flow-row.row-2 .flow-item { animation-delay: 0.8s; }
.flow-row.row-3 .flow-item:nth-child(1) { animation-delay: 1s; }
.flow-row.row-3 .flow-item:nth-child(2) { animation-delay: 1.2s; }

@keyframes flowItemAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.source-icon, .engine-icon, .output-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.source-label, .engine-label, .output-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.engine-core {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(91, 115, 255, 0.2));
    border-color: rgba(0, 212, 255, 0.5);
    padding: 30px 50px;
}

.engine-core .engine-icon {
    font-size: 3rem;
    animation: robotPulse 2s ease-in-out infinite;
}

@keyframes robotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: connectorAppear 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

@keyframes connectorAppear {
    to { opacity: 1; }
}

.connector-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(0, 212, 255, 0.6), rgba(0, 212, 255, 0.2));
}

.connector-arrow {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-top: -5px;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.engine-features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.engine-feature {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #00d4ff;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.engine-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.engine-feature h3 {
    color: #00d4ff;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.engine-feature p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Page 8: ThoughtFlow Process Builder */
.thoughtflow-demo {
    width: 480px;
    height: 520px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(91, 115, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(91, 115, 255, 0.2);
}

.thoughtflow-header {
    background: linear-gradient(135deg, #5b73ff, #00d4ff);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thoughtflow-title {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.thoughtflow-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.thoughtflow-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.user-request {
    animation: requestAppear 0.5s ease forwards;
}

.request-bubble {
    background: rgba(91, 115, 255, 0.15);
    border: 1px solid rgba(91, 115, 255, 0.3);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.request-icon {
    font-size: 1.2rem;
}

.request-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-style: italic;
}

.ai-thinking {
    animation: thinkingAppear 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

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

@keyframes thinkingAppear {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

.thinking-header, .ranking-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.ai-icon {
    font-size: 1.1rem;
}

.thought-bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thought-bubble {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(91, 115, 255, 0.6);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: thoughtAppear 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
}

.thought-bubble[data-step="1"] { animation-delay: 0.8s; }
.thought-bubble[data-step="2"] { animation-delay: 1.2s; }

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

.thought-icon {
    font-size: 1rem;
}

.thought-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.ai-plan {
    background: rgba(0, 212, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    animation: planAppear 0.8s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes planAppear {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.plan-header {
    font-size: 0.9rem;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 12px;
}

.plan-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.plan-step {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: stepAppear 0.4s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}

.plan-step:nth-child(1) { animation-delay: 1.8s; }
.plan-step:nth-child(3) { animation-delay: 2.1s; }
.plan-step:nth-child(5) { animation-delay: 2.4s; }

@keyframes stepAppear {
    to { opacity: 1; transform: scale(1); }
}

.step-number {
    background: #00d4ff;
    color: #0a0a0a;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.step-action {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.plan-arrow {
    color: #00d4ff;
    font-size: 1.2rem;
    animation: arrowAppear 0.3s ease forwards;
    opacity: 0;
}

.plan-arrow:nth-child(2) { animation-delay: 2.0s; }
.plan-arrow:nth-child(4) { animation-delay: 2.3s; }

@keyframes arrowAppear {
    to { opacity: 1; }
}

.ai-ranking {
    background: rgba(255, 193, 7, 0.08);
    border-radius: 10px;
    padding: 15px;
    animation: rankingAppear 0.8s ease forwards;
    animation-delay: 2.7s;
    opacity: 0;
}

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

.ranking-analysis {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-score {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.rank-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.improvement-note {
    background: rgba(91, 115, 255, 0.15);
    border-left: 3px solid #5b73ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

.thoughtflow-features {
    margin-top: 25px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(91, 115, 255, 0.05);
    border-left: 3px solid #5b73ff;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.feature-row:hover {
    background: rgba(91, 115, 255, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.3rem;
    min-width: 25px;
}

.feature-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
}

.feature-text strong {
    color: #5b73ff;
}

/* Page 6: AI Chat Automation */
.chat-interface {
    width: 380px;
    height: 560px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chat-header {
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    padding: 15px 20px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.chat-title {
    font-weight: 600;
    color: white;
    flex: 1;
}

.chat-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    color: white;
    padding: 12px 16px;
    border-radius: 18px 18px 5px 18px;
    font-size: 0.9rem;
}

.ai-message {
    align-self: flex-start;
}

.ai-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 5px;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    align-self: flex-end;
}

.user-message .message-time {
    align-self: flex-end;
}

.ai-message .message-time {
    align-self: flex-start;
}

.thinking {
    color: #00d4ff;
    font-style: italic;
    margin-bottom: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

.step {
    margin: 4px 0;
    color: #4CAF50;
    font-size: 0.85rem;
}

.result {
    margin-top: 8px;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input button {
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.chat-capabilities {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.capability-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.capability-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.capability-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
}

.capability-text strong {
    color: #00d4ff;
}

.cost-savings-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
}

.cost-savings-section h3 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cost-savings-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.savings-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.dashboard-item {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid;
    transform: translateY(20px);
    opacity: 0;
    animation: dashboard-slide-up 0.6s ease forwards;
}

.dashboard-item.savings-high {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    animation-delay: 0.2s;
}

.dashboard-item.savings-medium {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    animation-delay: 0.4s;
}

.dashboard-item.savings-low {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
    animation-delay: 0.6s;
}

.savings-amount {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.savings-high .savings-amount {
    color: #4CAF50;
}

.savings-medium .savings-amount {
    color: #FFC107;
}

.savings-low .savings-amount {
    color: #2196F3;
}

.savings-detail {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideInRight {
    from { 
        transform: translateX(50px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideInLeft {
    from { 
        transform: translateX(-50px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

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

@keyframes dashboard-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Page 7: Architecture */
.architecture-diagram {
    position: relative;
    width: 400px;
    height: 300px;
}

.arch-component {
    position: absolute;
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    animation: arch-float 3s ease-in-out infinite;
}

.arch-component[data-component="registry"] {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.arch-component[data-component="ai"] {
    top: 20px;
    right: 20px;
    animation-delay: 0.5s;
}

.arch-component[data-component="graph"] {
    bottom: 20px;
    left: 20px;
    animation-delay: 1s;
}

.arch-component[data-component="vector"] {
    bottom: 20px;
    right: 20px;
    animation-delay: 1.5s;
}


.tech-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.tech-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

@keyframes arch-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* Page 7: Results */
.results-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after {
    display: flex;
    align-items: center;
    gap: 50px;
}

.before, .after {
    text-align: center;
}

.label {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.chaos-state, .clarity-state {
    font-size: 4rem;
    animation: result-pulse 2s ease-in-out infinite;
}

.clarity-state {
    animation-delay: 1s;
}

.arrow {
    font-size: 3rem;
    color: #00d4ff;
    animation: arrow-glow 2s ease-in-out infinite;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.metric {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.impact-summary {
    font-size: 1.3rem !important;
    text-align: center;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

@keyframes result-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes arrow-glow {
    0%, 100% { color: #00d4ff; text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
    50% { color: #5b73ff; text-shadow: 0 0 20px rgba(91, 115, 255, 0.8); }
}

/* Page 8: Get Started */
.cta-visual {
    text-align: center;
    position: relative;
}

.rocket {
    font-size: 6rem;
    animation: rocket-launch 3s ease-in-out infinite;
}


.demo-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.benefit-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.cta-primary, .cta-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-primary {
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    color: white;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.cta-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

@keyframes rocket-launch {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .text-content h1 {
        font-size: 2.5rem;
    }
    
    .impact-metrics {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Tablet optimizations */
    .chaos-visualization {
        width: 100%;
        max-width: 400px;
    }
    
    .chat-interface {
        width: 100%;
        max-width: 350px;
    }
    
    .visual-mapping-demo,
    .documentation-demo,
    .thoughtflow-demo {
        width: 100%;
        max-width: 400px;
    }
    
    .knowledge-engine-flow {
        min-width: auto;
        padding: 20px;
    }
    
    .flow-row {
        gap: 20px;
    }
    
    .mapping-features,
    .documentation-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .story-page {
        padding: 15px;
    }
    
    .text-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .text-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .stat-highlights {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat .number {
        font-size: 2.5rem;
    }
    
    .pain-points {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .before-after {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Navigation improvements for mobile */
    .story-nav {
        bottom: 20px;
        padding: 12px 20px;
        gap: 15px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .page-indicator {
        font-size: 0.9rem;
        min-width: 50px;
    }
    
    /* Touch-friendly interactive elements */
    .discovery-step {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        margin: 0 auto;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step-label {
        font-size: 1.1rem;
    }
    
    /* Mobile-optimized components */
    .chaos-visualization {
        width: 100%;
        height: 400px;
    }
    
    .chaos-node {
        min-width: 70px;
        max-width: 100px;
        padding: 6px 10px;
    }
    
    .node-label {
        font-size: 0.65rem;
    }
    
    .error-indicator {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
    
    .chat-interface {
        width: 100%;
        height: 480px;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .message-content {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .visual-mapping-demo,
    .documentation-demo,
    .thoughtflow-demo {
        width: 100%;
        height: 400px;
    }
    
    .mapping-canvas-3d {
        height: 300px;
    }
    
    .knowledge-engine-flow {
        padding: 15px;
    }
    
    .flow-item {
        padding: 15px 20px;
    }
    
    .source-icon, .engine-icon, .output-icon {
        font-size: 2rem;
    }
    
    .engine-core {
        padding: 20px 30px;
    }
    
    /* Problem items and features */
    .problem-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .problem-icon {
        font-size: 1.3rem;
        min-width: 25px;
    }
    
    .capability-row {
        gap: 12px;
    }
    
    .capability-icon {
        font-size: 1.3rem;
        width: 35px;
    }
    
    .capability-text {
        font-size: 0.9rem;
    }
    
    .savings-dashboard {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dashboard-item {
        padding: 12px;
    }
    
    .savings-amount {
        font-size: 1.2rem;
    }
    
    .savings-detail {
        font-size: 0.75rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .story-page {
        padding: 10px;
    }
    
    .text-content h1 {
        font-size: 1.5rem;
    }
    
    .text-content p {
        font-size: 0.9rem;
    }
    
    .story-nav {
        bottom: 15px;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .page-indicator {
        font-size: 0.8rem;
        min-width: 45px;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .chaos-visualization {
        height: 350px;
    }
    
    .chat-interface {
        height: 420px;
    }
    
    .visual-mapping-demo,
    .documentation-demo,
    .thoughtflow-demo {
        height: 350px;
    }
    
    .stat .number {
        font-size: 2rem;
    }
    
    .stat .label {
        font-size: 0.8rem;
    }
    
    .rocket {
        font-size: 4rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .cta-primary, .cta-secondary {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .demo-benefits {
        padding: 20px;
        gap: 15px;
    }
    
    .benefit-icon {
        font-size: 1.3rem;
        width: 35px;
    }
    
    .benefit-text {
        font-size: 1rem;
    }
}

/* Page 7: Visual Mapping */
.visual-mapping-demo {
    width: 450px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mapping-header {
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mapping-title {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.mapping-controls {
    display: flex;
    align-items: center;
}

.env-dropdown {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 160px;
}

.env-dropdown:hover, .env-dropdown:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.env-dropdown option {
    background: #1a1a1a;
    color: white;
    padding: 8px;
}

.mapping-canvas-3d {
    flex: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

#threejs-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.node-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.node-label-3d {
    position: absolute;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 6px;
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.node-label-3d.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.mapping-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.mapping-feature {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #00d4ff;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mapping-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.mapping-feature h3 {
    color: #00d4ff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.mapping-feature p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Page 8: Auto Documentation */
.documentation-demo {
    width: 450px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.doc-header {
    background: linear-gradient(135deg, #00d4ff, #5b73ff);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-title {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.doc-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.doc-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 15px;
    border-left: 3px solid #00d4ff;
    animation: docSectionAppear 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.doc-section:nth-child(1) { animation-delay: 0.2s; }
.doc-section:nth-child(2) { animation-delay: 0.4s; }
.doc-section:nth-child(3) { animation-delay: 0.6s; }

@keyframes docSectionAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-section h4 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.doc-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.doc-metadata {
    display: flex;
    gap: 10px;
    align-items: center;
}

.doc-tag {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.doc-updated {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.documentation-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.doc-feature {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #00d4ff;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.doc-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.doc-feature h3 {
    color: #00d4ff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.doc-feature p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
}