:root {
    --primary-bg: #0f172a;
    --accent-teal: #14b8a6;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Web3 Mesh Gradient Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1) 100%);
    background-color: #020617;
    z-index: -3;
}

/* Animated Blobs */
.blob-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
}

.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

.constellation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* Clean Map Style */
.map-container {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    /* Increased coverage */
    max-width: 1600px;
    height: auto;
    z-index: -2;
    pointer-events: none;
    opacity: 1;
    /* Transferred opacity control to image or kept high if image is already formatted */
    display: flex;
    justify-content: center;
    align-items: center;
}

.indonesia-map {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Dotted/Digital Style using CSS Mask */
    opacity: 0.3;
    /* Increased opacity for dots */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    /* Create a dot matrix pattern */
    mask-image: radial-gradient(circle, black 1.5px, transparent 2px);
    -webkit-mask-image: radial-gradient(circle, black 1.5px, transparent 2px);
    mask-size: 6px 6px;
    -webkit-mask-size: 6px 6px;
    mask-repeat: repeat;
    -webkit-mask-repeat: repeat;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    padding: 2.5rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    opacity: 0.8;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 5% 8rem;
    min-height: 70vh;
}

.welcome-header {
    margin-bottom: 4rem;
    position: relative;
}

.welcome-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}



.welcome-line-1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}



/* Orbit & Logo System */
.logo-btn-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.orbit-system {
    position: relative;
    width: 320px;
    /* Increased from 300px */
    height: 320px;
    /* Increased from 300px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(20, 184, 166, 0.3);
    border-radius: 50%;
    animation: spinOrbit 30s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
}

.orbit-ring::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-purple);
}

.logo-trigger {
    width: 250px;
    /* Significantly increased from 160px */
    height: 250px;
    /* Significantly increased from 160px */
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s ease;
    animation: float 6s ease-in-out infinite;
    position: relative;
    box-shadow: none;
    /* Removed external shadow to let globe shine */
    overflow: visible;
    z-index: 10;
}

.earth-globe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    /* Removed contrast filter for vibrant look */
    filter: drop-shadow(0 0 20px rgba(20, 184, 166, 0.3));
    /* Spin animation */
    animation: spinEarth 60s linear infinite;
}

@keyframes spinEarth {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.portal-logo {
    position: relative;
    z-index: 10;
    width: 60%;
    /* Adjusted relative to new larger globe */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s;
}

.logo-trigger:hover {
    transform: scale(1.05);
}

.logo-trigger:hover .portal-logo {
    transform: scale(1.1) rotate(5deg);
}

/* Auth Buttons */
.auth-options {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-options.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    z-index: 20;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: white;
    color: black;
    border: 1px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 10%;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
}

.feature-card:hover {
    border-color: var(--accent-teal);
    background: rgba(20, 184, 166, 0.05);
    transform: translateY(-5px);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-line-1 {
        font-size: 3rem;
    }



    .auth-options {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .features {
        padding: 4rem 5%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spinOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}