/* ============================================
   Knights Reckoning — Landing Page Styles
   Dark fantasy blue/gold theme
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #d4a843;
    --gold-light: #f0d078;
    --gold-dark: #a07820;
    --blue: #1a3a5c;
    --blue-dark: #0d1f33;
    --blue-light: #2a5a8c;
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --text: #e8e0d0;
    --text-dim: #9a9080;
    --text-bright: #ffffff;
    --border: #2a3a4a;
    --shadow: rgba(0, 0, 0, 0.5);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }

/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-container {
    max-width: 1200px;
    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;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gold-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
    background: rgba(212, 168, 67, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
}

.lang-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.lang-active { color: var(--gold); font-weight: 700; }
.lang-inactive { color: var(--text-dim); }
.lang-sep { color: var(--text-dim); margin: 0 2px; }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/img/bg_main_menu.png') center/cover no-repeat;
    opacity: 0.35;
    filter: blur(4px);
    transform: scale(1.1);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin-bottom: 24px;
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(212, 168, 67, 0.3); }
    50% { box-shadow: 0 0 60px rgba(212, 168, 67, 0.5); }
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.4), 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--gold-light);
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 168, 67, 0.5);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold-dark);
}

.btn-secondary:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.hero-version {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: 'Cinzel', serif;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold-dark);
    border-bottom: 2px solid var(--gold-dark);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1520 50%, var(--bg-dark) 100%);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 16px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
    color: var(--text);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.highlight-item:hover {
    border-color: var(--gold-dark);
    transform: translateX(4px);
}

.highlight-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.highlight-text {
    display: flex;
    flex-direction: column;
}

.highlight-text strong {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    margin-bottom: 2px;
}

.highlight-text span {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.about-visual {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 0 8px 40px var(--shadow);
}

.about-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* ---------- CLASSES ---------- */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.class-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s;
    text-align: center;
    padding: 0;
}

.class-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212, 168, 67, 0.15);
}

.class-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transition: opacity 0.4s;
}

.class-card:hover .class-card-bg {
    opacity: 0.25;
}

.class-sprite {
    width: 100px;
    height: 100px;
    margin: 40px auto 16px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: auto;
}

.class-card:hover .class-sprite {
    transform: scale(1.05);
}

.class-name {
    font-size: 1.4rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: var(--gold);
}

.class-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-high { color: #4ade80; }
.stat-mid { color: var(--gold); }
.stat-low { color: #f87171; }

.class-desc {
    padding: 0 20px 24px;
    font-size: 0.9rem;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

/* ---------- FEATURES ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--gold);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ---------- SHOP ITEMS ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.shop-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.shop-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.shop-item:hover::before { opacity: 1; }

.shop-item:hover {
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
}

.shop-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform 0.3s;
}

.shop-item:hover .shop-item-img {
    transform: scale(1.1);
}

.shop-item h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--gold);
}

.shop-item-cost {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.shop-item-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.shop-item-mystic {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.1));
}

.shop-item-mystic::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #8b5cf6);
}

.shop-item-mystic:hover {
    border-color: #a78bfa;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

/* ---------- DLC ---------- */
.dlc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dlc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-align: center;
}

.dlc-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
}

.dlc-card-featured {
    border-color: var(--gold-dark);
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.15);
}

.dlc-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.dlc-card-info {
    padding: 16px;
}

.dlc-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--gold);
}

.dlc-card-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    line-height: 1.5;
}

.dlc-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Cinzel', serif;
}

.dlc-badge-shipped {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.dlc-badge-planned {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}

/* ---------- ROADMAP ---------- */
.roadmap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
    padding: 0 24px;
    position: relative;
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
    z-index: 0;
}

.roadmap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    position: relative;
}

.roadmap-date {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 700;
}

.roadmap-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.roadmap-status-shipped {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.roadmap-status-planned {
    background: rgba(212, 168, 67, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}

/* ---------- STEAM ---------- */
.steam-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card), rgba(26, 58, 92, 0.3));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 32px;
    box-shadow: 0 8px 40px var(--shadow);
}

.steam-icon {
    margin-bottom: 24px;
}

.steam-svg {
    width: 64px;
    height: 64px;
    color: var(--gold);
}

.steam-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.steam-desc {
    color: var(--text-dim);
    margin-bottom: 24px;
    font-size: 1rem;
}

.steam-achievements-preview {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.achievement-badge {
    padding: 6px 16px;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid var(--gold-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

.btn-steam {
    font-size: 1.1rem;
    padding: 16px 40px;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #060a10;
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gold-dark);
}

.footer-credits {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-credits p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-dev-name {
    color: var(--gold) !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.footer-bottom {
    display: flex;
    gap: 24px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: center;
}

.footer-version {
    font-family: 'Cinzel', serif;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual { order: -1; }

    .classes-grid,
    .features-grid,
    .dlc-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .roadmap {
        flex-wrap: wrap;
        gap: 16px;
    }

    .roadmap::before { display: none; }
}

@media (max-width: 600px) {
    .section { padding: 64px 0; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn { width: 100%; max-width: 280px; text-align: center; }

    .shop-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steam-box { padding: 32px 20px; }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
