@font-face {
    font-family: 'OCRA';
    src: url('ocra.otf') format('opentype');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'OCRA', monospace;
    line-height: 1.6;
    color: #333;
    background: #000000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Matrix Code Background */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo h1 {
    font-family: 'OCRA', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}



/* Social Links - Fixed Position */
.social-links-fixed {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 1.5rem;
    z-index: 1000;
}

/* Специальные стили для страницы waitlist */
.waitlist-header {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    gap: 1.5rem;
    z-index: 1000;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.social-link {
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #00ff00;
    transform: translateY(-2px) scale(1.05);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

/* Logo Placeholder */
.logo-placeholder {
    text-align: center;
    margin-bottom: 2rem;
}

@keyframes glowPulse {
    0% {
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 255, 0, 0.3));
    }
    50% {
        filter: brightness(1.4) drop-shadow(0 0 20px rgba(0, 255, 0, 0.6));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 255, 0, 0.3));
    }
}

@keyframes borderPulse {
    0% {
        border-color: rgba(0, 255, 0, 0.3);
        background: rgba(0, 255, 0, 0.05);
    }
    50% {
        border-color: rgba(0, 255, 0, 0.6);
        background: rgba(0, 255, 0, 0.08);
    }
    100% {
        border-color: rgba(0, 255, 0, 0.3);
        background: rgba(0, 255, 0, 0.05);
    }
}

.logo-container {
    display: inline-block;
    position: relative;
}

.logo-container:hover .logo-image {
    transform: scale(1.1);
    animation: glowPulse 0.8s ease-in-out infinite;
}

.logo-container:hover::before {
    animation: borderPulse 0.8s ease-in-out infinite;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.logo-image {
    max-width: 275px; /* Увеличено на 10% с 250px */
    height: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: screen;
    animation: glowPulse 1.5s ease-in-out infinite;
    position: relative;
    transition: transform 0.3s ease;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.02);
    border-radius: 10px;
    z-index: -1;
    animation: borderPulse 1.5s ease-in-out infinite;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin: 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.gradient-text {
    background: linear-gradient(45deg, #00ff00, #00ff41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'OCRA', monospace;
}

.btn-primary {
    background: #00ff00;
    color: #000000;
    font-weight: 600;
    border: none;
    min-width: 120px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.btn-primary:hover {
    background: #00ff41;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Visual - Simplified for matrix background */
.hero-visual {
    display: none; /* Hide old floating elements, using matrix instead */
}

.floating-elements {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    background: radial-gradient(ellipse at center, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    border-radius: 20px;
}

/* Content overlay for better readability */
.container {
    position: relative;
    z-index: 1;
}

.element {
    position: absolute;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 0, 0, 0.3);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 80px;
    height: 80px;
    background: rgba(139, 0, 0, 0.3);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    background: rgba(45, 27, 105, 0.3);
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}



/* Back Button */
.back-button {
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    color: #00ff00;
    transform: translateX(-5px);
}

/* Wallet Section */
.wallet-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wallet-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
}

.wallet-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.wallet-form {
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.wallet-input {
    flex: 1;
    min-width: 300px;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'OCRA', monospace;
}

.wallet-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.wallet-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.wallet-input.invalid {
    border-color: #ff4757;
    animation: shake 0.5s ease-in-out;
}

.wallet-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.error-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff4757;
    border-radius: 10px;
    padding: 1rem 2rem;
    color: #ff4757;
    z-index: 999;
    text-align: center;
}

.success-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff00;
    border-radius: 10px;
    padding: 1rem 2rem;
    color: #000000;
    z-index: 999;
    text-align: center;
    font-weight: 500;
}



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



/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .logo-container {
        padding: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .social-links-fixed {
        top: 15px;
        right: 15px;
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.6rem;
    }
    
    .header-container {
        justify-content: center;
    }
    
    .input-group {
        flex-direction: column;
        align-items: center;
    }
    
    .wallet-input {
        min-width: auto;
        width: 100%;
        max-width: 400px;
    }
    
    .wallet-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Transition Animation */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    animation: pageTransition 1s ease-in-out;
}

@keyframes pageTransition {
    0% {
        opacity: 0;
        visibility: visible;
    }
    20% {
        opacity: 1;
        box-shadow: inset 0 0 50px rgba(0, 255, 0, 0.5);
    }
    80% {
        opacity: 1;
        box-shadow: inset 0 0 50px rgba(0, 255, 0, 0.5);
    }
    100% {
        opacity: 0;
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ff00, #008800);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ff41, #00aa00);
}