/* Heliosgazer - Arcade Co-op Shmup (Galaga / R-Type cabinet energy) */

:root {
    /* Deep space is right for a shmup -- but make it an ARCADE cabinet, not a SaaS page */
    --space-1: #141a4a;
    --space-2: #0a0c22;
    --space-3: #04050e;
    --amber: #ffb02e;          /* solar amber */
    --amber-deep: #b35c00;
    --amber-glow: rgba(255, 176, 46, 0.5);
    --cyan: #40e0ff;           /* ion-trail cyan */
    --cyan-deep: #0a6a88;
    --laser: #ff3d81;          /* enemy laser pink */
    --plasma: #46ff9e;         /* plasma green */
    --text: #eaf2ff;
    --text-dim: rgba(234, 242, 255, 0.72);
    --card: rgba(64, 224, 255, 0.06);
    --card-line: rgba(64, 224, 255, 0.35);
}

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

body {
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -6%, rgba(255,176,46,0.35) 0%, transparent 42%),
        radial-gradient(circle at 12% 30%, rgba(64,224,255,0.16) 0%, transparent 40%),
        radial-gradient(circle at 88% 70%, rgba(255,61,129,0.14) 0%, transparent 40%),
        linear-gradient(180deg, #141a4a 0%, #0a0c22 45%, #04050e 100%);
    background-attachment: fixed;
}

.logo, .hero h1, .tile h3 { font-family: 'Press Start 2P', monospace; }

/* Intentional arcade CRT scanline */
body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.16) 2px, rgba(0,0,0,0.16) 3px);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* Nav */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(4, 5, 14, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 176, 46, 0.4);
}
.nav-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 1.5rem;
}
.logo {
    text-decoration: none; color: var(--text);
    font-size: 0.75rem; letter-spacing: 0.06em;
    display: flex; align-items: center; gap: 0.5rem;
    text-shadow: 0 0 12px rgba(64,224,255,0.5);
}
.logo-img {
    display: block; height: 28px; width: auto;
    filter: drop-shadow(0 0 10px rgba(255,171,26,0.5));
}
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-link {
    color: var(--text-dim); text-decoration: none;
    font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
    transition: color 0.15s;
}
.nav-link:hover { color: var(--amber); }
/* Chunky arcade amber pill */
.btn-play {
    background: linear-gradient(180deg, #ffd27a 0%, var(--amber) 45%, var(--amber-deep) 100%);
    color: #2a1500;
    padding: 0.6rem 1.3rem; border-radius: 9999px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em;
    text-decoration: none; text-transform: uppercase;
    box-shadow: 0 4px 0 var(--amber-deep), 0 6px 14px rgba(0,0,0,0.5),
                inset 0 2px 2px rgba(255,255,255,0.6);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--amber-deep), 0 10px 20px rgba(0,0,0,0.55), inset 0 2px 2px rgba(255,255,255,0.6); }
.btn-play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-deep), inset 0 2px 2px rgba(255,255,255,0.5); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 3rem;
    overflow: hidden;
}
/* Hero backdrop plate. Local SVG now; swap to CDN jpg once the Midjourney
   render is uploaded (single-line change, see docs/ART-PROMPTS.md). The
   animated dying sun + player wing sit ON TOP, so the plate is a center-open
   starfield. */
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image: url('https://prodmedia.tyga.host/public/tyga.cloud/landing/heliosgazer.com/heliosgazer_splash.jpg');
    background-size: cover; background-position: center;
    background-color: #04050e;
}

/* Scrolling starfield */
.stars {
    position: absolute; inset: -50% 0 0 0; height: 200%;
    background:
        radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 85% 60%, #cfefff, transparent),
        radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 10% 80%, #fff, transparent),
        radial-gradient(2.5px 2.5px at 90% 15%, #ffe0a8, transparent),
        radial-gradient(1.5px 1.5px at 33% 12%, #fff, transparent);
    opacity: 0.7;
    animation: scroll 8s linear infinite;
}
@keyframes scroll { to { transform: translateY(50%); } }

/* The dying sun behind everything */
.sun {
    position: absolute; top: -150px; left: 50%;
    width: 380px; height: 380px; margin-left: -190px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #fff6d8 0%, var(--amber) 32%, #c24b00 62%, transparent 72%);
    box-shadow: 0 0 150px 50px rgba(255,176,46,0.35);
    animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50%      { transform: scale(1.05); opacity: 1; }
}

/* Player wing gliding across */
.wing {
    position: absolute; bottom: 22%; left: 50%;
    width: 200px; height: 60px; margin-left: -100px;
    animation: bank 6s ease-in-out infinite;
}
@keyframes bank {
    0%, 100% { transform: translateX(-30px); }
    50%      { transform: translateX(30px); }
}
.ship {
    position: absolute; bottom: 0;
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 26px solid var(--cyan);
    filter: drop-shadow(0 0 10px rgba(64,224,255,0.8));
}
.ship::after {
    content: ''; position: absolute; top: 26px; left: -5px;
    width: 10px; height: 16px;
    background: linear-gradient(to bottom, rgba(70,255,158,0.9), transparent);
}
.ship.s1 { left: 90px; }
.ship.s2 { left: 60px; bottom: -8px; transform: scale(0.85); }
.ship.s3 { left: 120px; bottom: -8px; transform: scale(0.85); }

.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(4,5,14,0.4) 60%,
        rgba(4,5,14,0.75) 100%
    );
}
.hero > *:not(.hero-bg) { position: relative; z-index: 4; }

