/* ==========================================================================
   Clean Light Theme - Modern Layout & Design Fixes
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-glow: rgba(79, 70, 229, 0.15);
    
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --status-bg: #fffbe6;
    --status-border: #fcd34d;
    --status-text: #d97706;

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ==========================================================================
   Global Reset & Viewport Locking (No Scroll)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
    position: fixed;
    top: 0;
    left: 0;
    font-family: var(--font);
    background-color: var(--bg-page);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    touch-action: none;
}

/* Background Ambient Glows */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.shape-1 {
    top: -12%;
    right: -8%;
    width: 450px;
    height: 450px;
    background: #e0e7ff;
}

.shape-2 {
    bottom: -12%;
    left: -8%;
    width: 450px;
    height: 450px;
    background: #f3e8ff;
}

/* ==========================================================================
   Main Page Wrapper & Centered Card Container
   ========================================================================== */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.card-container {
    width: 100%;
    max-width: 580px;
    height: calc(100dvh - 24px);
    max-height: 640px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3.5vh, 2rem) clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08),
                0 0 1px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.brand-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--status-bg);
    border: 1px solid var(--status-border);
    color: var(--status-text);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.dot {
    width: 7px;
    height: 7px;
    background-color: var(--status-text);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--status-text);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

/* ==========================================================================
   Content Body (Fixes awkward whitespace & gaps)
   ========================================================================== */
.content-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.5vh, 1.6rem);
    width: 100%;
    margin: auto 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    text-align: center;
}

.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #c7d2fe;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.65rem;
}

.hero-title {
    font-size: clamp(1.4rem, 4.5vw, 2.1rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.45rem;
}

.hero-desc {
    font-size: clamp(0.825rem, 2vh, 0.925rem);
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 470px;
    margin: 0 auto;
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.25rem, 1.2vw, 0.5rem);
    width: 100%;
}

.timer-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: clamp(0.5rem, 1.5vh, 0.85rem) clamp(0.5rem, 1.8vw, 0.9rem);
    min-width: clamp(56px, 16vw, 82px);
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timer-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-2px);
}

.number {
    display: block;
    font-size: clamp(1.3rem, 3.8vw, 1.85rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
}

.timer-divider {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    padding-bottom: 0.75rem;
}

/* ==========================================================================
   Subscribe Box (Redesigned Pill Input Bar)
   ========================================================================== */
.subscribe-box {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.subscribe-form {
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-page);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    padding: 4px 4px 4px 2.6rem;
    transition: all 0.25 ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    pointer-events: none;
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-dark);
    outline: none;
    padding: 0.4rem 0.5rem;
    min-width: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

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

.toast {
    margin-top: 0.5rem;
    font-size: 0.775rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.toast.success {
    display: block;
    color: #059669;
}

.toast.error {
    display: block;
    color: #dc2626;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.825rem;
}

.support-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.support-link:hover {
    color: var(--primary);
}

.socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.socials a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.sep {
    color: var(--text-light);
}

.copyright {
    font-size: 0.725rem;
    color: var(--text-light);
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 520px) {
    .input-wrapper {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.5rem;
    }

    .input-wrapper:focus-within {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .input-wrapper input {
        width: 100%;
        background: var(--bg-page);
        border: 1px solid var(--card-border);
        border-radius: var(--radius-md);
        padding: 0.65rem 0.85rem 0.65rem 2.4rem;
    }

    .input-wrapper input:focus {
        border-color: var(--primary);
        background: #ffffff;
        box-shadow: 0 0 0 3px var(--primary-glow);
    }

    .input-icon {
        left: 0.85rem;
        top: 1rem;
    }

    .btn-primary {
        width: 100%;
        border-radius: var(--radius-md);
        padding: 0.65rem;
    }

    .header {
        padding-bottom: 0.6rem;
    }

    .brand-title {
        font-size: 0.875rem;
    }

    .status-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}
