:root {
    --color-bg: #f8f9fa;
    --color-surface: #fff;
    --color-primary: #2d5016;
    --color-primary-dim: #3d6b1f;
    --color-text: #333;
    --color-text-dim: #666;
    --color-border: #dee2e6;
    --color-accent: #8b4513;
    --color-error: #dc3545;
    --color-success: #2d5016;
    --color-warning: #ffc107;

    --font-mono: 'IBM Plex Mono', monospace;
    --font-sans: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    color: #fff;
}

.nav-dropdown-toggle::after {
    content: " ▾";
    font-size: 0.7em;
    opacity: 0.8;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin-top: 0;
    padding: 0.5rem 0;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown .nav-dropdown-menu.nav-dropdown-open {
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #fff;
}

.nav-toggle-icon {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: currentColor;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6b8e23 100%);
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.95;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.btn-primary {
    background-color: #fff;
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-bg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Page Content */
.page-content {
    padding: 10rem 0 6rem;
    min-height: 100vh;
}

.page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.page-body,
.markdown-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.markdown-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--color-primary);
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

/* Policy sections */
.policy-section {
    margin-bottom: 2rem;
}

.policy-section h3 {
    color: var(--color-primary);
    border-bottom: 2px solid #6b8e23;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-top: 0.5rem;
    padding-left: 2rem;
}

.notice-box {
    background-color: #fff3cd;
    border-left: 4px solid var(--color-warning);
    padding: 1rem;
    margin: 1.5rem 0;
}

.legal-notice {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    padding: 4rem 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 0.75rem;
}

.footer-links a {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        margin-top: 0.5rem;
    }

    .nav-menu.nav-open {
        display: flex;
    }

    .nav-menu li {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        position: static;
        margin-top: 0.5rem;
        margin-left: 1rem;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-border);
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .contact-form {
        padding: 2rem;
    }
}
