/*
   DELETE THIS CODE AFTER LAUNCHING COMPLETED
   Remove this entire launch-page stylesheet after the website is live.
*/

/* =========================================================
   KOLI SAMAJ — LAUNCH CEREMONY
   ========================================================= */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #da1c23;
    --para-color: rgba(55, 52, 53, 0.6);
    --bg-color: #f8fafc;
    --white-color: #ffffff;
    --black-color: #000000;
    --box-shadow: rgba(0, 0, 0, 0.062) 0px 0px 0px 1px;
    --border-radius: 10px;
    --inter-font: "Inter", sans-serif;
    --notosans-font: "Noto Sans Gujarati", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--inter-font);
    background: var(--bg-color);
    color: var(--black-color);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   Background decoration — subtle woven motif, not a poster
   --------------------------------------------------------- */

.bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.16;
}

.orb-1 {
    width: 520px;
    height: 520px;
    background: var(--primary-color);
    top: -12%;
    left: -8%;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: var(--secondary-color);
    bottom: -14%;
    right: -6%;
    opacity: 0.10;
}

/* A restrained woven-line motif referencing textile heritage, kept as a
   near-invisible linework rather than a literal pattern. */
.motif {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1.4px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.06;
}

.motif::before,
.motif::after {
    content: "";
    position: absolute;
    inset: 26px;
    border: 1.4px solid var(--primary-color);
    border-radius: 50%;
}

.motif::after {
    inset: 52px;
}

.motif-left {
    top: 8%;
    left: 4%;
}

.motif-right {
    bottom: 6%;
    right: 6%;
    border-color: var(--secondary-color);
}

.motif-right::before,
.motif-right::after {
    border-color: var(--secondary-color);
}

/* ---------------------------------------------------------
   Screens
   --------------------------------------------------------- */

.screen {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 64px 40px;
}

.screen.is-active {
    display: flex;
}

.screen-exit {
    animation: screenFadeOut 0.5s ease forwards;
}

.screen-enter {
    animation: screenFadeIn 0.6s ease forwards;
}

@keyframes screenFadeOut {
    to {
        opacity: 0;
        transform: translateY(-14px) scale(0.98);
    }
}

@keyframes screenFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------------------------------------------------------
   Screen 1 — Intro
   --------------------------------------------------------- */

.screen-intro {
    text-align: center;
}

.intro-inner {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.brand-mark img {
    display: block;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.eyebrow {
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--primary-color);
    text-transform: uppercase;
}

.eyebrow-light {
    color: var(--white-color);
    opacity: 0.85;
}

.tagline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: clamp(11px, 1.3vw, 12.5px);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--para-color);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tagline-row .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: inline-block;
}

.intro-title {
    font-size: clamp(30px, 5.2vw, 52px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;

    background: linear-gradient(105deg,
            #1e3a8a 0%,
            #274ca3 35%,
            #8f2a63 68%,
            #da1c23 100%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-desc {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.65;
    color: var(--para-color);
    max-width: 46ch;
    font-weight: 400;
}

.launch-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 18px 34px;
    margin-top: 8px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--para-color);
}

.meta-value {
    font-size: clamp(15px, 1.9vw, 18px);
    font-weight: 700;
    color: var(--primary-color);
}

.meta-divider {
    width: 1px;
    height: 32px;
    background: rgba(30, 58, 138, 0.15);
}

/* ---------------------------------------------------------
   Screen 2 — Countdown / Launch Sequence
   --------------------------------------------------------- */

.screen-countdown,
.screen-celebration {
    /* Changed: use the reference's blue glow and a subtle dotted texture on both screens. */
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1.4px) 0 0 / 22px 22px,
        radial-gradient(circle at 100% 0%, rgba(218, 28, 160, 0.22), transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.45), transparent 42%),
        linear-gradient(135deg, #111d54 0%, #172c70 52%, #241849 100%);
}

.screen-countdown {
    text-align: center;
}

.countdown-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sequence-label {
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--white-color);
    opacity: 0.75;
}

.tminus-label {
    font-size: clamp(13px, 1.8vw, 16px);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.countdown-number-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
}

