:root {
    --bg: #040711;
    --surface: rgba(15, 22, 36, 0.75);
    --line: rgba(106, 237, 255, 0.35);
    --cyan: #6ae8ff;
    --blue: #4a89ff;
    --pink: #ff5ec3;
    --green: #26b252;
    --text: #dce8ff;
    --muted: #95a5c3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Rajdhani", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(32, 110, 255, 0.2) 0%, rgba(4, 7, 17, 0) 45%),
        radial-gradient(circle at 80% 30%, rgba(255, 94, 195, 0.2) 0%, rgba(4, 7, 17, 0) 40%),
        linear-gradient(180deg, #060a18 0%, #03050f 100%);
    overflow-x: hidden;
}

#fx-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 100%);
}

.code {
    position: absolute;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(11px, 1.4vw, 18px);
    line-height: 1.5;
    opacity: 0.26;
    filter: blur(0.2px);
    animation: drift 18s ease-in-out infinite alternate;
    white-space: pre;
}

.code-a {
    top: 7%;
    left: 6%;
    color: rgba(106, 237, 255, 0.85);
}

.code-b {
    top: 18%;
    right: 8%;
    color: rgba(212, 125, 255, 0.8);
    animation-delay: 2s;
}

.code-c {
    bottom: 8%;
    left: 22%;
    color: rgba(117, 147, 255, 0.8);
    animation-delay: 4s;
}

.stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 38px 24px;
    position: relative;
    z-index: 2;
}

.hero {
    position: relative;
    width: min(1050px, 92vw);
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(16px);
    padding: clamp(34px, 5vw, 58px) clamp(22px, 5vw, 72px);
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(98, 180, 255, 0.18) inset,
        0 0 45px rgba(50, 165, 255, 0.2),
        0 0 80px rgba(20, 190, 255, 0.18);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(106, 237, 255, 0.22), rgba(255, 94, 195, 0.16));
    z-index: -1;
    filter: blur(14px);
}

