/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Titillium Web', sans-serif;
    background: #0D0D0D;
    color: #FFFFFF;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 13, 13, 0.3) 0%,
        rgba(13, 13, 13, 0.5) 50%,
        rgba(13, 13, 13, 0.7) 100%
    );
}

/* Vignette Effect */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* Main Content */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Logo */
.logo-container {
    margin-bottom: 1rem;
    margin-top: -180px;
    animation: float 4s ease-in-out infinite;
}

.logo {
    max-width: 600px;
    width: 90vw;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.5))
            drop-shadow(0 10px 40px rgba(0, 0, 0, 0.8));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Tagline */
.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.8);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                     0 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        opacity: 0.9;
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.7),
                     0 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Countdown Panel - Factorio GUI Style */
.countdown-panel {
    margin-bottom: 2.5rem;
}

.panel-border {
    background: linear-gradient(135deg, #FF6B00 0%, #FFA500 50%, #FF6B00 100%);
    padding: 3px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4),
                0 0 60px rgba(255, 107, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.countdown-inner {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 1.5rem 2.5rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

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

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.8);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.75rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 1rem;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* CTA Button - Factorio Style */
.cta-button {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(180deg, #FF6B00 0%, #CC5500 100%);
    padding: 3px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4),
                0 2px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.6),
                0 4px 8px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.button-text {
    display: block;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 2.5rem;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.cta-button:hover .button-text {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Email Signup Widget */
.signup-widget {
    max-width: 500px;
    width: 90vw;
}

.widget-panel {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #333;
    transition: border-color 0.5s ease;
}

.widget-panel.submitted {
    border-color: #FF6B00;
}

/* Corner Brackets */
.corner-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    transition: border-color 0.5s ease;
}

.corner-bracket.top-left {
    top: 0;
    left: 0;
    border-top: 1px solid #555;
    border-left: 1px solid #555;
}

.corner-bracket.top-right {
    top: 0;
    right: 0;
    border-top: 1px solid #555;
    border-right: 1px solid #555;
}

.corner-bracket.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid #555;
    border-left: 1px solid #555;
}

.corner-bracket.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid #555;
    border-right: 1px solid #555;
}

.widget-panel.submitted .corner-bracket {
    border-color: #FF6B00;
}

/* Plus Signs */
.plus-sign {
    position: absolute;
    font-size: 0.75rem;
    color: #555;
    transition: color 0.5s ease;
}

.plus-sign::before {
    content: '+';
}

.plus-sign.top {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.plus-sign.bottom {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.plus-sign.left {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.plus-sign.right {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}

.widget-panel.submitted .plus-sign {
    color: #FF6B00;
}

/* Success Message */
.success-message {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.95);
    z-index: 10;
}

.success-message.visible {
    display: flex;
    animation: pulse-glow 2s ease-in-out infinite;
}

.success-message span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Input Container */
.input-container {
    display: flex;
    align-items: stretch;
    border: 1px solid #555;
    background: #0a0a0a;
    height: 3.5rem;
    transition: border-color 0.5s ease;
}

.widget-panel.submitted .input-container {
    border-color: #FF6B00;
}

.input-container input {
    flex: 1;
    padding: 0 1rem;
    background: transparent;
    border: none;
    outline: none;
    color: #888;
    font-family: 'Titillium Web', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.input-container input::placeholder {
    color: #555;
}

.input-container input:disabled {
    opacity: 0.5;
}

.input-container button {
    padding: 0 1.5rem;
    background: linear-gradient(180deg, #FF6B00 0%, #CC5500 100%);
    border: none;
    border-left: 1px solid #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-container button:hover {
    background: linear-gradient(180deg, #FF8C00 0%, #FF6B00 100%);
}

.input-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-container button span {
    color: #FFF;
    font-family: 'Titillium Web', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        max-width: 90vw;
    }

    .tagline {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .countdown-inner {
        padding: 1rem 1.5rem;
        gap: 0.25rem;
    }

    .countdown-group {
        min-width: 50px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .countdown-group {
        min-width: 40px;
    }

    .widget-panel {
        padding: 1.5rem;
    }

    .input-container {
        flex-direction: column;
        height: auto;
    }

    .input-container input {
        height: 3rem;
        text-align: center;
    }

    .input-container button {
        height: 3rem;
        border-left: none;
        border-top: 1px solid #555;
    }

    .success-message span {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
}

/* Bottom cover bar - hides developer logo */
.bottom-cover {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 260px;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.95) 40%, #0d0d0d 100%);
    pointer-events: none;
    z-index: 5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .logo-container {
        animation: none;
    }

    .tagline {
        animation: none;
    }

    .countdown-separator {
        animation: none;
    }
}
