/* =========================================================
   AUTOBLOX GAMES — DRIFT 36
   Coming Soon | Style Sheet
   ========================================================= */

:root {
    --bg:        #0a0a0a;
    --bg-2:      #000000;
    --fg:        #ffffff;
    --fg-dim:    rgba(255,255,255,0.65);
    --fg-mute:   rgba(255,255,255,0.4);
    --accent:    #FF4D1A;        /* ember / drift fire */
    --accent-2:  #FF8A3D;
    --stroke:    rgba(255,255,255,0.08);
    --stroke-2:  rgba(255,255,255,0.16);
    --font:      'Montserrat', system-ui, -apple-system, sans-serif;
}

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

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ============ BACKGROUND ============ */
.bg-frame {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    z-index: -2;
    pointer-events: none;
}
.bg-layer {
    position: absolute;
    inset: 0;
}
.bg-sharp {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 75%);
    mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 75%);
}
.bg-blurred {
    filter: blur(22px);
    -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000 65%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 25%, #000 65%, transparent 100%);
}
.bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.6s ease;
}
.bg-1 { animation: bgCross 16s ease-in-out infinite; }
.bg-2 { animation: bgCross 16s ease-in-out infinite; animation-delay: 8s; }

@keyframes bgCross {
    0%, 45%   { opacity: 0; transform: scale(1.08); }
    5%, 40%   { opacity: 0.3; transform: scale(1.0); }
    50%, 100% { opacity: 0; transform: scale(1.08); }
}

.bg-grain {
    position: fixed; inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ============ VIGNETTE ============ */
.vignette {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ============ TOP BAR ============ */
.topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 48px;
    animation: fadeDown 1.2s ease 0.1s backwards;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    width: 72px; height: 72px;
    object-fit: contain;
}
.brand-text {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--fg);
}

.status {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--fg-dim);
    padding: 8px 16px;
    border: 1px solid var(--stroke-2);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%      { opacity: 0.5; transform: scale(0.85);}
}

/* ============ HERO ============ */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px 40px;
    position: relative;
}

/* ============ DECORATIVE SVGs ============ */
.deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22vw;
    max-width: 300px;
    height: 600px;
    max-height: 80vh;
    pointer-events: none;
    opacity: 0.9;
}
.deco-left  { left: 0; }
.deco-right { right: 0; }

.trail {
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: dash 3.6s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255,77,26,0.35));
}
.deco-left  .trail.t1 { animation-delay: 0.0s; }
.deco-left  .trail.t2 { animation-delay: 0.4s; }
.deco-left  .trail.t3 { animation-delay: 0.8s; }
.deco-left  .trail.t4 { animation-delay: 1.2s; }
.deco-left  .trail.t5 { animation-delay: 1.6s; }
.deco-right .trail.t1 { animation-delay: 0.2s; }
.deco-right .trail.t2 { animation-delay: 0.6s; }
.deco-right .trail.t3 { animation-delay: 1.0s; }
.deco-right .trail.t4 { animation-delay: 1.4s; }
.deco-right .trail.t5 { animation-delay: 1.8s; }

@keyframes dash {
    0%   { stroke-dashoffset: 300; opacity: 0; }
    20%  { opacity: 1; }
    60%  { stroke-dashoffset: 0;   opacity: 0.9; }
    100% { stroke-dashoffset: -300; opacity: 0; }
}

.smoke {
    transform-origin: center;
    animation: smoke 6s ease-in-out infinite;
}
.smoke.s1 { animation-delay: 0s;   }
.smoke.s2 { animation-delay: 1.5s; }
.smoke.s3 { animation-delay: 3s;   }
@keyframes smoke {
    0%   { transform: translate(0,0)   scale(1);   opacity: 0.05; }
    50%  { transform: translate(8px,-12px) scale(1.5); opacity: 0.12; }
    100% { transform: translate(16px,-24px) scale(2); opacity: 0;    }
}

