:root {
    --cream-50: #fffaf0;
    --cream-100: #f7ecd7;
    --cream-200: #ead9ba;
    --cream-300: #d5bb8e;
    --ink: #171510;
    --ink-muted: #625a4c;
    --gold: #a77a39;
    --line: rgba(38, 32, 22, 0.15);
    --warm-glow: rgba(255, 214, 145, 0.78);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--cream-200);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--cream-200);
}

body.is-loading {
    overflow: hidden;
}

a {
    color: inherit;
}

.preloader {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    color: var(--ink);
    background: #f3e4c9;
    transform: translateZ(0);
    will-change: transform;
}

.preloader-inner {
    display: flex;
    width: min(340px, 78vw);
    flex-direction: column;
    align-items: center;
}

.preloader-logo-wrap {
    position: relative;
    width: min(360px, 76vw);
}

.preloader-logo {
    display: block;
    width: 100%;
    height: auto;
}

.logo-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.9;
    background-image: linear-gradient(105deg, transparent 12%, rgba(255, 255, 255, 0.95) 46%, rgba(246, 199, 116, 0.95) 52%, transparent 86%);
    background-repeat: no-repeat;
    background-position: -150% 0;
    background-size: 42% 100%;
    -webkit-mask: url('../images/kaveri-logo-black.svg') center / contain no-repeat;
    mask: url('../images/kaveri-logo-black.svg') center / contain no-repeat;
    mix-blend-mode: screen;
}

.launch-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    grid-template-rows: 1fr;
    isolation: isolate;
    background: radial-gradient(circle at 50% 32%, #fffbf2 0, #f5e8d0 48%, #dfc49c 100%);
}

.launch-page::before,
.launch-page::after {
    position: absolute;
    z-index: -1;
    width: min(72vw, 900px);
    aspect-ratio: 1;
    content: '';
    pointer-events: none;
    border-radius: 50%;
    background: rgba(255, 244, 219, 0.28);
    filter: blur(80px);
}

.launch-page::before {
    top: -50%;
    left: -35%;
}

.launch-page::after {
    right: -38%;
    bottom: -58%;
}

.launch-content {
    display: flex;
    width: min(1040px, calc(100% - 56px));
    margin: 0 auto;
    padding: clamp(32px, 4vh, 52px) 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-link {
    position: relative;
    display: inline-flex;
    padding: 10px;
}

.brand-logo {
    display: block;
    width: clamp(220px, 22vw, 320px);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(92, 61, 22, 0.1));
}

.brand-shimmer {
    inset: 10px;
}

.intro-copy {
    margin-top: clamp(26px, 4vh, 46px);
}

.eyebrow {
    display: flex;
    margin: 0 0 18px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 42px;
    height: 1px;
    background: currentColor;
}

h1 {
    margin: 0;
    font-size: clamp(3.1rem, 5.6vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.94;
    white-space: nowrap;
    text-wrap: balance;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4);
}

.countdown-kicker {
    display: flex;
    margin: clamp(34px, 5vh, 54px) 0 14px;
    align-items: center;
    gap: 10px;
    color: var(--ink-muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.countdown-kicker span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(167, 122, 57, 0.13);
    animation: status-pulse 2s ease-in-out infinite;
}

.countdown {
    position: relative;
    display: grid;
    width: min(100%, 800px);
    margin-top: 0;
    padding: clamp(24px, 3.5vw, 32px) clamp(14px, 3vw, 34px);
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    border: 1px solid rgba(87, 66, 37, 0.14);
    border-radius: 2px;
    background: rgba(255, 251, 242, 0.56);
    box-shadow:
        0 30px 70px rgba(94, 65, 24, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(13px);
}

.countdown[hidden],
.countdown-kicker[hidden],
.launch-meta[hidden] {
    display: none;
}

.countdown-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.countdown-value {
    display: block;
    min-width: 2.25ch;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: clamp(2.25rem, 4.4vw, 4.25rem);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.06em;
    line-height: 1;
    text-align: center;
}

.countdown-label {
    margin-top: 11px;
    color: var(--ink-muted);
    font-size: clamp(0.58rem, 0.8vw, 0.69rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.countdown-divider {
    width: 1px;
    height: 48px;
    background: var(--line);
}

.launch-meta {
    display: flex;
    width: min(100%, 800px);
    margin-top: 24px;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.launch-date {
    display: flex;
    margin: 0;
    align-items: center;
    color: var(--ink-muted);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.launch-date svg {
    width: 17px;
    margin-right: 10px;
}

.site-link {
    display: inline-flex;
    min-height: 48px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid var(--ink);
    color: var(--cream-50);
    background: var(--ink);
    box-shadow: 0 9px 24px rgba(23, 21, 16, 0.15);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.site-link svg {
    width: 20px;
}

.site-link:hover,
.site-link:focus-visible {
    transform: translateY(-2px);
    outline: none;
    background: #322c22;
    box-shadow: 0 13px 30px rgba(23, 21, 16, 0.2);
}

.launched-state {
    width: min(100%, 670px);
    margin-top: 45px;
    padding: 38px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 240, 0.65);
}

.launched-state[hidden] {
    display: none;
}

.launched-icon {
    width: 48px;
}

.launched-state p {
    margin: 18px 0 0;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.launched-state h2 {
    margin: 4px 0 24px;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}

@keyframes status-pulse {
    0%, 100% { transform: scale(1); opacity: 0.72; }
    50% { transform: scale(1.14); opacity: 1; }
}

@media (max-width: 700px) {
    .launch-content {
        width: calc(100% - 40px);
    }

    .launch-content {
        padding-top: 28px;
    }

    .brand-logo {
        width: 205px;
    }

    .intro-copy {
        margin-top: 25px;
    }

    h1 {
        font-size: clamp(3.15rem, 15vw, 4.6rem);
        line-height: 0.88;
        white-space: normal;
    }

    .countdown-kicker {
        margin-top: 28px;
    }

    .countdown {
        padding: 22px 9px;
    }

    .countdown-value {
        font-size: clamp(1.85rem, 8.8vw, 2.75rem);
    }

    .countdown-label {
        margin-top: 8px;
        font-size: 0.5rem;
        letter-spacing: 0.12em;
    }

    .countdown-divider {
        height: 42px;
    }

    .launch-meta {
        flex-direction: column;
        justify-content: center;
    }

    .launch-date {
        font-size: 0.61rem;
        letter-spacing: 0.07em;
    }

    .site-link {
        width: 100%;
    }

}

@media (max-width: 390px) {
    .launch-content {
        width: calc(100% - 30px);
    }

    .eyebrow {
        gap: 8px;
        font-size: 0.58rem;
        letter-spacing: 0.17em;
    }

    .eyebrow span {
        width: 24px;
    }

}

@media (max-height: 760px) and (min-width: 701px) {
    .launch-content {
        padding-top: 30px;
    }

    .brand-logo {
        width: 220px;
    }

    .intro-copy {
        margin-top: 22px;
    }

    h1 {
        font-size: clamp(3.6rem, 8vh, 5rem);
    }

    .countdown {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .countdown-value {
        font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}
