:root {
    --primary: #023c96;
    --secondary: #8e8f94;
    --white: #FFFFFF;
    --accent: #0f52b8;
    --font-family: 'Inter', sans-serif;

    --bg-base: #FFFFFF;
    --bg-surface: #f5f8fc;
    --accent-glow: rgba(2, 60, 150, 0.05);
    --text-main: #333333;
    --text-muted: #555555;

    /* Economy colors */
    --legacy-hue: 30;
    /* warm gold */
    --capital-hue: 210;
    /* ocean blue */
    --optimize-hue: 175;
    /* teal/tech */
}

/* Base Wrapper styles to prevent scrollbars */
.new-core-thesis-outer {
    overflow-x: clip; 
    overflow-y: visible;
    position: relative;
    width: 100%;
}

.core-thesis-body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.core-thesis-body h1,
.core-thesis-body h2,
.core-thesis-body h3,
.core-thesis-body h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.core-thesis-body h2.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.core-thesis-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.core-thesis-body strong {
    color: var(--primary);
    font-weight: 800;
}

/* Ambient glow */
.ambient-glow {
    position: absolute;
    top: -10vw;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.ambient-glow.right {
    top: auto;
    bottom: -10vw;
    left: auto;
    right: -10vw;
    background: radial-gradient(circle, rgba(15, 82, 184, 0.03) 0%, transparent 60%);
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5vw, 5vw) scale(1.1);
    }

    100% {
        transform: translate(-5vw, 10vw) scale(0.9);
    }
}

.core-thesis-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 2rem;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    bottom: -20%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(2, 60, 150, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(2, 60, 150, 0.1) 2px, transparent 2px);
    background-size: 60px 60px;
    transform-origin: bottom center;
    transform: perspective(600px) rotateX(75deg);
    z-index: 0;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    animation: gridMove 10s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(600px) rotateX(75deg) translateY(0);
    }

    100% {
        transform: perspective(600px) rotateX(75deg) translateY(60px);
    }
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(2, 60, 150, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    background: rgba(2, 60, 150, 0.05);
    border: 1px solid rgba(2, 60, 150, 0.25);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: pulseBadge 3s infinite alternate;
}

@keyframes pulseBadge {
    from {
        box-shadow: 0 0 10px rgba(2, 60, 150, 0.02);
    }

    to {
        box-shadow: 0 0 25px rgba(2, 60, 150, 0.10);
    }
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero .intro-text {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

/* ── THREE ECONOMIES PREVIEW CHIPS ── */
.economy-chips {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
}

.economy-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.35s ease;
    cursor: default;
}

.economy-chip:hover {
    transform: translateY(-3px);
}

.economy-chip.legacy {
    background: rgba(180, 120, 30, 0.06);
    border-color: rgba(180, 120, 30, 0.25);
    color: #8a5e10;
}

.economy-chip.capital {
    background: rgba(2, 60, 150, 0.05);
    border-color: rgba(2, 60, 150, 0.25);
    color: var(--primary);
}

.economy-chip.optimize {
    background: rgba(14, 130, 110, 0.05);
    border-color: rgba(14, 130, 110, 0.22);
    color: #0a6b59;
}

.chip-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.economy-chip.legacy .chip-num {
    background: rgba(180, 120, 30, 0.12);
    color: #6b4710;
}

.economy-chip.capital .chip-num {
    background: rgba(2, 60, 150, 0.10);
    color: var(--primary);
}

.economy-chip.optimize .chip-num {
    background: rgba(14, 130, 110, 0.10);
    color: #0a6b59;
}

/* ══════════════════════════════════════
   THREE ECONOMY PANELS
══════════════════════════════════════ */
.economies-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(2, 60, 150, 0.14);
    box-shadow: 0 20px 50px rgba(2, 60, 150, 0.07);
}

