@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,900;1,400&family=Inter:wght@300;400;600;900&display=swap');

:root {
    --gold: #fbbf24;
    --deep: #020617;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--deep);
    color: #f8fafc;
    transition: background 2s ease;
    overflow-x: hidden;
    margin: 0;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Playfair Display', serif;
}

.glass {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.meter {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-luxury {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #000;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-luxury:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.4);
}

.ai-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 10px;
}

.ai-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* Rich Text Logic */
.rich-text h2 {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 900;
    margin: 1.5rem 0 1rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    padding-bottom: 0.5rem;
}

.rich-text h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

.rich-text b,
.rich-text strong {
    color: var(--gold);
    font-weight: 700;
}

.rich-text hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.rich-text ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.rich-text li {
    margin-bottom: 0.5rem;
    list-style-type: circle;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
}

.rich-text th {
    background: rgba(251, 191, 36, 0.1);
    text-align: left;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

.rich-text td {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.loading-shimmer {
    animation: shimmer 1.5s infinite;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.matrix-badge {
    background: rgba(251, 191, 36, 0.2);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Additional typography and spacing improvements */

/* Increase font sizes for better readability */
.text-\[8px\] {
    font-size: 10px !important;
}

.text-\[9px\] {
    font-size: 11px !important;
}

.text-\[10px\] {
    font-size: 12px !important;
}

.text-\[11px\] {
    font-size: 13px !important;
}

/* Improved spacing for sidebar cards */
.glass section {
    padding: 2.5rem !important;
}

/* Better spacing for decision proof panel */
#proof-panel {
    font-size: 13px !important;
    line-height: 1.8 !important;
    padding: 1.5rem !important;
}

/* Matrix grid improvements */
#matrix-grid button {
    padding: 1rem !important;
    min-height: 4rem !important;
}

/* Improved header spacing */
header {
    margin-bottom: 3rem !important;
    padding-top: 1.5rem !important;
}

/* Video transition effects */
.video-container {
    transition: opacity 0.5s ease-in-out;
}

.video-container.transitioning {
    opacity: 0.3;
}

/* Smooth fade-in for loaded videos */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-loaded {
    animation: fadeIn 0.5s ease-in;
}

/* Better responsive spacing */
@media (max-width: 768px) {
    .glass {
        padding: 1.5rem !important;
    }

    h1 {
        font-size: 3rem !important;
    }
}