/* ==========================================================================
   OneConquer Design System
   Imperial night theme — cinematic MMORPG landing (shadcn tokens + HeroUI glass)
   ========================================================================== */

:root {
    --bg-deep: #07080c;
    --bg-main: #0c0e14;
    --bg-elevated: #141722;
    --bg-panel: #1a1e2b;

    --soft-gold: #e0b34a;
    --soft-gold-light: #f3d27a;
    --gold-deep: #b8872a;
    --gold-glow: rgba(224, 179, 74, 0.28);
    --on-gold: #1a1408;

    --crimson: #c4453c;

    --text-primary: #f4efe4;
    --text-secondary: #b7b0a3;
    --text-muted: #7d776c;

    --glass-bg: rgba(18, 21, 32, 0.72);
    --glass-border: rgba(224, 179, 74, 0.18);
    --glass-blur: 16px;

    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.32);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --transition-smooth: 0.28s cubic-bezier(0.23, 1, 0.32, 1);
    --header-h: 58px;
    --font-display: "Cinzel", "Times New Roman", serif;
    --font-ui: "Outfit", "Segoe UI", sans-serif;
}

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

html, body {
    font-family: var(--font-ui);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        radial-gradient(1200px 500px at 50% -10%, rgba(224, 179, 74, 0.08), transparent 55%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-main) 40%, var(--bg-deep) 100%);
    min-height: 100vh;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

a:hover {
    color: var(--soft-gold);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #000;
    border-bottom: 1px solid rgba(224, 179, 74, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.header-area.stick,
.header-area.is-solid {
    background: #000;
    border-bottom: 1px solid rgba(224, 179, 74, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.header-area .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
    padding: 6px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--text-primary);
}

.brand img {
    height: 42px;
    width: auto;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--soft-gold-light);
}

.navbar {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    background: transparent;
    border: 0;
    margin: 0;
    min-height: 0;
}

.navbar-nav {
    float: none;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-menu ul li a,
.navbar-nav > li > a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary) !important;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    line-height: 1.3;
}

.main-menu ul li a:hover {
    color: var(--soft-gold-light);
    background: rgba(224, 179, 74, 0.08);
}

.main-menu ul li.dropdown {
    position: relative;
}

.main-menu ul li.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
}

.main-menu ul li .dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    transform: translateY(8px);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.main-menu ul li:hover .dropdown-content,
.main-menu ul li.dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu ul li .dropdown-content a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 0;
    color: var(--text-secondary);
}

.main-menu ul li .dropdown-content a:hover {
    background: rgba(224, 179, 74, 0.1);
    color: var(--soft-gold);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--soft-gold-light), var(--gold-deep));
    color: var(--on-gold);
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 236, 180, 0.35);
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 24px var(--gold-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(224, 179, 74, 0.38);
    color: var(--on-gold);
}

.btn-secondary {
    background: rgba(244, 239, 228, 0.06);
    color: var(--text-primary);
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(244, 239, 228, 0.18);
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--soft-gold);
    color: var(--soft-gold-light);
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero-section {
    position: relative;
    min-height: 82vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-deep);
    padding: calc(var(--header-h) + 36px) 0 36px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.hero-video,
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 8, 12, 0.48) 0%, rgba(7, 8, 12, 0.08) 22%, rgba(7, 8, 12, 0.1) 62%, rgba(12, 14, 20, 0.88) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 22px 28px 20px;
    background: rgba(8, 10, 16, 0.28);
    border: 1px solid rgba(244, 239, 228, 0.12);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--soft-gold);
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: #fff8ea;
    margin-bottom: 10px;
    line-height: 1.15;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
}

.hero-description {
    font-size: 15px;
    color: #ddd4c4;
    margin-bottom: 18px;
    line-height: 1.65;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

#lightcase-case,
#lightcase-content,
#lightcase-content img {
    max-width: 94vw !important;
    max-height: 90vh !important;
}

#lightcase-content img {
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-section {
    padding: 28px 0 10px;
}

.news-board {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 8px 22px 10px;
    background: linear-gradient(180deg, #fbf6ec, #f3ead8);
    border: 1px solid #e4d3a4;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.news-heading {
    margin: 8px 0 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #c4a15a;
    display: inline-block;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2b2418;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(90, 70, 30, 0.12);
    color: #3d3428;
}

.news-item:hover {
    color: #2b2418;
    background: rgba(196, 161, 90, 0.12);
}

.news-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #efe4cc;
    color: #7a6233;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.news-title {
    font-size: 14px;
}

.news-item time {
    font-size: 13px;
    color: #6d6458;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .news-item { grid-template-columns: 28px 1fr; }
    .news-item time { grid-column: 2; }
}

/* --- Sections --- */
.section {
    padding: 88px 0;
}

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

