:root {
    --bg-color: #050507;
    --text-primary: #e0e0e6;
    --text-secondary: #9a9a9a;
    --accent-blue: #4a90e2;
    --accent-purple: #7a3bad;
    --glass-bg: rgba(20, 20, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Shroud Overlay (Fog/Mist Effect) */
.shroud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(5,5,7,0.85) 100%);
    pointer-events: none;
    z-index: 10;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,7,0.3) 0%, rgba(5,5,7,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 800px;
    padding: 0 20px;
}

/* Title Glow Effect */
.title-glow {
    font-size: 5.5rem;
    color: #ffffff;
    position: relative;
    margin-bottom: 10px;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(122, 59, 173, 0.5), 0 0 40px rgba(74, 144, 226, 0.3);
    animation: ss-pulse 4s infinite alternate ease-in-out;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: ss-fade-in-up 1.5s ease-out;
}

.hero-tag {
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 45px;
    animation: ss-fade-in-up 1.8s ease-out;
}

.hero-tag b {
    color: var(--accent-blue);
    font-weight: 600;
}

.btn-scroll {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(74, 144, 226, 0.05);
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.1) inset;
    backdrop-filter: blur(5px);
}

.btn-scroll:hover {
    background: rgba(74, 144, 226, 0.15);
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.6) inset, 0 0 25px rgba(74, 144, 226, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* Main Content */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 20;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.concept p {
    font-size: 1.15rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 25px auto;
    color: var(--text-secondary);
}

.concept strong {
    color: #fff;
    font-weight: 600;
}

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

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 45px 35px;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 144, 226, 0.15);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

.card p {
    color: var(--text-secondary);
}

/* Factions */
.factions {
    background: linear-gradient(to bottom, transparent 0%, rgba(10,10,15,0.8) 50%, transparent 100%);
}

.faction-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.faction {
    flex: 1;
    padding: 40px;
    border-left: 4px solid;
    background: linear-gradient(90deg, rgba(20,20,25,0.9) 0%, rgba(20,20,25,0.2) 100%);
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease;
}

.faction:hover {
    transform: translateX(10px);
}

.faction.order {
    border-color: var(--accent-blue);
}
.faction.order h4 { color: var(--accent-blue); }

.faction.circle {
    border-color: var(--accent-purple);
}
.faction.circle h4 { color: var(--accent-purple); }

.faction h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.faction p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #020203;
    position: relative;
    z-index: 20;
}

.footer-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 100;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.lang-switcher a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 0 5px;
}

.lang-switcher a:hover, .lang-switcher a.active {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
    font-weight: 700;
}

/* Animations */
@keyframes ss-pulse {
    0% { opacity: 0.8; text-shadow: 0 0 15px rgba(122, 59, 173, 0.3), 0 0 5px rgba(74, 144, 226, 0.2); }
    100% { opacity: 1; text-shadow: 0 0 35px rgba(122, 59, 173, 0.7), 0 0 15px rgba(74, 144, 226, 0.5); }
}

@keyframes ss-fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Top Bar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    z-index: 100;
    pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.wip-badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
}

.wip-badge .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-purple);
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent-purple);
    animation: ss-pulse-dot 2.5s infinite ease-in-out;
}

.lang-switcher.inline {
    position: static;
    top: auto;
    right: auto;
}

.lang-switcher .soon {
    opacity: 0.35;
    cursor: default;
}

/* Eyebrow label above section headings */
.eyebrow {
    display: block;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

/* Pillar card icons — badge */
.card .icon {
    display: block;
    width: 58px;
    height: 58px;
    padding: 14px;
    box-sizing: border-box;
    margin-bottom: 26px;
    color: var(--accent-blue);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.12), rgba(122, 59, 173, 0.05));
    border: 1px solid rgba(74, 144, 226, 0.18);
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.card:hover .icon {
    color: #8bc0f5;
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 22px rgba(74, 144, 226, 0.22), inset 0 0 12px rgba(74, 144, 226, 0.1);
    transform: translateY(-3px);
}

/* Top light accent on pillar cards */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 0.85;
}

/* Align card bodies regardless of title length */
#pilares .card h3 {
    min-height: 4.1rem;
    display: flex;
    align-items: flex-end;
}

/* Inline disclaimer icon */
.disclaimer .warn-icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 6px;
    color: var(--accent-purple);
}

/* The Marked — narrative band */
.marked {
    background: linear-gradient(to bottom, transparent, rgba(122, 59, 173, 0.06), transparent);
}

.lore-quote {
    max-width: 720px;
    margin: 40px auto 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    border: none;
}

.lore-quote span {
    display: block;
    margin-top: 14px;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Siege highlight band */
.siege {
    background:
        linear-gradient(to bottom, rgba(5,5,7,0.85), rgba(5,5,7,0.95)),
        url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stat-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat .num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    line-height: 1;
}

.stat .label {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Roadmap / Development Status */
.timeline {
    max-width: 760px;
    margin: 50px auto 0;
    position: relative;
    padding-left: 30px;
    border-left: 1px solid var(--glass-border);
}

.phase {
    position: relative;
    padding: 0 0 45px 30px;
}

.phase:last-child { padding-bottom: 0; }

.phase::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-purple);
}

.phase.active::before {
    background: var(--accent-purple);
    box-shadow: 0 0 14px var(--accent-purple);
}

.phase .tag {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.phase h4 {
    font-size: 1.4rem;
    color: #fff;
    margin: 6px 0 8px;
}

.phase p { color: var(--text-secondary); }

/* FAQ */
.faq-list {
    max-width: 780px;
    margin: 50px auto 0;
}

.faq-item {
    padding: 26px 4px;
    border-bottom: 1px solid var(--glass-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--glass-border);
}

.faq-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Disclaimer note */
.disclaimer {
    max-width: 760px;
    margin: 70px auto 0;
    padding: 22px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-purple);
    border-radius: 6px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Animations */
@keyframes ss-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsive Design */
@media (max-width: 900px) {
    .faction-wrapper { flex-direction: column; }
    .faction:hover { transform: translateX(5px); }
}

@media (max-width: 768px) {
    .title-glow { font-size: 3.5rem; }
    .subtitle { font-size: 1rem; }
    .section h2 { font-size: 2rem; }
    .topbar { padding: 14px 20px; }
    .stat-row { gap: 30px; }
    .stat .num { font-size: 2.2rem; }
}
