/* VPSRox — shared base styles (nav, footer, tokens, buttons) */

:root {
        /* Fathom-inspired color tokens */
        --bg-main: #F7F6F2;
        --bg-card: #0F2A1D;
        --bg-card-hover: #153828;
        --accent-green: #2AD387;
        --accent-mint: #70E1B0; /* Gradient accent */
        --text-main: #121814;
            --text-main: #121814; /* Near-black ink green for light surfaces */
            --text-secondary: #5C6B61;
            --text-muted: #8F9E94;
            --text-light: #FFFFFF; /* Text on dark card surfaces */
            --text-light-secondary: #99B2A4;
            
            /* Accent colors */
            --accent-green: #2AD387; /* Fathom mint green */
            --accent-yellow: #E7E36C; /* Chart secondary accent */
            
            /* Borders and UI chrome */
            --border-dark: rgba(255, 255, 255, 0.1);
            --border-light: rgba(0, 0, 0, 0.08);
            --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --container-width: 1200px;
            --bg-white: #FFFFFF;

            /* Background ambience tokens */
            --bg-glass: rgba(255, 255, 255, 0.46);
            --bg-glass-strong: rgba(255, 255, 255, 0.62);
            --bg-glass-border: rgba(255, 255, 255, 0.72);
            --bg-glass-tint: rgba(42, 211, 135, 0.10);
        }

    /* Textures + soft ambient wash — textures stay on top */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image:
            radial-gradient(circle at 1px 1px, rgba(15, 42, 29, 0.13) 1px, transparent 0),
            repeating-linear-gradient(
                125deg,
                transparent 0,
                transparent 44px,
                rgba(42, 211, 135, 0.09) 44px,
                rgba(42, 211, 135, 0.09) 45px
            ),
            repeating-linear-gradient(
                -125deg,
                transparent 0,
                transparent 72px,
                rgba(42, 211, 135, 0.065) 72px,
                rgba(42, 211, 135, 0.065) 73px
            ),
            radial-gradient(ellipse 70% 52% at 50% 108%, rgba(42, 211, 135, 0.16) 0%, transparent 68%),
            radial-gradient(ellipse 58% 48% at 100% 52%, rgba(112, 225, 176, 0.12) 0%, transparent 62%);
        background-size: 22px 22px, auto, auto, auto, auto;
    }

    html {
        background-color: var(--bg-main);
        background-image:
            linear-gradient(180deg,
                rgba(42, 211, 135, 0.26) 0%,
                rgba(112, 225, 176, 0.12) 6%,
                rgba(247, 246, 242, 0) 12%,
                rgba(42, 211, 135, 0.14) 22%,
                rgba(247, 246, 242, 0) 34%,
                rgba(231, 227, 108, 0.07) 48%,
                rgba(247, 246, 242, 0) 58%,
                rgba(112, 225, 176, 0.11) 70%,
                rgba(247, 246, 242, 0) 82%,
                rgba(42, 211, 135, 0.13) 92%,
                rgba(42, 211, 135, 0.11) 100%
            ),
            radial-gradient(ellipse 140% 100% at 50% -8%, rgba(42, 211, 135, 0.30) 0%, rgba(112, 225, 176, 0.12) 36%, transparent 85%),
            radial-gradient(ellipse 88% 76% at 92% 88%, rgba(112, 225, 176, 0.14) 0%, rgba(42, 211, 135, 0.06) 42%, transparent 74%);
        background-attachment: scroll, fixed, fixed;
        min-height: 100%;
    }

    /* Hero headline gradient text */
    .hero h1 {
        background: linear-gradient(135deg, var(--text-main) 0%, #1a3a2a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 64px; font-weight: 800; letter-spacing: -1.5px;
        line-height: 1.15; margin-bottom: 24px;
    }

        body {
            font-family: var(--font-family);
            background: transparent;
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
            -webkit-font-smoothing: antialiased;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; margin: 0; padding: 0; }
        
        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 24px;
            position: relative;
            z-index: 1;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 24px;
            border-radius: 9999px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 15px;
            border: 1px solid transparent;
        }

        .btn-primary {
            background: #111827; /* Dark primary button (Fathom-style) */
            color: white;
        }

        .btn-primary:hover {
            background: #374151;
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: transparent;
            border-color: #D1D5DB;
            color: var(--text-main);
        }

        .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.03);
            border-color: #9CA3AF;
        }
        
        .btn-green {
            background: var(--bg-card);
            color: white;
        }
        .btn-green:hover { background: var(--bg-card-hover); }

        .navbar {
            padding: 18px 0;
            background: rgba(247, 246, 242, 0.82);
            border-bottom: 1px solid var(--border-light);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            position: sticky;
            top: 0;
            z-index: 100;
            overflow: visible;
        }

        .navbar.nav-menu-open {
            border-bottom-color: transparent;
        }

        .navbar .container {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 24px;
        }

        .logo {
            font-weight: 800;
            font-size: 24px;
            letter-spacing: -0.5px;
            color: var(--text-main);
            justify-self: start;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 6px;
            justify-self: center;
            padding: 5px;
            background: rgba(255, 255, 255, 0.58);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 9999px;
            box-shadow: 0 1px 2px rgba(15, 42, 29, 0.04);
        }

        .nav-links li { display: flex; }

        .nav-links .nav-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 11px 22px;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 0.01em;
            color: var(--text-secondary);
            border-radius: 9999px;
            white-space: nowrap;
            transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
        }

        .nav-links .nav-link:hover {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.82);
        }

        .nav-links .nav-link:active {
            transform: scale(0.98);
        }
        .nav-actions { display: flex; align-items: center; gap: 16px; justify-self: end; }
        .nav-auth-buttons { display: flex; align-items: center; gap: 16px; }

        .nav-user-menu {
            display: flex;
            align-items: center;
        }

        .nav-console-btn {
            gap: 8px;
            padding: 10px 18px 10px 10px;
            white-space: nowrap;
        }

        .nav-user-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--accent-green);
            color: var(--bg-card);
            font-size: 13px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        /* Language Dropdown */
        .lang-selector { position: relative; cursor: pointer; font-size: 14px; color: var(--text-main); font-weight: 500; z-index: 1; }
        .lang-selector #current-lang {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .lang-dropdown {
            display: none; position: absolute; top: 150%; right: 0;
            background: var(--bg-white); border: 1px solid var(--border-light);
            border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            padding: 8px 0; min-width: 160px; z-index: 10;
        }
        .lang-dropdown.active { display: block; animation: fadeIn 0.2s ease; }
        .lang-dropdown li {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            color: var(--text-main);
            transition: background 0.2s;
        }
        .lang-flag {
            font-size: 16px;
            line-height: 1;
            flex-shrink: 0;
        }
        .lang-dropdown li:hover { background-color: rgba(0,0,0,0.03); color: var(--accent-green); }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

        .hamburger {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            width: 40px;
            height: 40px;
            padding: 0;
            background: rgba(255, 255, 255, 0.58);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 12px;
            cursor: pointer;
            flex-shrink: 0;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .hamburger:hover {
            background: rgba(255, 255, 255, 0.92);
            border-color: rgba(0, 0, 0, 0.1);
        }

        .hamburger span {
            display: block;
            width: 20px;
            height: 2px;
            background-color: var(--text-main);
            border-radius: 1px;
            transition: transform 0.25s ease, opacity 0.2s ease;
        }

        .hamburger[aria-expanded="true"] span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .hamburger[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
        }

        .hamburger[aria-expanded="true"] span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .mobile-menu {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: rgba(247, 246, 242, 0.98);
            border-bottom: 1px solid var(--border-light);
            box-shadow: 0 16px 40px rgba(15, 42, 29, 0.1);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            z-index: 1;
        }

        .mobile-nav-link {
            display: block;
            padding: 14px 24px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-secondary);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            transition: color 0.2s ease, background 0.2s ease;
        }

        .mobile-nav-link:hover,
        .mobile-nav-link.nav-active {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.72);
        }

        .mobile-nav-link.nav-active {
            color: var(--bg-card);
            background: rgba(42, 211, 135, 0.12);
        }

        .mobile-menu-auth,
        .mobile-menu-user {
            padding: 16px 24px 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            min-width: 0;
        }

        .mobile-menu-auth .btn,
        .mobile-menu-user .btn {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            justify-content: center;
        }

        .mobile-console-btn {
            gap: 10px;
            padding: 12px 16px;
            overflow: hidden;
            min-width: 0;
        }

        .mobile-console-btn .nav-user-avatar {
            flex-shrink: 0;
        }

        .mobile-console-btn #mobile-user-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

