@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700;800&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #0077b6;
    --primary-glow: rgba(0, 119, 182, 0.2);
    --secondary: #6200ee;
    --accent: #d81b60;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --card-hover: #f8fafc;
    --border: #e2e8f0;
    --text-navy: #0f172a;
    --text-dim: #64748b;
    --red: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-navy);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

/* LOADER */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

#loader-text {
    font-family: monospace;
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.progress-container {
    width: 300px;
    height: 2px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.3s ease;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

/* BACKGROUND ANIMATION */
.bg-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: #fff;
    overflow: hidden;
}

.aura {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    animation: rotate-scene 30s infinite linear;
}

.aura-1 {
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.tech-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(rgba(0, 119, 182, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 119, 182, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-slide 60s linear infinite;
}

@keyframes grid-slide {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(50px);
    }
}

@keyframes rotate-scene {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.beam {
    position: absolute;
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.15;
    filter: blur(1px);
    animation: beam-flow var(--duration) linear infinite;
    pointer-events: none;
}

@keyframes beam-flow {
    0% {
        transform: translateY(-200px) translateX(var(--start-x)) rotate(var(--angle));
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(120vh) translateX(var(--end-x)) rotate(var(--angle));
        opacity: 0;
    }
}

/* BRANDING */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 15px;
}

.logo-wrap {
    /* padding: 5px; */
    background: #fff;
    /* border: 1px solid #e2e8f0; */
    /* border-radius: 12px; */
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04); */
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-navy);
}

.red {
    color: var(--red);
}

/* HERO */
.hero {
    padding: 40px 10% 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    color: #ffffff;
    /* Replaced dark text with white to pop against video */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* better legibility */
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    /* Lighter text for the description */
    margin-bottom: 30px;
    max-width: 650px;
}

.hero .brand-text {
    color: #ffffff;
}

.hero .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* BTN */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: var(--text-navy);
    color: #fff;
    font-weight: 800;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.3);
}

.btn-premium i {
    transition: 0.3s;
}

.btn-premium:hover i {
    transform: translateY(3px);
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    transition: 0.7s;
}

.btn-premium:hover::after {
    left: 120%;
}

/* SECTIONS */
section {
    padding: 40px 10%;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--text-navy);
    margin-bottom: 35px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* STAGES - HORIZONTAL */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stage-mini {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}

.stage-mini:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.status-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid currentColor;
    display: inline-block;
    margin-top: 10px;
}

.status-tag.comp {
    color: var(--primary);
    background: rgba(0, 119, 182, 0.05);
}

/* GRID SYSTEMS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.card h3 {
    font-size: 1.35rem;
    color: var(--text-navy);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* COMPACT IMAGE-MATCHED TIMELINE LAYOUT */
.timeline-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.timeline-v3 {
    position: relative;
    padding-left: 35px;
    border-left: 2px solid #e2e8f0;
}

.tl-v3-item {
    position: relative;
    margin-bottom: 12px;
}

/* Reduced from 25px */
.tl-v3-dot {
    position: absolute;
    left: -42px;
    top: 12px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid var(--dot-color);
    border-radius: 50%;
    z-index: 2;
}

.tl-v3-item::after {
    content: '';
    position: absolute;
    left: -38px;
    top: 25px;
    width: 2px;
    height: calc(100% + 12px);
    background: var(--dot-color);
    z-index: 1;
}

.tl-v3-item:last-child::after {
    display: none;
}

.tl-v3-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
    transition: 0.3s;
}

.tl-v3-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dot-color);
    margin-bottom: 4px;
}

.tl-v3-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 2px;
    line-height: 1.4;
}

/* COLORS */
.dot-blue {
    --dot-color: #3b82f6;
}

.dot-green {
    --dot-color: #10b981;
}

.dot-yellow {
    --dot-color: #f59e0b;
}

.dot-red {
    --dot-color: #ef4444;
}

