:root {
    --bg-color: #f6f0c6; /* Gold */
    --text-color: #000000; /* Black */
    --brand-color: #000000; 
    --accent-color: #333333;
    --code-bg: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
    --muted-text: #333333;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
	font-size: 100%;
}

body {
    margin: 0;
	font-size: 10px;
    font-family: var(--font-sans);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    padding: 6px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
	background: rgba(216,205,92,0.7);
    backdrop-filter: blur(15px); /* glass effect */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 
}

main {
	padding: 10px 80px 80px;
    xbackground: radial-gradient(circle at top right, #FFE781 0%, #E3C02B 100%);
	color: #000;
}

footer {
    padding: 40px 40px;
    display: flex;
    justify-content: space-between;
	flex-direction: column-reverse;
    align-items: center;
	text-align: center;
    bottom: 0;
	background: rgba(216,205,92,0.7);
    backdrop-filter: blur(15px); /* glass effect */
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vw;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    filter: brightness(0); /* Make it black */
    filter: blur(4px); /* Slightly blurred */
    will-change: opacity;
}

/* Logo */

.logo-bx, .logo-bx-head, .icon-bx, .icon-bx-head {
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.logo-bx {
    background-image: url(/logo-baxxon.svg);
    -webkit-mask-image: url(/logo-baxxon.svg);
    mask-image: url(/logo-baxxon.svg);
}
.logo-bx-head {
    background-image: url(/logo-baxxon-head.svg);
    -webkit-mask-image: url(/logo-baxxon-head.svg);
    mask-image: url(/logo-baxxon-head.svg);
}
.icon-bx {
    background-image: url(/icon-baxxon.svg);
    -webkit-mask-image: url(/icon-baxxon.svg);
    mask-image: url(/icon-baxxon.svg);
}
.icon-bx-head {
    background-image: url(/icon-baxxon-head.svg);
    -webkit-mask-image: url(/icon-baxxon-head.svg);
    mask-image: url(/icon-baxxon-head.svg);
}
.logo-bx-text {
    font-family: 'Science Gothic', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

header .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
header .logo-bx, header .logo-bx-head, header .icon-bx, header .icon-bx-head {
    width: 2rem;
    height: 2rem;
}
header .logo-bx-text {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

main .logo-bx, main .logo-bx-head {
	width: 24rem;
	height: 24rem;
}

footer .logo-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
footer .logo-bx, footer .logo-bx-head, footer .icon-bx, footer .icon-bx-head {
    width: 5rem;
    height: 5rem;
}

/* Navigation */

nav {
    font-family: 'Courier Prime', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

nav a {
    color: #000;
    text-decoration: none;
	padding: 0 0.4em;
}

nav a:hover {
    opacity: 0.6;
}

header nav {
	font-size: 1.2rem;
}

footer nav {
	font-size: 0.8rem;
	font-weight: 500;
}
	



/* Dropdown Menu - Axios Style */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-links {
    display: none;
    position: absolute;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    z-index: 1000;
    top: 100%; /* Flush to avoid hover break */
    right: 0; /* Align to right edge to avoid cutoff */
    border: 1px solid rgba(0, 0, 0, 0.08); /* Crisp, light border */
    border-radius: 6px;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
	background: rgba(216,205,92,1);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(4px); } /* Slide UP into position */
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-links a {
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    font-size: 0.8em;
	font-weight: 600;
    color: #333; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s, color 0.2s;
	white-space: nowrap;
}

.nav-dropdown-links a:last-child {
    border-bottom: none;
}

.nav-dropdown-links a:hover {
    background-color: var(--bg-color); 
    color: #000; 
    opacity: 1;
}

.nav-dropdown:hover .nav-dropdown-links {
    display: block;
}

/* Indicators */
.nav-dropdown .nav-link::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid #333;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.6;
}

/* headings */
h1 {
	font-size: 3.5rem;
	line-height: 1.22;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.3rem;
}
h4, p {
	font-size: 1.2rem;
}

hgroup h1 {
	margin: 0;
}
hgroup h3 {
	margin-top: 0;
}
hgroup {
	padding: 0 0 1rem 0;
}

/* Hero */

.hero {
    padding: 40px 0px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
    filter: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.25)); /* Apply to container to avoid mask clipping and increase visibility */
}

.hero .logo-bx-icon {
    width: 18rem;
    height: 14rem;
    background-color: #000;
}

.hero .logo-bx-text {
    font-size: 3rem;
    color: #000;
    letter-spacing: 0.05em;
    line-height: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--brand-color);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.4;
    opacity: 0.8;
}

.hero-action {
    display: inline-block;
    padding: 18px 48px;
    background: #000;
    color: #FFD700;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin-bottom: 40px;
}

.hero-action:hover {
    background: #222;
    transform: translateY(-2px);
}

.hero .install-command {
	margin-left: 20%;
	margin-right: 20%;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.feature {
    padding: 30px;
    background: #FFE781;
	background: rgba(216,205,92,0.4);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.3s, background 0.3s;
}

.feature:hover {
    border-color: #000;
	background: rgba(216,205,92,0.8);
}

.feature h3 {
    color: var(--brand-color);
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 15px;
}

.feature p {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}


/* Code Blocks */
pre {
    background: #1b1b1d; /* Dark theme for code */
	background: rgba(0,0,0,0.1);
    padding: 1.8rem 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    margin: 1.5rem 0;
    position: relative;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Language Indicator (Top Right) */
pre[data-language]::before {
    content: attr(data-language);
    position: absolute;
    bottom: 0;
    right: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-bottom: 0.4rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Copy Button */
.copy-button-container {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

pre:hover .copy-button-container {
    opacity: 1;
    pointer-events: auto;
}

.copy-button {
    width: 34px;
    height: 34px;
    background-color: #333;
    background-image: url(/icon-copy.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    filter: invert(1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.copy-button:hover {
    background-color: #444;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-message {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}

.copy-message.show {
    opacity: 1;
}

.copy-button.copied {
    background-image: none;
}

.copy-button.copied::after {
    content: 'copied';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #4caf50;
    font-size: 1.1rem;
    font-weight: bold;
}


/* FOOTER content */

footer .copyright {
	font-size: 0.8rem;
}

footer .latest-release {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    color: #000;
    opacity: 1;
    font-weight: 700;
}

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

@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 760px) {
	html {
		font-size: 12px;
	}
	header, main, footer {
		padding: 10px;
	}
    .pillars {
        grid-template-columns: 1fr;
    }

}

