/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #070913;
    --card-bg: rgba(13, 20, 38, 0.45);
    --card-bg-hover: rgba(18, 28, 54, 0.6);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-color-focus: rgba(6, 182, 212, 0.4);
    
    /* Neon Accent Colors */
    --blue: #0052FF;
    --cyan: #00F0FF;
    --mint: #10B981;
    --glow-blue: rgba(0, 82, 255, 0.25);
    --glow-cyan: rgba(0, 240, 255, 0.25);
    --glow-mint: rgba(16, 185, 129, 0.2);

    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Typography */
    --font-title: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background canvas for particle effects */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0d122b 0%, var(--bg-dark) 100%);
}

/* Ambient Ambient Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.18;
    mix-blend-mode: screen;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    animation: floatGlow 25s infinite alternate-reverse ease-in-out;
}

.glow-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
    opacity: 0.08;
    animation: floatGlow 18s infinite alternate ease-in-out 2s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.15); }
}

/* ==========================================================================
   LAYOUT WRAPPER
   ========================================================================== */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 3.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .dot {
    background: linear-gradient(135deg, var(--cyan), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logo animation nodes */
.orbit-node-1 {
    animation: orbit-1 6s infinite linear;
    transform-origin: 50px 50px;
}

.orbit-node-2 {
    animation: orbit-2 6s infinite linear;
    transform-origin: 50px 50px;
}

@keyframes orbit-1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit-2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.2rem 0.4rem;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.lang-switcher .divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.content-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Status Badge */
.status-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px -5px rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--mint);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px 2px var(--mint);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 16px 4px var(--mint); }
}

.status-text {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--mint);
}

/* Heading & Subheading */
.main-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 20px rgba(0, 240, 255, 0.15));
}

.main-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

/* ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    width: 100%;
}

.countdown-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 110px;
    flex: 1;
    max-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.countdown-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-focus);
    box-shadow: 0 12px 40px -10px rgba(0, 240, 255, 0.15);
}

.countdown-val {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    background: linear-gradient(180deg, var(--text-primary) 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
.progress-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 4rem;
    background: rgba(13, 20, 38, 0.25);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.progress-percentage {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 9999px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 9999px;
    position: relative;
    box-shadow: 0 0 10px 1px var(--cyan);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: progressGlowShift 2s infinite linear;
    background-size: 200% 100%;
}

@keyframes progressGlowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.progress-phase-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.progress-phase-wrapper svg {
    width: 14px;
    height: 14px;
    color: var(--cyan);
}

.spin-icon {
    animation: spin 3s infinite linear;
}

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

.progress-phase {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   NEWSLETTER CARD & FORM
   ========================================================================== */
.notify-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.25rem;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px -10px rgba(0, 0, 0, 0.4);
    margin-bottom: 5rem;
    transition: var(--transition-smooth);
}

.notify-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5), 0 0 40px -15px rgba(0, 82, 255, 0.1);
}

.notify-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.notify-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.mail-icon {
    position: absolute;
    left: 1.25rem;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.email-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.1rem 1rem 1.1rem 3rem;
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.email-input:focus {
    border-color: var(--border-color-focus);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px -5px rgba(0, 240, 255, 0.15);
}

.email-input:focus + .mail-icon {
    color: var(--cyan);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    border: none;
    padding: 0 1.75rem;
    border-radius: 14px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -4px rgba(0, 82, 255, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -2px rgba(0, 240, 255, 0.4);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.form-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    text-align: left;
    min-height: 20px;
    transition: var(--transition-fast);
}

.form-message.error {
    color: #F87171;
}

.form-message.success {
    color: var(--mint);
}

/* ==========================================================================
   FEATURES PREVIEW SECTION
   ========================================================================== */
.features-section {
    width: 100%;
    margin-bottom: 2rem;
}

.features-heading {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.feature-card {
    background: rgba(13, 20, 38, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--card-bg-hover);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    background: radial-gradient(circle at 0% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 60%);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(0, 82, 255, 0.1);
    border: 1px solid rgba(0, 82, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    color: var(--cyan);
}

.feature-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.feature-card:hover .feature-icon-wrapper {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--cyan);
    color: white;
    box-shadow: 0 0 15px -2px rgba(0, 240, 255, 0.4);
}

.feature-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--cyan);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.social-links a svg {
    width: 16px;
    height: 16px;
}

.social-links a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(9, 13, 26, 0.85);
    border: 1px solid var(--mint);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
    max-width: 350px;
}

.toast svg {
    width: 20px;
    height: 20px;
    color: var(--mint);
    flex-shrink: 0;
}

.toast-content {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.toast.removing {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.9); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 1.5rem;
    }
    
    .site-header {
        margin-bottom: 2rem;
    }
    
    .countdown-container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .countdown-card {
        min-width: calc(50% - 0.375rem);
        max-width: 100%;
        padding: 1.25rem 1rem;
    }
    
    .notify-card {
        padding: 1.5rem;
    }
    
    .notify-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .submit-btn {
        padding: 1.1rem;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-contacts {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .status-badge-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .main-description {
        margin-bottom: 2.5rem;
    }
}
