/* ==================================================
   CSS Tokens & Base Reset
================================================== */
:root {
    --bg-dark: #050810;
    --bg-surface: #101625;
    --bg-surface-elevated: #1a2336;
    --primary: #FACC15; /* Vibrant Yellow */
    --primary-hover: #EAB308;
    --primary-glow: rgba(250, 204, 21, 0.3);
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(16, 22, 37, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    /* overflow-x: hidden; */
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-darker {
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.justify-center { justify-content: center; }

/* Global Background Elements */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(250, 204, 21, 0.03), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(250, 204, 21, 0.04), transparent 25%);
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.glow-orb.top-right {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}

.glow-orb.bottom-left {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.15), transparent 70%);
}

/* ==================================================
   Typography Highlights
================================================== */
.text-highlight {
    background: linear-gradient(135deg, #FFF 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
}

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

/* ==================================================
   Buttons
================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(250, 204, 21, 0.05);
}

/* ==================================================
   Navbar
================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 48px;
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* ==================================================
   Hero Section
================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    /* font-size: 4.5rem; */
    font-size: 4.0rem;
    margin-bottom: 1.2rem;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.abstract-globe {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.globe-core {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.4), transparent 70%);
    border: 1px solid rgba(250, 204, 21, 0.3);
    box-shadow: 0 0 60px rgba(250, 204, 21, 0.2);
    animation: rotate 20s linear infinite;
    position: relative;
}

.globe-core::before, .globe-core::after {
    content: '';
    position: absolute;
    top: -5%; left: -5%; right: -5%; bottom: -5%;
    border-radius: 50%;
    border: 1px dashed rgba(250, 204, 21, 0.3);
    animation: rotate 30s linear infinite reverse;
}
.globe-core::after {
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: rotate 40s linear infinite;
}

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

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-card i { color: var(--primary); }

.floating-card.c1 { top: 15%; left: 10%; animation-delay: 0s; }
.floating-card.c2 { top: 50%; right: 5%; animation-delay: -2s; }
.floating-card.c3 { bottom: 20%; left: 20%; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==================================================
   Core Narrative & Legacy
================================================== */
.core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.legacy-cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.legacy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    width: 42%;
    text-align: center;
    transition: var(--transition);
}

.legacy-card.mcra {
    opacity: 0.9;
}

.legacy-card.ccu-evolved {
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.05) inset;
    transform: scale(1.05);
}

.ccu-evolved .card-icon img{
    border-radius: 100%;
}

.legacy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.ccu-evolved .card-icon {
    background: rgba(250, 204, 21, 0.15);
    color: var(--primary);
}

.legacy-arrow {
    color: var(--text-muted);
    font-size: 2rem;
}

/* ==================================================
   Problem vs Solution
================================================== */
.ps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.ps-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ps-box:hover {
    transform: translateY(-5px);
}

.icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.error-icon { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.success-icon { background: rgba(250, 204, 21, 0.1); color: var(--primary); }
.yellow-icon { background: rgba(250, 204, 21, 0.1); color: var(--primary); }

.styled-list {
    list-style: none;
    margin-top: 1.5rem;
}

.styled-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.styled-list.problem-list i { color: rgba(239, 68, 68, 0.7); flex-shrink: 0; }
.styled-list.solution-list i { color: var(--primary); flex-shrink: 0; }

.ps-box h3 { font-size: 2rem; }
.ps-box p { color: var(--text-muted); font-size: 1.1rem; }

.result-box, .vision-box {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--border-color);
}

.vision-box {
    border-color: var(--primary);
    background: rgba(250, 204, 21, 0.05);
}

.solution-box .glow-bg {
    position: absolute;
    top: 0; right: 0;
    width: 250px; height: 250px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    filter: blur(50px);
    z-index: 0;
}

.solution-box * { position: relative; z-index: 1; }
.solution-box { border-color: rgba(250, 204, 21, 0.3); }

/* ==================================================
   Timeline (Why Kolkata)
================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.time-marker {
    width: 100px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: right;
    position: relative;
    padding-top: 0.5rem;
}

.time-marker::after {
    content: '';
    position: absolute;
    top: 10px; right: -36px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--text-muted);
    z-index: 2;
}

.time-marker.active::after, .time-marker.future::after {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.6);
}

.time-marker.active, .time-marker.future {
    color: var(--primary);
}

.time-content {
    flex: 1;
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.time-content h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.time-content p { color: var(--text-muted); margin: 0; }

.active-card {
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.02);
}

.future-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(250, 204, 21, 0.05) 100%);
    border-color: rgba(250, 204, 21, 0.3);
}

/* ==================================================
   Platform Grid
================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-surface);
    border-color: rgba(250, 204, 21, 0.3);
    transform: translateY(-8px);
}

.f-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .f-icon {
    background: var(--primary);
    color: #000;
}

.feature-card h4 { font-size: 1.25rem; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ==================================================
   Communities & Split Rows
================================================== */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-col p { font-size: 1.1rem; color: var(--text-muted); }

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background: rgba(250, 204, 21, 0.1);
}

.ambassador-panel {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.glow-bg-soft {
    position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.2), transparent 70%); filter: blur(40px);
}

/* ==================================================
   Stats Grid
================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-box p { color: var(--text-muted); margin: 0; }

/* ==================================================
   CTA & Footer
================================================== */
.cta-container {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(250, 204, 21, 0.1) 100%);
    padding: 6rem 3rem;
    border-radius: 2rem;
    position: relative;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.cta-content h2 { font-size: 3.5rem; }
.cta-content p { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo { height: 40px; margin-bottom: 1.5rem; border-radius: 4px; }
.footer-brand p { color: var(--text-muted); max-width: 300px; }

.footer-links h4 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 0.75rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* ==================================================
   Animations - Reveal on Scroll
================================================== */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active { opacity: 1; transform: translate(0, 0) scale(1); }

.fade-up { transform: translateY(40px); }
.fade-down { transform: translateY(-40px); }
.fade-left { transform: translateX(40px); }
.fade-right { transform: translateX(-40px); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }
.delay-6 { transition-delay: 0.9s; }

/* ==================================================
   Responsive
================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero-container, .core-grid, .ps-container, .split-row { grid-template-columns: 1fr; gap: 3rem; }
    .abstract-globe { height: 400px; }
    .legacy-cards { flex-direction: column; }
    .legacy-card { width: 100%; }
    .legacy-arrow { transform: rotate(90deg); margin: 1rem 0; }
    .timeline::before { left: 40px; }
    .time-marker { width: 80px; text-align: left; position: absolute; left: 0; top: 0; }
    .time-marker::after { right: auto; left: 32px; }
    .time-content { margin-left: 100px; }
    .stat-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-outline { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtext { font-size: 1.1rem; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 2.25rem; }
    .ps-box { padding: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-content h2 { font-size: 2.5rem; }
}
