/* ==========================================================
   STARFUEL INTERACTIVE — landing page styles
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
    --black:        #050505;
    --bg-1:         #0a0908;
    --bg-2:         #131210;
    --bg-3:         #1c1a16;
    --line:         rgba(255, 140, 50, 0.12);
    --line-soft:    rgba(255, 140, 50, 0.06);

    --fire-deep:    #7a1300;
    --fire-red:     #ff2a00;
    --fire-orange:  #ff6a00;
    --fire-amber:   #ff9500;
    --fire-yellow:  #ffb800;
    --fire-white:   #fff4d6;

    --chrome:       #d9d6cf;
    --text:         #f0ece4;
    --text-soft:    #9a948a;
    --text-mute:    #6c665e;

    --font-display: 'Orbitron', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, Helvetica, sans-serif;

    --glow-sm:      0 0 12px rgba(255, 106, 0, 0.35);
    --glow-md:      0 0 24px rgba(255, 106, 0, 0.45), 0 0 48px rgba(255, 42, 0, 0.2);
    --glow-lg:      0 0 36px rgba(255, 130, 0, 0.55), 0 0 80px rgba(255, 60, 0, 0.3);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient fire glow — fixed backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 90, 0, 0.18), transparent 50%),
        radial-gradient(ellipse at 15% 80%, rgba(255, 60, 0, 0.10), transparent 45%),
        radial-gradient(ellipse at 85% 60%, rgba(255, 140, 0, 0.08), transparent 45%),
        var(--black);
    pointer-events: none;
}

/* Subtle vignette at edges */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

/* ---------- Layout ---------- */
.page {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Top fire stripe ---------- */
.fire-stripe {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg,
        var(--fire-deep) 0%,
        var(--fire-red) 20%,
        var(--fire-orange) 40%,
        var(--fire-yellow) 60%,
        var(--fire-orange) 80%,
        var(--fire-red) 100%);
    background-size: 300% 100%;
    animation: stripe-flow 8s ease-in-out infinite;
    position: relative;
    z-index: 10;
}
@keyframes stripe-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Embers (floating particles) ---------- */
.ember-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.ember {
    position: absolute;
    bottom: -10px;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--fire-yellow);
    box-shadow: 0 0 6px var(--fire-orange), 0 0 12px var(--fire-red);
    opacity: 0;
    animation: ember-rise linear infinite;
}
@keyframes ember-rise {
    0%   { transform: translateY(0)        translateX(0);    opacity: 0; }
    10%  {                                                   opacity: 0.9; }
    50%  { transform: translateY(-50vh)    translateX(20px); opacity: 0.7; }
    90%  {                                                   opacity: 0.4; }
    100% { transform: translateY(-105vh)   translateX(-10px);opacity: 0; }
}

.ember:nth-child(1)  { left:  4%; animation-duration: 14s; animation-delay:  0s;   }
.ember:nth-child(2)  { left: 12%; animation-duration: 18s; animation-delay:  2s;   width: 2px; height: 2px; }
.ember:nth-child(3)  { left: 20%; animation-duration: 16s; animation-delay:  5s;   }
.ember:nth-child(4)  { left: 28%; animation-duration: 22s; animation-delay:  1s;   width: 4px; height: 4px; }
.ember:nth-child(5)  { left: 35%; animation-duration: 15s; animation-delay:  7s;   }
.ember:nth-child(6)  { left: 43%; animation-duration: 19s; animation-delay:  3s;   width: 2px; height: 2px; }
.ember:nth-child(7)  { left: 51%; animation-duration: 17s; animation-delay:  9s;   }
.ember:nth-child(8)  { left: 59%; animation-duration: 21s; animation-delay:  4s;   width: 4px; height: 4px; }
.ember:nth-child(9)  { left: 67%; animation-duration: 13s; animation-delay:  6s;   }
.ember:nth-child(10) { left: 74%; animation-duration: 20s; animation-delay:  0.5s; width: 2px; height: 2px; }
.ember:nth-child(11) { left: 82%; animation-duration: 18s; animation-delay:  8s;   }
.ember:nth-child(12) { left: 90%; animation-duration: 16s; animation-delay: 11s;   width: 3px; height: 3px; }
.ember:nth-child(13) { left:  8%; animation-duration: 23s; animation-delay: 13s;   }
.ember:nth-child(14) { left: 47%; animation-duration: 25s; animation-delay: 10s;   width: 2px; height: 2px; }
.ember:nth-child(15) { left: 78%; animation-duration: 24s; animation-delay: 15s;   }

/* ---------- Hero ---------- */
.hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.logo-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 1.5rem;
    animation: logo-enter 1.2s ease-out backwards;
}
@keyframes logo-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0);   }
}

.logo-wrap img {
    width: 680px;
    max-width: 92%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255, 90, 0, 0.25));
    animation: logo-pulse 5s ease-in-out infinite;
}
@keyframes logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(255, 90, 0, 0.25)); }
    50%      { filter: drop-shadow(0 0 70px rgba(255, 130, 0, 0.45)); }
}

