/* ========================================
   BamOS Landing Page — Theme & Variables
   ======================================== */

:root,
[data-bs-theme="light"] {
    --bam-green: #2d8a4e;
    --bam-green-dark: #1a5c32;
    --bam-green-light: #4bac00;
    --bam-green-pale: #e8f5e9;
    --bam-gold: #c4a43e;
    --bam-blue: #5277c3;
    --bam-bg: #fafbfc;
    --bam-surface: #ffffff;
    --bam-text: #1a1a2e;
    --bam-text-secondary: #4a5568;
    --bam-border: #e2e8f0;
    --bam-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --bam-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --bam-gradient-hero: linear-gradient(
        135deg,
        #f0f7f2 0%,
        #e8f0e8 50%,
        #f5f8f5 100%
    );
    --bam-gradient-section: linear-gradient(
        135deg,
        #f0f7f2 0%,
        #e8f0e8 50%,
        #f5f8f5 100%
    );
    --countdown-bg: #ffffff;
    --countdown-border: #2d8a4e;
    --code-bg: #f7faf7;
    --code-text: #1a5c32;
    --header-bg: rgba(255, 255, 255, 0.85);
    --logo-glow: drop-shadow(0 0 12px rgba(45, 138, 78, 0.2));
}

[data-bs-theme="dark"] {
    --bam-green: #4bac00;
    --bam-green-dark: #2d8a4e;
    --bam-green-light: #66cc33;
    --bam-green-pale: #1a2a1a;
    --bam-gold: #d4b44e;
    --bam-blue: #6b92d4;
    --bam-bg: #0d1117;
    --bam-surface: #161b22;
    --bam-text: #e6edf3;
    --bam-text-secondary: #8b949e;
    --bam-border: #30363d;
    --bam-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --bam-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --bam-gradient-hero: linear-gradient(
        135deg,
        #0d1a12 0%,
        #0d1117 50%,
        #111a14 100%
    );
    --bam-gradient-section: linear-gradient(
        135deg,
        #0d1a12 0%,
        #0d1117 50%,
        #111a14 100%
    );
    --countdown-bg: #161b22;
    --countdown-border: #4bac00;
    --code-bg: #161b22;
    --code-text: #66cc33;
    --header-bg: rgba(13, 17, 23, 0.85);
    --logo-glow: drop-shadow(0 0 16px rgba(75, 172, 0, 0.3));
}

/* ========================================
   Base Styles
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        sans-serif;
    background: var(--bam-bg);
    color: var(--bam-text);
    line-height: 1.7;
    overflow-x: hidden;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

a {
    color: var(--bam-green);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--bam-green-dark);
}

/* ========================================
   Header / Navbar
   ======================================== */

.bam-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--bam-border);
    transition: all 0.3s ease;
}

.bam-header.scrolled {
    box-shadow: var(--bam-shadow);
}

.bam-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.bam-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--bam-text);
    text-decoration: none;
    line-height: 1;
}

.bam-brand:hover {
    color: var(--bam-text);
}

.bam-brand .nav-bam {
    color: var(--bam-green);
}

.bam-brand .nav-os {
    color: var(--bam-text);
    margin-left: -0.22em;
}

.bam-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bam-nav-links a {
    color: var(--bam-text-secondary);
    font-weight: 500;
    font-size: 0.925rem;
    transition: color 0.2s;
}

