/* ============================================
   FARLUME: Into the Silent Dark — Space Theme
   ============================================ */

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

:root {
    --color-bg: #0a0e1a;
    --color-bg-deep: #050712;
    --color-cyan: #00e5ff;
    --color-cyan-dim: #0097a7;
    --color-purple: #b44aff;
    --color-pink: #ff4a8d;
    --color-neon-green: #39ff14;
    --color-blue: #4fc3f7;
    --color-text: #d0d8f0;
    --color-text-dim: #8892b0;
    --color-text-muted: #3d4466;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* ---- Screen reader only ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---- Star Canvas ---- */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Nebula Layers ---- */
.nebula {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
}

.nebula-1 {
    width: 700px;
    height: 700px;
    top: -20%;
    right: -15%;
    background: radial-gradient(circle, rgba(180, 74, 255, 0.1) 0%, transparent 60%);
    animation: nebula-drift 30s ease-in-out infinite alternate;
}

.nebula-2 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
    animation: nebula-drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes nebula-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -20px) scale(1.05); }
}

/* ---- Shooting Stars ---- */
.shooting-star {
    position: fixed;
    z-index: 1;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.9), transparent);
    opacity: 0;
    pointer-events: none;
}

.shooting-star-1 {
    top: 18%;
    left: 25%;
    transform: rotate(-30deg);
    animation: shoot 9s ease-out 3s infinite;
}

.shooting-star-2 {
    top: 45%;
    right: 20%;
    transform: rotate(-40deg);
    animation: shoot 13s ease-out 8s infinite;
}

@keyframes shoot {
    0% { opacity: 0; transform: rotate(-35deg) translateX(0); }
    2% { opacity: 1; }
    8% { opacity: 0; transform: rotate(-35deg) translateX(350px); }
    100% { opacity: 0; }
}

/* ---- Site Layout ---- */
.site {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800;
    max-height: 600px;
    overflow: hidden;
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(10, 14, 26, 0.4) 65%,
        rgba(10, 14, 26, 0.85) 85%,
        var(--color-bg) 100%
    );
}

/* ---- Content Section ---- */
.content {
    position: relative;
    max-width: 740px;
    margin: -2rem auto 0;
    padding: 0 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fade-up 1.2s ease-out;
}

/* ---- Language Switch ---- */
.language-switch {
    width: 100%;
    max-width: 740px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.language-label {
    font-family: var(--font-display);
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.language-select {
    min-width: 220px;
    background: #0d1628;
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.84rem;
    padding: 0.45rem 0.6rem;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: auto;
    appearance: auto;
    cursor: pointer;
}

.language-select option {
    background-color: #0d1628;
    color: var(--color-text);
}

.language-select:focus {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- Tagline ---- */
.tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 400;
    color: var(--color-text-dim);
    letter-spacing: 0.08em;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* ---- Divider ---- */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.divider-line {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-cyan-dim), transparent);
}

.divider-dot {
    width: 5px;
    height: 5px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
    opacity: 0.7;
}

/* ---- Section Label ---- */
.section-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 0.85rem;
    opacity: 0.7;
}

/* ---- Description ---- */
.about {
    margin-bottom: 2.5rem;
}

.description {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 400;
    line-height: 1.9;
    color: var(--color-text-dim);
    max-width: 560px;
    letter-spacing: 0.01em;
}

.description strong {
    color: var(--color-text);
    font-weight: 500;
}

/* ---- Features ---- */
.features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 480px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.02);
    transition: border-color 0.3s, background 0.3s;
}

.feature:hover {
    border-color: rgba(0, 229, 255, 0.18);
    background: rgba(0, 229, 255, 0.04);
}

.feature-icon {
    color: var(--color-cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.feature-desc {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* ---- Coming Soon Badge ---- */
.coming-soon-badge {
    margin-bottom: 2.5rem;
}

.badge-text {
    font-family: var(--font-display);
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 0.7rem 2.2rem;
    display: inline-block;
    position: relative;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.05), inset 0 0 20px rgba(0, 229, 255, 0.03);
}

.badge-text::before,
.badge-text::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
}

.badge-text::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--color-cyan);
    border-left: 2px solid var(--color-cyan);
    opacity: 0.5;
}

.badge-text::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--color-cyan);
    border-right: 2px solid var(--color-cyan);
    opacity: 0.5;
}

/* ---- Steam Wishlist CTA ---- */
.wishlist-section {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 640px;
}

