/* ===== VARIABLES ===== */
:root {
    --bg:       #0c0e13;
    --bg-alt:   #10131a;
    --bg-card:  #161a24;
    --text:     #d4d4d8;
    --text-dim: #8a8f9a;
    --accent:   #7baac8;
    --accent-h: #9cc5de;
    --white:    #e8e8ec;
    --radius:   8px;
    --max-w:    1100px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(12, 14, 19, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 170, 200, 0.1);
}
.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: 60px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.nav-icon { width: 32px; height: auto; }
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.1rem;
    padding: 0;
    margin: 0;
}
.nav-links li {
    display: flex;
    align-items: center;
}
.nav-links a {
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-toggle {
    display: none; background: none; border: none;
    color: var(--text); font-size: 1.5rem; cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 0.65rem 1.5rem;
    border-radius: var(--radius); font-weight: 600;
    transition: background 0.2s, transform 0.15s; cursor: pointer;
    border: none; font-size: 0.95rem;
}
.btn-primary {
    background: var(--accent); color: var(--bg);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-secondary {
    background: transparent; color: var(--text);
    border: 1px solid rgba(123, 170, 200, 0.3);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--white); }
.btn-small { padding: 0.4rem 1rem; font-size: 0.85rem; }
.site-header .btn-small { padding-inline: 0.72rem; }
.btn-large { padding: 0.9rem 2.5rem; font-size: 1.1rem; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: left bottom;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 14, 19, 0.5) 0%,
        rgba(12, 14, 19, 0.7) 60%,
        var(--bg) 100%
    );
}
.hero-content {
    position: relative; text-align: center;
    padding: 2rem 1.5rem; max-width: 700px;
}

.hero-logo {
    width: clamp(250px, 40vw, 500px);
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 40px rgba(123, 170, 200, 0.2));
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; }
.section-dark { background: var(--bg-alt); }
.section-inner {
    max-width: var(--max-w); margin: 0 auto;
}
.section h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--white); margin-bottom: 1rem;
}
.section-lead {
    font-size: 1.1rem; color: var(--text-dim);
    max-width: 600px; margin-bottom: 2.5rem;
}

/* ===== SPLIT (Om-seksjon) ===== */
.split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
}
.split-img img { border-radius: var(--radius); }
.split-text p { margin-bottom: 1rem; color: var(--text-dim); }

/* ===== COMMUNITY ===== */
.community-hero {
    margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden;
}
.community-hero img { width: 100%; }
.cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 1.5rem; border: 1px solid rgba(123, 170, 200, 0.08);
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(123, 170, 200, 0.25); transform: translateY(-2px); }
.card h3 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1rem; }
.card p { color: var(--text-dim); font-size: 0.9rem; }

/* ===== CTA ===== */
.cta-section { text-align: center; padding: 6rem 1.5rem; }
.cta-logo {
    width: 220px; margin: 0 auto 2rem;
    filter: drop-shadow(0 0 30px rgba(123, 170, 200, 0.15));
}
.cta-section p { color: var(--text-dim); margin-bottom: 2rem; }

/* ===== TAGLINE ===== */
.tagline-section {
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(123, 170, 200, 0.06);
}
.tagline {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid rgba(123, 170, 200, 0.08);
    padding: 2.5rem 1.5rem; text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-icon { width: 36px; margin: 0 auto 0.5rem; opacity: 0.6; }
.footer-name { color: var(--white); font-weight: 600; margin-bottom: 0.3rem; }
.footer-discord {
    color: var(--accent); font-size: 0.85rem;
    display: inline-block; margin-bottom: 0.5rem;
}
.footer-tagline { color: var(--text-dim); font-size: 0.8rem; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE NAV ===== */
.nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(12, 14, 19, 0.97);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(123, 170, 200, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }
    .nav-menu {
        display: none;
        margin-left: 0;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    .lang-toggle {
        margin-left: 0;
        margin-top: 0.25rem;
    }
    .nav-toggle { display: block; }
    .split { grid-template-columns: 1fr; }
    .split-img { order: -1; }
    .cards { grid-template-columns: 1fr; }
    .hero { min-height: 90vh; }
    .section { padding: 3.5rem 1.25rem; }
    .cta-logo { width: 160px; }
}

/* ===== CARD LINKS ===== */
a.card-link { text-decoration: none; color: inherit; }
a.card-link:hover { border-color: var(--accent); }

/* ===== LANGUAGE TOGGLE =====
   Understated: always visible against dark header, but not prominent. */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 0.75rem;
}
.lang-toggle button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(123, 170, 200, 0.18);
    border-radius: 6px;
    padding: 3px 5px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    filter: saturate(0.85);
    transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease, filter 0.15s ease;
}
.lang-toggle button:hover { opacity: 1; filter: saturate(1); }
.lang-toggle button.active {
    opacity: 1;
    filter: saturate(1);
    border-color: rgba(123, 170, 200, 0.45);
    background: rgba(123, 170, 200, 0.14);
}
