:root {
    --main-color: #1e3a8a;
    --accent-color: #111827;
    --text-color: #f3f4f6;
    --background: #0f172a;
    --feature-bg: #1e293b;
    --highlight: #3b82f6;
    --dark-bg: #0b1120;
    --light-bg: #ffffff;
    --light-text: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER & NAV */
header {
    background: var(--accent-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--highlight);
}

/* HERO */
.hero {
    background: url('/assets/images/hero.jpg') no-repeat center center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    background: rgba(15, 23, 42, 0.7);
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
}

.btn {
    background: var(--highlight);
    color: white;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    margin-top: 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #2563eb;
}

/* FEATURES */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 2rem;
    justify-content: center;
    background-color: var(--feature-bg);
}

.feature-box {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* JOIN SECTION */
.join-box {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--accent-color);
    border-top: 2px solid var(--main-color);
}

.join-box code {
    background: #1f2937;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #93c5fd;
}

/* FAQ & LEGAL */
main.faq, main.legal {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: auto;
}

.faq-item {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.faq-item h3 {
    margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
    background: var(--dark-bg);
    padding: 1rem 2rem;
    text-align: center;
    color: #9ca3af;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* DARK MODE */
body.dark-mode {
    background-color: var(--light-bg);
    color: var(--light-text);
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode .feature-box,
body.dark-mode .join-box {
    background-color: var(--light-bg);
    color: var(--light-text);
}

body.dark-mode .btn {
    background: var(--main-color);
}

body.dark-mode .btn:hover {
    background: var(--highlight);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
