/* ================================================
   DCVV DEMO LANDING PAGE - EXPERTLY EXTENSION
   ================================================ */

/* Demo-specific additions to main styles.css */

/* Demo Badge in Navigation */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-badge {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* --- Animated SVG Background for Hero --- */
.demo-hero {
    position: relative;
    overflow: hidden;
}
.demo-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    width: 160vw;
    height: 120vh;
    background: radial-gradient(circle at 60% 40%, #2563eb55 0%, #3b82f622 40%, transparent 80%),
                linear-gradient(120deg, #2563eb22 0%, #3b82f611 100%);
    transform: translateX(-50%) scale(1.1);
    z-index: 0;
    animation: heroBgMove 12s ease-in-out infinite alternate;
}
@keyframes heroBgMove {
    0% { background-position: 60% 40%, 0% 0%; }
    100% { background-position: 70% 60%, 100% 100%; }
}
.demo-hero-content {
    position: relative;
    z-index: 1;
    /* Add a subtle drop shadow for pop */
    box-shadow: 0 8px 32px 0 rgba(37,99,235,0.10);
    border-radius: 24px;
    background: rgba(20, 20, 30, 0.55);
    backdrop-filter: blur(8px);
    padding: 3rem 2rem 2.5rem 2rem;
    margin-top: 3rem;
}

/* --- Glassmorphism for Feature Cards --- */
.demo-feature {
    background: rgba(255,255,255,0.10);
    box-shadow: 0 4px 24px 0 rgba(37,99,235,0.08);
    border: 1.5px solid rgba(59,130,246,0.13);
    backdrop-filter: blur(8px);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}
.demo-feature:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(37,99,235,0.18);
    background: rgba(59,130,246,0.13);
}
.feature-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px #2563eb33);
}

/* --- Glassmorphism for Demo Session Panel --- */
.demo-session {
    background: rgba(30, 40, 60, 0.55);
    box-shadow: 0 8px 32px 0 rgba(37,99,235,0.10);
    border: 1.5px solid rgba(59,130,246,0.13);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    animation: slideIn 0.7s cubic-bezier(.4,2,.6,1);
}

/* --- Enhanced Buttons --- */
.btn-primary, .btn-secondary {
    box-shadow: 0 4px 16px 0 rgba(37,99,235,0.10);
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px 0 rgba(37,99,235,0.18);
}
.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #2563eb;
    border: 2px solid #2563eb;
}
.btn-secondary:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px 0 rgba(37,99,235,0.18);
}

/* --- Status Indicator Polish --- */
.demo-status {
    box-shadow: 0 2px 12px 0 rgba(16,185,129,0.10);
    border: 1.5px solid rgba(16,185,129,0.18);
    background: rgba(16,185,129,0.10);
    font-size: 1.1rem;
}
.status-indicator {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 6px #10b98188);
}
.status-text {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Demo Features Grid */
.demo-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

.demo-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.demo-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text h3 {
    color: var(--off-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Demo Controls */
.demo-controls {
    margin: 3rem 0;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 280px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

.btn-spinner {
    color: inherit;
    animation: spin 1s linear infinite;
}

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

.demo-notice {
    color: var(--light-gray);
    font-size: 0.85rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Demo Session Interface */
.demo-session {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.demo-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.demo-session-header h3 {
    color: var(--off-white);
    font-size: 1.3rem;
    font-weight: 600;
}

.session-timer {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: monospace;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* API Interface */
.api-section {
    margin-bottom: 2rem;
}

.api-section h4 {
    color: var(--off-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.endpoint-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-black);
    border: 1px solid var(--dark-gray);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.endpoint-display code {
    flex: 1;
    color: var(--primary-blue);
    background: none;
    padding: 0;
    border: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--medium-gray);
}

/* Demo Actions */
.demo-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Demo Response */
.demo-response {
    background: var(--primary-black);
    border: 1px solid var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
}

.demo-response h4 {
    background: var(--dark-gray);
    color: var(--off-white);
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.demo-response pre {
    color: var(--off-white);
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: none;
}

/* Demo Architecture Section */
.demo-architecture {
    background: var(--secondary-black);
    padding: 4rem 0;
    text-align: center;
}

.demo-architecture h2 {
    color: var(--off-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.arch-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.arch-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.arch-item h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.arch-item p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Section Dividers (SVG Waves) --- */
.section-divider {
    display: block;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: none;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-hero-content {
        padding: 0 1rem;
    }
    
    .demo-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-session-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .demo-actions {
        flex-direction: column;
    }
    
    .endpoint-display {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        width: 100%;
        min-width: auto;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn-text {
    display: none;
}

.loading .btn-spinner {
    display: inline-block !important;
}

/* Success/Error States */
.success {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Animation Enhancements */
.demo-session {
    animation: slideIn 0.5s ease-out;
}

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

/* Copy Success Feedback */
.copy-btn.copied {
    background: var(--primary-blue) !important;
    color: white;
}

.copy-btn.copied::after {
    content: " ✓";
}

/* --- Entrance Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.demo-hero-content, .demo-info, .demo-controls, .demo-session, .demo-architecture, .footer {
    animation: fadeUp 1s cubic-bezier(.4,2,.6,1);
}
.demo-info { animation-delay: 0.2s; }
.demo-controls { animation-delay: 0.4s; }
.demo-session { animation-delay: 0.6s; }
.demo-architecture { animation-delay: 0.8s; }
.footer { animation-delay: 1s; }

/* --- Typography Polish --- */
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 2px 16px #2563eb22;
}
.hero-subtitle {
    font-size: 1.3rem;
    color: #dbeafe;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* --- Responsive Tweaks --- */
@media (max-width: 600px) {
    .demo-hero-content {
        padding: 1.5rem 0.5rem;
        margin-top: 1.5rem;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .demo-info {
        gap: 1rem;
        padding: 1rem 0;
    }
}