:root {
    --avatar-blue: #073cbf;
    --bright-blue: #1377ff;
    --pink: #f5008f;
    --magenta: #e6007e;
    --purple: #8234e9;
    --soft-blue: #edf6ff;
    --soft-pink: #fff0f8;
    --text: #14204b;
    --muted: #60709c;
    --green: #0aae68;
    --border: rgba(120, 111, 190, .18);
    --shadow: 0 20px 60px rgba(29, 67, 148, .11);
    --font: Inter, "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    background: #edf7ff;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(245, 0, 143, .34); outline-offset: 3px; }

.site-scene {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: #f5faff url('../images/candy-sky.webp') center top / cover no-repeat;
}
.site-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.26) 88%, rgba(255,255,255,.6));
}
.ambient {
    position: fixed;
    z-index: -2;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #fff 0 8%, #ff99d2 28%, #f5008f 66%, rgba(245,0,143,0) 70%);
    filter: drop-shadow(0 4px 7px rgba(245,0,143,.2));
    animation: float 6s ease-in-out infinite;
}
.ambient-one { top: 15%; left: 16%; }
.ambient-two { top: 60%; right: 17%; width: 10px; height: 10px; animation-delay: -3s; }

.floating-header {
    position: relative;
    z-index: 20;
    width: min(calc(100% - 64px), 1460px);
    height: 80px;
    margin: 10px auto 0;
    padding: 8px 34px 8px 45px;
    display: grid;
    grid-template-columns: 190px 1fr 190px;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .96);
    border-radius: 30px;
    box-shadow: 0 12px 40px rgba(29, 65, 140, .14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-nav { width: 156px; height: 61px; overflow: hidden; justify-self: start; }
.brand-nav picture { display: block; width: 100%; height: 100%; }
.brand-nav img { width: 100%; height: 100%; object-fit: contain; }
.public-nav { display: flex; align-items: center; justify-content: center; gap: clamp(26px, 4vw, 62px); }
.public-nav a {
    position: relative;
    padding: 18px 0 13px;
    color: #071852;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.public-nav a:hover, .public-nav a.active { color: var(--pink); }
.public-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    height: 2px;
    border-radius: 4px;
    background: var(--pink);
}
.social-nav { display: flex; justify-content: flex-end; gap: 11px; }
.social-nav a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe5f4;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(26,51,120,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.social-nav a:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(26,51,120,.13); }
.social-nav svg { width: 20px; height: 20px; fill: var(--avatar-blue); stroke: var(--avatar-blue); stroke-width: 1.7; }
.social-nav a:first-child svg { fill: none; stroke: var(--pink); }
.menu-toggle { display: none; }

.public-shell {
    width: min(calc(100% - 48px), 1270px);
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    padding: 0 0 16px;
}
.hero { text-align: center; padding-top: 0; }
.hero-logo {
    width: 244px;
    height: 188px;
    margin: -4px auto -5px;
    display: block;
    filter: drop-shadow(0 9px 12px rgba(0,62,190,.14));
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero h1 {
    margin: -7px auto 1px;
    font-size: clamp(37px, 3.6vw, 57px);
    line-height: 1.03;
    letter-spacing: -2.4px;
    font-weight: 850;
    background: linear-gradient(95deg, #073cbf 6%, #0d5eea 34%, #8425d9 58%, #f5008f 91%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle {
    margin: 8px 0 0;
    color: #19295e;
    font-size: clamp(17px, 1.45vw, 22px);
    font-weight: 600;
}
.hero-note { margin: 0; color: #354778; font-size: clamp(13px, 1.1vw, 16px); }

.glass-panel {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.progress-panel {
    width: min(100%, 1040px);
    margin: 14px auto 15px;
    padding: 14px 28px 11px;
    border-radius: 22px;
}
.progress-row { display: grid; grid-template-columns: 1fr 92px; align-items: center; gap: 24px; }
.progress-track {
    position: relative;
    height: 39px;
    padding: 3px;
    overflow: hidden;
    background: rgba(245,247,253,.72);
    border: 1px solid rgba(120, 121, 185, .21);
    border-radius: 999px;
    box-shadow: inset 0 3px 10px rgba(74,73,160,.08);
}
.progress-fill {
    position: relative;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff4ca8 0%, #ed26c4 38%, #852cf0 67%, #0876fa 100%);
    box-shadow: 0 5px 16px rgba(188,35,211,.28);
    transition: width 1s linear;
}
.progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.14) 42%, rgba(255,255,255,.78) 50%, rgba(255,255,255,.12) 57%, transparent 72%);
    animation: shimmer 3.3s infinite;
}
.progress-fill span {
    position: absolute;
    inset: 0;
    opacity: .7;
    background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px);
    background-size: 43px 28px;
}
.progress-percent {
    color: #0757df;
    font-size: 39px;
    line-height: 1;
    letter-spacing: -1.5px;
}
.progress-copy { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 26px; padding-top: 4px; }
.progress-copy span { color: #0757ee; font-size: 14px; font-weight: 800; white-space: nowrap; }
.progress-copy p { margin: 0; color: var(--muted); font-size: 13px; }

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(10, minmax(94px, 1fr));
    width: 100%;
    margin: 0 auto 18px;
    padding-top: 1px;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    border-top: 2px dashed rgba(71, 117, 210, .33);
}
.timeline-step { position: relative; min-width: 0; text-align: center; }
.step-marker {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    border: 2px solid #ccd3e4;
    box-shadow: 0 5px 16px rgba(46,68,138,.1);
}
.step-marker .check, .step-marker .pulse-dot, .step-marker .pending-dot { display: none; }
.step-marker .pending-dot { width: 8px; height: 8px; border-radius: 50%; background: #adb6ca; }
.timeline-step h2 {
    min-height: 38px;
    margin: 0 auto 6px;
    padding: 0 4px;
    color: #15245c;
    font-size: 11px;
    line-height: 1.16;
    font-weight: 750;
}
.timeline-step h2 span { display: block; font-size: 10px; }
.step-state {
    display: inline-flex;
    min-width: 66px;
    justify-content: center;
    padding: 3px 9px;
    color: #66708e;
    background: rgba(224,227,235,.82);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}
.timeline-step.completed .step-marker { border-color: #fff; background: linear-gradient(145deg, #1e92ff, #0757e8); box-shadow: 0 0 0 2px #84c3ff, 0 6px 15px rgba(6,90,226,.24); }
.timeline-step.completed .check { display: block; color: #fff; font-size: 23px; font-weight: 700; }
.timeline-step.completed .step-state { color: #078754; background: #e9fbf4; border: 1px solid #b8ebd7; }
.timeline-step.current .step-marker { border: 2px solid var(--pink); box-shadow: 0 0 0 3px rgba(245,0,143,.08), 0 6px 16px rgba(245,0,143,.18); animation: pulse 2s ease-in-out infinite; }
.timeline-step.current .pulse-dot { display: block; color: var(--pink); letter-spacing: 2px; transform: translateX(1px); }
.timeline-step.current h2 { color: var(--pink); }
.timeline-step.current .step-state { color: var(--pink); background: #fff0f8; border: 1px solid #ffc3e5; }
.timeline-step.pending .pending-dot { display: block; }

.status-grid { display: grid; grid-template-columns: 1.06fr 1.06fr .9fr .98fr; gap: 15px; }
.status-card {
    min-width: 0;
    min-height: 155px;
    padding: 20px 18px;
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 14px;
    border-radius: 20px;
}
.stage-card { border-color: rgba(245,0,143,.25); }
.live-card { border-color: rgba(19,119,255,.25); }
.countdown-card { grid-template-columns: 1fr; border-color: rgba(229,0,190,.21); text-align: center; }
.countdown-card .card-icon { display: none; }
.launch-card { border-color: rgba(130,52,233,.22); }
.card-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    box-shadow: 0 7px 22px rgba(49,58,140,.13);
}
.card-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.pink { color: var(--pink); background: linear-gradient(145deg, #fff, #ffeafa); }
.card-icon.pink svg ellipse { fill: rgba(245,0,143,.18); }
.card-icon.blue { color: #096af0; background: linear-gradient(145deg, #fff, #e9f3ff); }
.card-icon.blue svg path:first-child { fill: rgba(19,119,255,.12); }
.card-icon.purple, .card-icon.violet { color: #8a22eb; background: linear-gradient(145deg, #fff, #f3eaff); }
.card-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #344374; font-size: 11px; font-weight: 600; }
.card-body h2 { margin: 0 0 4px; color: #075ded; font-size: 19px; line-height: 1.2; letter-spacing: -.3px; }
.stage-card .card-body h2 { color: var(--pink); }
.launch-card .card-body h2 { color: #8521e5; font-size: 22px; }
.card-body p { margin: 0; color: #42527e; font-size: 12px; line-height: 1.45; }
.live-indicator { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 10px; font-style: normal; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(10,174,104,.1); }
body[data-status="idle"] .live-indicator, body[data-status="paused"] .live-indicator, body[data-status="completed"] .live-indicator { color: #8992a8; }
body[data-status="idle"] .live-indicator i, body[data-status="paused"] .live-indicator i, body[data-status="completed"] .live-indicator i { background: #aab2c3; box-shadow: none; }
.countdown { display: grid; grid-template-columns: 1fr 12px 1fr 12px 1fr; align-items: center; gap: 3px; }
.countdown span {
    min-width: 0;
    padding: 3px 4px 5px;
    border-radius: 9px;
    color: #d71882;
    background: linear-gradient(180deg, rgba(255,236,248,.95), rgba(255,247,252,.86));
    font-size: clamp(27px, 2.2vw, 39px);
    line-height: 1.15;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1.6px;
}
.countdown span:nth-of-type(2) { color: #7720aa; background: linear-gradient(180deg, #f7eafa, #fff9ff); }
.countdown i { color: #bf228d; font-size: 27px; font-style: normal; font-weight: 800; }
.countdown-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; color: #405078; font-size: 9px; }
.sweet-note { margin-top: 10px !important; text-align: center; }
.sweet-note b { color: var(--pink); }
.mobile-countdown, .mobile-current-stage { display: none; }

.site-footer {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), 920px);
    min-height: 44px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    color: #53638c;
    text-align: center;
    font-size: 12px;
}
.site-footer p { margin: 0; }
.site-footer > span { height: 21px; border-left: 1px solid #bdc7dc; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { color: var(--pink); font-weight: 800; text-decoration: none; }
.connection-toast {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 20px);
    padding: 10px 16px;
    color: #fff;
    background: #26345c;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(12,22,54,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.connection-toast.visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(245,0,143,.06), 0 7px 19px rgba(245,0,143,.2); } }
@keyframes float { 50% { transform: translateY(-15px) rotate(8deg); } }

@media (max-width: 1180px) {
    .floating-header { grid-template-columns: 155px 1fr 154px; padding-inline: 25px; }
    .public-nav { gap: 25px; }
    .timeline { grid-template-columns: repeat(10, 108px); overflow-x: auto; padding: 1px 3px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
    .timeline::before { left: 54px; right: auto; width: 972px; }
    .timeline-step { scroll-snap-align: center; }
    .status-grid { grid-template-columns: repeat(2, 1fr); }
    .status-card { min-height: 145px; }
}

@media (max-width: 820px) {
    .site-scene { background-position: center top; }
    .floating-header {
        width: calc(100% - 28px);
        height: 68px;
        margin-top: 10px;
        padding: 5px 16px;
        grid-template-columns: 130px 1fr 44px;
        border-radius: 22px;
    }
    .brand-nav { width: 126px; height: 54px; }
    .social-nav { display: none; }
    .menu-toggle {
        grid-column: 3;
        width: 42px;
        height: 42px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 13px;
        color: var(--avatar-blue);
        background: #f0f5ff;
        cursor: pointer;
    }
    .menu-toggle span { width: 100%; border-top: 2px solid currentColor; transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .public-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding: 12px;
        display: grid;
        gap: 2px;
        background: rgba(255,255,255,.96);
        border: 1px solid #fff;
        border-radius: 20px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: .2s ease;
    }
    .public-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .public-nav a { padding: 10px 14px; border-radius: 10px; }
    .public-nav a.active::after { display: none; }
    .public-shell { width: calc(100% - 28px); }
    .hero-logo { width: 208px; height: 155px; margin-top: 3px; }
    .hero h1 { letter-spacing: -1.6px; }
    .progress-panel { padding: 14px 18px 11px; }
    .progress-row { grid-template-columns: 1fr 70px; gap: 14px; }
    .progress-percent { font-size: 33px; }
    .progress-copy { gap: 12px; }
    .status-grid { gap: 12px; }
    .site-footer { width: calc(100% - 30px); flex-wrap: wrap; gap: 8px 16px; padding: 14px 0 20px; }
}

@media (max-width: 560px) {
    body { font-size: 14px; }
    .site-scene { background-size: auto 100vh; opacity: .8; }
    .ambient { display: none; }
    .floating-header { width: calc(100% - 20px); }
    .public-shell { width: calc(100% - 20px); }
    .hero { padding-top: 2px; }
    .hero-logo { width: 178px; height: 133px; margin-bottom: 0; }
    .hero h1 { max-width: 390px; margin-top: -4px; font-size: clamp(31px, 10vw, 42px); line-height: 1.02; letter-spacing: -1.5px; }
    .hero-subtitle { margin-top: 10px; font-size: 16px; line-height: 1.35; }
    .hero-note { max-width: 340px; margin: 3px auto 0; font-size: 13px; line-height: 1.4; }
    .progress-panel { margin-top: 16px; padding: 15px; border-radius: 19px; }
    .progress-row { grid-template-columns: 1fr; gap: 8px; }
    .progress-track { height: 31px; }
    .progress-percent { grid-row: 1; text-align: center; font-size: 41px; }
    .progress-copy { display: block; padding-top: 7px; text-align: center; }
    .progress-copy p { margin-top: 3px; }
    .mobile-countdown { display: grid; margin-bottom: 15px; min-height: auto; padding: 17px 22px; }
    .mobile-current-stage { display: grid; margin-bottom: 15px; }
    .desktop-countdown { display: none; }
    .mobile-countdown .countdown span { font-size: 36px; }
    .timeline { margin-bottom: 14px; }
    .status-grid { grid-template-columns: 1fr; }
    .status-card { min-height: 130px; padding: 18px; grid-template-columns: 63px 1fr; }
    .mobile-countdown { grid-template-columns: 1fr; }
    .desktop-stage-card { display: none; }
    .card-icon { width: 58px; height: 58px; }
    .launch-card { order: 1; }
    .stage-card { order: 2; }
    .live-card { order: 3; }
    .site-footer > span { display: none; }
    .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
