/* ee-cod | Zero Gravity v9.1 - Precision Stability Edition */

:root {
    --void: #020617;
    --accent: #00d4ff;
    --white: #ffffff;
    --dim: rgba(255, 255, 255, 0.4);
    --glass: rgba(255, 255, 255, 0.04);
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background-color: var(--void);
    color: var(--white);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

input,
select,
textarea {
    user-select: text !important;
}

/* =========================================================
   BACKGROUND
========================================================= */

.space-engine {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #0c2c5c 0%, #020617 100%);
    z-index: -1;
    pointer-events: none;
}

/* =========================================================
   HEADER
========================================================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1200;

    display: flex;
    align-items: center;
    padding: 0 30px;

    background: rgba(2, 6, 23, 0.3);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    transform: translateZ(0);
    will-change: transform;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 900;
    cursor: pointer;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.nav-logo span {
    color: var(--accent);
    font-weight: 300;
}

/* =========================================================
   MENU
========================================================= */

.menu-toggle {
    width: 30px;
    height: 14px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;
    z-index: 1300;

    transition: 0.3s;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;

    background: var(--white);

    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-toggle.active span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(2, 6, 23, 0.95);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 1100;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    transition: opacity 0.35s ease;
}

.nav-menu.active {
    visibility: visible;
    opacity: 1;
}

.menu-links li {
    margin: 25px 0;

    transform: translateY(30px);
    opacity: 0;

    transition: 0.35s ease forwards;
}

.nav-menu.active .menu-links li {
    transform: translateY(0);
    opacity: 1;
}

.nav-menu.active .menu-links li:nth-child(1) {
    transition-delay: 0.05s;
}

.nav-menu.active .menu-links li:nth-child(2) {
    transition-delay: 0.1s;
}

.nav-menu.active .menu-links li:nth-child(3) {
    transition-delay: 0.15s;
}

.nav-menu.active .menu-links li:nth-child(4) {
    transition-delay: 0.2s;
}

.menu-links a {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 200;
    letter-spacing: 2px;

    transition: 0.3s;
}

.menu-links a:hover {
    color: var(--accent);
    letter-spacing: 5px;
}

.menu-highlight {
    color: var(--accent) !important;
    font-weight: 700 !important;
}

/* =========================================================
   MAIN HORIZON
========================================================= */

.horizon {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 10;

    overflow: hidden;

    padding-bottom: 120px;
}

.core-interface {
    text-align: center;
    max-width: 520px;
    padding: 0 20px;
}

/* =========================================================
   BRAND
========================================================= */

.brand-header {
    margin-bottom: 50px;
    text-align: center;
    animation: fadeIn 1.2s ease;
}

.main-logo-home {
    width: 100%;
    max-width: 192px;
    height: auto;

    margin-bottom: 25px;

    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.meta-tagline h1 {
    font-size: 0.7rem;
    letter-spacing: 0.6em;
    color: var(--dim);
    margin-bottom: 15px;
}

.hero-text {
    font-size: 1.2rem;
    font-weight: 200;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.sub-hero {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--dim);
    font-weight: 400;
    text-transform: uppercase;
}

/* =========================================================
   SEARCH
========================================================= */

.search-sector {
    margin-bottom: 70px;
}

.capsule {
    background: var(--glass);

    border: 1px solid rgba(255, 255, 255, 0.1);

    height: 76px;
    border-radius: 38px;

    display: flex;
    align-items: center;

    padding: 0 8px 0 35px;

    backdrop-filter: blur(16px);

    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.capsule:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);

    box-shadow: 0 0 25px rgba(0, 212, 255, 0.08);
}

.capsule input {
    flex: 1;

    background: none;
    border: none;
    outline: none;

    color: #fff;

    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* =========================================================
   PORTAL
========================================================= */

.portal {
    width: 60px;
    height: 60px;

    background: #000;

    border-radius: 50%;

    cursor: grab;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    z-index: 30;

    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 15px var(--accent);

    transform: translateZ(0);
}

.portal span {
    display: block;

    font-size: 0.65rem;
    font-weight: 900;

    color: #fff;

    z-index: 10;
    opacity: 0.7;
}

.singularidade {
    position: absolute;

    width: 100%;
    height: 100%;

    border: 1px solid var(--accent);
    border-radius: 50%;

    opacity: 0.2;

    animation: pulseEventHorizon 2.5s infinite ease-in-out;

    z-index: 5;
}

@keyframes pulseEventHorizon {
    0%,100% {
        transform: scale(0.9);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

/* =========================================================
   PARTICLES
========================================================= */

.suction-particles i {
    position: absolute;

    width: 3px;
    height: 3px;

    background: #fff;
    border-radius: 50%;

    opacity: 0;

    animation: suckInParticles 2s infinite ease-in;
}

.suction-particles i:nth-child(1) {
    top: 10%;
    left: -50px;
    animation-delay: 0.1s;
}

.suction-particles i:nth-child(2) {
    bottom: 20%;
    left: -70px;
    animation-delay: 0.6s;
}

.suction-particles i:nth-child(3) {
    top: 50%;
    left: -60px;
    animation-delay: 1.1s;
}

.suction-particles i:nth-child(4) {
    bottom: 10%;
    left: -40px;
    animation-delay: 1.5s;
}

@keyframes suckInParticles {
    0% {
        transform: translate(-30px, 0);
        opacity: 0;
    }

    30% {
        opacity: 0.6;
    }

    100% {
        transform: translate(110px, 0) scale(0);
        opacity: 0;
    }
}

/* =========================================================
   CTA
========================================================= */

.hint {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dim);
    margin-top: 15px;
}

.onboarding {
    margin-top: 20px;
    text-align: center;
}

.label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--dim);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn-starlink-bold {
    background: #fff;
    color: #000;

    padding: 16px 45px;

    font-weight: 900;
    letter-spacing: 3px;
    font-size: 0.75rem;

    display: inline-block;

    border-radius: 2px;

    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-starlink-bold:hover {
    transform: translateY(-3px);

    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

/* =========================================================
   FOOTER
========================================================= */

.system-footer {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 0 50px 32px;
    margin-top: 32px;
    z-index: 100;
    box-sizing: border-box;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    border-top: 1px solid rgba(255,255,255,0.05);

    padding-top: 20px;
}

.f-copy {
    font-size: 0.65rem;
    color: var(--dim);
    letter-spacing: 1px;
    min-width: 0;
}

.f-copy span {
    opacity: 0.5;
}

.f-nav a {
    color: var(--dim);

    font-size: 0.65rem;

    margin-left: 20px;

    text-transform: uppercase;
    letter-spacing: 2px;

    transition: 0.3s;
}

.f-nav a:hover {
    color: var(--white);
}

/* =========================================================
   ERROR
========================================================= */

.error-portal {
    width: 100px;
    height: 100px;

    margin: 0 auto 30px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.singularity-dimmed {
    width: 40px;
    height: 40px;

    background: #050a18;

    border-radius: 50%;

    border: 1px dashed var(--dim);

    box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

.shattered-ring {
    position: absolute;

    width: 80px;
    height: 80px;

    border: 1px solid rgba(255,0,0,0.1);
    border-radius: 50%;

    animation: rotateError 10s linear infinite;
}

@keyframes rotateError {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 480px) {

    .menu-links a {
        font-size: 1.6rem;
    }

    .main-logo-home {
        max-width: 160px;
    }

    .footer-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .system-footer {
        padding: 0 20px 24px;
    }

    .f-nav a {
        margin: 0 10px;
    }
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
