:root {
    --bg: #08080b;
    --text: #f4f4f0;
    --muted: #8d8d95;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-hover: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: #fff;
    color: #08080b;
}

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
    mix-blend-mode: difference;
}

.cursor.active {
    width: 48px;
    height: 48px;
    background: #fff;
}

.nav {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1100px);
    padding: 10px 12px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    background: rgba(8, 8, 11, 0.7);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 100px;
    z-index: 100;
}

.logo {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo span {
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    padding: 10px 15px;
    border-radius: 100px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-links a:hover {
    background: var(--surface-hover);
    color: #fff;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 7vw 100px;
    overflow: hidden;
    isolation: isolate;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-title-wrap {
    position: relative;
    width: fit-content;
}

.word {
    position: relative;
    width: fit-content;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.word.visible {
    opacity: 1;
    transform: translateY(0);
}

.word-text {
    display: block;
    font-size: clamp(70px, 13vw, 190px);
    line-height: 0.82;
    letter-spacing: -0.09em;
    font-weight: 800;
    white-space: nowrap;
}

.word-text.outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

.word-ace {
    margin-left: 0;
}

.word-spectra {
    margin-left: 12vw;
    margin-top: 0;
}

.word-line {
    position: absolute;
    left: 0;
    bottom: -0.14em;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.word-ace .word-line {
    background: rgba(255, 255, 255, 0.5);
}

.word-spectra .word-line {
    background: rgba(255, 255, 255, 0.3);
}

.title-star {
    position: absolute;
    left: -0.13em;
    top: -0.2em;
    transform: translateX(-100%);
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: 10;
}

.shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    --px: 0px;
    --py: 0px;
}

.shape-ring {
    width: 320px;
    height: 320px;
    right: 7%;
    top: 13%;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 50%;
    transform: translate3d(var(--px), var(--py), 0);
}

.shape-square {
    width: 120px;
    height: 120px;
    right: 16%;
    bottom: 15%;
    border: 1px solid rgba(255, 255, 255, 0.065);
    transform: translate3d(var(--px), var(--py), 0) rotate(45deg);
}

.shape-dot-grid {
    width: 110px;
    height: 90px;
    right: 8%;
    bottom: 10%;
    opacity: 0.25;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.65) 1px,
        transparent 1px
    );
    background-size: 12px 12px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    transform: translate3d(var(--px), var(--py), 0);
}

.shape-diagonal {
    width: 350px;
    height: 1px;
    right: -100px;
    top: 68%;
    background: rgba(255, 255, 255, 0.045);
    transform: translate3d(var(--px), var(--py), 0) rotate(-35deg);
}

.shape-blur {
    width: 260px;
    height: 260px;
    right: 25%;
    top: 25%;
    background: rgba(255, 255, 255, 0.018);
    filter: blur(90px);
    border-radius: 50%;
    transform: translate3d(var(--px), var(--py), 0);
}

@media (max-width: 768px) {
    * {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .nav {
        top: 14px;
        padding: 8px 10px 8px 16px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        padding: 8px 9px;
        font-size: 11px;
    }

    .hero {
        padding: 120px 6vw 80px;
    }

    .word-text {
        font-size: clamp(58px, 16vw, 110px);
    }

    .word-spectra {
        margin-left: 6vw;
    }

    .title-star {
        left: -0.08em;
        top: -0.18em;
        font-size: 23px;
    }

    .word-line {
        height: 1px;
    }

    .shape-ring {
        width: 220px;
        height: 220px;
        right: -70px;
        top: 18%;
    }

    .shape-square {
        width: 85px;
        height: 85px;
        right: 12%;
        bottom: 14%;
    }

    .shape-dot-grid {
        width: 80px;
        height: 70px;
        right: 3%;
        bottom: 8%;
        background-size: 10px 10px;
    }

    .shape-diagonal {
        width: 250px;
        right: -130px;
    }
}

@media (max-width: 480px) {
    .nav {
        width: 94%;
    }

    .logo {
        font-size: 12px;
    }

    .nav-links a {
        padding: 7px;
        font-size: 10px;
    }

    .word-text {
        font-size: 17vw;
    }

    .title-star {
        font-size: 18px;
    }

    .shape-ring {
        width: 180px;
        height: 180px;
        right: -90px;
    }

    .shape-square {
        width: 70px;
        height: 70px;
    }

    .shape-dot-grid {
        width: 65px;
        height: 55px;
    }
}
