:root {
    --bg: #070b1b;
    --panel: rgba(255,255,255,.08);
    --text: #f8f9ff;
    --muted: #aeb6d0;
    --accent: #ffcc33;
    --pink: #ff4f9a;
    --cyan: #39e7ff;
    --purple: #8b5cf6;
    --green: #49e89c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 15%, #18265a 0, transparent 32%),
        linear-gradient(135deg, #070b1b 0%, #0a1230 50%, #120b2b 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.noise {
    position: fixed;
    inset: 0;
    opacity: .045;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    z-index: 20;
}
.bg-orb {
    position: fixed;
    width: 420px; height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .22;
    animation: drift 12s ease-in-out infinite alternate;
    pointer-events: none;
}
.orb-one { background: var(--pink); top: -180px; left: -120px; }
.orb-two { background: var(--cyan); right: -180px; top: 25%; animation-delay: -4s; }
.orb-three { background: var(--purple); bottom: -220px; left: 30%; animation-delay: -8s; }

.site-header, .site-footer {
    position: relative;
    z-index: 5;
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header { padding: 28px 0; }
.brand {
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.03em;
    display: flex;
    align-items: center;
    gap: 11px;
}
.brand b { color: var(--accent); }
.brand-mark {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 0 30px rgba(139,92,246,.35);
    font-size: .8rem;
}
.status {
    font-size: .72rem;
    letter-spacing: .14em;
    color: var(--muted);
}
.status span {
    display: inline-block;
    width: 7px; height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.5s infinite;
}

.hero {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 150px);
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 40px;
    padding: 35px 0 65px;
}
.hero-copy { animation: rise .9s ease both; }
.eyebrow {
    color: var(--cyan);
    font-size: .75rem;
    letter-spacing: .2em;
    font-weight: 800;
    margin-bottom: 20px;
}
h1 {
    font-size: clamp(4.2rem, 9vw, 8.4rem);
    line-height: .82;
    letter-spacing: -.075em;
    margin: 0;
}
h1 span {
    background: linear-gradient(90deg, var(--accent), #fff17a, var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sinhala {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 700;
    color: #e6eaff;
    margin: 28px 0 12px;
}
.intro {
    max-width: 590px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}
.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0;
}
.countdown div {
    min-width: 78px;
    padding: 13px 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}
.countdown strong { display: block; font-size: 1.7rem; }
.countdown small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.countdown i { color: #59627f; font-style: normal; font-weight: 900; }

.notify-form {
    max-width: 590px;
    display: flex;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 17px;
    background: rgba(0,0,0,.2);
    box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.notify-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    padding: 13px 15px;
    font-size: .95rem;
}
.notify-form input::placeholder { color: #747d9b; }
.notify-form button {
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    color: #111;
    background: linear-gradient(135deg, var(--accent), #ffef85);
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.notify-form button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(255,204,51,.25); }
.form-message { min-height: 20px; color: var(--muted); font-size: .8rem; }
.form-message.success { color: var(--green); }
.form-message.error { color: #ff799e; }

.visual {
    --mx: 0px; --my: 0px;
    position: relative;
    min-height: 540px;
    display: grid;
    place-items: center;
    animation: rise 1.1s .15s ease both;
}
.halo {
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(57,231,255,.18);
    animation: rotate 20s linear infinite;
}
.halo-a { box-shadow: 0 0 100px rgba(57,231,255,.12); }
.halo-b { width: 470px; height: 470px; border-color: rgba(255,79,154,.12); animation-duration: 32s; animation-direction: reverse; }

.compass {
    position: relative;
    width: 310px; height: 310px;
    border-radius: 50%;
    transform: translate3d(var(--mx), var(--my), 0);
    transition: transform .15s ease-out;
    background:
        radial-gradient(circle, rgba(255,255,255,.08) 0 2%, transparent 2.5%),
        conic-gradient(from 0deg, rgba(255,204,51,.35), rgba(255,79,154,.2), rgba(57,231,255,.3), rgba(255,204,51,.35));
    box-shadow: 0 0 100px rgba(57,231,255,.15), inset 0 0 50px rgba(0,0,0,.45);
    animation: float 5s ease-in-out infinite;
}
.compass:before {
    content: "";
    position: absolute; inset: 12px;
    border-radius: 50%;
    background: #090f28;
    border: 1px solid rgba(255,255,255,.12);
}
.compass-ring {
    position: absolute; inset: 35px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.16);
}
.ring-2 { inset: 72px; border-style: solid; opacity: .5; }
.ring-3 { inset: 105px; opacity: .5; }
.needle {
    position: absolute;
    z-index: 3;
    left: 50%; top: 50%;
    width: 7px; height: 190px;
    transform: translate(-50%,-50%) rotate(38deg);
    transform-origin: center;
    background: linear-gradient(to bottom, var(--pink) 0 50%, var(--cyan) 50%);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    filter: drop-shadow(0 0 12px rgba(255,79,154,.7));
    animation: needle 7s ease-in-out infinite;
}
.center {
    position: absolute;
    z-index: 4;
    inset: 0;
    margin: auto;
    width: 74px; height: 74px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e2b60, #101631);
    border: 2px solid rgba(255,255,255,.18);
    font-weight: 1000;
    color: var(--accent);
    box-shadow: 0 0 35px rgba(255,204,51,.16);
}
.compass span { position: absolute; z-index: 5; font-weight: 900; color: #98a3c7; font-size: .75rem; }
.north { top: 28px; left: 50%; transform: translateX(-50%); }
.east { right: 28px; top: 50%; transform: translateY(-50%); }
.south { bottom: 28px; left: 50%; transform: translateX(-50%); }
.west { left: 28px; top: 50%; transform: translateY(-50%); }

.floating-card {
    position: absolute;
    padding: 11px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(13,18,45,.68);
    backdrop-filter: blur(15px);
    font-size: .68rem;
    letter-spacing: .12em;
    font-weight: 900;
    animation: float 4s ease-in-out infinite;
}
.card-one { top: 17%; left: 4%; color: var(--accent); }
.card-two { right: 3%; top: 35%; color: var(--pink); animation-delay: -1.5s; }
.card-three { bottom: 16%; left: 12%; color: var(--cyan); animation-delay: -2.5s; }

.site-footer {
    padding: 0 0 25px;
    color: #69728e;
    font-size: .75rem;
}

@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
@keyframes drift { to { transform: translate(80px, 50px) scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translate3d(var(--mx), calc(var(--my) - 10px), 0); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes needle { 50% { transform: translate(-50%,-50%) rotate(140deg); } }

@media (max-width: 820px) {
    .site-header { padding-top: 20px; }
    .status { display: none; }
    .hero {
        grid-template-columns: 1fr;
        padding-top: 45px;
    }
    .visual { min-height: 430px; order: -1; }
    .compass { width: 245px; height: 245px; }
    .halo { width: 290px; height: 290px; }
    .halo-b { width: 350px; height: 350px; }
    .needle { height: 145px; }
    .countdown div { min-width: 65px; }
    .card-one { left: 0; }
    .card-two { right: 0; }
    .card-three { left: 3%; }
}
@media (max-width: 520px) {
    .site-header, .hero, .site-footer { width: min(100% - 28px, 1180px); }
    h1 { font-size: clamp(3.8rem, 18vw, 5.5rem); }
    .countdown { gap: 4px; }
    .countdown div { min-width: 58px; padding: 10px 5px; }
    .countdown strong { font-size: 1.35rem; }
    .notify-form { flex-direction: column; padding: 7px; gap: 6px; }
    .notify-form button { min-height: 48px; }
    .visual { min-height: 350px; }
    .compass { width: 210px; height: 210px; }
    .halo { width: 245px; height: 245px; }
    .halo-b { width: 295px; height: 295px; }
    .needle { height: 120px; }
    .card-one { top: 9%; }
    .card-two { top: 30%; }
    .card-three { bottom: 8%; }
}