.badge {
    display: inline-block;
    margin-bottom: 16px;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    font-size: clamp(11px, 1.5vw, 18px);
    letter-spacing: 0.12em;
    color: #e6ffec;
    background: linear-gradient(180deg, #2ecc5b, #17953f);
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 0 24px rgba(38, 178, 82, 0.35);
}

.headline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mini {
    width: clamp(40px, 4.8vw, 58px);
    height: clamp(40px, 4.8vw, 58px);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(106, 237, 255, 0.45);
    object-fit: cover;
    object-position: center 25%;
}

h1 {
    font-family: "Chakra Petch", sans-serif;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1;
    letter-spacing: 0.03em;
    color: #68a8ff;
    text-shadow: 0 0 22px rgba(74, 137, 255, 0.45);
}

.copy {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(22px, 2.4vw, 40px);
    line-height: 1.35;
    color: rgba(227, 235, 255, 0.7);
}

.copy strong {
    color: #f4f8ff;
    font-weight: 700;
}

.cta {
    display: inline-flex;
    margin-top: clamp(26px, 4vw, 40px);
    padding: 16px 34px;
    border-radius: 10px;
    font-family: "Chakra Petch", sans-serif;
    font-size: clamp(21px, 2.2vw, 32px);
    font-weight: 700;
    text-decoration: none;
    color: #ecfff4;
    background: linear-gradient(180deg, #2cc761, #179d43);
    border: 1px solid rgba(203, 255, 226, 0.45);
    box-shadow: 0 0 24px rgba(39, 201, 93, 0.45);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(63, 230, 121, 0.55);
    filter: brightness(1.05);
}

.specs {
    margin-top: clamp(28px, 4.4vw, 54px);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(11px, 1vw, 15px);
    color: rgba(149, 165, 195, 0.65);
    letter-spacing: 0.08em;
}

.specs span + span::before {
    content: "|";
    margin-right: 16px;
    color: rgba(149, 165, 195, 0.45);
}

.halo {
    position: absolute;
    top: 50%;
    width: clamp(220px, 23vw, 330px);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateY(-50%);
    border: 4px solid rgba(106, 237, 255, 0.8);
    box-shadow: 0 0 24px rgba(106, 237, 255, 0.52), 0 0 60px rgba(106, 237, 255, 0.32);
    overflow: hidden;
    background: radial-gradient(circle at 30% 25%, #ffffff 0%, #a2f7ff 45%, #58c7ff 100%);
}

.halo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.halo.right {
    right: clamp(-140px, -11vw, -80px);
    z-index: 2;
    animation: breathe 4.5s ease-in-out infinite;
}

.avatar-full {
    position: absolute;
    left: clamp(-190px, -15vw, -110px);
    bottom: -70px;
    width: clamp(220px, 24vw, 350px);
    margin: 0;
    pointer-events: none;
    opacity: 0.52;
    filter: drop-shadow(0 0 22px rgba(106, 237, 255, 0.34));
}

.avatar-full img {
    width: 100%;
    height: auto;
    display: block;
}

.floaters {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.floater {
    position: absolute;
    display: block;
    opacity: 0.7;
    animation: bob 5.5s ease-in-out infinite;
}

.gamepad {
    width: 42px;
    height: 24px;
    border: 2px solid rgba(106, 237, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(106, 237, 255, 0.6);
}

.gamepad::before,
.gamepad::after {
    content: "";
    position: absolute;
    background: rgba(106, 237, 255, 0.9);
}

.gamepad::before {
    width: 10px;
    height: 2px;
    left: 7px;
    top: 10px;
}

.gamepad::after {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    right: 8px;
    top: 10px;
    box-shadow: -6px 0 0 rgba(106, 237, 255, 0.9);
}

.heart {
    width: 18px;
    height: 16px;
    transform: rotate(-45deg);
    border: 2px solid rgba(255, 94, 195, 0.9);
    border-top: none;
    border-right: none;
    box-shadow: 0 0 10px rgba(255, 94, 195, 0.6);
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 94, 195, 0.9);
    border-radius: 50%;
}

.heart::before {
    left: -2px;
    top: -9px;
}

.heart::after {
    left: 7px;
    top: 0;
}

.sparkle {
    font-size: 26px;
    color: rgba(194, 210, 255, 0.8);
    text-shadow: 0 0 12px rgba(194, 210, 255, 0.6);
}

.sparkle::before {
    content: "+";
}

.g1 { top: 23%; right: 7%; }
.g2 { top: 41%; left: 7%; animation-delay: 1.2s; }
.h1 { top: 14%; right: 12%; animation-delay: 1.5s; }
.h2 { top: 35%; right: 4%; animation-delay: 2.1s; }
.s1 { bottom: 18%; right: 6%; }
.s2 { bottom: 29%; left: 10%; animation-delay: 1.7s; }

.corner-star {
    position: fixed;
    right: 2.8vw;
    bottom: 2.6vw;
    color: rgba(194, 210, 255, 0.8);
    font-size: clamp(36px, 5vw, 52px);
    text-shadow: 0 0 16px rgba(194, 210, 255, 0.65);
    animation: twinkle 2.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* reveal choreography */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 110ms; }
.delay-2 { animation-delay: 210ms; }
.delay-3 { animation-delay: 320ms; }

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-14px); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.55; transform: rotate(0deg) scale(1); }
    50% { opacity: 1; transform: rotate(12deg) scale(1.07); }
}

@keyframes breathe {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.03); }
}

@media (max-width: 1100px) {
    .halo.right {
        right: -72px;
        opacity: 0.88;
    }

    .avatar-full {
        left: -120px;
        bottom: -35px;
        width: clamp(180px, 28vw, 250px);
    }

    .copy {
        max-width: 540px;
    }
}

@media (max-width: 760px) {
    .hero {
        width: 94vw;
        padding: 28px 18px 30px;
    }

    .headline {
        margin-top: 6px;
    }

    h1 {
        font-size: clamp(34px, 12vw, 54px);
    }

    .copy {
        font-size: clamp(18px, 5.1vw, 26px);
    }

    .cta {
        width: 100%;
        justify-content: center;
        font-size: clamp(17px, 5.2vw, 24px);
        padding: 14px 16px;
    }

    .halo {
        display: none;
    }

    .avatar-full {
        display: none;
    }

    .specs {
        gap: 10px;
        font-size: 11px;
    }

    .specs span + span::before {
        margin-right: 10px;
    }
}