.countdown-number-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.countdown-number {
    font-size: clamp(90px, 18vw, 150px);
    font-weight: 800;
    color: var(--white-color);
    line-height: 1;
    display: inline-block;
    text-shadow: 0 0 40px rgba(218, 28, 35, 0.0);
}

.countdown-number.is-animating {
    animation: countdownPulse 1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes countdownPulse {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-6deg);
        text-shadow: 0 0 0px rgba(218, 28, 35, 0);
    }

    35% {
        opacity: 1;
        transform: scale(1.12) rotate(1deg);
        text-shadow: 0 0 46px rgba(218, 28, 35, 0.55);
    }

    60% {
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 26px rgba(218, 28, 35, 0.35);
    }

    85% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(218, 28, 35, 0.15);
    }

    100% {
        opacity: 0.15;
        transform: scale(0.94);
        text-shadow: 0 0 0px rgba(218, 28, 35, 0);
    }
}

.countdown-progress {
    width: 240px;
    height: 3px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 26px;
}

.countdown-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--white-color);
    transition: width 1s linear;
}

/* ---------------------------------------------------------
   Screen 3 — Celebration
   --------------------------------------------------------- */

.screen-celebration {
    text-align: center;
    overflow: hidden;
}


.screen-celebration .brand-mark img {
    filter: brightness(0) invert(1);
}

.celebration-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 700px;
}

.celebration-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.celebration-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    color: var(--white-color);
    letter-spacing: -0.01em;
    animation: screenFadeIn 0.7s ease 0.1s both;
}

.celebration-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 600;
    color: var(--white-color);
    max-width: 26ch;
    line-height: 1.5;
    animation: screenFadeIn 0.7s ease 0.22s both;
}

.celebration-note {
    font-size: clamp(14px, 1.7vw, 16px);
    color: rgba(255, 255, 255, 0.75);
    animation: screenFadeIn 0.7s ease 0.34s both;
}

.redirect-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.65);
    animation: screenFadeIn 0.7s ease 0.46s both;
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------
   Celebration effects layer — balloons + confetti + particles
   --------------------------------------------------------- */

.celebration-effects {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

/* Balloons — elegant, minimal (not cartoon): tall rounded ellipse,
   thin knot, thin string. No highlights/eyes/faces. */
.balloon {
    position: absolute;
    bottom: -160px;
    width: 46px;
    height: 58px;
    border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
    opacity: 0.92;
    animation-name: balloonRise;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

.balloon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid inherit;
}

.balloon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    width: 1px;
    height: 70px;
    background: rgba(255, 255, 255, 0.35);
}

@keyframes balloonRise {
    0% {
        transform: translateY(0) translateX(0) rotate(var(--rot-start, -4deg));
        opacity: 0.92;
    }

    85% {
        opacity: 0.75;
    }

    100% {
        transform: translateY(var(--rise, -115vh)) translateX(var(--drift, 30px)) rotate(var(--rot-end, 5deg));
        opacity: 0;
    }
}

/* Confetti — small rectangles, theme colors only */
.confetti-piece {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 14px;
    opacity: 0.9;
    animation-name: confettiFall;
    animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
    animation-fill-mode: forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(var(--fall, 100vh)) rotate(var(--spin, 320deg));
        opacity: 0;
    }
}

/* Floating particles — tiny soft dots */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--white-color);
    opacity: 0;
    animation-name: particleFloat;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.6);
    }

    15% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        transform: translateY(-180px) scale(1);
    }
}

/* Small celebratory burst rings from center */
.burst-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--white-color);
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0);
    animation: burstExpand 1s ease-out forwards;
}

@keyframes burstExpand {
    to {
        transform: translate(-50%, -50%) scale(11);
        opacity: 0;
    }
}

/* ---------------------------------------------------------
   Gujarati text support
   --------------------------------------------------------- */

[lang="gu"],
.gu-text {
    font-family: var(--notosans-font);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 640px) {
    .launch-meta {
        flex-direction: column;
        gap: 10px;
        padding: 16px 22px;
    }

    .meta-divider {
        display: none;
    }

    .meta-item {
        align-items: center;
    }

    .countdown-number-wrap {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 380px) {
    .intro-title {
        font-size: clamp(26px, 7vw, 30px);
    }
}

/* END DELETE THIS CODE AFTER LAUNCHING COMPLETED */