.dot-purple {
    --dot-color: #8b5cf6;
}

.dot-orange {
    --dot-color: #f97316;
}

/* UNICEF SIDEBAR */
.unicef-panel {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.unicef-img {
    width: 100%;
    border-radius: 15px;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* FOOTER */
footer {
    padding: 50px 10%;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    color: var(--text-navy);
}

footer a {
    color: var(--primary);
    text-decoration: underline;
    transition: 0.3s;
    font-weight: 600;
    opacity: 0.85;
}

footer a:hover {
    opacity: 1;
    text-decoration: none;
    color: var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* UTILS */
/* UPGRADED SCROLL REVEAL (Blur + Scale + Stagger) */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    will-change: transform, opacity, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

/* Staggered Delay Helpers (managed by JS) */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* SCROLL DOWN INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--text-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.4s;
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary);
    transform: scale(1.1) translateY(-5px);
}

/* HERO EXTRAS */
.hero-byline {
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 22px;
}

/* BRAND ICONS — replace FontAwesome icons in cards with real org logos */
.brand-icon {
    height: 42px;
    width: auto;
    max-width: 70px;
    display: block;
    margin-bottom: 15px;
    object-fit: contain;
    transition: 0.3s;
}

.card:hover .brand-icon {
    transform: scale(1.06);
}

/* BRANDED SECTION HEADER (Samagra / VICTERS sections) */
.section-brand {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.section-brand-img {
    height: 78px;
    width: auto;
    background: #fff;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    object-fit: contain;
    flex-shrink: 0;
}

.section-brand .section-label {
    display: block;
}

/* SMALL BRAND MARK inside stage-mini card */
.stage-brand-mark {
    height: 30px;
    width: auto;
    max-width: 90px;
    margin-bottom: 12px;
    object-fit: contain;
    opacity: 0.95;
    display: flex;
    align-items: center;
}

@media (max-width: 700px) {
    .section-brand {
        gap: 14px;
    }

    .section-brand-img {
        height: 58px;
        padding: 8px 12px;
    }

    .section-brand h2 {
        font-size: 1.5rem;
    }
}

/* SECTION LEAD COPY */
.lead {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 820px;
    margin: -20px 0 30px;
    line-height: 1.6;
}

.sub-h {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: var(--text-navy);
    margin: 40px 0 18px;
    font-weight: 700;
}

/* GRID VARIANTS (consistent with .grid) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* COMPACT MINI CARD (UNESCO 5 + 8 challenges) */
.mini-card {
    padding: 22px 20px;
}

.mini-card i {
    font-size: 1.4rem;
}

.mini-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.mini-card p {
    font-size: 0.82rem;
    line-height: 1.5;
}

/* AI STAGES — number + beneficiary */
.stage-mini {
    text-align: left;
    padding: 22px 18px;
    position: relative;
}

.stage-mini h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-navy);
    font-weight: 800;
}

.stage-mini p {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 12px;
}

.stage-num {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
}

.stage-bene {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stage-bene i {
    margin-right: 6px;
}

/* QUOTE CARDS */
.quote-card {
    position: relative;
}

.quote-card i.fa-quote-left {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 0.25;
    margin-bottom: 14px;
}

.quote-body {
    font-size: 0.92rem;
    color: var(--text-navy);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 14px;
}

.quote-src {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* MEDIA SHOWCASE */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

.media-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
}

.media-card:hover {
    transform: scale(1.03) translateY(-5px);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.8s;
}

.media-card:hover img,
.media-card:hover video {
    transform: scale(1.05);
}

.media-card.span-2 {
    grid-column: span 2;
}

.media-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6) 60%, transparent);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    pointer-events: none;
}

.media-card:hover .media-title {
    transform: translateY(0);
}

/* CLASS CURRICULUM CARDS */
.class-card {
    position: relative;
    padding-top: 36px;
}

.class-pill {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--text-navy);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: uppercase;
}

