:root {
    --bg-dark: #05010a;
    --bg-panel: rgba(15, 6, 28, 0.4);

    --purple-primary: #9945ff;
    --purple-light: #d4a8ff;
    --magenta-glow: #e024c3;
    --cyan-accent: #24e0d4;

    --text-white: #ffffff;
    --text-muted: #a19bb0;

    --border-glass: rgba(153, 69, 255, 0.15);
    --border-glow: rgba(153, 69, 255, 0.4);

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --ease-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

::selection {
    background: var(--purple-primary);
    color: var(--text-white);
}

a,
button {
    text-decoration: none;
    color: inherit;
    border: none;
    background: none;
    font-family: inherit;
}

#cosmic-canvas,
#cursor-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#cosmic-canvas {
    z-index: -2;
}

#cursor-canvas {
    z-index: 100000;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
}

.glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--purple-primary), transparent 70%);
    top: -10%;
    right: -5%;
    animation: drift 25s infinite ease-in-out alternate;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--magenta-glow), transparent 70%);
    bottom: -15%;
    left: -10%;
    animation: drift 30s infinite ease-in-out alternate-reverse;
}

.glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple-light), transparent 70%);
    top: 40%;
    left: 45%;
    opacity: 0.15;
    animation: pulseGlow 12s infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0.2;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    display: flex;
    justify-content: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: linear-gradient(180deg, rgba(5, 1, 10, 0.9), transparent);
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.brand-logo {
    height: 36px;
    filter: drop-shadow(0 0 15px var(--purple-primary));
}

.brand-name {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 3px;
    color: var(--text-white);
}

.nav-tabs {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.4s var(--ease-fluid);
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    color: var(--text-white);
}

.tab-btn.active {
    color: var(--text-white);
    background: rgba(153, 69, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(153, 69, 255, 0.1);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 100px;
    padding: 1px;
    background: linear-gradient(135deg, var(--purple-primary), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-play {
    position: relative;
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s var(--ease-fluid);
    backdrop-filter: blur(10px);
}

.btn-play i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, var(--purple-light));
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    padding-left: 2px;
    transition: all 0.4s var(--ease-fluid);
}

.btn-play:hover {
    border-color: var(--purple-primary);
    background: rgba(153, 69, 255, 0.1);
    box-shadow: 0 0 30px rgba(153, 69, 255, 0.3);
}

.btn-play:hover i {
    background: linear-gradient(135deg, var(--purple-primary), var(--magenta-glow));
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--magenta-glow);
}

.app-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 100px;
}

.page-tab {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    padding: 40px;
}

.page-tab.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-tab::-webkit-scrollbar {
    width: 6px;
}

.page-tab::-webkit-scrollbar-track {
    background: transparent;
}

.page-tab::-webkit-scrollbar-thumb {
    background: rgba(153, 69, 255, 0.3);
    border-radius: 3px;
}

.highlight-purple {
    background: linear-gradient(135deg, #fff, var(--purple-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(153, 69, 255, 0.3));
}

.highlight-magenta {
    background: linear-gradient(135deg, #fff, var(--magenta-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(224, 36, 195, 0.3));
}

#tab-home {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 550px;
    margin-bottom: 48px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-hyper {
    position: relative;
    padding: 20px 48px;
    border-radius: 100px;
    background: rgba(15, 6, 28, 0.6);
    border: 1px solid rgba(153, 69, 255, 0.3);
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.4s var(--ease-fluid);
    backdrop-filter: blur(10px);
}

.btn-hyper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent 70%, var(--purple-primary) 80%, var(--magenta-glow) 100%);
    border-radius: 100px;
    z-index: -1;
    animation: spinHyper 2s linear infinite;
}

.btn-hyper::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 100px;
    z-index: -1;
    transition: background 0.4s;
}

.btn-hyper:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(153, 69, 255, 0.5);
}

.btn-hyper:hover::after {
    background: rgba(153, 69, 255, 0.1);
}

.hyper-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--magenta-glow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    opacity: 0;
    z-index: 0;
    transition: all 0.4s;
}

.btn-hyper:hover .hyper-flare {
    width: 120px;
    height: 120px;
    opacity: 0.4;
}

