:root {
    --bg-color: #0d0f11;
    --surface-color: #1a1d21;
    --accent-color: #a11fb0;
    --accent-hover: #b634c4;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #2d333b;
    --max-width: 1100px;
    --system-fonts: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--system-fonts);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Utils */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Typography */
h1, h2, h3 { line-height: 1.2; margin-bottom: 1.5rem; font-weight: 700; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; }
.muted { color: var(--text-muted); }

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 17, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.nav-logo-img {
    height: 26px;
    width: auto;
    display: block;
}
.nav-actions { display: flex; gap: 0.75rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.btn-primary { background: #05ce78; color: #000; border-color: #05ce78; }
.btn-primary:hover { background: #04b86b; border-color: #04b86b; transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-secondary:hover { background: var(--surface-color); border-color: var(--text-muted); }
.btn-reddit { background: #ff4500; color: #fff; border-color: #ff4500; }
.btn-reddit:hover { background: #ff6a28; border-color: #ff6a28; transform: translateY(-1px); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* Hero */
.hero { padding: 6rem 0 4rem; text-align: center; }
.dev-note {
    background: var(--surface-color);
    border-left: 3px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    max-width: 700px;
    font-style: italic;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.hero-media {
    position: relative;
    margin: 3rem auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    cursor: pointer;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.75;
    transition: opacity 0.3s;
}
.hero-media:hover img { opacity: 0.9; }
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    pointer-events: none;
}
.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.btn-hero {
    padding: 0.95rem 2.2rem;
    font-size: 1.05rem;
    min-width: 280px;
}

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.pillar-card h3 { color: var(--accent-color); font-size: 1.25rem; margin-bottom: 1rem; }

/* Gallery */
.previous-titles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2rem;
}
.previous-title-item {
    display: block;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-color);
}
.previous-title-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.previous-title-item:hover img { transform: scale(1.03); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 2rem;
}
.gallery-item { aspect-ratio: 16/9; background: var(--surface-color); overflow: hidden; border-radius: 4px; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item img:hover, .gallery-item video:hover { transform: scale(1.05); }
.gif-highlight { grid-column: span 2; grid-row: span 2; }

/* Roadmap */
.roadmap { display: flex; gap: 1.5rem; margin-top: 2rem; }
.roadmap-step { flex: 1; background: var(--surface-color); padding: 1.5rem; border-radius: 6px; border-top: 2px solid var(--border-color); }
.roadmap-step.active { border-top-color: var(--accent-color); }
.roadmap-step h4 { margin-bottom: 0.5rem; font-size: 0.9rem; text-transform: uppercase; color: var(--accent-color); }

/* FAQ */
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 2rem; }
.faq-item h3 { font-size: 1.1rem; border: none; padding: 0; margin-bottom: 0.5rem; color: #fff; }

/* Final CTA */
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; }
.cta-card {
    background: linear-gradient(145deg, #1a1d21 0%, #0d0f11 100%);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    transition: border-color 0.3s;
}
.cta-card:hover { border-color: var(--accent-color); }

/* Footer */
footer { border-top: 1px solid var(--border-color); padding: 4rem 0; margin-top: 5rem; font-size: 0.85rem; color: var(--text-muted); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-color); }

/* Modal placeholder */
#video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center; justify-content: center;
}
#video-modal.is-open { display: flex; }
.video-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.video-modal-close {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid var(--border-color);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.video-modal-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

/* Mobile */
@media (max-width: 768px) {
    .previous-titles-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gif-highlight { grid-column: span 2; }
    .roadmap { flex-direction: column; }
    .cta-cards { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
    h1 { font-size: 2.2rem; }
    .nav-logo-img { height: 22px; }
}
@media (max-width: 600px) {
    nav { padding: 0.6rem 0; }
    .nav-content { flex-direction: column; gap: 0.75rem; }
    .nav-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    .btn { width: 100%; max-width: 320px; min-height: 44px; }
    .btn-sm { min-height: 40px; }
    .hero { padding: 4.5rem 0 3rem; }
    .dev-note { margin: 1.5rem auto; font-size: 0.9rem; }
    .hero-media { margin: 2rem auto; }
    .section-padding { padding: 3.5rem 0; }
    .pillars { gap: 1.5rem; }
    .gallery-grid { gap: 8px; }
    .cta-card { padding: 2.25rem 1.5rem; }
    footer { padding: 3rem 0; }
}
@media (max-width: 420px) {
    .container { padding: 0 1rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-ctas { max-width: 100%; }
    .nav-actions { gap: 0.5rem; }
    .btn { max-width: 100%; }
    .video-modal-content { width: 96%; }
    .play-overlay { width: 68px; height: 68px; }
}