.economy-panel {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.economy-panel:last-child {
    border-right: none;
}

.economy-panel:hover {
    transform: translateY(-4px);
    z-index: 2;
}

/* Panel backgrounds */
.economy-panel.legacy-panel {
    background: linear-gradient(160deg, #fffbf4 0%, #fef8ed 100%);
}

.economy-panel.capital-panel {
    background: linear-gradient(160deg, #f5f8fc 0%, #eef4ff 100%);
}

.economy-panel.optimize-panel {
    background: linear-gradient(160deg, #f2fbf9 0%, #e8f8f5 100%);
}

/* Corner accent orb */
.panel-orb {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}

.legacy-panel .panel-orb {
    background: radial-gradient(circle, #b87a1e, transparent);
}

.capital-panel .panel-orb {
    background: radial-gradient(circle, #023c96, transparent);
}

.optimize-panel .panel-orb {
    background: radial-gradient(circle, #0e8270, transparent);
}

.economy-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.legacy-panel .economy-num-badge {
    background: rgba(180, 120, 30, 0.12);
    color: #7a520e;
}

.capital-panel .economy-num-badge {
    background: rgba(2, 60, 150, 0.10);
    color: var(--primary);
}

.optimize-panel .economy-num-badge {
    background: rgba(14, 130, 110, 0.10);
    color: #0a6b59;
}

.economy-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.economy-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.legacy-panel h3 {
    color: #6b4710;
}

.capital-panel h3 {
    color: var(--primary);
}

.optimize-panel h3 {
    color: #0a7a6a;
}

.economy-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.legacy-panel .economy-subtitle {
    color: rgba(180, 120, 30, 0.7);
}

.capital-panel .economy-subtitle {
    color: rgba(2, 60, 150, 0.55);
}

.optimize-panel .economy-subtitle {
    color: rgba(14, 130, 110, 0.65);
}

.economy-panel p {
    font-size: 0.97rem;
    margin-bottom: 1.25rem;
}

/* City pills */
.city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.city-pill {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid;
}

.legacy-panel .city-pill {
    background: rgba(180, 120, 30, 0.07);
    border-color: rgba(180, 120, 30, 0.2);
    color: #7a520e;
}

.capital-panel .city-pill {
    background: rgba(2, 60, 150, 0.05);
    border-color: rgba(2, 60, 150, 0.18);
    color: var(--primary);
}

.optimize-panel .city-pill {
    background: rgba(14, 130, 110, 0.06);
    border-color: rgba(14, 130, 110, 0.2);
    color: #0a6b59;
}

.economy-key-trait {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.legacy-panel .economy-key-trait {
    background: rgba(180, 120, 30, 0.07);
    color: #6b4710;
}

.capital-panel .economy-key-trait {
    background: rgba(2, 60, 150, 0.05);
    color: var(--primary);
}

.optimize-panel .economy-key-trait {
    background: rgba(14, 130, 110, 0.06);
    color: #0a7a6a;
}

.trait-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.65;
    display: block;
    margin-bottom: 4px;
}

/* Deep-dive section for each economy */
.economy-deep {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3rem 2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.economy-deep::before {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.04;
    pointer-events: none;
}

.economy-deep.legacy-deep {
    background: linear-gradient(145deg, #fffdf8, #fff);
    border: 1px solid rgba(180, 120, 30, 0.15);
}

.economy-deep.legacy-deep::before {
    background: radial-gradient(circle, #b87a1e, transparent);
    opacity: 0.06;
}

.economy-deep.capital-deep {
    background: linear-gradient(145deg, var(--bg-surface), var(--white));
    border: 1px solid rgba(2, 60, 150, 0.15);
}

.economy-deep.capital-deep::before {
    background: radial-gradient(circle, var(--primary), transparent);
    opacity: 0.05;
}

.economy-deep.optimize-deep {
    background: linear-gradient(145deg, #f5fbfa, #fff);
    border: 1px solid rgba(14, 130, 110, 0.15);
}

.economy-deep.optimize-deep::before {
    background: radial-gradient(circle, #0e8270, transparent);
    opacity: 0.05;
}

.economy-deep h2 {
    font-size: 1.75rem;
}

.legacy-deep h2 {
    color: #6b4710;
}

.capital-deep h2 {
    color: var(--primary);
}

.optimize-deep h2 {
    color: #0a7a6a;
}

.deep-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.legacy-deep .deep-label {
    color: rgba(180, 120, 30, 0.7);
}

.capital-deep .deep-label {
    color: rgba(2, 60, 150, 0.55);
}

.optimize-deep .deep-label {
    color: rgba(14, 130, 110, 0.65);
}

.deep-visual {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 1.75rem;
}

.legacy-deep .deep-visual {
    border: 1px solid rgba(180, 120, 30, 0.2);
    box-shadow: 0 8px 24px rgba(180, 120, 30, 0.04);
}

.capital-deep .deep-visual {
    border: 1px solid rgba(2, 60, 150, 0.2);
    box-shadow: 0 8px 24px rgba(2, 60, 150, 0.04);
}

.optimize-deep .deep-visual {
    border: 1px solid rgba(14, 130, 110, 0.2);
    box-shadow: 0 8px 24px rgba(14, 130, 110, 0.04);
}

.deep-visual h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.trait-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trait-row:last-child {
    border-bottom: none;
}

.trait-check {
    font-size: 0.9rem;
    flex-shrink: 0;
    padding-top: 2px;
    font-weight: 800;
}

.legacy-deep .trait-check {
    color: #b87a1e;
}

.capital-deep .trait-check {
    color: var(--primary);
}

.optimize-deep .trait-check {
    color: #0e8270;
}

.trait-text {
    font-size: 0.97rem;
    color: var(--text-muted);
}

/* Split layout */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.section-split.reverse {
    direction: rtl;
}

.section-split.reverse>* {
    direction: ltr;
}

.content-box {
    padding-right: 2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* Visual box */
.visual-box {
    position: relative;
    background: linear-gradient(145deg, var(--bg-surface), var(--white));
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(2, 60, 150, 0.3);
    box-shadow: 0 15px 35px rgba(2, 60, 150, 0.05);
    overflow: hidden;
    z-index: 10;
}

.visual-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(2, 60, 150, 0.03) 0%, transparent 50%);
    animation: rotateBG 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateBG {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* List items */
.list-items {
    list-style: none;
    margin-top: 1.5rem;
}

.list-items li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.list-items li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: 800;
}

/* Signal rows */
.signal-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(2, 60, 150, 0.07);
}

.signal-row:last-child {
    border-bottom: none;
}

.signal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    flex-shrink: 0;
    margin-top: 6px;
}

.signal-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Highlight quote */
.highlight-quote {
    background: rgba(2, 60, 150, 0.03);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary);
    font-weight: 500;
}

/* Feature cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid rgba(2, 60, 150, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 20px rgba(2, 60, 150, 0.02);
    position: relative;
    z-index: 10;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(2, 60, 150, 0.03), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(2, 60, 150, 0.08);
    border-color: rgba(2, 60, 150, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.card-tag {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(2, 60, 150, 0.08), rgba(15, 82, 184, 0.04));
    border: 1px solid rgba(2, 60, 150, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(2, 60, 150, 0.15), transparent);
}

.accent-bar {
    height: 4px;
    width: 60px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-bottom: 2rem;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1050px) {
    .economies-trio {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .economy-panel {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .economy-panel:last-child {
        border-bottom: none;
    }

    .economy-panel:hover {
        transform: none;
    }
}

@media (max-width: 992px) {

    .section-split,
    .economy-deep {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-split.reverse {
        direction: ltr;
    }

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

    .content-box {
        padding-right: 0;
    }

    .economy-deep {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 680px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .economy-chips {
        flex-direction: column;
        align-items: center;
    }

    .core-thesis-container {
        padding: 4rem 1.5rem;
    }

    .hero {
        padding-top: 6rem;
    }
}