.hyper-text {
    position: relative;
    z-index: 1;
}

@keyframes spinHyper {
    100% {
        transform: rotate(360deg);
    }
}

.btn-glass {
    padding: 18px 32px;
    border-radius: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    color: var(--text-white);
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s;
}

.btn-glass:hover {
    border-color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    transform: translateY(-4px);
}

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-num .accent {
    color: var(--purple-primary);
    font-size: 1.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-levitate {
    position: relative;
    animation: levitate 6s ease-in-out infinite;
}

.massive-logo {
    width: min(500px, 40vw);
    filter: drop-shadow(0 0 60px var(--purple-primary)) drop-shadow(0 0 120px rgba(153, 69, 255, 0.5));
}

@keyframes levitate {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
    width: 100%;
}

.page-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

.massive-about-title {
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
}

.glass-orb-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 60px;
    backdrop-filter: blur(24px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(153, 69, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.glass-orb-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--purple-primary), transparent 70%);
    opacity: 0.3;
    filter: blur(40px);
    pointer-events: none;
}

.orb-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.custom-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(153, 69, 255, 0.6));
}

.custom-icon polygon,
.custom-icon path,
.custom-icon rect,
.custom-icon line,
.custom-icon circle {
    transform-origin: center;
}

.glass-orb-card:hover .custom-icon polygon:nth-child(1) {
    animation: spinSlow 10s linear infinite;
}

.glass-orb-card:hover .custom-icon polygon:nth-child(2) {
    animation: spinSlow 7s linear infinite reverse;
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

.glass-orb-card p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.mt-20 {
    margin-top: 20px;
}

#tab-features {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px;
}

.features-list {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-card.reverse {
    flex-direction: row-reverse;
}

.feature-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.v-ring {
    position: absolute;
    inset: 40px;
    border: 2px solid var(--purple-primary);
    border-radius: 50%;
    animation: ringPing 3s infinite cubic-bezier(0.1, 0, 0.3, 1);
    opacity: 0;
}

.v-ring.delay {
    animation-delay: 1.5s;
    border-color: var(--magenta-glow);
}

@keyframes ringPing {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.feature-info {
    flex: 1;
}

.feature-info h3 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.feature-info p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}


#tab-join {
    flex-direction: column;
}

.join-massive {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.join-title-big {
    font-family: var(--font-head);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1;
}

.massive-ip-card {
    width: 100%;
    background: rgba(153, 69, 255, 0.05);
    border: 1px solid var(--border-glow);
    border-radius: 32px;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-fluid);
}

.massive-ip-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(153, 69, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.massive-ip-card:hover {
    transform: scale(1.02);
    border-color: var(--purple-primary);
    box-shadow: 0 20px 80px rgba(153, 69, 255, 0.3);
}

.massive-ip-card:hover::before {
    opacity: 1;
}

.ip-hover-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--magenta-glow);
    letter-spacing: 4px;
    margin-bottom: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.massive-ip-card:hover .ip-hover-text {
    opacity: 1;
}

.ip-address {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.discord-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #5865F2;
    border-radius: 24px;
    padding: 32px 48px;
    color: #fff;
    transition: all 0.4s var(--ease-fluid);
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3);
}

.discord-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(88, 101, 242, 0.5);
}

.d-icon {
    font-size: 3rem;
}

.d-text {
    text-align: left;
    flex: 1;
    padding: 0 32px;
}

.d-text h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.d-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.d-arrow {
    font-size: 2rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.discord-card:hover .d-arrow {
    opacity: 1;
    transform: translateX(10px);
}

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: linear-gradient(135deg, var(--purple-primary), var(--magenta-glow));
    padding: 16px 32px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    opacity: 0;
    box-shadow: 0 10px 40px rgba(153, 69, 255, 0.5);
    z-index: 10000;
}

@media (max-width: 1200px) {
    #tab-home {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .nav-tabs {
        display: none;
    }

    .feature-card,
    .feature-card.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .discord-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 32px 24px;
    }

    .d-text {
        padding: 0;
        text-align: center;
    }

    .d-arrow {
        display: none;
    }
}