/* Design Tokens & Theme Variables */
:root[data-theme="dark"] {
    --bg-primary: #0a0f1d;
    --bg-card: rgba(17, 24, 39, 0.65);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #a855f7; /* Purple */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-glow: rgba(99, 102, 241, 0.3);
    
    --input-bg: rgba(31, 41, 55, 0.5);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: #6366f1;
    --input-text: #f3f4f6;
    
    --orb-1-color: rgba(99, 102, 241, 0.15);
    --orb-2-color: rgba(168, 85, 247, 0.15);
    --orb-3-color: rgba(236, 72, 153, 0.1);
    
    --toast-bg: #1e1b4b;
    --toast-border: rgba(99, 102, 241, 0.4);
    --toast-success: #10b981;
}

:root[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-card: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #4f46e5;
    --accent-secondary: #9333ea;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --accent-glow: rgba(79, 70, 229, 0.15);
    
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-border: rgba(0, 0, 0, 0.1);
    --input-focus-border: #4f46e5;
    --input-text: #0f172a;
    
    --orb-1-color: rgba(99, 102, 241, 0.08);
    --orb-2-color: rgba(168, 85, 247, 0.08);
    --orb-3-color: rgba(236, 72, 153, 0.05);
    
    --toast-bg: #ffffff;
    --toast-border: rgba(79, 70, 229, 0.2);
    --toast-success: #059669;
}

/* CSS Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ambient Background Animation */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background-color: var(--orb-1-color);
    top: -10%;
    left: -10%;
    animation: float1 25s infinite alternate ease-in-out;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background-color: var(--orb-2-color);
    bottom: -10%;
    right: -10%;
    animation: float2 20s infinite alternate ease-in-out;
}

.orb-3 {
    width: 25vw;
    height: 25vw;
    background-color: var(--orb-3-color);
    top: 40%;
    left: 45%;
    animation: float3 18s infinite alternate ease-in-out;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-8%, -12%) scale(1.05); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-12%, 8%) scale(1.15); }
}

/* Page Layout Container */
.container {
    width: 100%;
    max-width: 820px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Header styling */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

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

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Main Card Structure */
.main-content {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Glass Card Top Accent Line */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

/* Badge Component */
.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 10px var(--accent-primary); }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* Typography styles */
.main-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 2.5rem auto;
}

/* Development Progress Bar */
.progress-container {
    max-width: 520px;
    margin: 0 auto 2.5rem auto;
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    font-weight: 500;
}

.progress-title {
    color: var(--text-secondary);
}

.progress-percentage {
    color: var(--accent-primary);
    font-weight: 600;
}

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

[data-theme="light"] .progress-bar-bg {
    background: rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    position: relative;
    width: 0%;
    transition: width 1.8s cubic-bezier(0.1, 0.8, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Countdown Grid */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 85px;
}

.countdown-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .countdown-value {
    background: rgba(0, 0, 0, 0.02);
}

.countdown-label {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.countdown-separator {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-primary);
    transform: translateY(-16px);
    opacity: 0.8;
}

/* Subscription Form Area */
.subscribe-box {
    max-width: 520px;
    margin: 0 auto;
    border-top: 1px solid var(--border-card);
    padding-top: 2rem;
}

.subscribe-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.subscribe-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 0.35rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.6rem 0.8rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--input-text);
}

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

.submit-btn {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.submit-btn:hover {
    opacity: 0.95;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: left;
    padding-left: 0.5rem;
}

/* Footer Section */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

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

.social-link {
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: #ffffff;
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

[data-theme="light"] .social-link:hover {
    color: #ffffff;
}

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

/* Toast Success Message Box */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: var(--toast-bg);
    border: 1px solid var(--toast-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(150%) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    max-width: 380px;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.toast-icon {
    color: var(--toast-success);
    background: rgba(16, 185, 129, 0.15);
    padding: 3px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-message {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.toast-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toast-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsiveness Settings */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .main-content {
        padding: 2.2rem 1.5rem;
        border-radius: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.98rem;
        margin-bottom: 2rem;
    }
    
    .countdown {
        gap: 0.4rem;
    }
    
    .countdown-item {
        min-width: 65px;
    }
    
    .countdown-value {
        font-size: 1.6rem;
        height: 58px;
        border-radius: 10px;
    }
    
    .countdown-separator {
        font-size: 1.4rem;
        transform: translateY(-13px);
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .input-group input {
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 10px;
        margin-bottom: 0.5rem;
        width: 100%;
        height: 46px;
    }
    
    .submit-btn {
        width: 100%;
        height: 46px;
        justify-content: center;
        border-radius: 10px;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}
