: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: pulse 4s infinite alternate ease-in-out;
}

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

.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 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 fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 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; }
}