.nav-links .nav-link.nav-active {
            color: var(--text-light);
            background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
            box-shadow:
                0 4px 16px rgba(15, 42, 29, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .nav-links .nav-link.nav-active:hover {
            color: var(--text-light);
            background: linear-gradient(145deg, var(--bg-card-hover) 0%, #1a4532 100%);
        }

@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-auth,
    .mobile-menu-user {
        padding: 16px 16px 20px;
    }

    .mobile-nav-link {
        padding: 14px 16px;
    }

    .nav-links,
    .nav-auth-buttons,
    .nav-user-menu,
    .nav-actions .btn-secondary {
        display: none !important;
    }

    .nav-actions {
        position: relative;
        z-index: 2;
        gap: 8px;
    }

    .navbar .container {
        z-index: 2;
    }

    .lang-selector {
        position: relative;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        height: 40px;
        padding: 0 12px;
        font-size: 0;
        line-height: 0;
        background: rgba(255, 255, 255, 0.58);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .lang-selector #current-lang {
        font-size: 13px;
        line-height: 1.2;
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lang-selector .lang-dropdown {
        font-size: 14px;
        line-height: normal;
        top: calc(100% + 8px);
        right: 0;
        z-index: 4;
        min-width: 176px;
    }

    .lang-dropdown li {
        padding: 10px 16px;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 2;
    }
}

/* Site footer — dark green theme */
.site-footer {
    background: linear-gradient(180deg, #081912 0%, var(--bg-card) 48%, #071410 100%);
    color: var(--text-light-secondary);
    padding: 72px 0 36px;
    border-top: 1px solid rgba(42, 211, 135, 0.1);
    position: relative;
    z-index: 20;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 88%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 211, 135, 0.42), transparent);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, 1fr);
    gap: 48px 36px;
    margin-bottom: 52px;
    text-align: left;
}

.site-footer__brand-name {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-light);
    margin-bottom: 18px;
    transition: color 0.2s ease;
}