.bam-nav-links a:hover {
    color: var(--bam-green);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--bam-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bam-text-secondary);
    transition: all 0.2s;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    border-color: var(--bam-green);
    color: var(--bam-green);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 3rem 0 4rem;
    text-align: center;
    background: var(--bam-gradient-hero);
    border-bottom: 1px solid var(--bam-border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(
            circle at 30% 40%,
            rgba(45, 138, 78, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 60%,
            rgba(82, 119, 195, 0.06) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(139, 92, 246, 0.04) 0%,
            transparent 40%
        );
    pointer-events: none;
    animation: glowPulse 8s infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

[data-bs-theme="dark"] .hero::before {
    background:
        radial-gradient(
            circle at 30% 40%,
            rgba(45, 138, 78, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 60%,
            rgba(82, 119, 195, 0.12) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(139, 92, 246, 0.08) 0%,
            transparent 40%
        );
}

.hero-logo {
    display: inline-block;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.hero-logo img {
    filter: var(--logo-glow);
    transition: filter 0.5s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero h1 .hero-bam {
    color: var(--bam-green);
}
.hero h1 .hero-os {
    color: var(--bam-text);
    margin-left: 0.08em;
}

.hero .tagline {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--bam-text-secondary);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.hero .philosophy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--bam-text-secondary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ========================================
   Features Grid (Pop!_OS style)
   ======================================== */

.features-grid-section {
    padding: 5rem 0;
}

.feature-card {
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--bam-shadow);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bam-shadow-lg);
    border-color: var(--bam-green);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bam-text);
}

.feature-card p {
    color: var(--bam-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Compact Maintenance Bar (inside Hero)
   ======================================== */

.maintenance-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: fit-content;
    margin: 2rem auto 0;
    background: var(--bam-surface);
    border: 2px solid var(--bam-green);
    border-radius: 50px;
    padding: 0.6rem 1.75rem;
    box-shadow:
        0 0 32px rgba(45, 138, 78, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 80px;
    z-index: 100;
    animation:
        fadeInUp 0.6s ease-out forwards,
        pulse-bar 3s ease-in-out infinite;
}

/* Active state: bar glows, rest of page dims */
body.maintenance-active .hero,
body.maintenance-active .features-grid-section,
body.maintenance-active .download-section,
body.maintenance-active .why-section,
body.maintenance-active .code-section,
body.maintenance-active .community-section,
body.maintenance-active .bam-footer,
body.maintenance-active .bam-header {
    filter: brightness(0.9);
    transition: filter 0.5s ease;
}

body.maintenance-active .maintenance-bar {
    filter: brightness(1);
    box-shadow:
        0 0 48px rgba(45, 138, 78, 0.5),
        0 0 80px rgba(45, 138, 78, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--bam-green-light);
    animation:
        fadeInUp 0.6s ease-out forwards,
        pulse-bar-active 2s ease-in-out infinite;
}

@keyframes pulse-bar-active {
    0%,
    100% {
        box-shadow:
            0 0 48px rgba(45, 138, 78, 0.5),
            0 0 80px rgba(45, 138, 78, 0.2);
    }
    50% {
        box-shadow:
            0 0 64px rgba(75, 172, 0, 0.7),
            0 0 100px rgba(75, 172, 0, 0.3);
    }
}

@keyframes pulse-bar {
    0%,
    100% {
        box-shadow:
            0 0 32px rgba(45, 138, 78, 0.25),
            0 4px 16px rgba(0, 0, 0, 0.04);
    }
    50% {
        box-shadow:
            0 0 48px rgba(45, 138, 78, 0.4),
            0 4px 20px rgba(0, 0, 0, 0.06);
    }
}

.maintenance-bar-icon {
    font-size: 1.4rem;
}

.maintenance-bar-text {
    font-size: 0.9rem;
    color: var(--bam-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.maintenance-bar-text strong {
    color: var(--bam-green);
    font-weight: 700;
}

/* Countdown Inline */

.countdown-inline {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.ci-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bam-green-pale);
    border-radius: 8px;
    padding: 0.2rem 0.45rem;
    min-width: 40px;
}

.ci-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bam-green);
    font-family: "JetBrains Mono", "Roboto Mono", monospace;
    line-height: 1;
}

.ci-lbl {
    font-size: 0.55rem;
    color: var(--bam-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.ci-sep {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bam-green);
    opacity: 0.5;
    padding-bottom: 0.6rem;
}

/* ========================================
   Why BamOS Section
   ======================================== */

.why-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--bam-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pillar-card {
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--bam-shadow);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bam-shadow-lg);
    border-color: var(--bam-green);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.pillar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--bam-text);
}

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

/* ========================================
   Download Section — 4 Editions
   ======================================== */

.download-section {
    padding: 5rem 0;
    background: var(--bam-gradient-section);
    border-top: 1px solid var(--bam-border);
    border-bottom: 1px solid var(--bam-border);
}

/* Edition Cards Grid */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.edition-card {
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--bam-shadow);
}

.edition-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bam-shadow-lg);
    border-color: var(--bam-green);
}

.edition-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bam-text-secondary);
    background: var(--bam-border);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.edition-badge-pop {
    background: var(--bam-green);
    color: #fff;
}

.edition-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bam-text);
    margin-bottom: 0.5rem;
}

.edition-desc {
    font-size: 0.82rem;
    color: var(--bam-text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.edition-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: var(--bam-text);
    border-top: 1px solid var(--bam-border);
    padding-top: 0.75rem;
}

.edition-features li {
    padding: 0.2rem 0;
}

.edition-buttons {
    display: flex;
    gap: 0.5rem;
}

.edition-buttons .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.45rem 0.5rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    opacity: 0.5;
    pointer-events: none;
}

.edition-buttons .btn-primary {
    background: var(--bam-green);
    border-color: var(--bam-green);
    color: #fff;
}

.edition-buttons .btn-outline {
    border-color: var(--bam-green);
    color: var(--bam-green);
    background: transparent;
}

