/* ==========================================================================
   LaunchDeck – Template Styles
   ========================================================================== */

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

html, body {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.launchdeck-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

/* Background overlay for images */
.launchdeck-page--has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.launchdeck-page--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 0;
}
.launchdeck-page--has-bg .launchdeck-content {
    position: relative;
    z-index: 1;
}

/* --- Content Container --- */
.launchdeck-content {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

/* --- Headline --- */
.launchdeck-headline {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.launchdeck-description {
    opacity: .85;
    margin-bottom: 32px;
}

/* --- Countdown --- */
.launchdeck-countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

.launchdeck-countdown__number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.launchdeck-countdown__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 6px;
    opacity: .6;
    font-weight: 600;
}

/* --- Email Form --- */
.launchdeck-email-form {
    display: flex;
    gap: 0;
    max-width: 460px;
    margin: 0 auto 36px;
}

.launchdeck-email-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(128,128,128,.25);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    outline: none;
    background: rgba(255,255,255,.1);
    color: inherit;
    transition: border-color .2s;
}

.launchdeck-email-form input[type="email"]::placeholder {
    opacity: .5;
}

.launchdeck-email-form input[type="email"]:focus {
    border-color: var(--ld-accent);
}

.launchdeck-email-form button {
    padding: 14px 28px;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
}

.launchdeck-email-form button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.launchdeck-form-msg {
    display: none;
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
}

/* --- Social Icons --- */
.launchdeck-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.launchdeck-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    opacity: .7;
}

.launchdeck-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.launchdeck-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   Template 1 – Minimal Launch
   ========================================================================== */
