/* Global Reset & Tactical Design Tokens */
:root {
    --bg-dark: #050814;
    --card-bg: rgba(8, 14, 30, 0.65);
    --blue-glow: #1d4ed8;
    --blue-bright: #3b82f6;
    --blue-light: #60a5fa;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(59, 130, 246, 0.2);
    --border-hover: rgba(59, 130, 246, 0.45);
    --font-heading: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    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;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Hidden elements for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Background Grids & FX */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
}

.radar-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
    animation: radar-sweep 6s linear infinite;
}

.glow-orb {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 580px;
    padding: 20px;
    z-index: 10;
}

/* Premium Glassmorphic Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7), 
                0 0 25px -5px rgba(29, 78, 216, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.75), 
                0 0 35px -2px rgba(29, 78, 216, 0.15);
}

.card.success-glow {
    border-color: var(--blue-bright);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}

/* Status Badge */
.status-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--blue-light);
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--blue-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--blue-bright);
    animation: pulse-glow 1.8s infinite ease-in-out;
}

/* Logo Section */
.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.team-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(29, 78, 216, 0.2));
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.team-logo:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(59, 130, 246, 0.45));
}

/* Brand Headers */
.brand-header {
    margin-bottom: 24px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    line-height: 1;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--blue-light);
    margin-top: 2px;
    margin-left: 0.35em; /* Compensate for spacing on the right */
}

/* Divider Styling */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.divider-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.divider-star {
    font-size: 11px;
    color: var(--blue-bright);
    opacity: 0.7;
}

.motto {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
    opacity: 0.85;
}

/* Content Area */
.content-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto 28px;
}

/* Countdown Timer */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 380px;
    margin: 0 auto 32px;
}

.countdown-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 8px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1;
}

.countdown-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.launched {
    grid-column: span 4;
    font-family: var(--font-mono);
    font-size: 16px;
    letter-spacing: 0.2em;
    color: var(--blue-bright);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    animation: pulse-glow 1.5s infinite ease-in-out;
}

/* Tactical Form & Input styles */
.subscribe-form {
    max-width: 440px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group:focus-within {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.form-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 14px;
    font-family: var(--font-body);
}

.form-input::placeholder {
    color: #475569;
}

.form-submit {
    background: var(--blue-glow);
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.2s ease;
}

.form-submit:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

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

/* Success/Error messages */
.form-message {
    font-size: 12px;
    margin-top: 10px;
    text-align: left;
    padding-left: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    color: #4ade80;
}

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

/* Social Link Footer */
.social-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-link svg {
    transition: transform 0.2s ease;
}

.social-link:hover {
    color: var(--blue-light);
    transform: translateY(-1px);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Keyframes / Animations */
@keyframes radar-sweep {
    0% {
        top: -4px;
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 6px var(--blue-bright);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px var(--blue-bright);
    }
}

/* Responsive Rules */
@media (max-width: 640px) {
    .container {
        padding: 16px;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 20px;
        letter-spacing: 0.3em;
    }
    
    .countdown-container {
        gap: 8px;
    }
    
    .countdown-value {
        font-size: 20px;
    }
    
    .form-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
    }
    
    .form-input {
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 12px 16px;
    }
    
    .form-submit {
        padding: 12px;
        width: 100%;
        text-align: center;
    }
}
