:root {
    --color-dark: #0a0e1a;
    --color-blue: #1e3a5f;
    --color-gold: #ffd700;
    --color-electric: #00d4ff;
    --color-success: #00ff88;
    --color-error: #ff4444;
    --gradient-navy: linear-gradient(135deg, #0a0e1a 0%, #1e3a5f 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4b 100%);
    --font-display: 'Orbitron', monospace;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--color-dark);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Elements */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 14, 26, 0.4) 100%),
                linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 14, 26, 0.9) 100%);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Main Container */
.landing-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Shield Logo */
.logo-container {
    margin-bottom: 2rem;
    animation: dropIn 1s ease;
}

@keyframes dropIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.shield-logo {
    width: 150px;
    height: 180px;
    position: relative;
}

.shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.shield-outer {
    animation: rotatePath 20s linear infinite;
    transform-origin: center;
}

.shield-inner {
    animation: rotatePath 30s linear infinite reverse;
    transform-origin: center;
}

@keyframes rotatePath {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.shield-text {
    animation: glow 2s ease infinite;
}

@keyframes glow {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.8; filter: brightness(1.2); }
}

.shield-logo.pulse {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideUp 1s ease 0.3s both;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.title-line {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.title-accent {
    color: var(--color-electric);
    display: block;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Description */
.description-section {
    max-width: 600px;
    text-align: center;
    margin-bottom: 3rem;
    animation: slideUp 1s ease 0.5s both;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.highlight {
    color: var(--color-gold);
    font-weight: 600;
}

.metric {
    color: var(--color-success);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Feature Badges */
.features {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: slideUp 1s ease 0.7s both;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* Authentication Section */
.auth-section {
    animation: slideUp 1s ease 0.9s both;
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.auth-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.input-container {
    position: relative;
}

.access-input {
    width: 300px;
    padding: 1rem 1.5rem;
    background: rgba(30, 58, 95, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-display);
    letter-spacing: 0.2em;
    text-align: center;
    transition: all 0.3s ease;
    outline: none;
}

.access-input:focus {
    border-color: var(--color-gold);
    background: rgba(30, 58, 95, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.access-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.access-input:focus ~ .input-glow {
    opacity: 1;
}

.access-button {
    margin-top: 1rem;
    padding: 1rem 3rem;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50px;
    color: var(--color-dark);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.access-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.access-button:active {
    transform: translateY(0);
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.access-button:hover .button-shine {
    left: 100%;
}

.error-message {
    color: var(--color-error);
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.error-message.show {
    opacity: 1;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Security Badge */
.security-badge {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 3;
}

.security-badge svg {
    fill: var(--color-gold);
}

/* Success Portal */
.success-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.success-portal.active {
    display: flex;
    animation: portalExpand 1.5s ease forwards;
}

@keyframes portalExpand {
    from {
        clip-path: circle(0% at 50% 50%);
    }
    to {
        clip-path: circle(150% at 50% 50%);
    }
}

.portal-inner {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-ring {
    position: absolute;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    opacity: 0.5;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: ringExpand 2s ease infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation: ringExpand 2s ease 0.5s infinite;
}

.ring-3 {
    width: 60%;
    height: 60%;
    animation: ringExpand 2s ease 1s infinite;
}

@keyframes ringExpand {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.success-message {
    text-align: center;
    z-index: 1;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    from {
        transform: scale(0) rotate(-180deg);
    }
    to {
        transform: scale(1) rotate(0);
    }
}

.success-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-gold);
    animation: loadProgress 2s ease forwards;
}

@keyframes loadProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-badge {
        width: 200px;
        justify-content: center;
    }
    
    .access-input {
        width: 250px;
    }
    
    .shield-logo {
        width: 120px;
        height: 144px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .description-text {
        font-size: 1rem;
    }
    
    .access-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
}