.launchdeck-tpl-minimal {
    background-color: var(--ld-bg, #fafafa);
    color: var(--ld-text, #1a1a2e);
}

.launchdeck-tpl-minimal .launchdeck-headline {
    font-size: clamp(32px, 5vw, 52px);
}

.launchdeck-tpl-minimal .launchdeck-description {
    font-size: 17px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.launchdeck-tpl-minimal .launchdeck-countdown__number {
    color: var(--ld-accent);
}

.launchdeck-tpl-minimal .launchdeck-email-form input[type="email"] {
    background: #fff;
    border-color: #e0e0e0;
}

.launchdeck-tpl-minimal .launchdeck-email-form button {
    background: var(--ld-accent);
    color: #fff;
}

.launchdeck-tpl-minimal .launchdeck-social a {
    background: rgba(0,0,0,.06);
    color: var(--ld-text);
}

.launchdeck-tpl-minimal .launchdeck-form-msg {
    background: rgba(108,99,255,.1);
    color: var(--ld-accent);
}

/* ==========================================================================
   Template 2 – Startup Countdown
   ========================================================================== */
.launchdeck-tpl-startup {
    background: linear-gradient(135deg, var(--ld-accent) 0%, #e040fb 50%, #ff6d00 100%);
    color: #fff;
}

.launchdeck-tpl-startup .launchdeck-headline {
    font-size: clamp(36px, 6vw, 62px);
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.launchdeck-tpl-startup .launchdeck-description {
    font-size: 18px;
    opacity: .9;
}

.launchdeck-tpl-startup .launchdeck-countdown {
    gap: 24px;
    margin-bottom: 48px;
}

.launchdeck-tpl-startup .launchdeck-countdown__block {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 24px 16px;
    min-width: 90px;
}

.launchdeck-tpl-startup .launchdeck-countdown__number {
    font-size: 56px;
}

.launchdeck-tpl-startup .launchdeck-countdown__label {
    opacity: .8;
}

.launchdeck-tpl-startup .launchdeck-email-form input[type="email"] {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.3);
    color: #fff;
}

.launchdeck-tpl-startup .launchdeck-email-form input[type="email"]::placeholder {
    color: rgba(255,255,255,.6);
}

.launchdeck-tpl-startup .launchdeck-email-form button {
    background: #fff;
    color: var(--ld-accent);
}

.launchdeck-tpl-startup .launchdeck-social a {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.launchdeck-tpl-startup .launchdeck-form-msg {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* ==========================================================================
   Template 3 – Dark Launch
   ========================================================================== */
.launchdeck-tpl-dark {
    background: #0a0a0f;
    color: #e0e0e0;
}

.launchdeck-tpl-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(108,99,255,.12) 0%, transparent 100%),
        radial-gradient(ellipse 500px 300px at 80% 30%, rgba(0,255,170,.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.launchdeck-tpl-dark .launchdeck-content {
    position: relative;
    z-index: 1;
}

.launchdeck-tpl-dark .launchdeck-headline {
    font-size: clamp(34px, 5.5vw, 56px);
    background: linear-gradient(135deg, #fff 0%, var(--ld-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.launchdeck-tpl-dark .launchdeck-countdown {
    gap: 20px;
}

.launchdeck-tpl-dark .launchdeck-countdown__block {
    border: 1px solid rgba(108,99,255,.3);
    border-radius: 12px;
    padding: 18px 20px 14px;
    background: rgba(108,99,255,.06);
    box-shadow: 0 0 20px rgba(108,99,255,.1), inset 0 0 20px rgba(108,99,255,.04);
}

.launchdeck-tpl-dark .launchdeck-countdown__number {
    color: var(--ld-accent);
    text-shadow: 0 0 20px rgba(108,99,255,.5);
    font-size: 52px;
}

.launchdeck-tpl-dark .launchdeck-countdown__label {
    color: rgba(255,255,255,.4);
}

.launchdeck-tpl-dark .launchdeck-email-form input[type="email"] {
    background: rgba(255,255,255,.05);
    border-color: rgba(108,99,255,.3);
    color: #fff;
}

.launchdeck-tpl-dark .launchdeck-email-form button {
    background: var(--ld-accent);
    color: #fff;
    box-shadow: 0 0 24px rgba(108,99,255,.4);
}

.launchdeck-tpl-dark .launchdeck-social a {
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.6);
}

.launchdeck-tpl-dark .launchdeck-social a:hover {
    border-color: var(--ld-accent);
    color: var(--ld-accent);
    box-shadow: 0 0 12px rgba(108,99,255,.3);
}

.launchdeck-tpl-dark .launchdeck-form-msg {
    background: rgba(108,99,255,.15);
    color: var(--ld-accent);
}

/* ==========================================================================
   Template 4 – Product Launch
   ========================================================================== */
.launchdeck-tpl-product {
    background: var(--ld-bg, #f5f3ff);
    color: var(--ld-text, #1a1a2e);
}

.launchdeck-tpl-product .launchdeck-content {
    max-width: 560px;
}

.launchdeck-tpl-product .launchdeck-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 40px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    animation: ldFadeUp .8s ease both;
}

.launchdeck-tpl-product .launchdeck-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ld-accent);
    background: rgba(108,99,255,.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.launchdeck-tpl-product .launchdeck-headline {
    font-size: clamp(28px, 4.5vw, 42px);
}

.launchdeck-tpl-product .launchdeck-description {
    font-size: 16px;
}

.launchdeck-tpl-product .launchdeck-countdown__block {
    background: var(--ld-bg, #f5f3ff);
    border-radius: 12px;
    padding: 14px 16px 10px;
}

.launchdeck-tpl-product .launchdeck-countdown__number {
    font-size: 40px;
    color: var(--ld-accent);
}

.launchdeck-tpl-product .launchdeck-email-form {
    max-width: 100%;
}

.launchdeck-tpl-product .launchdeck-email-form input[type="email"] {
    background: #f8f8fa;
    border-color: #e8e8ec;
}

.launchdeck-tpl-product .launchdeck-email-form button {
    background: var(--ld-accent);
    color: #fff;
    border-radius: 0 12px 12px 0;
}

.launchdeck-tpl-product .launchdeck-email-form input[type="email"] {
    border-radius: 12px 0 0 12px;
}

.launchdeck-tpl-product .launchdeck-social a {
    background: #f0f0f4;
    color: var(--ld-text);
}

.launchdeck-tpl-product .launchdeck-form-msg {
    background: rgba(108,99,255,.08);
    color: var(--ld-accent);
}

/* ==========================================================================
   Template 5 – Under Construction
   ========================================================================== */
.launchdeck-tpl-construction {
    background: repeating-linear-gradient(
        -45deg,
        var(--ld-bg, #ffc107) 0px,
        var(--ld-bg, #ffc107) 20px,
        #0d0d0d 20px,
        #0d0d0d 40px
    );
    color: var(--ld-text, #1a1a2e);
}

.launchdeck-tpl-construction .launchdeck-content {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,.15);
    max-width: 580px;
}

.launchdeck-tpl-construction .launchdeck-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.launchdeck-tpl-construction .launchdeck-headline {
    font-size: clamp(26px, 4vw, 38px);
}

.launchdeck-tpl-construction .launchdeck-progress {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
}

.launchdeck-tpl-construction .launchdeck-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ld-accent), #ff9800);
    border-radius: 10px;
    animation: ldProgress 2s ease-out both;
}

.launchdeck-tpl-construction .launchdeck-countdown__number {
    color: var(--ld-accent);
    font-size: 42px;
}

.launchdeck-tpl-construction .launchdeck-email-form input[type="email"] {
    background: #f8f8f8;
    border-color: #ddd;
}

.launchdeck-tpl-construction .launchdeck-email-form button {
    background: var(--ld-accent);
    color: #fff;
}

.launchdeck-tpl-construction .launchdeck-social a {
    background: #f0f0f0;
    color: #333;
}

.launchdeck-tpl-construction .launchdeck-form-msg {
    background: rgba(255,152,0,.1);
    color: #e65100;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes ldFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ldProgress {
    from { width: 0; }
}

.launchdeck-fade-in {
    animation: ldFadeUp .7s ease both;
}

.launchdeck-fade-in-d1 { animation-delay: .1s; }
.launchdeck-fade-in-d2 { animation-delay: .2s; }
.launchdeck-fade-in-d3 { animation-delay: .35s; }
.launchdeck-fade-in-d4 { animation-delay: .5s; }
.launchdeck-fade-in-d5 { animation-delay: .65s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .launchdeck-page {
        padding: 32px 16px;
    }

    .launchdeck-countdown {
        gap: 10px;
    }

    .launchdeck-countdown__number {
        font-size: 36px !important;
    }

    .launchdeck-countdown__block {
        min-width: 60px !important;
        padding: 12px 10px 8px !important;
    }

    .launchdeck-email-form {
        flex-direction: column;
    }

    .launchdeck-email-form input[type="email"] {
        border-right: 2px solid rgba(128,128,128,.25);
        border-radius: 8px !important;
    }

    .launchdeck-email-form button {
        border-radius: 8px !important;
    }

    .launchdeck-tpl-construction .launchdeck-content,
    .launchdeck-tpl-product .launchdeck-card {
        padding: 32px 24px;
    }
}

/* ==========================================================================
   Branding Footer
   ========================================================================== */
.launchdeck-branding {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.launchdeck-branding a {
    display: inline-block;
    font-size: 11px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: inherit;
    opacity: .35;
    text-decoration: none;
    letter-spacing: .03em;
    transition: opacity .2s;
}

.launchdeck-branding a:hover {
    opacity: .65;
}

.launchdeck-branding a strong {
    font-weight: 700;
}