/* System Requirements Bar */
.download-sysreq {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: var(--bam-shadow);
}

.sysreq-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--bam-text);
    margin-bottom: 1rem;
}

.sysreq-header i {
    color: var(--bam-green);
    font-size: 1.2rem;
}

.sysreq-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sysreq-item {
    display: flex;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.sysreq-item strong {
    color: var(--bam-text);
}

.sysreq-item span {
    color: var(--bam-text-secondary);
}

.download-sysreq .sysreq-tool {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--bam-text-secondary);
    border-top: 1px solid var(--bam-border);
    padding-top: 0.75rem;
    margin: 0;
}

.download-sysreq .sysreq-tool i {
    color: var(--bam-green);
}

.download-sysreq .sysreq-tool a {
    color: var(--bam-green);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991.98px) {
    .editions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .editions-grid {
        grid-template-columns: 1fr;
    }
    .sysreq-grid {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   NixOS Power Section
   ======================================== */

.nixos-power-section {
    padding: 5rem 0;
}

.nixos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.nixos-card {
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--bam-shadow);
}

.nixos-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bam-shadow-lg);
    border-color: var(--bam-blue);
}

.nixos-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.nixos-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bam-text);
    margin-bottom: 0.5rem;
}

.nixos-card p {
    font-size: 0.85rem;
    color: var(--bam-text-secondary);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 991.98px) {
    .nixos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .nixos-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Code Example Section
   ======================================== */

.code-section {
    padding: 5rem 0;
    background: var(--bam-gradient-section);
    border-top: 1px solid var(--bam-border);
    border-bottom: 1px solid var(--bam-border);
}

/* Code Editor Mockup (IDE-style) */
.code-mockup {
    background: #0d0d14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

.code-mockup-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cm-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cm-dot-red {
    background: #ff5f56;
}
.cm-dot-yellow {
    background: #ffbd2e;
}
.cm-dot-green {
    background: #27c93f;
}

.cm-title {
    margin: 0 auto;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.code-mockup-body {
    padding: 1.25rem 1.5rem;
    font-family: "JetBrains Mono", "Roboto Mono", monospace;
    font-size: 0.72rem;
    line-height: 1.75;
    color: #e0e0e0;
    overflow-x: auto;
}

.cm-keyword {
    color: #c084fc;
    font-weight: 500;
}
.cm-string {
    color: #4ade80;
}
.cm-prop {
    color: #60a5fa;
}
.cm-comment {
    color: rgba(255, 255, 255, 0.3);
}
.cm-prompt {
    color: #4ade80;
}
.cm-cursor {
    color: #a0a0a0;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

[data-bs-theme="light"] .code-mockup {
    background: #1e1e2e;
}

/* Command Cards */
.cmd-card {
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--bam-shadow);
}

.cmd-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bam-text-secondary);
    padding: 0.5rem 1rem;
    background: var(--bam-border);
    border-bottom: 1px solid var(--bam-border);
}

.cmd-card-body {
    padding: 0.75rem 1rem;
}

.cmd-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: "JetBrains Mono", "Roboto Mono", monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--code-text);
    overflow-x: auto;
}

.cmd-prompt {
    color: var(--bam-green);
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
}

.cmd-line code {
    color: var(--code-text);
    white-space: pre-wrap;
    word-break: break-all;
}

.cmd-editions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cmd-editions code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: var(--code-bg);
    color: var(--code-text);
    border: 1px solid var(--bam-border);
}

.cmd-editions code.cmd-pop {
    background: var(--bam-green);
    color: #fff;
    border-color: var(--bam-green);
}

/* BamOS Builder UI */
.builder-card {
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--bam-shadow);
    position: relative;
}

.builder-step {
    margin-bottom: 1.25rem;
}

.builder-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bam-text-secondary);
    margin-bottom: 0.5rem;
}

