/* Vector Breach — Neon/Tron Website Theme */

:root {
    --bg-body: #050a14;
    --bg-primary: #0a0f19;
    --bg-nav: #080c14;
    --bg-card: #142337;
    --bg-card-hover: #1e3c5a;
    --accent-cyan: #00ffff;
    --accent-magenta: #ff00c8;
    --accent-pink: #ff64c8;
    --accent-green: #00ff64;
    --accent-orange: #ff9600;
    --accent-purple: #b464ff;
    --accent-yellow: #ffff00;
    --border: #283c5a;
    --border-light: #3c5064;
    --text-primary: #ffffff;
    --text-secondary: #96aac8;
    --text-muted: #6478a0;
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.1);
    --glow-magenta: 0 0 20px rgba(255, 0, 200, 0.3), 0 0 40px rgba(255, 0, 200, 0.1);
    --glow-pink: 0 0 20px rgba(255, 100, 200, 0.3);
    --radius: 6px;
    --max-width: 1200px;
}

/* ─── Waveform Background ─── */

#waveform-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    /* Grid background matching game main menu ({15,30,45} on dark bg) */
    background-image:
        linear-gradient(rgba(15, 30, 45, 1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 30, 45, 1) 1px, transparent 1px);
    background-size: 60px 60px;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}
a:hover {
    color: #80ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

main { position: relative; z-index: 1; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Text utility classes */
.text-cyan { color: var(--accent-cyan); }
.text-magenta { color: var(--accent-magenta); }
.text-pink { color: var(--accent-pink); }
.text-green { color: var(--accent-green); }
.text-orange { color: var(--accent-orange); }
.text-purple { color: var(--accent-purple); }
.text-muted { color: var(--text-secondary); }

/* ─── Navigation ─── */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 20, 0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}
.nav-logo:hover { color: var(--accent-cyan); }
.nav-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 0.8rem;
    gap: 0;
}
.nav-logo img { border-radius: 4px; }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    border-bottom-color: var(--accent-cyan);
}

/* ─── Hero ─── */

.hero {
    text-align: center;
    padding: 120px 24px 100px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 0, 200, 0.05) 0%, transparent 60%);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 15, 25, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 1.05;
    margin-bottom: 24px;
    text-align: center;
}
.hero-title .text-cyan {
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}
.hero-title .text-magenta {
    text-shadow: 0 0 40px rgba(255, 0, 200, 0.3);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-body);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
    background: #33ffff;
    color: var(--bg-body);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.2);
    text-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border-color: var(--border-light);
}
.btn-secondary:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    color: var(--accent-cyan);
}

/* ─── Sections ─── */

.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 48px;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

.page-header {
    text-align: center;
    padding: 80px 24px 40px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 255, 0.06) 0%, transparent 50%);
}
.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

/* ─── Content Panels (readability over waveform) ─── */

.page-header .container,
.section:not(.section-dark) > .container {
    background: rgba(10, 15, 25, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    backdrop-filter: blur(8px);
}

/* ─── Trailer Placeholder ─── */

.trailer-placeholder {
    max-width: 800px;
    margin: 48px auto 0;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.trailer-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(15, 30, 45, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 30, 45, 0.6) 1px, transparent 1px);
    background-size: 30px 30px;
}
.trailer-inner { position: relative; z-index: 1; text-align: center; }
.trailer-text {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}
.trailer-text .text-cyan { font-size: 2rem; }

/* ─── Cards ─── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
    border-color: var(--border-light);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ─── Features Grid ─── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.features-grid-2 { grid-template-columns: repeat(2, 1fr); }
.features-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Screenshots Grid (Home) ─── */

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.screenshot-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    background: var(--bg-card);
}
.screenshot-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
    color: var(--accent-cyan);
}
.screenshot-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.screenshot-caption {
    display: block;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ─── Gallery Grid ─── */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    background: var(--bg-card);
}
.gallery-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
    color: var(--accent-cyan);
}
.gallery-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.gallery-caption {
    display: block;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* ─── Tower Grid ─── */

.tower-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.tower-card { padding: 24px; }

.tower-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.tower-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tower-color, var(--text-primary));
    letter-spacing: 0.5px;
}
.tower-shape {
    font-size: 1.4rem;
    color: var(--tower-color, var(--accent-cyan));
    text-shadow: 0 0 10px var(--tower-color, var(--accent-cyan));
}

/* ─── Boss List ─── */

.boss-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 48px;
}

.boss-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--boss-color, var(--accent-cyan));
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.boss-card:hover {
    border-color: var(--boss-color, var(--accent-cyan));
    box-shadow: 0 0 20px color-mix(in srgb, var(--boss-color, var(--accent-cyan)) 20%, transparent);
}

.boss-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.boss-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--boss-color, var(--text-primary));
    text-shadow: 0 0 12px color-mix(in srgb, var(--boss-color, var(--accent-cyan)) 40%, transparent);
}
.boss-level {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 3px;
}

.boss-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.boss-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.boss-meta span {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
}

/* ─── ARIA Section ─── */

.prose {
    max-width: 700px;
    margin: 0 auto;
}
.prose p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-primary); }
.prose em { color: var(--accent-pink); font-style: italic; }

.aria-section {
    text-align: center;
    padding: 20px 0;
}

/* ─── Company ─── */

.company-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.company-card-wide { grid-column: 1 / -1; }
.company-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}
.company-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.company-card p:last-child { margin-bottom: 0; }

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tech-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.contact-links .btn {
    flex: 1;
    text-align: center;
}

/* ─── Footer ─── */

.footer {
    position: relative;
    z-index: 1;
    background: rgba(8, 12, 20, 0.92);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    backdrop-filter: blur(8px);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer li a:hover { color: var(--accent-cyan); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─── Demo Download ─── */

.demo-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.demo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    color: var(--text-primary);
}
.demo-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
    color: var(--text-primary);
    text-shadow: none;
}
.demo-card.demo-detected {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}
.demo-card.demo-detected .demo-dl {
    background: var(--accent-cyan);
    color: var(--bg-body);
}

.demo-icon {
    color: var(--text-secondary);
    margin-bottom: 16px;
    transition: color 0.25s;
}
.demo-card:hover .demo-icon,
.demo-card.demo-detected .demo-icon { color: var(--accent-cyan); }

.demo-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.demo-detail {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.demo-dl {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.25s;
}
.demo-card:hover .demo-dl {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    color: var(--accent-cyan);
}

code {
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--accent-cyan);
}

/* ─── Responsive ─── */

@media (max-width: 1024px) {
    .features-grid,
    .tower-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .demo-platforms { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 16px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.8rem; }

    .hero { padding: 80px 16px 60px; }
    .hero-inner { padding: 32px 20px; }
    .hero-tagline { font-size: 1rem; }

    .section { padding: 60px 0; }
    .page-header { padding: 60px 16px 30px; }

    .page-header .container,
    .section:not(.section-dark) > .container { padding: 28px 20px; }
    .page-header h1 { font-size: 2rem; }

    .features-grid,
    .features-grid-2,
    .features-grid-3,
    .tower-grid,
    .demo-platforms {
        grid-template-columns: 1fr;
    }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .company-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .boss-card { padding: 20px; }
    .boss-meta { gap: 8px; }
}

@media (max-width: 480px) {
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.75rem; letter-spacing: 0.5px; }

    .hero-title { letter-spacing: 3px; }
    .hero-ctas { flex-direction: column; align-items: center; }

    .screenshots-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
