@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        height: auto;
        min-height: 100vh;
    }
}

/* Animated Background */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(20, 20, 20, 0.1) 0px,
            rgba(20, 20, 20, 0.1) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(20, 20, 20, 0.1) 0px,
            rgba(20, 20, 20, 0.1) 1px,
            transparent 1px,
            transparent 2px
        );
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    z-index: 0;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 30, 30, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(30, 30, 30, 0.3) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(40, 40, 40, 0.03) 2px,
            rgba(40, 40, 40, 0.03) 4px
        );
    animation: scanlines 0.1s linear infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.container {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

@media (max-width: 768px) {
    .container {
        height: auto;
        min-height: 100vh;
    }
}

/* Top Section */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.top-left,
.top-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-left {
    text-align: left;
}

.top-right {
    text-align: right;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.logo-symbol {
    color: #39ff14;
    font-size: 3rem;
    font-weight: bold;
}

.logo-text {
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
}

.logo-tm {
    font-size: 0.8rem;
    vertical-align: super;
    color: #ffffff;
}

/* Monospace Text */
.mono-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.signal-lost {
    color: #39ff14;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex: 1;
}

.slogan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.slogan-line {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3); }
}

.launch-button {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 3rem;
    border: 2px solid #ffffff;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: inline-block;
}

.launch-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.launch-button:hover::before {
    left: 0;
}

.launch-button:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Bottom Section */
.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.bottom-left,
.bottom-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bottom-left {
    text-align: left;
}

.bottom-right {
    text-align: right;
}

.enclave-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.enclave-link:hover {
    color: #39ff14;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo-symbol {
        font-size: 2.5rem;
    }
    
    .slogan-line {
        font-size: 2rem;
    }
    
    .mono-text {
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.75rem;
        min-height: 100vh;
        height: auto;
        justify-content: space-between;
    }
    
    /* Top Section - сохраняем горизонтальную структуру как на веб */
    .top-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .top-left {
        flex: 0 0 auto;
        width: auto;
        align-items: flex-start;
        text-align: left;
        gap: 0.3rem;
    }
    
    .logo {
        flex: 1 1 auto;
        font-size: 1.4rem;
        margin: 0;
        justify-content: center;
        min-width: 0;
    }
    
    .logo-symbol {
        font-size: 1.6rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .top-right {
        flex: 0 0 auto;
        width: auto;
        align-items: flex-end;
        text-align: right;
        gap: 0.3rem;
    }
    
    /* Main Content */
    .main-content {
        gap: 2rem;
        padding: 1rem 0;
        flex: 1;
        justify-content: center;
    }
    
    .slogan {
        gap: 0.4rem;
        text-align: center;
        padding: 0;
        width: 100%;
    }
    
    .slogan-line {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
        line-height: 1.3;
    }
    
    .launch-button {
        font-size: 0.9rem;
        padding: 0.9rem 2rem;
        min-width: 200px;
        width: auto;
        text-align: center;
        letter-spacing: 0.15em;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Bottom Section - сохраняем горизонтальную структуру как на веб */
    .bottom-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        width: 100%;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .bottom-left {
        flex: 0 0 auto;
        width: auto;
        align-items: flex-start;
        text-align: left;
        gap: 0.3rem;
    }
    
    .bottom-right {
        flex: 0 0 auto;
        width: auto;
        align-items: flex-end;
        text-align: right;
        gap: 0.3rem;
    }
    
    .mono-text {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        line-height: 1.4;
    }
    
    /* Optimize animations for mobile */
    .background-overlay {
        background-size: 30px 30px;
    }
    
    .slogan-line {
        animation: glow 3s ease-in-out infinite alternate;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem 0.5rem;
    }
    
    .top-section {
        gap: 0.3rem;
    }
    
    .top-left,
    .top-right {
        gap: 0.25rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-symbol {
        font-size: 1.4rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .slogan-line {
        font-size: 1.1rem;
        letter-spacing: 0.08em;
    }
    
    .launch-button {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }
    
    .mono-text {
        font-size: 0.65rem;
    }
    
    .main-content {
        gap: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .bottom-section {
        gap: 0.3rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .container {
        padding: 0.5rem;
    }
    
    .top-section {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }
    
    .top-left,
    .top-right {
        width: auto;
        text-align: left;
    }
    
    .top-right {
        text-align: right;
    }
    
    .logo {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .logo-symbol {
        font-size: 1.4rem;
    }
    
    .main-content {
        gap: 1rem;
        min-height: auto;
        padding: 0.5rem 0;
    }
    
    .slogan-line {
        font-size: 1rem;
    }
    
    .launch-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }
    
    .bottom-section {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .bottom-left,
    .bottom-right {
        width: auto;
        text-align: left;
    }
    
    .bottom-right {
        text-align: right;
    }
}