.site-footer__brand-name:hover {
    color: var(--accent-mint);
}

.site-footer__brand-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-light-secondary);
    max-width: 360px;
}

.site-footer__heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 18px;
    letter-spacing: 0.03em;
}

.site-footer__links,
.site-footer__nodes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.site-footer__links li,
.site-footer__nodes li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer__links li::before,
.site-footer__nodes li::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(42, 211, 135, 0.42);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__links li:hover::before,
.site-footer__nodes li:hover::before {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(42, 211, 135, 0.45);
}

.site-footer__link {
    font-size: 14px;
    color: var(--text-light-secondary);
    transition: color 0.2s ease;
    line-height: 1.5;
}

.site-footer__link:hover {
    color: var(--accent-mint);
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__copy {
    font-size: 13px;
    color: rgba(153, 178, 164, 0.82);
    line-height: 1.65;
    max-width: 520px;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.site-footer__legal a {
    font-size: 13px;
    color: rgba(153, 178, 164, 0.82);
    transition: color 0.2s ease;
}

.site-footer__legal a:hover {
    color: var(--accent-green);
}

.site-footer__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(42, 211, 135, 0.38);
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 24px;
    }

    .site-footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        margin-bottom: 28px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        order: 1;
    }

    .site-footer__col:nth-child(2) { order: 2; }
    .site-footer__col:nth-child(4) { order: 3; }
    .site-footer__col:nth-child(3) {
        grid-column: 1 / -1;
        order: 4;
    }

    .site-footer__brand-name {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .site-footer__brand-desc {
        font-size: 13px;
        line-height: 1.6;
        max-width: none;
    }

    .site-footer__heading {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .site-footer__links,
    .site-footer__nodes {
        gap: 8px;
    }

    .site-footer__nodes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 16px;
    }

    .site-footer__link {
        font-size: 13px;
        line-height: 1.45;
    }

    .site-footer__meta {
        padding-top: 20px;
        gap: 14px;
    }

    .site-footer__copy {
        font-size: 12px;
        line-height: 1.55;
    }

    .site-footer__legal a {
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 32px 0 20px;
    }

    .site-footer__grid {
        gap: 20px 16px;
        margin-bottom: 24px;
    }

    .site-footer__nodes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .site-footer__links li::before,
    .site-footer__nodes li::before {
        width: 4px;
        height: 4px;
    }

    .site-footer__links li,
    .site-footer__nodes li {
        gap: 8px;
    }

    .site-footer__meta {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 16px;
    }
}
.hidden { display: none !important; }

body.nav-mobile-open {
    overflow: hidden;
}
#header-placeholder { display: block; }

/* Green section labels — dark green badge for accent text contrast */
.pr-section-eyebrow,
.or-section-eyebrow,
.hp-topic-tag,
.bl-eyebrow {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 6px 14px;
    border-radius: 9999px;
    background: linear-gradient(
        145deg,
        rgba(15, 42, 29, 0.94) 0%,
        rgba(21, 56, 40, 0.88) 50%,
        rgba(15, 42, 29, 0.96) 100%
    );
    border: 1px solid rgba(42, 211, 135, 0.35);
    box-shadow:
        0 2px 14px rgba(15, 42, 29, 0.16),
        inset 0 1px 0 rgba(42, 211, 135, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Full-bleed layout blocks — reveal scroll gradient (panels/cards keep solid surfaces) */
main > section:not(.bottom-cta):not(.priv-banner):not(.priv-closing):not(.or-spec-bar):not(.pr-nodes-section),
.nodes-banner,
.hp-docs-wrap,
.tos-docs-wrap,
.post-masthead,
.post-body-section,
.priv-band,
.priv-band--alt {
    background: transparent !important;
}
