:root {
    --bg-dark: #050a14;
    --bg-card: rgba(16, 24, 40, 0.6);
    --accent: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: default;
}

h1,
h2,
h3,
.logo .text {
    font-family: 'Outfit', sans-serif;
}

/* Background Stars */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #112240 0%, #050a14 100%);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle var(--duration) infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo .icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--accent));
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    padding: 100px 5%;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.glitch-text {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.subtitle strong {
    color: var(--accent);
}

/* Input Card */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-card {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.input-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, var(--accent), transparent);
    z-index: -1;
    border-radius: 26px;
    opacity: 0.3;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

input[type="text"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 25px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
}

input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary {
    background: var(--accent);
    color: #050a14;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px;
    text-align: left;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.f-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    padding: 60px;
    text-align: center;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.radar {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.boat {
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rock 3s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes rock {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-10deg);
    }

    50% {
        transform: translate(-50%, -60%) rotate(10deg);
    }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 30px 0 15px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: width 0.5s;
}

.hidden {
    display: none;
}

/* Button Secondary */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary.logged-in {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.1);
}

/* Auth Modal */
#auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.auth-modal-content {
    padding: 50px;
    max-width: 420px;
    width: 90%;
    position: relative;
}

.auth-modal-content h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-tab.active {
    background: var(--accent);
    color: #050a14;
    border-color: var(--accent);
}

#auth-form .form-group {
    margin-bottom: 20px;
}

#auth-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

#auth-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.auth-submit {
    width: 100%;
    margin-top: 10px;
}

.auth-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}

.auth-success {
    color: #4ade80;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}

.auth-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.auth-close:hover {
    color: var(--accent);
}

/* User Menu Dropdown */
.user-menu {
    position: fixed;
    z-index: 1500;
    min-width: 220px;
    padding: 15px 0;
}

.user-menu-header {
    padding: 10px 20px 15px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.user-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-menu-logout {
    color: #ff6b6b;
    border-top: 1px solid var(--glass-border);
    margin-top: 10px;
    padding-top: 15px;
}