* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    background: #07070d;

    color: white;

    font-family: Arial, sans-serif;

    overflow: hidden;
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;

    z-index: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #111225 0%,
            #07070d 65%
        );
}

.grid {
    position: absolute;
    inset: -50%;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    transform:
        perspective(500px)
        rotateX(60deg);

    animation:
        gridMove 15s linear infinite;
}

@keyframes gridMove {

    from {
        transform:
            perspective(500px)
            rotateX(60deg)
            translateY(0);
    }

    to {
        transform:
            perspective(500px)
            rotateX(60deg)
            translateY(60px);
    }
}


.glow {
    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    filter: blur(120px);

    opacity: 0.35;

    animation:
        floatGlow 8s ease-in-out infinite alternate;
}

.glow-one {
    background: #7c3cff;

    top: -150px;
    left: -100px;
}

.glow-two {
    background: #00d9ff;

    right: -150px;
    bottom: -150px;

    animation-delay: 2s;
}

@keyframes floatGlow {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(80px, -50px);
    }
}


/* =========================
   ACCOUNT BUTTONS
========================= */

.account-buttons {
    position: fixed;

    top: 25px;
    right: 30px;

    display: flex;

    gap: 10px;

    z-index: 20;
}

.account-btn {
    padding: 12px 20px;

    border-radius: 30px;

    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(255,255,255,0.07);

    color: white;

    cursor: pointer;

    backdrop-filter: blur(15px);

    transition: 0.3s;
}

.account-btn:hover {
    background: rgba(255,255,255,0.15);

    transform: translateY(-2px);
}

.signup-btn {
    background:
        linear-gradient(
            90deg,
            rgba(124,60,255,0.35),
            rgba(0,217,255,0.25)
        );
}


/* =========================
   ACCOUNT BOXES
========================= */

.account-box {
    position: fixed;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        scale(0.8);

    width: 360px;

    padding: 35px;

    border-radius: 25px;

    background: rgba(20,20,35,0.94);

    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(25px);

    opacity: 0;

    pointer-events: none;

    transition: 0.35s;

    z-index: 40;
}

.account-box.active {
    opacity: 1;

    pointer-events: auto;

    transform:
        translate(-50%, -50%)
        scale(1);
}

.account-box h2 {
    margin-bottom: 10px;
}

.account-box > p {
    color: #999;

    margin-bottom: 20px;
}

.account-box input {
    width: 100%;

    padding: 14px;

    margin-bottom: 12px;

    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.06);

    color: white;

    outline: none;
}

.account-submit {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #7c3cff,
            #00d9ff
        );

    color: white;

    cursor: pointer;

    margin-top: 5px;
}

.close-btn {
    position: absolute;

    top: 15px;
    right: 18px;

    background: none;

    border: none;

    color: white;

    font-size: 25px;

    cursor: pointer;
}

.switch-account {
    text-align: center;

    font-size: 13px;

    margin-top: 18px !important;

    margin-bottom: 0 !important;
}

.switch-account button {
    border: none;

    background: none;

    color: #00d9ff;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    z-index: 2;

    animation:
        heroEnter 1.2s ease;
}

