:root {
    --underhost-primary: #0091d6;
    --underhost-primary-dark: #0077ff;
    --underhost-secondary: #00d4ff;
    --underhost-dark: #0a1220;
    --underhost-light: #f8f9fa;
    --underhost-gray: #6c757d;
    --underhost-border: #e0e0e0;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: var(--underhost-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* Topbar */
.underhost-topbar {
    background: linear-gradient(
        145deg,
        #b0c4de,
        #0091d6,
        #434cc5,
        #87a8c4,
        #b0c4de
    );
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    height: 6px;
    width: 100%;
}

/* Navbar */
.underhost-nav {
    background: linear-gradient(135deg,
        #0a1220 0%,
        #0f1c2f 35%,
        #14263f 65%,
        #0e1a2d 100%
    );
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.6rem 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    margin-left: 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-link:hover {
    color: var(--underhost-secondary) !important;
}

.nav-link.active {
    color: var(--underhost-secondary) !important;
    font-weight: 600;
}

/* Navbar toggler */
.navbar-toggler {
    border-color: rgba(0, 212, 255, 0.4);
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* Header */
.underhost-header {
    background: linear-gradient(135deg,
        #071226 0%,
        #0a1a30 40%,
        #0f2040 70%,
        #071226 100%
    );
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    margin-bottom: 1.5rem;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.underhost-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 145, 214, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.underhost-header h1 {
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.underhost-header h1 .header-accent {
    color: var(--underhost-secondary);
}

.underhost-header .lead {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--underhost-secondary);
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Software List */
.software-list {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--underhost-border);
}

.software-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--underhost-border);
    transition: background-color 0.2s ease;
}

.software-item:last-child {
    border-bottom: none;
}

.software-item:hover {
    background-color: rgba(0, 145, 214, 0.04);
}

.software-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--underhost-dark);
}

.software-description {
    color: var(--underhost-gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Buttons */
.underhost-btn-primary {
    background-color: var(--underhost-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.underhost-btn-primary:hover {
    background-color: #007bbf;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 145, 214, 0.35);
}

.underhost-btn-outline {
    border: 1px solid var(--underhost-primary);
    color: var(--underhost-primary);
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.underhost-btn-outline:hover {
    background-color: rgba(0, 145, 214, 0.08);
    border-color: var(--underhost-primary-dark);
    color: var(--underhost-primary-dark);
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--underhost-border);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 0.35rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: rgba(0, 145, 214, 0.08);
    color: var(--underhost-primary);
}

/* Footer */
.underhost-footer {
    background: linear-gradient(-45deg, #0d1b2a, #111827, #1c1c1c, #2a2a2a, #0d1b2a);
    background-size: 200% 200%;
    animation: gradientBMG 12s ease infinite;
    color: white;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 1.25rem 0;
}

@keyframes gradientBMG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-logo-link:hover {
    opacity: 0.85;
}

.brand-name-small {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .underhost-header {
        padding: 2rem 0;
    }

    .underhost-header h1 {
        font-size: 1.5rem;
    }

    .software-item {
        padding: 1rem;
    }

    .software-title {
        font-size: 1rem;
    }
}
