@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg-deep: #0B0E14;
    --bg-card: rgba(30, 41, 59, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --primary-glow: 0 0 20px rgba(124, 58, 237, 0.5);
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --radius-card: 24px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    letter-spacing: -0.011em;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.15), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.022em;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
}

.tab-button:hover {
    color: #a78bfa;
}

.tab-button.active {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.content-panel {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.text-sm {
    font-size: 1rem !important;
}

.content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.geo-hero-diagram,
.geo-diagram {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
}

.geo-hero-diagram img,
.geo-diagram img {
    display: block;
    width: 100%;
    height: auto;
}

.process-step,
.strategy-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
}

.process-step:hover,
.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), var(--primary-glow);
    border-color: rgba(124, 58, 237, 0.3);
}

.process-step.active-step,
.strategy-card.active-step {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.quiz-explanation {
    display: none;
    padding: 16px;
    margin-top: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
}

.comparison-table {
    width: 100%;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    font-weight: 400;
}

.comparison-table th {
    font-weight: 500;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

.arrow {
    font-size: 1.5rem;
    color: #cbd5e1;
    line-height: 1;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    border: var(--glass-border);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: -0.006em;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expert-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    border: var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expert-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 16px;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.6);
}

.alert-box {
    border-radius: 12px;
    border-left-width: 3px;
}

/* Mobile collapsible menu */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #a78bfa;
}

.mobile-menu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.expanded svg {
    transform: rotate(180deg);
}

.mobile-nav-header {
    display: none;
}

.nav-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 767px) {
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 4px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-items-container {
        display: none;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 8px;
    }

    .nav-items-container.expanded {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .nav-items-container .tab-button:first-child {
        display: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
