/* --- CORE VARIABLES --- */
:root {
    --color-deep: #030303;
    --color-gold: #C5A059;
    --color-cyan: #00F0FF;
    --color-glass: rgba(10, 10, 10, 0.4);
    --color-text-main: #ffffff;
    --color-text-muted: #9ca3af;
    /* Gray-400 equivalent */

    --font-orbitron: 'Orbitron', sans-serif;
    --font-rajdhani: 'Rajdhani', sans-serif;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-deep);
    color: var(--color-text-main);
    font-family: var(--font-rajdhani);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- LAYOUT UTILITIES --- */
.wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 64rem;
    /* Equivalent to max-w-4xl */
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

/* --- BACKGROUND ELEMENTS --- */
#neural-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.3;
}

/* --- NAVIGATION --- */
nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    animation: fadeIn 1s ease-out;
}

@media (min-width: 1024px) {
    nav {
        padding: 1.5rem 2.5rem;
    }
}

.sys-status {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* --- HERO SECTION --- */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    position: relative;
}

/* Logo Styling */
.logo-frame {
    position: relative;
    width: 16rem;
    height: 16rem;
    margin-bottom: 2rem;
    margin-top: -4vh;
    /* Allow pulling up visually */
    animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
    .logo-frame {
        width: 20rem;
        height: 20rem;
    }
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/* Glow effects behind logo */
.glow-gold,
.glow-cyan {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 1s ease;
    filter: blur(40px);
}

.glow-gold {
    background-color: rgba(197, 160, 89, 0.1);
    /* Fixed: bg -> background-color */
}

.glow-cyan {
    background-color: rgba(0, 240, 255, 0.05);
    /* Fixed: bg -> background-color */
    transition-delay: 100ms;
}

.logo-frame:hover .glow-gold {
    opacity: 0.4;
}

.logo-frame:hover .glow-cyan {
    opacity: 0.3;
}

/* Content Panel */
.glass-panel {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    transition: transform 0.5s ease;
}

@media (min-width: 768px) {
    .glass-panel {
        padding: 3.5rem 4rem;
    }
}

.glass-panel:hover {
    transform: scale(1.01);
}

.subtitle-top {
    color: var(--color-cyan);
    letter-spacing: 0.4em;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Glitch Title */
.glitch-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.glitch-text {
    font-family: var(--font-orbitron);
    font-weight: 900;
    font-size: 2.25rem;
    letter-spacing: 0.05em;
    color: white;
    text-transform: uppercase;
    display: block;
    position: relative;
}

@media (min-width: 768px) {
    .glitch-text {
        font-size: 4.5rem;
    }
}

.glitch-text-inline {
    display: inline-block;
}

.trademark-sup {
    font-size: 0.6em;
    vertical-align: top;
}

.trademark-title {
    font-family: var(--font-orbitron);
    font-size: clamp(1rem, 2.5vw, 2rem);
    vertical-align: top;
    margin-left: 0.2rem;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--color-cyan);
    z-index: -1;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: var(--color-gold);
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.divider {
    height: 1px;
    width: 6rem;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    margin: 0 auto 2rem auto;
}

.description {
    font-size: 1.125rem;
    color: #d1d5db;
    /* Gray-300 */
    line-height: 1.6;
    font-weight: 300;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .description {
        font-size: 1.5rem;
    }
}

.highlight {
    color: white;
    font-weight: 500;
}

/* --- ACTIONS --- */
.action-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .action-container {
        flex-direction: row;
    }
}

/* Tech Button */
.btn-tech {
    position: relative;
    padding: 1rem 2rem;
    background: white;
    color: black;
    font-family: var(--font-orbitron);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s, box-shadow 0.3s ease;
    /* Added transition for smooth glow */
    /* The chamfered corners logic */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    border: none;
    cursor: pointer;
    line-height: 1;
    appearance: none;
}

/* Enhanced Hover State with Glow */
.btn-tech:hover {
    color: black;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-tech:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

.btn-fill {
    position: absolute;
    inset: 0;
    background: var(--color-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.btn-tech:hover .btn-fill {
    transform: scaleX(1);
}

.btn-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    padding-bottom: 0.25rem;
}

.btn-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* --- FOOTER --- */
footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: #4b5563;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
}

.footer-copy {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-link-small {
    font-size: 0.65rem;
    margin: 0;
}

/* --- LEGAL PAGES --- */
.legal-main {
    align-items: flex-start;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.legal-panel {
    text-align: left;
}

.legal-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.legal-content {
    margin: 0;
    max-width: 100%;
    font-size: 1rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    color: var(--color-cyan);
    margin-bottom: 1rem;
    font-family: var(--font-orbitron);
    font-size: 1.25rem;
}

.legal-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.legal-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.legal-content hr {
    border: 0;
    border-top: 1px solid var(--color-cyan);
    margin: 3rem 0;
}

.legal-link {
    color: var(--color-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.legal-link:hover {
    border-bottom-color: var(--color-cyan);
}

/* --- WORLDS PAGE --- */
.worlds-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.worlds-main {
    flex: 0 0 auto;
}

.worlds-panel {
    text-align: center;
    border-color: var(--color-gold);
}

.worlds-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.worlds-coming {
    font-family: var(--font-orbitron);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--color-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.worlds-actions {
    justify-content: center;
}

.worlds-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

.worlds-loader {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.worlds-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
    animation: loader 2s ease-in-out infinite;
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes loader {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-1px, 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(1px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-1px, 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(1px, 0);
    }

    100% {
        clip-path: inset(0% 0 90% 0);
        transform: translate(-1px, 0);
    }
}

.animate-pulse {
    animation: pulse-text 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.text-cyan {
    color: var(--color-cyan);
}

/* --- CONSENT GATE --- */
#consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    /* Hidden by default in CSS to prevent FOUC/Layout shift */
    align-items: center;
    justify-content: center;
    background-color: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.5s ease;
    opacity: 0;
}



.consent-modal {
    position: relative;
    width: 100%;
    max-width: 28rem;
    padding: 2rem;
    margin: 1rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 240, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.modal-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-gold));
    box-shadow: 0 0 10px var(--color-cyan);
}

.consent-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--color-cyan);
}

.consent-title {
    font-family: var(--font-orbitron);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.consent-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.consent-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.consent-checkbox-wrapper:hover {
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.consent-checkbox-wrapper:focus-within {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.4);
}

.consent-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-text-muted);
    border-radius: 0.25rem;
    cursor: pointer;
    position: relative;
    margin-top: 0.15rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.consent-checkbox:checked {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.consent-checkbox:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

.consent-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-weight: bold;
    font-size: 0.8rem;
}

.consent-label {
    font-size: 0.85rem;
    color: #d1d5db;
    user-select: none;
    cursor: pointer;
    line-height: 1.4;
}

.consent-label a {
    color: var(--color-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.consent-label a:hover {
    border-bottom-color: var(--color-cyan);
}

.btn-gate {
    width: 100%;
    padding: 1rem;
    background: var(--color-cyan);
    color: black;
    font-family: var(--font-orbitron);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-gate:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-gate:not(:disabled) {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-gate:not(:disabled):hover {
    background: white;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.btn-gate:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-rajdhani);
    letter-spacing: 0.05em;
    opacity: 0.7;
}
