/* ── NowaEra teaser page ── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* ── Background ── */
.iron-bg {
    position: fixed;
    inset: 0;
    background-image: url('/public/new_pres/iron/background.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.06);
    animation: iron-bg-breathe 14s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes iron-bg-breathe {
    from { transform: scale(1.06) translateY(0); }
    to   { transform: scale(1.12) translateY(-12px); }
}

/* ── Dark vignette + fog overlay ── */
.iron-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%,   rgba(0,0,0,0)    0%, rgba(0,0,0,0.55)  60%),
        radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2)   60%),
        linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.72) 100%);
    z-index: 1;
}

/* ── Scanline flicker — ultra subtle ── */
.iron-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.04) 3px,
        rgba(0,0,0,0.04) 4px
    );
    pointer-events: none;
    animation: iron-flicker 8s linear infinite;
    opacity: 0.6;
}

@keyframes iron-flicker {
    0%   { opacity: 0.6; }
    49%  { opacity: 0.6; }
    50%  { opacity: 0.3; }
    51%  { opacity: 0.6; }
    94%  { opacity: 0.6; }
    95%  { opacity: 0.2; }
    96%  { opacity: 0.6; }
    100% { opacity: 0.6; }
}

/* ── Back button ── */
.iron-back {
    position: fixed;
    top: clamp(14px, 2.5vh, 24px);
    left: clamp(14px, 2.5vw, 28px);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Cinzel', serif;
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
    opacity: 0.7;
}

.iron-back svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.iron-back:hover {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.iron-back:hover svg {
    transform: translateX(-3px);
}

/* ── Center stage ── */
.iron-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 0;
    pointer-events: none;
    user-select: none;
}

/* ── Logo ── */
.iron-logo {
    width: clamp(280px, 38vw, 560px);
    filter:
        drop-shadow(0 6px 32px rgba(0, 0, 0, 0.85))
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95));
    animation: iron-logo-pulse 5s ease-in-out infinite alternate;
    margin-bottom: clamp(32px, 5vh, 64px);
}

@keyframes iron-logo-pulse {
    from {
        filter:
            drop-shadow(0 6px 32px rgba(0, 0, 0, 0.85))
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95));
        transform: translateY(0);
        opacity: 0.92;
    }
    to {
        filter:
            drop-shadow(0 8px 40px rgba(0, 0, 0, 0.9))
            drop-shadow(0 2px 10px rgba(0, 0, 0, 1));
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ── Tagline ── */
.iron-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(11px, 1.4vw, 16px);
    font-weight: 600;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(220, 185, 100, 0.65);
    margin-bottom: clamp(28px, 4vh, 52px);
    animation: iron-fade-in 2.4s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

@keyframes iron-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ── Divider ── */
.iron-divider {
    width: clamp(120px, 18vw, 280px);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(210,155,50,0.7), transparent);
    margin-bottom: clamp(24px, 4vh, 48px);
    animation: iron-fade-in 2.8s ease forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

/* ── Countdown ── */
.iron-countdown {
    display: flex;
    gap: clamp(16px, 3vw, 48px);
    animation: iron-fade-in 3.2s ease forwards;
    opacity: 0;
    animation-delay: 1.2s;
}

.iron-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.iron-cd-number {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(38px, 6.5vw, 92px);
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    text-shadow:
        0 1px 0   rgba(255,255,255,0.15),
        0 2px 12px rgba(0, 0, 0, 0.95),
        0 4px 28px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.06em;
    min-width: clamp(60px, 9vw, 130px);
    text-align: center;
    transition: color 0.3s;
}

.iron-cd-label {
    font-family: 'Cinzel', serif;
    font-size: clamp(8px, 0.9vw, 12px);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(210, 140, 60, 0.65);
}

.iron-cd-sep {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(30px, 5.5vw, 72px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    align-self: flex-start;
    padding-top: clamp(4px, 0.5vw, 8px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ── LIVE label shown when countdown hits zero ── */
.iron-live-label {
    display: none;
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(28px, 5vw, 72px);
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 24px rgba(255,180,40,1),
        0 0 60px rgba(240,120,10,0.8);
    animation: iron-live-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes iron-live-pulse {
    from { text-shadow: 0 0 24px rgba(255,180,40,1), 0 0 60px rgba(240,120,10,0.8); }
    to   { text-shadow: 0 0 48px rgba(255,200,60,1), 0 0 100px rgba(250,140,20,1); }
}


/* ── Ember particles ── */
.iron-embers {
    position: fixed;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.iron-ember {
    position: absolute;
    bottom: -8px;
    border-radius: 50%;
    background: var(--color, rgba(255, 60, 20, 0.9));
    box-shadow: 0 0 6px 3px var(--glow, rgba(255, 30, 0, 0.55));
    animation: iron-ember-rise var(--dur, 7s) ease-in var(--delay, 0s) infinite;
    opacity: 0;
    left: var(--x, 50%);
}

@keyframes iron-ember-rise {
    0%   { opacity: 0;    transform: translateY(0)    translateX(0)    scale(1);    }
    10%  { opacity: 0.9; }
    60%  { opacity: 0.6;  transform: translateY(-55vh) translateX(var(--drift, 20px)) scale(0.7); }
    100% { opacity: 0;    transform: translateY(-100vh) translateX(var(--drift2, -10px)) scale(0.2); }
}

/* ── Mobile: shift background to the right ── */
@media (max-width: 600px) {
    .iron-bg {
        background-position: 35% top;
    }

    @keyframes iron-bg-breathe {
        from { transform: scale(1.1) translateY(0); }
        to   { transform: scale(1.18) translateY(-10px); }
    }

    .iron-logo {
        width: clamp(220px, 72vw, 360px);
    }
}