.hero h1 {
    font-size: 3rem;
    color: var(--amber);
    letter-spacing: 0.05em;
    text-shadow:
        0 0 40px var(--amber-glow),
        0 0 20px rgba(64,224,255,0.5),
        4px 4px 0 rgba(0,0,0,0.6);
    margin-bottom: 1.3rem;
}
.hero h1 .tm { font-size: 0.9rem; vertical-align: top; color: var(--cyan); }

.tagline {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(64,224,255,0.4);
}
.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 500px;
}

/* Blinking cursor */
.cursor {
    display: inline-block;
    width: 0.5em; height: 1em;
    background: var(--cyan);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Chunky arcade "INSERT COIN" amber pill */
.btn-primary {
    display: inline-block;
    background: linear-gradient(180deg, #ffd27a 0%, var(--amber) 45%, var(--amber-deep) 100%);
    color: #2a1500;
    padding: 1.1rem 2.8rem;
    border-radius: 9999px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 6px 0 var(--amber-deep), 0 10px 22px rgba(0,0,0,0.55),
                inset 0 2px 3px rgba(255,255,255,0.6);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--amber-deep), 0 16px 30px rgba(0,0,0,0.6), inset 0 2px 3px rgba(255,255,255,0.6);
}
.btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 var(--amber-deep), inset 0 2px 3px rgba(255,255,255,0.5);
}

.hero-note {
    color: var(--cyan);
    font-size: 0.8rem;
    margin-top: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Feature tiles */
.tiles {
    padding: 4rem 1.5rem;
}
.tiles-inner {
    max-width: 960px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.tile {
    background: linear-gradient(180deg, rgba(64,224,255,0.10), rgba(64,224,255,0.03));
    border: 2px solid var(--card-line);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.4), inset 0 0 24px rgba(64,224,255,0.06);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.tile:hover {
    transform: translateY(-5px);
    border-color: var(--amber);
    box-shadow: 0 14px 34px rgba(0,0,0,0.5), 0 0 30px rgba(255,176,46,0.25);
}
/* Tile icons -> our own SVG art (swap the /assets/tiles/ base for the CDN
   pngs once uploaded; filenames match 1:1). */
.tile-icon {
    width: 84px; height: 84px; margin: 0 auto 1.3rem;
    background-size: contain; background-position: center; background-repeat: no-repeat;
    filter: drop-shadow(0 0 12px rgba(64,224,255,0.5));
}
.i-coop  { background-image: url('/assets/tiles/co-op.svg'); }
.i-cross { background-image: url('/assets/tiles/cross-platform.svg'); }
.i-swarm { background-image: url('/assets/tiles/formation.svg'); }
.tile h3 {
    font-size: 0.72rem; color: var(--amber);
    margin-bottom: 1rem; letter-spacing: 0.02em;
}
.tile p {
    font-size: 0.95rem; color: var(--text-dim);
    line-height: 1.6;
}

/* Hook Section */
.hook {
    padding: 4rem 1.5rem 5rem;
    text-align: center;
}
.hook-inner { max-width: 640px; margin: 0 auto; }
.fragment {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 540px;
    font-weight: 500;
    text-shadow: 0 0 16px rgba(64,224,255,0.3);
}
.fragment.last { margin-bottom: 2.5rem; }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--cyan);
    padding: 1rem 2.4rem;
    border: 2px solid var(--cyan);
    border-radius: 9999px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem; font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(64,224,255,0.3), inset 0 0 12px rgba(64,224,255,0.1);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover { background: var(--cyan); color: #04050e; box-shadow: 0 0 28px rgba(64,224,255,0.6); }

/* Footer */
footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    background: rgba(4, 5, 14, 0.7);
    border-top: 2px solid rgba(255, 176, 46, 0.28);
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--amber); }
footer .sep { margin: 0 0.5rem; opacity: 0.4; }
.footer-powered { margin-top: 0.6rem; }
.footer-powered a { color: var(--amber); text-decoration: underline; font-weight: 600; }
.footer-powered a:hover { color: var(--cyan); }
.footer-powered .studio { color: var(--text-dim); }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .tagline { font-size: 1rem; }
    .btn-primary { font-size: 1rem; padding: 0.9rem 2rem; }
    .tiles-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; letter-spacing: 0.03em; }
    .tagline { font-size: 0.9rem; }
    .nav-links { gap: 0.75rem; }
    .nav-link { font-size: 0.8rem; }
}
