/* ============================================
   concurrent.day - Frutiger Aero Glossy Tech
   Palette: #b8e3ff #1e293b #e0f0ff #22c55e #8b5cf6 #94a3b8 #3b82f6 #ffe4cc
   Fonts: Nunito (display), Quicksand (body), Lexend (data)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
    background: linear-gradient(180deg,
        #b8e3ff 0%,
        #e0f0ff 30%,
        #fff8f0 70%,
        #ffe4cc 100%);
    min-height: 300vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Atmospheric Sky Tint Overlay --- */
#sky-tint {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    mix-blend-mode: screen;
}

/* --- Floating Cloud Shapes --- */
#clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30% 70% 60% 40% / 40% 50% 60% 50%;
    will-change: transform;
    box-shadow: inset 0 6px 30px rgba(255, 255, 255, 0.6);
}

.cloud-1 {
    width: 320px;
    height: 120px;
    top: 8%;
    animation: drift 65s linear infinite;
    animation-delay: -10s;
    opacity: 0.5;
}

.cloud-2 {
    width: 250px;
    height: 90px;
    top: 18%;
    border-radius: 50% 40% 55% 45% / 45% 55% 40% 50%;
    animation: drift 78s linear infinite;
    animation-delay: -30s;
    opacity: 0.35;
}

.cloud-3 {
    width: 400px;
    height: 140px;
    top: 30%;
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 40%;
    animation: drift 60s linear infinite;
    animation-delay: -5s;
    opacity: 0.4;
}

.cloud-4 {
    width: 200px;
    height: 80px;
    top: 45%;
    border-radius: 55% 45% 65% 35% / 35% 55% 45% 55%;
    animation: drift 72s linear infinite;
    animation-delay: -40s;
    opacity: 0.3;
}

.cloud-5 {
    width: 350px;
    height: 110px;
    top: 60%;
    border-radius: 45% 55% 40% 60% / 55% 45% 50% 50%;
    animation: drift 80s linear infinite;
    animation-delay: -20s;
    opacity: 0.25;
}

.cloud-6 {
    width: 280px;
    height: 100px;
    top: 75%;
    border-radius: 60% 40% 45% 55% / 40% 60% 50% 50%;
    animation: drift 68s linear infinite;
    animation-delay: -50s;
    opacity: 0.3;
}

.cloud-7 {
    width: 180px;
    height: 70px;
    top: 12%;
    border-radius: 35% 65% 55% 45% / 50% 45% 55% 45%;
    animation: drift 75s linear infinite;
    animation-delay: -55s;
    opacity: 0.4;
}

.cloud-8 {
    width: 230px;
    height: 88px;
    top: 88%;
    border-radius: 50% 50% 60% 40% / 45% 55% 45% 55%;
    animation: drift 82s linear infinite;
    animation-delay: -15s;
    opacity: 0.28;
}

@keyframes drift {
    from {
        transform: translateX(-25%);
    }
    to {
        transform: translateX(125vw);
    }
}

/* --- Hero Section (The Dawn) --- */
#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    position: relative;
    max-width: 720px;
}

.hero-orb {
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 60% 70%, rgba(184, 227, 255, 0.55) 0%, rgba(184, 227, 255, 0) 60%),
        linear-gradient(180deg, #ffe4cc 0%, #b8e3ff 100%);
    box-shadow:
        0 0 60px rgba(255, 228, 204, 0.6),
        0 0 120px rgba(184, 227, 255, 0.45),
        inset 0 -20px 40px rgba(59, 130, 246, 0.15);
    opacity: 0.85;
    animation: orb-float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

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

.glossy-title {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #1e293b;
    letter-spacing: -0.02em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 -1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%);
    padding: 0.4em 0.8em;
    border-radius: 24px;
    display: inline-block;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glossy-title::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 10%;
    right: 10%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 16px 16px 50% 50%;
    pointer-events: none;
}