@keyframes heroEnter {

    from {
        opacity: 0;

        transform:
            translateY(25px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.small-text {
    letter-spacing: 5px;

    font-size: 11px;

    color: #888;

    margin-bottom: 20px;
}


/* =========================
   LOGO
========================= */

.hero h1 {
    font-size:
        clamp(55px, 9vw, 120px);

    font-weight: 800;

    letter-spacing: -5px;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            #7c3cff,
            #00d9ff
        );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
}

.hero h1 b {
    color: #555;
}


.subtitle {
    margin-top: 30px;

    font-size: 25px;

    color: #ccc;
}

.subtitle span {
    color: #00d9ff;
}

.description {
    margin-top: 15px;

    color: #777;

    line-height: 1.7;
}


/* =========================
   START BUTTON
========================= */

.start-btn {
    margin-top: 35px;

    padding: 16px 35px;

    border: none;

    border-radius: 40px;

    background:
        linear-gradient(
            90deg,
            #7c3cff,
            #00d9ff
        );

    color: white;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

.start-btn:hover {
    transform: scale(1.07);

    box-shadow:
        0 0 30px
        rgba(0,217,255,0.35);
}


/* =====================================================
   GAMMA-RAY BURST
===================================================== */

.burst-screen {
    position: fixed;

    inset: 0;

    background: #000;

    display: flex;

    justify-content: center;

    align-items: center;

    opacity: 0;

    pointer-events: none;

    z-index: 100;

    transition: opacity 0.25s;
}

.burst-screen.active {
    opacity: 1;

    pointer-events: auto;
}


/* central system */

.burst-container {
    position: relative;

    width: 220px;
    height: 220px;

    display: flex;

    justify-content: center;

    align-items: center;
}


/* orbiting rings */

.orbit {
    position: absolute;

    border-radius: 50%;

    border: 1px solid
        rgba(255,255,255,0.15);

    transform:
        rotateX(65deg);
}

.orbit-one {
    width: 220px;
    height: 220px;

    animation:
        burstSpin 2.2s linear infinite;
}

.orbit-two {
    width: 160px;
    height: 160px;

    border-color:
        rgba(124,60,255,0.5);

    animation:
        burstSpin 1.3s linear infinite reverse;
}

.orbit-three {
    width: 100px;
    height: 100px;

    border-color:
        rgba(0,217,255,0.6);

    animation:
        burstSpin 0.7s linear infinite;
}


@keyframes burstSpin {

    from {
        transform:
            rotateX(65deg)
            rotateZ(0deg);
    }

    to {
        transform:
            rotateX(65deg)
            rotateZ(360deg);
    }
}


/* white particle */

.particle {
    position: absolute;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 0 12px white,
        0 0 30px white,
        0 0 60px
        rgba(0,217,255,0.9);

    animation:
        particleOrbit 1.4s
        linear infinite;
}

@keyframes particleOrbit {

    from {
        transform:
            rotate(0deg)
            translateX(105px)
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg)
            translateX(105px)
            rotate(-360deg);
    }
}


/* central white point */

.burst-core {
    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 0 20px white,
        0 0 50px white,
        0 0 100px #00d9ff;

    z-index: 5;
}


/* =========================
   BURST ACCELERATION
========================= */

.burst-screen.exploding
    .orbit-one {
    animation-duration: 0.25s;
}

.burst-screen.exploding
    .orbit-two {
    animation-duration: 0.18s;
}

.burst-screen.exploding
    .orbit-three {
    animation-duration: 0.1s;
}

.burst-screen.exploding
    .particle {
    animation-duration: 0.15s;
}

.burst-screen.exploding
    .burst-core {
    animation:
        coreExplosion 0.45s
        ease-out forwards;
}

@keyframes coreExplosion {

    0% {
        transform: scale(1);

        box-shadow:
            0 0 20px white,
            0 0 50px white;
    }

    40% {
        transform: scale(3);

        box-shadow:
            0 0 60px white,
            0 0 150px white,
            0 0 300px #00d9ff;
    }

    100% {
        transform: scale(80);

        opacity: 0;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .account-buttons {
        right: 15px;
    }

    .account-btn {
        padding: 10px 14px;
    }

    .hero h1 {
        font-size: 50px;

        letter-spacing: -3px;
    }

    .subtitle {
        font-size: 20px;
    }

    .account-box {
        width:
            calc(100% - 40px);
    }
}
/* =========================================================
   INDEX PAGE — SITE ICON
   ========================================================= */

.index-site-icon-section {
    margin-top: 18px;
    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.03);

    text-align: left;
}

.index-site-icon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.index-site-icon-info strong {
    display: block;
    margin-bottom: 4px;
}

.index-site-icon-preview {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #7c3cff,
            #00d9ff
        );

    color: white;

    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;

    overflow: hidden;
}

.index-site-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}