html, body {
    background-color: #0f1210 !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-position: center;
    background: linear-gradient(0deg, #2d3c32 -250%, #000000 80%);
    background-attachment: fixed;
    scroll-padding-top: 4rem;
    scroll-behavior: smooth;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}

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

h1, h2, h3, h4, h5, h6, p, ul, li {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    color: #CCCCCC;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(1.8em, 4.5vw, 2.7em);
    color: #CCCCCC;
    text-align: left;
    position: relative;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

p {
    font-size: clamp(1.2em, 3vw, 1.2em);
    color: #CCCCCC;
    line-height: 1.4em;
    letter-spacing: 0.01em;
}

ul {
    text-align: center;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
}

li {
    font-size: clamp(1.2em, 3vw, 1.2em);
    font-family: 'Work Sans', sans-serif;
    color: #CCCCCC;
    line-height: 1.3em;
    list-style-type: none;
    text-align: left;
}

hr {
    width: 50%;
    margin: 20px 0;
    border: 1px solid #CCCCCC;
    opacity: 0.5;
}

a:link {
    color: #4DD85E;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:visited {
    color: #4DD85E;
    text-decoration: none;
}

a:hover {
    color: #94F3A6;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:active {
    color: #EB21EE;
}

/* Nav */

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(200, 220, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    pointer-events: none;
    z-index: 1001;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.nav-fade.hidden {
    opacity: 0;
}

.nav-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(15, 18, 16, 0.95), transparent);
    justify-content: flex-start;
    padding-left: 0.5rem;
}

.nav-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(15, 18, 16, 0.95), transparent);
    justify-content: flex-end;
    padding-right: 0.5rem;
}

.nav-fade::after {
    font-size: 0.75em;
    color: rgba(63, 186, 80, 0.5);
}

.nav-fade-left::after {
    content: "\2039";
}

.nav-fade-right::after {
    content: "\203A";
}

@media (min-width: 768px) {
    .nav-fade {
        display: none;
    }
}

.nav-top {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (min-width: 768px) {
    .nav-top {
        max-width: 800px;
        padding: 0 20px;
        overflow-x: visible;
        justify-content: center;
    }
}

.nav-top::-webkit-scrollbar {
    display: none;
}

.nav-top a {
    color: #CCCCCC;
    text-align: center;
    padding: 0.5em 1em;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3em;
    font-size: clamp(1em, 3vw, 1.2em);
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.nav-top a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #3FBA50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-top a:hover {
    text-decoration: none;
}

.nav-top a:hover::after {
    width: 80%;
}

.nav-top a.active::after {
    width: 80%;
    background-color: #4DD85E;
}

/* Products dropdown */

.nav-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nav-dropdown-trigger {
    color: #CCCCCC;
    text-align: center;
    padding: 0.5em 1em;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3em;
    font-size: clamp(1em, 3vw, 1.2em);
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: inline-block;
    background: none;
    border: none;
}

.nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #3FBA50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    width: 80%;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.25rem;
    z-index: 1002;
}

.nav-dropdown-menu-inner {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(200, 220, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 10rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5em 1.2em;
    color: #CCCCCC;
    text-decoration: none;
    font-size: clamp(0.9em, 2.5vw, 1.05em);
    font-family: 'Work Sans', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    color: #94F3A6;
    background: rgba(63, 186, 80, 0.08);
    text-decoration: none;
}

/* Landing page */

.mq-page {
    text-align: center;
    padding-top: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.mq-page h1 {
    text-align: center;
}

.mq-subtitle {
    font-size: clamp(1.1em, 3vw, 1.35em);
    letter-spacing: 0.3em;
    background: linear-gradient(90deg, #3FBA50, #3FBA50, #DDFFE3, #3FBA50, #3FBA50, #3FBA50, #DDFFE3, #3FBA50, #3FBA50);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: subtitleGlow 2s linear infinite;
    margin: -0.7em auto 0.75em;
    max-width: 600px;
    position: relative;
}

.mq-subtitle::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, transparent, #B8FFD0, transparent, transparent, transparent, #B8FFD0, transparent, transparent);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: subtitleGlowReverse 3.4s linear infinite;
}

@keyframes subtitleGlow {
    0% { background-position: 200% 0; }
    100% { background-position: 0% 0; }
}

@keyframes subtitleGlowReverse {
    0% { background-position: 0% 0; }
    100% { background-position: 250% 0; }
}

@media (max-width: 480px) {
    .mq-subtitle {
        letter-spacing: 0.15em;
    }
}

.mq-tagline {
    font-size: clamp(1.1em, 3vw, 1.25em);
    font-weight: 400;
    color: #CCCCCC;
    max-width: 600px;
    margin: 0 auto 0.5em;
}

/* Products section */

.mq-products {
    max-width: 42em;
    margin: 3rem auto;
}

.mq-products h2 {
    text-align: center;
    font-size: clamp(1.5em, 4vw, 2em);
    color: #CCCCCC;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 28em;
    margin: 0 auto;
}

.product-card {
    text-align: left;
    padding: 1.5rem 1.5rem;
    border: 1px solid rgba(63, 186, 80, 0.4);
    border-radius: 8px;
    background: rgba(63, 186, 80, 0.04);
    transition: border-color 0.3s ease;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    border-color: rgba(63, 186, 80, 0.6);
    text-decoration: none;
}

.product-card-name {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.3em;
    color: #CCCCCC;
    margin-bottom: 0.4rem;
}

.product-card-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95em;
    color: #999;
    line-height: 1.5;
}

/* About section */

.mq-about {
    max-width: 38em;
    margin: 3rem auto;
    text-align: center;
}

.mq-about h2 {
    font-size: clamp(1.5em, 4vw, 2em);
    color: #CCCCCC;
    margin-bottom: 1.5rem;
}

.mq-about p {
    font-size: 1em;
    color: #999;
    line-height: 1.7;
}

.mq-about a {
    color: #4DD85E;
}

.section-more {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #4DD85E;
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}

.section-more::after {
    content: " →";
}

.section-more:hover {
    color: #94F3A6;
}

/* Footer */

.mq-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0 3rem;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mq-footer a {
    color: #888;
    text-decoration: none;
}

.mq-footer a:hover {
    color: #94F3A6;
}

.footer-sep {
    margin: 0 0.5em;
    color: #555;
}