.wishlist-btn {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    min-height: 84px;
    padding: 1.1rem 1.35rem;
    background:
        radial-gradient(110% 160% at 10% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 62%),
        linear-gradient(90deg, rgba(7, 23, 43, 0.95) 0%, rgba(14, 18, 52, 0.93) 100%);
    border: 2px solid rgba(0, 229, 255, 0.4);
    border-radius: 12px;
    color: #eef8ff;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12) inset, 0 10px 26px rgba(0, 0, 0, 0.35);
}

.wishlist-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), rgba(180, 74, 255, 0.06));
    opacity: 0;
    transition: opacity 0.2s;
}

.wishlist-btn:hover::before {
    opacity: 1;
}

.wishlist-btn:hover {
    border-color: rgba(0, 229, 255, 0.75);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.22) inset, 0 0 34px rgba(0, 229, 255, 0.18);
    transform: translateY(-2px);
}

.wishlist-steam-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px solid rgba(0, 229, 255, 0.55);
    background-color: #19e8ff;
    -webkit-mask-image: url('/assets/steam.svg');
    mask-image: url('/assets/steam.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 68%;
    mask-size: 68%;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.2);
}

.wishlist-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    position: relative;
    z-index: 1;
}

.wishlist-main {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #19e8ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.38);
    line-height: 1.05;
}

.wishlist-sub {
    font-size: clamp(0.9rem, 1.7vw, 1.18rem);
    font-weight: 500;
    color: #a8b7da;
    margin-top: 0.28rem;
    line-height: 1.25;
}

.wishlist-arrow {
    color: #19e8ff;
    font-size: 2rem;
    font-weight: 700;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.wishlist-btn:hover .wishlist-arrow {
    transform: translateX(8px);
}

/* ---- Notify Section ---- */
.notify-section {
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.notify-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.85rem;
}

.notify-form {
    display: flex;
    gap: 0;
    width: 100%;
}

.notify-input {
    flex: 1;
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-right: none;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    letter-spacing: 0.02em;
}

.notify-input::placeholder {
    color: var(--color-text-muted);
}

.notify-input:focus {
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.06);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.08);
}

.notify-btn {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--color-cyan);
    padding: 0.8rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.notify-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}

.notify-btn .btn-icon {
    transition: transform 0.3s;
    font-size: 0.85rem;
}

.notify-btn:hover .btn-icon {
    transform: translateX(3px);
}

.notify-thanks {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-cyan-dim);
    font-style: italic;
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
}

/* ---- Social Links ---- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.social-link:hover {
    color: var(--color-cyan);
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.08);
}

.social-label {
    font-weight: 600;
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 229, 255, 0.05);
}

.footer p {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
}

/* ---- Global overflow guard ---- */
img, video, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .content {
        padding: 0 1.25rem 2rem;
        margin-top: -1rem;
    }

    .language-switch {
        justify-content: center;
        flex-wrap: wrap;
    }

    .language-label {
        width: 100%;
        text-align: center;
    }

    .language-select {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }

    .features {
        max-width: 100%;
    }

    .wishlist-section {
        max-width: 100%;
    }

    .wishlist-btn {
        gap: 0.75rem;
        padding: 0.9rem 1rem;
    }

    .wishlist-main {
        font-size: clamp(0.9rem, 5vw, 1.2rem);
    }

    .wishlist-sub {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }

    .wishlist-steam-icon {
        width: 44px;
        height: 44px;
    }

    .notify-form {
        flex-direction: column;
    }

    .notify-input {
        border-right: 1px solid rgba(0, 229, 255, 0.15);
        border-bottom: none;
    }

    .notify-btn {
        justify-content: center;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nebula-1 { width: 400px; height: 400px; filter: blur(70px); }
    .nebula-2 { width: 300px; height: 300px; filter: blur(70px); }
}

@media (max-width: 400px) {
    .content {
        padding: 0 1rem 1.5rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .badge-text {
        font-size: 0.65rem;
        padding: 0.6rem 1.4rem;
        letter-spacing: 0.2em;
    }

    .wishlist-btn {
        min-height: 70px;
        padding: 0.75rem 0.85rem;
        gap: 0.6rem;
    }

    .wishlist-steam-icon {
        width: 38px;
        height: 38px;
    }

    .wishlist-arrow {
        font-size: 1.5rem;
    }

    .social-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.5rem;
    }
}

/* ---- Selection ---- */
::selection {
    background: rgba(0, 229, 255, 0.25);
    color: #fff;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: 3px;
}