.tagline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--fire-amber);
    margin: 0;
    text-shadow: 0 0 18px rgba(255, 130, 0, 0.5);
    animation: tagline-enter 1.2s ease-out 0.4s backwards;
}
@keyframes tagline-enter {
    from { opacity: 0; transform: translateY(10px); letter-spacing: 0.6em; }
    to   { opacity: 1; transform: translateY(0);    letter-spacing: 0.45em; }
}

/* ---------- Section: featured game ---------- */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}
.section-eyebrow .bar {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fire-orange));
}
.section-eyebrow .bar.right {
    background: linear-gradient(90deg, var(--fire-orange), transparent);
}
.section-eyebrow .label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--fire-amber);
    text-shadow: 0 0 14px rgba(255, 130, 0, 0.4);
}

.game-card {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(20, 16, 12, 0.7), rgba(8, 6, 4, 0.7));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Decorative corner ember accent */
.game-card::before,
.game-card::after {
    content: "";
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}
.game-card::before {
    top: -60px; left: -60px;
    background: var(--fire-red);
}
.game-card::after {
    bottom: -80px; right: -80px;
    background: var(--fire-amber);
    opacity: 0.3;
}

.game-art {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--line),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 90, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.game-art:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(255, 140, 50, 0.3),
        0 30px 70px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 90, 0, 0.3);
}
.game-art img {
    width: 100%;
    height: auto;
    display: block;
}

.game-info {
    position: relative;
    z-index: 1;
}

.game-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fire-yellow);
    background: rgba(255, 130, 0, 0.1);
    border: 1px solid rgba(255, 130, 0, 0.3);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.4);
}

.game-info h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin: 0 0 1rem 0;
    padding-bottom: 0.05em;
    background: linear-gradient(180deg, var(--chrome) 0%, #f8f4ec 40%, #c8c2b6 60%, #908a80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(255, 130, 0, 0.15);
}

.game-info p.game-desc {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-soft);
    margin: 0 0 2rem 0;
    max-width: 480px;
}

/* ---------- Buttons (molten) ---------- */
.btn {
    --btn-grad-1: var(--fire-deep);
    --btn-grad-2: var(--fire-red);
    --btn-grad-3: var(--fire-orange);
    --btn-grad-4: var(--fire-yellow);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.85rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fire-white);
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg,
        var(--btn-grad-1) 0%,
        var(--btn-grad-2) 35%,
        var(--btn-grad-3) 65%,
        var(--btn-grad-4) 100%);
    background-size: 250% 250%;
    animation: btn-flow 6s ease-in-out infinite;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 180, 50, 0.4),
        var(--glow-md);
    text-shadow: 0 1px 2px rgba(120, 30, 0, 0.6);
    transition: transform 0.18s ease, box-shadow 0.3s ease, filter 0.2s ease;
}
@keyframes btn-flow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Inner shimmer overlay */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 60%,
        transparent 100%);
    background-size: 200% 100%;
    animation: btn-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btn-shimmer {
    0%   { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.btn:hover {
    animation-duration: 2.5s;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 200, 100, 0.6),
        var(--glow-lg);
    filter: brightness(1.08) saturate(1.1);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    filter: brightness(1.3) saturate(1.2);
    box-shadow:
        inset 0 2px 8px rgba(120, 30, 0, 0.5),
        0 0 0 1px var(--fire-yellow),
        var(--glow-lg);
}

/* Click ripple */
.btn::after {
    content: "";
    position: absolute;
    inset: 50% 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 200, 0.6), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after {
    width: 300%; height: 300%;
    opacity: 1;
    transition: 0s;
}

.btn .icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
}

/* ---------- Socials ---------- */
.socials-section {
    padding-top: 1rem;
    padding-bottom: 6rem;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--fire-deep) 0%,
        var(--fire-red) 50%,
        var(--fire-orange) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-btn:hover {
    color: var(--fire-white);
    border-color: var(--fire-orange);
    transform: translateY(-3px);
    box-shadow: var(--glow-md);
}
.social-btn:hover::before { opacity: 1; }

.social-btn:active {
    transform: translateY(-1px) scale(0.98);
    filter: brightness(1.15);
}

.social-btn svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 2;
}
.site-footer p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .game-card {
        grid-template-columns: 1fr;
        padding: 1.75rem;
        gap: 2rem;
    }
    .game-art {
        max-width: 360px;
        margin: 0 auto;
    }
    .game-info { text-align: center; }
    .game-info p.game-desc { margin-left: auto; margin-right: auto; }

    .hero { padding: 3rem 0 2rem; }
    .section { padding: 3rem 0; }
    .socials-section { padding-bottom: 4rem; }

    .tagline { font-size: 0.72rem; letter-spacing: 0.35em; }
    .btn { padding: 0.9rem 1.5rem; font-size: 0.85rem; }
    .social-btn { font-size: 0.75rem; padding: 0.75rem 1.1rem; }
}

@media (max-width: 480px) {
    .logo-wrap img { width: 100%; max-width: 100%; }
    .section-eyebrow .bar { flex-basis: 30px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ember-field { display: none; }
}
