/* ====================================
   MAGNUS INSLA - GLOBAL STYLES
   Green Forest / Fantasy Gaming Aesthetic
   ==================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    color: #e8f5e9;
    background-color: #0b1a0f;
    line-height: 1.6;
}

/* --- Sticky Nav Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1a4d2e;
    border-bottom: 2px solid #2d6a4f;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #adb5e1;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: #c8e6c9;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4ade80;
    border-bottom-color: #4ade80;
}

.nav-auth {
    display: flex;
    gap: 12px;
}

/* --- Buttons --- */
.btn {
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-login {
    background-color: transparent;
    color: #a7f3d0 !important;
    border: 2px solid #4ade80;
}

.btn-login:hover {
    background-color: #4ade80;
    color: #1a4d2e !important;
}

.btn-signup {
    background-color: #4ade80;
    color: #1a4d2e !important;
}

.btn-signup:hover {
    background-color: #6ee7a7;
}

.btn-hero {
    background-color: #4ade80;
    color: #1a4d2e !important;
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-hero:hover {
    background-color: #6ee7a7;
    transform: translateY(-2px);
}

.btn-outline {
    color: #4ade80 !important;
    border: 2px solid #4ade80;
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-outline:hover {
    background-color: #4ade80;
    color: #1a4d2e !important;
}

.btn-primary {
    background-color: #4ade80;
    color: #1a4d2e !important;
}

.btn-primary:hover {
    background-color: #6ee7a7;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(
        135deg,
        #0b2812 0%,
        #1a4d2e 40%,
        #2d6a4f 70%,
        #0f1b1a 100%
    );
    padding-top: 64px; /* Account for fixed nav */
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 40px 24px;
}

.hero h1 {
    font-size: 4.5rem;
    color: #adb5e1;
    letter-spacing: 6px;
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

.hero .tagline {
    font-size: 1.5rem;
    color: #4ade80;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 1.1rem;
    color: #c8e6c9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Features Section --- */
.features-section {
    background-color: #1b3a2a;
    padding: 80px 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #adb5e1;
    letter-spacing: 4px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #4ade80;
    margin: 16px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #0f2b1d;
    border: 1px solid #2d6a4f;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #4ade80;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.2);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: #4ade80;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: #a7d8b5;
    font-size: 1rem;
}

/* --- Newsletter Signup Section --- */
.signup-section {
    background-color: #0f2b1d;
    padding: 80px 24px;
    text-align: center;
}

.signup-text {
    color: #c8e6c9;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: 2px solid #2d6a4f;
    background-color: #1a4d2e;
    color: #e8f5e9;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.email-form input[type="email"]:focus {
    border-color: #4ade80;
}

.email-form input[type="email"]::placeholder {
    color: #6b8a73;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none; /* Collapse on mobile for now */
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .email-form {
        flex-direction: column;
    }
}