.hero-date {
    font-family: 'Lexend', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: #3b82f6;
    margin-top: 1.25rem;
    letter-spacing: 0.02em;
    animation: pulse-date 3s ease-in-out infinite;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

@keyframes pulse-date {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-tagline {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0.5rem auto 0;
    max-width: 420px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.hero-pill {
    display: inline-block;
    padding: 0.35em 1.1em;
    border-radius: 999px;
    font-family: 'Lexend', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.pill-green { background-color: #22c55e; }
.pill-blue { background-color: #3b82f6; }
.pill-orange { background-color: #f97316; }
.pill-purple { background-color: #8b5cf6; }

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-hint 2s ease-in-out infinite;
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 3px solid #94a3b8;
    border-bottom: 3px solid #94a3b8;
    transform: rotate(45deg);
    opacity: 0.6;
}

@keyframes bounce-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Ray Panels (The Rays) --- */
#rays {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.ray-panel {
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow:
        0 8px 32px rgba(30, 41, 59, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    max-width: 620px;
}

.ray-panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

.panel-left {
    align-self: flex-start;
}

.panel-right {
    align-self: flex-end;
}

.panel-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.panel-title {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #1e293b;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.panel-body {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
}

.panel-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3em 1em;
    border-radius: 12px;
    font-family: 'Lexend', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.panel-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

.badge-green { background-color: #22c55e; }
.badge-blue { background-color: #3b82f6; }
.badge-orange { background-color: #f97316; }
.badge-purple { background-color: #8b5cf6; }

/* --- Timeline Section --- */
#timeline {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-container {
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow:
        0 8px 32px rgba(30, 41, 59, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.timeline-container.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-title {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #1e293b;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.timeline-subtitle {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 1.5rem;
}

.timeline-grid {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.timeline-hours {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 0;
    margin-bottom: 0.5rem;
    min-width: 720px;
}

.timeline-hours .hour-label {
    font-family: 'Lexend', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    padding: 0.25rem 0;
    border-left: 1px solid rgba(148, 163, 184, 0.25);
}

.timeline-lanes {
    position: relative;
    min-width: 720px;
    padding: 0.5rem 0 0.25rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.lane {
    display: grid;
    grid-template-columns: repeat(48, 1fr);
    gap: 2px;
    height: 32px;
    margin-bottom: 6px;
    position: relative;
}

.lane:last-child {
    margin-bottom: 0;
}

.event-block {
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.event-block:hover {
    transform: scaleY(1.2);
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.event-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 6px 6px 0 0;
    pointer-events: none;
}

.event-green { background-color: #22c55e; }
.event-blue { background-color: #3b82f6; }
.event-orange { background-color: #f97316; }
.event-purple { background-color: #8b5cf6; }

.timeline-now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #f97316 0%, #f97316 100%);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
    z-index: 2;
    pointer-events: none;
    transition: left 0.5s ease;
    display: none;
    min-height: 100%;
}

.timeline-now::before {
    content: 'NOW';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Lexend', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: #f97316;
    white-space: nowrap;
    letter-spacing: 0.08em;
}

.timeline-now::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(249, 115, 22, 0.7);
}

.timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Lexend', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #94a3b8;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.legend-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 3px 3px 0 0;
}

.dot-green { background-color: #22c55e; }
.dot-blue { background-color: #3b82f6; }
.dot-orange { background-color: #f97316; }
.dot-purple { background-color: #8b5cf6; }

/* --- Live Stats Section --- */
#live-stats {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}

.stats-panel {
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow:
        0 8px 32px rgba(30, 41, 59, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding: 2.5rem 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.stats-panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stats-title {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #1e293b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stats-sub {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.stat-number {
    font-family: 'Lexend', 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #3b82f6;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    letter-spacing: -0.01em;
}

.stat-label {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- Footer --- */
#footer {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 4rem;
    text-align: center;
}

.footer-text {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #1e293b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    opacity: 0.75;
}

.footer-sub {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.3rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #rays {
        padding: 3rem 1rem;
        gap: 2rem;
    }

    .ray-panel {
        max-width: 100%;
        padding: 1.5rem;
    }

    .panel-left,
    .panel-right {
        align-self: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-legend {
        gap: 0.6rem;
    }

    .hero-orb {
        width: 160px;
        height: 160px;
        top: -60px;
    }
}