.section-kicker {
    display: block;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--soft-gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(224, 179, 74, 0.4);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(224, 179, 74, 0.2), rgba(184, 135, 42, 0.12));
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--soft-gold);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- Story features --- */
.cq-features-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.cq-features-wrapper .cq-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 28px;
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.cq-features-wrapper .cq-feature.reverse {
    flex-direction: row-reverse;
}

.cq-features-wrapper .cq-image {
    width: 280px;
    min-width: 280px;
}

.cq-features-wrapper .cq-image img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
}

.cq-features-wrapper .cq-content h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px;
}

.cq-features-wrapper .cq-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.cq-features-wrapper .cq-content a {
    color: var(--soft-gold);
    font-weight: 700;
}

.cq-divider {
    display: none;
}

/* --- Screenshots --- */
.shots-section {
    padding: 40px 0 90px;
}

.shots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 12px;
}

.shot-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    display: block;
    height: 100%;
}

.shot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shot-card:hover img {
    transform: scale(1.06);
}

.shot-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 8, 12, 0.45) 100%);
    pointer-events: none;
}

.shot-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.shot-card:nth-child(2) {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .shots-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
    }
    .shot-card:nth-child(1),
    .shot-card:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- Download --- */
.download-section {
    padding: 20px 0 100px;
}

.download-card {
    background:
        radial-gradient(600px 180px at 50% 0%, rgba(224, 179, 74, 0.14), transparent 70%),
        var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
}

.download-card h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 10px;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* --- Footer --- */
footer {
    background: #08090e;
    border-top: 1px solid var(--glass-border);
    padding: 64px 0 0;
}

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

.footer-brand h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--soft-gold-light);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col h3 {
    font-size: 13px;
    margin-bottom: 18px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 14px;
}

.copyright {
    background: #05060a;
    padding: 20px 0;
    border-top: 1px solid rgba(224, 179, 74, 0.1);
}

.copyright .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: var(--text-muted);
    margin: 0;
    font-size: 13px;
}

/* --- Social --- */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-sidebar a {
    position: relative;
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    overflow: visible;
}

.social-sidebar a span {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    white-space: nowrap;
    background: #0b0d14;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-smooth);
}

.social-sidebar a:hover {
    color: #fff;
    width: 56px;
}

.social-sidebar a:hover span {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.social-sidebar a.social-facebook:hover,
.footer-social a.social-facebook:hover { background: #1877f2; color: #fff; }
.social-sidebar a.social-group:hover,
.footer-social a.social-group:hover { background: #0866ff; color: #fff; }
.social-sidebar a.social-youtube:hover,
.footer-social a.social-youtube:hover { background: #ff0000; color: #fff; }
.social-sidebar a.social-discord:hover,
.footer-social a.social-discord:hover { background: #5865f2; color: #fff; }

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.footer-social a i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 21, 32, 0.7);
}

.footer-social a:hover {
    color: var(--soft-gold-light);
}

.designer-bar {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(12, 14, 20, 0.92);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
}

.designer-bar span {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--soft-gold);
    font-weight: 700;
}

.designer-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--soft-gold);
    color: var(--on-gold);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

/* --- Pages --- */
.page-content {
    padding-top: 130px !important;
    padding-bottom: 80px;
    min-height: 70vh;
}

.event-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.event-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--soft-gold);
    font-size: 14px;
    font-weight: 700;
}

.event-page h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    margin: 8px 0 10px;
}

.event-page time {
    display: block;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 14px;
}

.event-page p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.event-photo {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid var(--glass-border);
}

.form-group .g-recaptcha {
    display: flex;
    justify-content: center;
    min-height: 78px;
}

input, textarea, select {
    font-family: inherit;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .cq-features-wrapper .cq-feature,
    .cq-features-wrapper .cq-feature.reverse {
        flex-direction: column;
        text-align: center;
    }
    .cq-features-wrapper .cq-image {
        width: 100%;
        max-width: 340px;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .header-area .container {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
    }
    .navbar,
    .main-menu,
    .main-menu ul {
        width: 100%;
        justify-content: center;
    }
    .main-menu ul {
        gap: 2px;
    }
    .main-menu ul li a {
        font-size: 12px;
        padding: 6px 8px;
    }
    .hero-section {
        min-height: 72vh;
        padding-top: calc(var(--header-h) + 56px);
    }
    .footer-grid,
    .copyright .container {
        grid-template-columns: 1fr;
        text-align: center;
        flex-direction: column;
        gap: 12px;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .social-sidebar {
        top: auto;
        bottom: 18px;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 0 12px;
        pointer-events: none;
    }
    .social-sidebar a {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        border-right: 1px solid var(--glass-border);
        border-radius: 12px;
    }
    .social-sidebar a span {
        display: none;
    }
    .social-sidebar a:hover {
        width: 44px;
    }
    .designer-bar {
        left: 50%;
        transform: translateX(-50%);
        bottom: 70px;
    }
}
