/* CSS Reset & Variable Design System */
:root {
    --bg-dark: #07080d;
    --bg-card: rgba(15, 17, 26, 0.65);
    --border-glass: rgba(255, 255, 255, 0.07);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --primary-glow: #8b5cf6;
    --secondary-glow: #06b6d4;
    --gradient-purple: linear-gradient(135deg, #7c3aed, #a855f7);
    --gradient-cyan: linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-text: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    --font-heading: 'Mitr', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Glowing Orbs Animation */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation: floatOrb 25s infinite alternate-reverse ease-in-out;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 18s infinite alternate ease-in-out;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 8%) scale(1.1);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

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

/* Header & Logo */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    box-shadow: 0 0 15px var(--secondary-glow);
    position: relative;
}

.logo-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(4px);
    opacity: 0.7;
    animation: pulseGlow 2s infinite;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    font-family: var(--font-body);
    color: var(--text-primary);
}

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

/* Main Premium Glassmorphic Card */
.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    width: 100%;
    max-width: 760px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Card inner lighting shine */
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    animation: cardShine 8s infinite linear;
}

@keyframes cardShine {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.8rem auto;
    font-weight: 300;
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

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

.number-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6rem;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.number-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

.number {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Subscription Form */
.subscription-section {
    max-width: 520px;
    margin: 0 auto;
}

.form-instruction {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.input-group {
    position: relative;
    flex-grow: 1;
}

.email-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-smooth);
}

.email-input::placeholder {
    color: #4b5563;
}

.input-focus-border {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 12px;
    pointer-events: none;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.email-input:focus {
    background: rgba(0, 0, 0, 0.45);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.email-input:focus + .input-focus-border {
    opacity: 1;
}

.submit-button {
    background: var(--gradient-text);
    border: none;
    border-radius: 12px;
    padding: 0 1.8rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
}

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

.submit-button:active {
    transform: translateY(1px);
}

.button-text {
    position: relative;
    z-index: 2;
}

/* Spinner for Loading State */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s infinite linear;
    display: none;
    position: relative;
    z-index: 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message Feedback Styles */
.message-container {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 24px;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(-5px);
    font-family: var(--font-heading);
    font-weight: 300;
}

.message-container.show {
    opacity: 1;
    transform: translateY(0);
}

.message-success {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.message-error {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Social & Footer */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

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

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

.svg-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

#social-fb:hover {
    color: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
    border-color: rgba(24, 119, 242, 0.4);
}

#social-line:hover {
    color: #06c755;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.3);
    border-color: rgba(6, 199, 85, 0.4);
}

#social-twitter:hover {
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.copyright {
    font-size: 0.8rem;
    color: #4b5563;
    letter-spacing: 0.05em;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .content-card {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem 0;
    }

    .main-title {
        font-size: 2.1rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.2rem;
    }

    .countdown-container {
        gap: 0.6rem;
    }

    .countdown-item {
        width: 75px;
    }

    .number-wrapper {
        height: 70px;
    }

    .number {
        font-size: 1.8rem;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .submit-button {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }

    .countdown-item {
        width: 65px;
    }

    .number-wrapper {
        height: 60px;
    }

    .number {
        font-size: 1.5rem;
    }
    
    .label {
        font-size: 0.75rem;
    }
}
