/* ==========================================================================
   Avis Linux Brand Stylesheet (style.css)
   Colors extracted from the Avis Linux Feather Logo:
   - Primary Moss Green: #3E6B48 / #4B7D56
   - Light Emerald / Vibrant Sage: #62A473 / #87C398
   - Dark Forest Slate: #1A281E / #121B15
   - Deep Carbon Background: #0B0F0C
   - Subtle Card Fill: #131A15
   - Accent Border: #25382A
   - Text Slate: #9EB0A2 / #CFD8D2
   ========================================================================== */

:root {
    --color-bg: #0B0F0C;
    --color-surface: #131A15;
    --color-surface-hover: #18221B;
    --color-border: #223527;
    --color-border-glow: #3E6B48;

    --brand-moss: #3E6B48;
    --brand-moss-bright: #4E875C;
    --brand-emerald: #69B07C;
    --brand-mint: #93D4A4;
    --brand-glow: rgba(98, 164, 115, 0.18);

    --text-primary: #F0F4F1;
    --text-secondary: #9DB1A2;
    --text-muted: #6B7C6F;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
}

body {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Atmospheric Ambient Background Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(62, 107, 72, 0.35) 0%, rgba(11, 15, 12, 0) 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(105, 176, 124, 0.15) 0%, rgba(11, 15, 12, 0) 70%);
    top: 700px;
    right: -100px;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(62, 107, 72, 0.4));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.accent-avis {
    color: var(--brand-mint);
}

.accent-linux {
    color: var(--text-primary);
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-mint);
}

.btn-nav {
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(62, 107, 72, 0.2);
    border: 1px solid var(--color-border);
    color: var(--brand-mint) !important;
}

.btn-nav:hover {
    background: rgba(62, 107, 72, 0.4);
    border-color: var(--brand-moss);
}

.btn-donate {
    padding: 7px 16px;
    border-radius: 8px;
    background: rgba(105, 176, 124, 0.12) !important;
    border: 1px solid var(--brand-emerald) !important;
    color: var(--brand-mint) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-donate:hover {
    background: var(--brand-moss) !important;
    border-color: var(--brand-mint) !important;
    color: #ffffff !important;
}

/* RSS Button */
.btn-rss {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--text-secondary) !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-rss:hover {
    background: var(--color-surface-hover);
    border-color: #f26522;
    color: #f26522 !important;
}

.rss-icon {
    flex-shrink: 0;
}

/* Language Dropdown */
.lang-dropdown-container {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.lang-btn:hover,
.lang-dropdown-container:hover .lang-btn,
.lang-dropdown-container:focus-within .lang-btn {
    background: var(--color-surface-hover);
    border-color: var(--brand-moss);
    color: var(--brand-mint);
}

.lang-arrow {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.lang-dropdown-container:hover .lang-arrow,
.lang-dropdown-container:focus-within .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    min-width: 240px;
    max-height: 320px;
    overflow-y: auto;
    background: #111813;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-moss) transparent;
}

.lang-menu::-webkit-scrollbar {
    width: 6px;
}

.lang-menu::-webkit-scrollbar-thumb {
    background: var(--brand-moss);
    border-radius: 3px;
}

.lang-dropdown-container:hover .lang-menu,
.lang-dropdown-container:focus-within .lang-menu {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-item:hover {
    background: rgba(62, 107, 72, 0.25);
    color: var(--brand-mint);
}

.lang-item.active {
    color: var(--brand-mint);
    font-weight: 600;
    background: rgba(62, 107, 72, 0.15);
}

.lang-check {
    font-size: 0.85rem;
    color: var(--brand-emerald);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero-container {
    max-width: 860px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(62, 107, 72, 0.2);
    border: 1px solid var(--brand-moss);
    color: var(--brand-mint);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-mint) 0%, var(--brand-emerald) 50%, var(--brand-moss-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-moss-bright) 0%, var(--brand-moss) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(62, 107, 72, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 135, 92, 0.45);
    background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-moss-bright) 100%);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--brand-moss);
}

.release-banner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(19, 26, 21, 0.7);
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-emerald);
    box-shadow: 0 0 0 rgba(105, 176, 124, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(105, 176, 124, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(105, 176, 124, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(105, 176, 124, 0);
    }
}

/* Sections */
.section {
    padding: 90px 0;
}

.bg-card-subtle {
    background: #0E1410;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-block;
    color: var(--brand-emerald);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Grids & Cards */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 36px 28px;
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-moss);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.feature-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
}

.feature-bullet {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand-emerald);
    margin-bottom: 14px;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.contact-card.primary-contact {
    border-color: var(--brand-moss);
    background: linear-gradient(180deg, #162219 0%, #111813 100%);
    box-shadow: 0 6px 24px rgba(62, 107, 72, 0.15);
}

.contact-card:hover {
    border-color: var(--brand-emerald);
    transform: translateY(-3px);
}

.contact-role {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-mint);
    margin-bottom: 12px;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    color: var(--brand-mint);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border-bottom: 1px dashed var(--brand-moss);
    padding-bottom: 3px;
    transition: all 0.2s ease;
}

.contact-email:hover {
    color: #ffffff;
    border-bottom-style: solid;
    border-bottom-color: var(--brand-mint);
}

/* ==========================================================================
   Content Pages (Team, Blog, Donate, Docs)
   ========================================================================== */

.standalone-content {
    padding: 60px 0 100px;
    min-height: 65vh;
    max-width: 860px;
    margin: 0 auto;
}

.standalone-content h1,
.standalone-content h2,
.standalone-content h3,
.standalone-content h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
}

.standalone-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--brand-mint) 0%, var(--brand-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.standalone-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.standalone-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--brand-mint);
}

.standalone-content p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.standalone-content ul,
.standalone-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.standalone-content li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.standalone-content a {
    color: var(--brand-mint) !important;
    text-decoration: none;
    border-bottom: 1px dashed var(--brand-moss);
    font-weight: 500;
    transition: all 0.2s ease;
}

.standalone-content a:hover {
    color: #ffffff !important;
    border-bottom-style: solid;
    border-bottom-color: var(--brand-mint);
}

.standalone-content hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

.standalone-content blockquote {
    border-left: 3px solid var(--brand-emerald);
    background: var(--color-surface);
    padding: 18px 24px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    color: var(--text-primary);
    font-style: italic;
}

.standalone-content pre {
    background: #060907;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 18px;
    overflow-x: auto;
    margin: 24px 0;
}

.standalone-content code {
    font-family: monospace;
    background: rgba(62, 107, 72, 0.2);
    color: var(--brand-mint);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.standalone-content pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
}

/* Footer (Debian Style) */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 50px 0 40px;
    background: #080B09;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.debian-footer {
    border-top: 1px solid var(--color-border);
    padding: 35px 0 15px 0;
    margin-top: 30px;
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.debian-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.debian-footer a:hover {
    color: var(--brand-mint);
    text-decoration: underline;
}

.debian-footer-langs {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--color-border);
}

.debian-footer-langs strong {
    color: var(--text-primary);
}

.debian-footer-meta {
    margin-bottom: 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-legal p {
    margin-bottom: 8px;
}

.footer-legal strong {
    color: var(--text-secondary);
}

.disclaimer {
    font-size: 0.76rem;
    color: #556458;
    line-height: 1.5;
}

.footer-contacts strong {
    color: var(--brand-mint);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        flex-direction: column;
        gap: 14px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    .hero {
        padding: 60px 0 40px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .footer-content {
        flex-direction: column;
    }
    .standalone-content {
        padding: 40px 0;
    }
}