.class-card h3 {
    font-size: 1.05rem;
    margin: 8px 0 14px;
}

.class-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.class-card ul li {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.55;
    padding: 6px 0 6px 18px;
    position: relative;
    border-bottom: 1px dashed #f1f5f9;
}

.class-card ul li:last-child {
    border-bottom: none;
}

.class-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* STAT GRID (KOOL) */
.stat-card {
    text-align: left;
    padding: 26px 22px;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-num span {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 600;
    margin-left: 4px;
}

.stat-card p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

/* FEATURE CARDS (Samagra latest) */
.feature-card {
    position: relative;
    padding-top: 38px;
}

.feat-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 119, 182, 0.08);
    color: var(--primary);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 119, 182, 0.15);
}

.feature-card i {
    font-size: 1.6rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* CHALLENGE CARDS */
.challenge-card {
    padding: 28px 26px;
    position: relative;
}

.ch-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.18;
    line-height: 1;
    margin-bottom: 8px;
}

.challenge-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-navy);
}

.ch-prob {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.ch-soln {
    font-size: 0.85rem;
    color: var(--text-navy);
    line-height: 1.55;
}

.ch-prob strong {
    color: var(--accent);
}

.ch-soln strong {
    color: var(--primary);
}

/* CLOSING CTA */
.closing {
    text-align: center;
    padding: 100px 10%;
    background: linear-gradient(135deg, #0f172a 0%, #0077b6 100%);
    color: #ffffff;
    position: relative;
    border-top: 5px solid var(--accent);
}

.closing h2 {
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.closing p.lead {
    color: rgba(255, 255, 255, 0.9);
}

.closing .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

@media (max-width: 1000px) {
    .timeline-layout {
        grid-template-columns: 1fr;
    }

    .unicef-panel {
        position: static;
    }

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

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

@media (max-width: 700px) {
    .media-card.span-2 {
        grid-column: span 1;
    }

    section {
        padding: 30px 6%;
    }

    .hero {
        padding: 30px 6% 20px;
        min-height: 55vh;
    }

    .grid-5,
    .grid-4,
    .stages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .lead {
        margin-top: -10px;
        font-size: 0.95rem;
    }

    .stat-num {
        font-size: 1.9rem;
    }
}

@media (max-width: 500px) {

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

    .hero h1 {
        font-size: 2.2rem;
    }

    .btn-premium {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .section-brand {
        gap: 16px;
    }

    .section-brand-img {
        height: 60px;
    }
}

/* TABS COMPONENT */
.tabs-container {
    margin-top: 30px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 18px 20px;
    background: none;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--text-navy);
    background: rgba(0, 119, 182, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fade-in 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

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

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

/* ACCORDION COMPONENT */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    transition: box-shadow 0.3s;
}

.accordion-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    border-color: var(--primary);
}

.accordion-header {
    width: 100%;
    padding: 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
    color: var(--text-navy);
}

.accc-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.acc-icon {
    transition: transform 0.3s;
    color: var(--primary);
}

.accordion-header.active .acc-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accordion-content p {
    padding: 0 26px 26px 80px;
    margin: 0;
}

@media (max-width: 600px) {
    .accordion-content p {
        padding: 0 20px 20px 20px;
    }
}

/* DARK MODE SECTION */
.dark-mode {
    background: var(--text-navy) !important;
    color: #fff !important;
    border: none !important;
}

.dark-mode h2 {
    color: #fff;
}

.dark-mode .lead {
    color: #cbd5e1;
}

.dark-mode .btn-premium {
    background: var(--primary);
    color: #fff;
}

.dark-mode .btn-premium:hover {
    background: #0090de;
}

/* NON-BOXY REDESIGN CLASSES */
/* Hero V2 */
.hero-v2 {
    background: url('../assets/v2_hero_bg.png') center/cover no-repeat;
    position: relative;
    padding-top: 180px;
    /* offset header + extra space */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.85), #f8fafc);
    z-index: 0;
}

/* Pillar Block (replaces normal cards) */
.pillar-block {
    text-align: left;
    padding: 10px 0 10px 20px;
    border-left: 3px solid rgba(0, 119, 182, 0.1);
    transition: 0.3s;
}

.pillar-block:hover {
    border-left-color: var(--primary);
}

.pillar-block i,
.pillar-block .brand-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.pillar-block h3 {
    font-size: 1.25rem;
    color: var(--text-navy);
    margin-bottom: 12px;
}

.pillar-block p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Flow Block (replaces stage-mini) */
.flow-block {
    text-align: center;
    position: relative;
    padding: 20px;
    background: transparent;
}

.flow-block .stage-num {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.flow-block h4 {
    margin: 15px 0;
    font-size: 1.1rem;
}

.flow-block p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* Legacy Item */
.legacy-item {
    text-align: center;
    padding: 30px;
}

.legacy-item i,
.legacy-item .brand-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.legacy-item p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Quote Block */
.quote-block {
    border-top: 3px solid var(--primary);
    padding-top: 30px;
    position: relative;
}

.quote-block i {
    font-size: 3rem;
    color: rgba(0, 119, 182, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
}

.quote-block .quote-body {
    font-size: 1.15rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-navy);
    margin-bottom: 20px;
}

.quote-block .quote-src {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Line Block */
.line-block {
    display: flex;
    flex-direction: column;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.line-block:hover {
    border-bottom-color: var(--primary);
}

.line-block i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Stat Block */
.stat-block {
    text-align: center;
}

.stat-block .stat-num {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-block .stat-num span {
    font-size: 1.2rem;
}

.stat-block p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dim);
}

/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}

.bento-wide {
    grid-column: span 2;
}

/* VIDEO HERO BACKGROUND */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* establishes stacking context so video doesn't hide behind body background */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: -2;
    filter: grayscale(20%);
    /* slightly desaturate to not clash with texts */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A cinematic dim over the entire photo so the image looks premium and text pops */
    /* background: rgba(9, 13, 24, 0.75);  */
    background: rgba(9, 13, 24, 0.50);
    z-index: -1;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide,
    .bento-tall,
    .bento-hero {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* GLOBAL CHALLENGES - INTERLOCK STRIP */
.interlock-container {
    display: flex;
    margin-top: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    overflow: hidden;
}

.interlock-item {
    flex: 1;
    padding: 40px 25px;
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    transition: all 0.3s ease;
}

.interlock-item:last-child {
    border-right: none;
}

.interlock-item:hover {
    background: #f8fafc;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.interlock-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.interlock-item h3 {
    font-size: 1.25rem;
    color: var(--text-navy);
    margin-bottom: 10px;
}

.interlock-item p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .interlock-container {
        flex-direction: column;
    }

    .interlock-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .interlock-item:last-child {
        border-bottom: none;
    }
}

/* KITE CHALLENGES - CHECKLIST FLOW */
.check-row {
    display: flex;
    padding: 20px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.check-row:hover {
    background: #fff;
    transform: scale(1.02);
}

.check-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-weight: bold;
}

.check-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-navy);
}

.check-content p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* KEY TO ENTRANCE - COMPACT COLOR DUO */
.entrance-duo {
    display: flex;
    gap: 15px;
    align-items: stretch;
    margin-top: 30px;
}

.entrance-duo-card {
    flex: 1;
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.entrance-duo-card:hover {
    transform: translateY(-5px);
}

.entrance-duo-card.dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.entrance-duo-card.accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.entrance-duo-card i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: block;
}

.entrance-duo-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
}

.entrance-duo-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.entrance-duo-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .entrance-duo {
        flex-direction: column;
    }
}

.media-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.media-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.media-modal.active .modal-content {
    transform: scale(1);
}

.modal-content img,
.modal-content video {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.close-modal:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
    opacity: 0.8;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.media-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--primary);
}