/* ============ CENTER CONTENT ============ */
.hero-content {
    text-align: center;
    max-width: 760px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.pretitle {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--fg-mute);
    margin-bottom: 28px;
    animation: fadeUp 1s ease 0.3s backwards;
}
.dot-sep {
    display: inline-block;
    margin: 0 6px;
    color: var(--accent);
}

.title {
    font-weight: 900;
    font-size: clamp(56px, 11vw, 148px);
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #ffffff;
    animation: fadeUp 1.2s ease 0.4s backwards;
}

.title-line {
    display: inline-block;
    position: relative;
}

.title-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
    animation: fadeUp 1s ease 0.6s backwards;
}
.title-underline .line {
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--fg-mute), transparent);
}
.title-underline .diamond {
    width: 6px; height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
    box-shadow: 0 0 12px var(--accent);
}

.tagline {
    font-weight: 600;
    font-size: clamp(18px, 2.4vw, 26px);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 14px;
    animation: fadeUp 1s ease 0.7s backwards;
}

.subline {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--fg-dim);
    margin-bottom: 44px;
    animation: fadeUp 1s ease 0.85s backwards;
}

/* ============ SPEEDOMETER LOADER ============ */
.loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    min-height: 118px;
    animation: fadeUp 1s ease 1s backwards;
}
.speedo {
    width: 180px;
    height: auto;
}
.speedo-arc {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: speedFill 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px var(--accent));
}
@keyframes speedFill {
    0%   { stroke-dashoffset: 300; }
    60%  { stroke-dashoffset: 90;  }
    100% { stroke-dashoffset: 300; }
}
.loader-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--fg-mute);
}

/* ============ NOTIFY FORM ============ */
.notify {
    display: flex;
    align-items: center;
    max-width: 460px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--stroke-2);
    border-radius: 999px;
    padding: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color .3s ease, box-shadow .3s ease;
    animation: fadeUp 1s ease 1.15s backwards;
}
.notify:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,77,26,0.12);
}
.notify input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 20px;
    color: var(--fg);
    font-family: var(--font);
    font-size: 14px;
    letter-spacing: 0.5px;
}
.notify input::placeholder {
    color: var(--fg-mute);
    letter-spacing: 1px;
}
.notify button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fg);
    color: var(--bg);
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all .3s ease;
}
.notify button:hover {
    background: var(--accent);
    color: var(--fg);
    transform: translateX(2px);
}
.notify button svg {
    transition: transform .3s ease;
}
.notify button:hover svg {
    transform: translateX(3px);
}
.notify-hint {
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--fg-mute);
    text-transform: uppercase;
    animation: fadeUp 1s ease 1.3s backwards;
}

/* ============ FOOTER ============ */
.footer {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 48px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--fg-mute);
    text-transform: uppercase;
    animation: fadeUp 1s ease 1.4s backwards;
}

.socials {
    display: flex;
    gap: 10px;
}
.social {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--stroke-2);
    border-radius: 50%;
    color: var(--fg-dim);
    text-decoration: none;
    transition: all .3s ease;
}
.social:hover {
    color: var(--fg);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,77,26,0.35);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0);     }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .topbar, .footer { padding: 22px 24px; }
    .deco { width: 28vw; opacity: 0.65; }
}

@media (max-width: 640px) {
    .topbar {
        padding: 18px 20px;
    }
    .brand-text { font-size: 11px; letter-spacing: 2px; }
    .status     { padding: 6px 12px; font-size: 10px; letter-spacing: 2px; }

    .hero { padding: 10px 20px 30px; }
    .deco { display: none; }

    .pretitle  { font-size: 10px; letter-spacing: 4px; margin-bottom: 20px; }
    .title     { letter-spacing: -1px; }
    .tagline   { letter-spacing: 3px; }
    .subline   { padding: 0 10px; margin-bottom: 32px; }

    .speedo    { width: 140px; }

    .notify { flex-direction: column; padding: 8px; border-radius: 18px; }
    .notify input { width: 100%; padding: 12px 16px; text-align: center; }
    .notify button { width: 100%; justify-content: center; padding: 14px 22px; }

    .footer {
        flex-direction: column;
        gap: 18px;
        padding: 22px 20px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
