:root {
    --bg-color: #f0f7ff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-text: #0f172a;
    --shadow-color: rgba(15, 82, 186, 0.1);
}

[data-theme="dark"] {
    --bg-color: #0b1120;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(15, 23, 42, 0.8);
    --input-text: #f8fafc;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html, body {
    max-width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 40px;
}

/* Abstract Background Glows */
.background-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    max-width: 90vw;
    max-height: 90vw;
    pointer-events: none;
}
.background-glow.primary {
    width: 500px;
    height: 500px;
    background: #00d2ff;
    top: -150px;
    right: -100px;
}
.background-glow.secondary {
    width: 400px;
    height: 400px;
    background: #0f52ba;
    bottom: -100px;
    left: -100px;
}

@media (max-width: 480px) {
    .background-glow.primary {
        width: 260px;
        height: 260px;
        top: -80px;
        right: -60px;
    }
    .background-glow.secondary {
        width: 220px;
        height: 220px;
        bottom: -60px;
        left: -60px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    z-index: 10;
    padding: 0;
}
.theme-toggle:hover { transform: scale(1.1); }
.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}
.hidden { display: none !important; }

/* Main Container */
.container {
    text-align: center;
    width: 100%;
    max-width: 540px;
    padding: 40px 20px;
    z-index: 1;
}

/* Logo Setup - Keeps the background white regardless of theme */
.logo-wrapper {
    background: #ffffff;
    padding: 12px;
    border-radius: 28px;
    display: inline-block;
    box-shadow: 0 15px 35px var(--shadow-color);
    margin-bottom: 30px;
}
.logo {
    width: 110px;
    height: auto;
    display: block;
    border-radius: 18px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00d2ff 0%, #0f52ba 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Countdown Timer Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
}

.time-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 15px;
    min-width: 80px;
    flex: 1 1 80px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d2ff 0%, #0f52ba 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.time-box p {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Launched State - when countdown reaches 00:00:00 */
.countdown-container.launched {
    opacity: 0.7;
}

.countdown-container.launched .time-box {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 10px;
    }
    .time-box {
        padding: 15px 8px;
        min-width: 0;
        flex: 1 1 60px;
    }
    .time-box span {
        font-size: 1.5rem;
    }
    .time-box p {
        font-size: 0.65rem;
    }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 25px 50px var(--shadow-color);
}

.cta-text {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.input-group {
    display: flex;
    gap: 12px;
}

input {
    flex: 1;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 2px solid transparent;
    color: var(--input-text);
    border-radius: 14px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus { border-color: #00d2ff; }
input::placeholder { color: #94a3b8; }

button {
    background: linear-gradient(135deg, #0f52ba 0%, #00d2ff 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.4);
}

.message {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}
.message.success { color: #10b981; }
.message.error { color: #ef4444; }

/* Accessibility: visually hidden but screen-reader accessible */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* SEO content sections (About / FAQ) */
.info-section {
    max-width: 640px;
    margin: 10px auto 0;
    padding: 30px 24px 10px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.info-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}
.info-section > p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.98rem;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
}
.faq-question:hover { transform: none; box-shadow: none; }
.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-answer {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}
.faq-answer.open {
    max-height: 300px;
    margin-top: 10px;
}

.site-footer {
    text-align: center;
    padding: 30px 20px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 480px) {
    .input-group { flex-direction: column; }
    h1 { font-size: 2.2rem; }
    .glass-card { padding: 25px; }
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
    .theme-toggle svg { width: 20px; height: 20px; }
    .container { padding: 30px 16px; }
    .info-section { padding: 24px 16px 10px; }
}

/* Extra-narrow phones (e.g. small Android / iPhone SE) */
@media (max-width: 360px) {
    .container {
        padding: 24px 12px;
    }
    .countdown-container {
        gap: 8px;
    }
    .time-box {
        padding: 12px 6px;
        flex: 1 1 55px;
    }
    .time-box span {
        font-size: 1.25rem;
    }
    h1 {
        font-size: 1.7rem;
        letter-spacing: -0.5px;
    }
    .subtitle {
        font-size: 0.95rem;
    }
    .glass-card {
        padding: 18px;
    }
    .info-section {
        padding: 20px 12px 10px;
    }
}