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

:root {
    --bg:        #141414;
    --bg-card:   #1e1e1e;
    --bg-nav:    #0e0e0eee;
    --border:    #2a2a2a;
    --red:       #c0392b;
    --red-hover: #e74c3c;
    --gold:      #c9a227;
    --text:      #e0e0e0;
    --text-muted:#888;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.nav-logo span {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--border); }

.nav-links a.highlight {
    color: var(--gold);
    border: 1px solid var(--gold);
}

.nav-links a.highlight:hover { background: var(--gold); color: #111; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: radial-gradient(ellipse at 50% 0%, #2a1010 0%, var(--bg) 65%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, #1a1200 0%, transparent 70%);
    pointer-events: none;
}

.hero img.logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 32px #c0392b66);
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.08em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2.5rem;
    letter-spacing: 0.03em;
}

.ip-box {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ip-box span {
    padding: 0.6rem 1.2rem;
    font-family: monospace;
    font-size: 1rem;
    color: var(--gold);
    background: var(--bg-card);
    letter-spacing: 0.05em;
}

.ip-box button {
    padding: 0.6rem 1.2rem;
    background: var(--red);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background 0.2s;
}

.ip-box button:hover { background: var(--red-hover); }

/* ── SECTION BASE ── */
section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 48px;
    height: 2px;
    background: var(--red);
    margin-bottom: 2.5rem;
}

/* ── SCREENSHOTS ── */
.screenshots-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.screenshot-placeholder {
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.screenshot-placeholder:hover { border-color: var(--red); }

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
}

/* ── LIGHTBOX ── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

/* ── GALLERY ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.gallery-grid .screenshot-placeholder {
    aspect-ratio: 16/9;
}

/* ── FEATURES ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── FULL-WIDTH BAND ── */
.full-width {
    background: linear-gradient(90deg, #1a0a0a, #1a1200, #1a0a0a);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem;
    text-align: center;
}

.full-width p {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.04em;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--gold); }