.builder-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.builder-opt {
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--bam-border);
    background: transparent;
    color: var(--bam-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.builder-opt:hover {
    border-color: var(--bam-green);
    color: var(--bam-text);
}

.builder-opt.active {
    background: var(--bam-green);
    color: #fff;
    border-color: var(--bam-green);
}

.builder-footer {
    border-top: 1px solid var(--bam-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.builder-specs {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--bam-text-secondary);
    font-family: "JetBrains Mono", monospace;
    margin-bottom: 0.75rem;
}

.builder-specs i {
    color: var(--bam-green);
    margin-right: 0.25rem;
}

.builder-generate {
    width: 100%;
    padding: 0.7rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--bam-green);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.builder-generate:hover {
    opacity: 1;
    box-shadow: 0 4px 20px rgba(45, 138, 78, 0.35);
}

[data-bs-theme="dark"] .builder-card {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 35, 0.7) 0%,
        rgba(20, 20, 25, 0.7) 100%
    );
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .builder-opt {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Community Section
   ======================================== */

.community-section {
    padding: 5rem 0;
}

.community-card {
    background: var(--bam-surface);
    border: 1px solid var(--bam-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--bam-shadow);
    text-decoration: none;
    display: block;
    color: var(--bam-text);
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bam-shadow-lg);
    border-color: var(--bam-green);
    color: var(--bam-text);
}

.community-card .community-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}
.community-card h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.community-card p {
    color: var(--bam-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.community-card .arrow {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--bam-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Footer
   ======================================== */

.bam-footer {
    background: var(--bam-surface);
    border-top: 1px solid var(--bam-border);
    padding: 3rem 0 2rem;
}

.bam-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bam-text);
    margin-bottom: 0.75rem;
}

.bam-footer h5 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bam-text-secondary);
    margin-bottom: 1rem;
}

.bam-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bam-footer ul li {
    margin-bottom: 0.5rem;
}

.bam-footer ul li a {
    color: var(--bam-text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.bam-footer ul li a:hover {
    color: var(--bam-green);
}

.bam-footer .footer-bottom {
    border-top: 1px solid var(--bam-border);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--bam-text-secondary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--bam-border);
    border-radius: 50%;
    color: var(--bam-text-secondary);
    transition: all 0.2s;
    font-size: 1.1rem;
}

.footer-social a:hover {
    border-color: var(--bam-green);
    color: var(--bam-green);
    background: var(--bam-green-pale);
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */

.mobile-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: var(--header-bg);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid var(--bam-border);
        padding: 0.5rem 0;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
        justify-content: space-evenly;
        align-items: center;
        height: 56px;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.06);
    }

    .mobile-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 44px;
        height: 40px;
        color: var(--bam-text-secondary);
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.2s ease;
        position: relative;
    }

    .mobile-nav-item i {
        font-size: 1.3rem;
        transition: all 0.2s ease;
    }

    .mobile-nav-item.active {
        color: var(--bam-green);
    }

    .mobile-nav-item.active i {
        transform: translateY(-2px);
    }

    .mobile-nav-item:active {
        transform: scale(0.92);
    }

    /* Tooltip */
    .mobile-nav-item::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        background: var(--bam-green);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0.25rem 0.6rem;
        border-radius: 6px;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transition: all 0.2s ease;
        margin-bottom: 6px;
    }

    .mobile-nav-item:hover::after,
    .mobile-nav-item:focus-visible::after {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    /* Ensure footer content isn't hidden behind mobile nav */
    .bam-footer {
        padding-bottom: calc(56px + 1rem);
    }

    .hero {
        padding: 2rem 0 2.5rem;
    }
    .maintenance-bar {
        top: 70px;
        padding: 0.5rem 1.25rem;
        gap: 0.75rem;
    }
    .maintenance-bar-text {
        font-size: 0.8rem;
    }
    .ci-num {
        font-size: 0.95rem;
    }
    .ci-item {
        min-width: 34px;
        padding: 0.15rem 0.35rem;
    }
    .bam-nav-links {
        display: none;
    }
    .features-grid-section,
    .download-section,
    .nixos-power-section,
    .why-section,
    .community-section,
    .code-section {
        padding: 3rem 0;
    }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 767.98px) {
    .maintenance-bar {
        padding: 0.4rem 1rem;
        gap: 0.5rem;
    }
    .ci-num {
        font-size: 0.85rem;
    }
    .ci-item {
        min-width: 28px;
        padding: 0.1rem 0.25rem;
    }
    .ci-lbl {
        font-size: 0.48rem;
    }
    .features-grid-section,
    .download-section,
    .nixos-power-section,
    .why-section,
    .community-section,
    .code-section {
        padding: 2.5rem 0;
    }
}

/* Glassmorphism enhancement (from index1.html) */
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .pillar-card,
[data-bs-theme="dark"] .edition-card,
[data-bs-theme="dark"] .nixos-card,
[data-bs-theme="dark"] .cmd-card {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 35, 0.6) 0%,
        rgba(20, 20, 25, 0.6) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .feature-card:hover,
[data-bs-theme="dark"] .pillar-card:hover,
[data-bs-theme="dark"] .edition-card:hover,
[data-bs-theme="dark"] .nixos-card:hover,
[data-bs-theme="dark"] .cmd-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 10px 40px -10px rgba(96, 165, 250, 0.1);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}
.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}
.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}
.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}
.delay-5 {
    animation-delay: 0.5s;
    opacity: 0;
}

/* Floating animation (from index1.html) */
@keyframes floating {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}
