/* DS Statistics 2025 - Ultra Modern Design */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-hover: #1a1a25;
    --text: #f0f0f5;
    --text-muted: #8888a0;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --font: 'Inter', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.nav-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--accent);
    border-radius: 999px;
    font-weight: 600;
}

/* Hero */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-video-link {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.hero-video-link:hover {
    transform: scale(1.03);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Hero Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-4px);
}

.stat-card .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-card .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-card:hover .copy-btn {
    opacity: 1;
}

/* Main Layout */
main.container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 100px;
}

/* Table of Contents */
.toc {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.toc nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.toc a:hover {
    color: var(--text);
    background: var(--bg-card);
    border-left-color: var(--accent);
}

/* Content Sections */
.content section {
    margin-bottom: 64px;
}

.content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* Stats Grid */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.stat-row:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.stat-row.highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.stat-main {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-light);
    min-width: 100px;
}

.stat-desc {
    color: var(--text);
    font-size: 0.95rem;
}

.stat-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Copy Button */
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    opacity: 0.5;
}

.copy-btn:hover {
    background: var(--bg-hover);
    opacity: 1;
}

.copy-btn.copied {
    color: var(--success);
}

/* Expandable Stat Rows */
.stat-row.expandable {
    cursor: pointer;
    flex-wrap: wrap;
}

.stat-row.expandable::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.stat-row.expandable.open::after {
    transform: rotate(180deg);
}

.stat-detail {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    border-top: 1px solid transparent;
    margin-top: 0;
    padding: 0 0;
}

.stat-row.open .stat-detail {
    max-height: 800px;
    opacity: 1;
    padding: 20px 0 8px;
    margin-top: 16px;
    border-top-color: var(--border);
}

.stat-detail .detail-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 16px;
}

.stat-detail h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 8px;
    margin-top: 16px;
}

.stat-detail h4:first-child {
    margin-top: 0;
}

.stat-detail p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.stat-detail ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.stat-detail li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.stat-detail li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.stat-detail a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.85rem;
}

.stat-detail a:hover {
    text-decoration: underline;
}

/* Executive Summary */
.executive-summary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 48px;
}

.executive-summary h2 {
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}

.summary-intro {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.summary-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.summary-stat:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.summary-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

.share-btn:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.1);
    border-color: #1da1f2;
}

.share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.1);
    border-color: #0077b5;
}

/* Full Sources Section */
.sources-full {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.source-card {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.source-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.source-card h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 4px;
}

.source-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.source-tier {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.source-tier.tier1 {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.source-tier.tier2 {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-light);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--success);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item:first-of-type {
    padding-top: 0;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    main.container {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        display: flex;
        overflow-x: auto;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 24px;
    }

    .toc nav {
        flex-direction: row;
        gap: 4px;
    }

    .toc a {
        white-space: nowrap;
    }

    .stat-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-main {
        flex-direction: column;
        gap: 4px;
    }

    .stat-number {
        min-width: auto;
    }

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

/* Download Report Button */
.btn-download-report {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.btn-download-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal--active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal__close:hover {
    color: var(--text);
}

.modal__header {
    text-align: center;
    margin-bottom: 24px;
}

.modal__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.modal__subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal__form .form-group {
    margin-bottom: 16px;
}

.modal__form .form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modal__form .form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal__form .form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.modal__disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Print Styles */
@media print {

    .nav,
    .toc,
    .modal,
    .btn-download-report,
    .hero-video-link,
    .share-buttons,
    .copy-btn,
    .stat-row::after,
    footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero {
        background: none !important;
        padding-top: 20px !important;
    }

    .content,
    section,
    .stats-grid,
    .stat-row,
    .executive-summary {
        background: white !important;
        border-color: #ddd !important;
        color: black !important;
    }

    .stat-number,
    .summary-number {
        color: #6366f1 !important;
    }

    .stat-desc,
    .stat-source,
    .text-muted {
        color: #666 !important;
    }

    main.container {
        display: block !important;
        padding: 0 20px !important;
    }

    .stat-detail {
        max-height: none !important;
        opacity: 1 !important;
        display: none !important;
    }
}