@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Fira+Sans:wght@300;400;500;600&display=swap');

:root {
    --chrome: #1a1c23;
    --chrome-border: #2a2d38;
    --surface: #12141a;
    --gold: #b8954a;
    --gold-light: #d4b564;
    --gold-bright: #f0d890;
    --amber: #c87a2e;
    --amber-light: #e09840;
    --amber-bright: #f0b050;
    --text-primary: #e8e6e0;
    --text-secondary: #8b8d95;
    --text-muted: #55575f;
    --danger: #cc4444;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Fira Sans', sans-serif;
    background: var(--surface);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ── Atmospheric star field ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 10%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 32% 25%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 48% 8%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 67% 18%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 5%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 92% 30%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 5% 45%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 55%, rgba(255,255,255,0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 58% 40%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 74% 60%, rgba(255,255,255,0.12) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 88% 48%, rgba(255,255,255,0.18) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(18, 20, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 122, 46, 0.2);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 48px;
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(184, 149, 74, 0.4);
    flex: 1;
    transition: color 0.2s;
}

.nav-logo:hover {
    color: var(--gold-light);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 4px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transition: transform 0.2s;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links .nav-cta a {
    color: #fff;
    background: linear-gradient(180deg, var(--amber) 0%, #a56420 100%);
    padding: 8px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(200, 122, 46, 0.3);
    transition: all 0.15s ease;
}

.nav-links .nav-cta a::after { display: none; }

.nav-links .nav-cta a:hover {
    background: linear-gradient(180deg, var(--amber-light) 0%, var(--amber) 100%);
    box-shadow: 0 4px 16px rgba(200, 122, 46, 0.4);
    transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('hero-bg.webp') center/cover no-repeat;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 50% at 50% 100%, var(--surface) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(12, 16, 32, 0.3) 0%, transparent 30%);
    box-shadow: inset 0 0 200px 60px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-family: 'Fira Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--amber-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(40px, 8vw, 88px);
    font-weight: 900;
    color: var(--gold-light);
    text-shadow:
        0 0 60px rgba(180, 149, 74, 0.3),
        0 0 120px rgba(180, 149, 74, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 6px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 52px;
}

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

.btn-primary {
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, var(--amber) 0%, #a56420 100%);
    border: none;
    border-radius: 4px;
    padding: 16px 48px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 8px rgba(200, 122, 46, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--amber-light) 0%, var(--amber) 100%);
    box-shadow: 0 6px 24px rgba(200, 122, 46, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 16px 36px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-block;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.platform-links {
    margin-top: 12px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
}

.platform-link {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.15s ease;
}

.platform-link:hover {
    color: var(--gold-bright);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll span {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 1px solid var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section shared ── */
.section {
    position: relative;
    z-index: 1;
    padding: 96px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(180, 149, 74, 0.2);
}

/* Decorative divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 149, 74, 0.3), transparent);
    margin: 0 auto;
}

/* ── News Grid ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.news-card {
    background: rgba(20, 22, 30, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 28px 28px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: block;
    cursor: pointer;
}

.news-card:hover {
    border-color: rgba(184, 149, 74, 0.2);
    background: rgba(26, 28, 38, 0.9);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(184, 149, 74, 0.1);
}

.card-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.card-tag.tag-devlog {
    color: var(--gold);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.news-card:hover .card-title {
    color: var(--gold-light);
}

.card-excerpt {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-date {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-read-more {
    font-size: 11px;
    font-weight: 500;
    color: var(--amber);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: letter-spacing 0.2s;
}

.news-card:hover .card-read-more {
    letter-spacing: 2px;
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    background: var(--chrome);
    border-top: 1px solid rgba(184, 149, 74, 0.12);
    padding: 32px 48px;
    text-align: center;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ── News article page ── */
.page-wrapper {
    min-height: 100vh;
    padding-top: 64px;
}

.article-hero {
    position: relative;
    height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 100% at 50% 0%, rgba(26, 60, 100, 0.6) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 80% 50%, rgba(180, 140, 60, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #080c18 0%, #0c1228 60%, #12141a 100%);
}

.article-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--surface) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 48px 40px;
}

.breadcrumb {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--amber);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.4;
}

.article-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.article-tag.tag-devlog {
    color: var(--gold);
}

.article-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(180, 149, 74, 0.2);
}

.article-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 0.5px;
}

/* Article body */
.article-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 48px 80px;
}

.article-body p {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-body p:first-child {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 400;
}

.article-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    margin: 40px 0 16px;
}

.article-body ul {
    list-style: none;
    margin-bottom: 24px;
    padding-left: 0;
}

.article-body ul li {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 6px 0 6px 20px;
    position: relative;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--amber);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: gap 0.2s, color 0.2s;
    margin-top: 16px;
    margin-bottom: 48px;
}

.back-link:hover {
    color: #fff;
    gap: 12px;
}

.back-link::before {
    content: '←';
    font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav {
        padding: 0 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links li:not(.nav-cta) {
        display: none;
    }

    .section {
        padding: 64px 24px;
    }

    .hero-title {
        letter-spacing: 3px;
    }

    .article-hero-content,
    .article-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    footer {
        padding: 24px;
    }
}
