/***** ROOT *****/
:root {
    --hs-primary: 189, 75%;
    --hs-secondary: 173, 75%;
    --hs-tertiary: 213, 75%;
    --hs-neutral: 0, 0%;
}
[data-theme="light"] {
    /* Background lightness levels */
    --l-bg-1: 85%;
    --l-bg-2: 94%;
    --l-bg-3: 99%;
    --l-fg-1: 10%;
    --l-fg-2: 30%;
    --l-fg-3: 40%;
    /* Shadow opacity (kept as-is since they use alpha) */
    --shadow-sm: 0 1px 3px hsla(0, 0%, 0%, 0.12);
    --shadow-md: 0 4px 6px hsla(0, 0%, 0%, 0.1);
    --shadow-lg: 0 10px 15px hsla(0, 0%, 0%, 0.1);
    --transition: all 0.2s ease;
}
[data-theme="dark"] {
    /* Background lightness levels */
    --l-bg-1: 25%;
    --l-bg-2: 15%;
    --l-bg-3: 10%;
    --l-fg-1: 90%;
    --l-fg-2: 75%;
    --l-fg-3: 70%;
    /* Shadow opacity */
    --shadow-sm: 0 1px 3px hsla(0, 0%, 0%, 0.3);
    --shadow-md: 0 4px 6px hsla(0, 0%, 0%, 0.3);
    --shadow-lg: 0 10px 15px hsla(0, 0%, 0%, 0.4);
    --transition: all 0.3s ease;
}
@media (prefers-reduced-motion: no-preference) {
    :root {
        --transition: none;
    }
}
:root {
    --container-padding: 1.5rem;
    --font-mono: ui-monospace, SFMono-Regular, "Courier New", monospace;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-weight-bold: 700;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-tight: 1.25;
    --max-width: 1200px;
    --radius-lg: 0.75rem;
    --radius-md: 0.5rem;
    --radius-sm: 0.375rem;
}
/***** GLOBAL ELEMENTS *****/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    text-align: justify;
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: hsl(var(--hs-neutral), var(--l-fg-1));
    background-color: hsl(var(--hs-neutral), var(--l-bg-3));
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header, main, footer {
    width: 100%;
}
header {
    position: sticky;
    top: 0;
    background-color: hsl(var(--hs-neutral), var(--l-bg-2));
    border-bottom: 1px solid hsl(var(--hs-neutral), var(--l-fg-3));
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.nav-menu {
    display: flex;
    align-items: stretch;
}
.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: stretch;
    margin: 0;
}
.nav-menu li {
    display: flex;
    align-items: stretch;
}
.nav-menu button {
    background: none;
    border: none;
    cursor: pointer;
}
.nav-menu a,
.nav-menu button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: hsl(var(--hs-neutral), var(--l-fg-1));
    font-weight: var(--font-weight-medium);
    padding: 0 1.0rem;
    transition: var(--transition);
}
.nav-menu a:hover,
.nav-menu button:hover,
.nav-menu a:focus {
    text-decoration: none;
    color: hsl(var(--hs-primary), var(--l-fg-1));
    background-color: hsl(var(--hs-neutral), var(--l-fg-2), 0.25);
}
main {
    flex: 1;
}
footer {
    background-color: hsl(var(--hs-neutral), var(--l-bg-2));
    border-top: 1px solid hsl(var(--hs-neutral), var(--l-fg-3));
    padding: 2rem var(--container-padding);
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--hs-neutral), var(--l-fg-3));
}
footer p:last-child {
    margin-top: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: hsl(var(--hs-neutral), var(--l-fg-1));
}
a {
    color: hsl(var(--hs-primary), var(--l-fg-1));
    text-decoration: none;
    transition: var(--transition);
}
a:hover,
a:focus {
    text-decoration: underline;
}
/***** LAYOUT & CONTAINER *****/
.header-container,
.section>* {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.logo img {
    display: block;
    max-height: 64px;
    width: auto;
    padding: 8px;
}
/***** SECTIONS *****/
.section {
    padding: 4rem 0;
}
.section-important {
    background-color: hsl(var(--hs-primary), var(--l-bg-2));
    color: hsl(var(--hs-primary), var(--l-fg-1));
}
.section-important a {
    color: hsl(var(--hs-primary), var(--l-fg-1));
}
.section-important a:hover {
    color: white;
}
.section-active {
    background-color: hsl(var(--hs-primary), var(--l-bg-1));
}
.section-passive {
    background-color: hsl(var(--hs-neutral), var(--l-bg-3));
}
/***** TYPOGRAPHY *****/
.text-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 1rem;
}
.text-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    margin-bottom: 1.5rem;
    color: hsl(var(--hs-neutral), var(--l-fg-2));
}
.text-further {
    margin-top: 2rem;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: inherit;
}
h1.text-title {
    font-size: var(--font-size-4xl);
}
h2.text-title {
    font-size: var(--font-size-3xl);
}
h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
    color: inherit;
}
h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    color: inherit;
}
p {
    margin-bottom: 1rem;
    color: inherit;
}
/***** GRID SYSTEM *****/
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-card {
    color: hsl(var(--hs-secondary), var(--l-fg-1));
    background-color: hsl(var(--hs-primary), var(--l-bg-3));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid hsl(var(--hs-neutral), var(--l-fg-3));
}
.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
/***** BUTTONS *****/
.button-outline,
.button-solid {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    transition: var(--transition);
    font-size: var(--font-size-base);
    text-decoration: none;
}
.button-solid {
    background-color: hsl(var(--hs-primary), var(--l-bg-3));
    color: hsl(var(--hs-neutral), var(--l-fg-1));
    border: none;
    border-radius: var(--radius-md);
}
.button-solid:hover,
.button-solid:focus {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.button-outline {
    background-color: transparent;
    color: hsl(var(--hs-primary), var(--l-fg-1));
    border: 2px solid hsl(var(--hs-primary), var(--l-fg-1));
    border-radius: var(--radius-sm);
}
.button-outline:hover,
.button-outline:focus {
    background-color: hsl(var(--hs-primary), var(--l-bg-1));
    color: white;
}
.button-container {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/***** SECTION-SPECIFIC: #problem *****/
.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.stat-card {
    text-align: justify;
}
.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: hsl(var(--hs-primary), var(--l-fg-1));
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--hs-neutral), var(--l-fg-3));
    line-height: var(--line-height-tight);
}
/***** SECTION-SPECIFIC: #products *****/
.product-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}
.product-features {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}
.product-features>li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: hsl(var(--hs-neutral), var(--l-fg-1));
}
.product-features>li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: hsl(var(--hs-primary), var(--l-fg-1));
    font-weight: var(--font-weight-bold);
}
.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
/***** SECTION-SPECIFIC: #team *****/
.team-member {
    text-align: center;
}
.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid hsl(var(--hs-neutral), var(--l-fg-3));
}
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.role {
    font-size: 0.875rem;
    color: hsl(var(--hs-neutral), var(--l-fg-3));
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.75rem;
}
/***** SECTION-SPECIFIC: #sources *****/
.source-links {
    padding-left: 0;
    list-style: none;
}
.source-links>li {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}
.source-links a {
    color: hsl(var(--hs-primary), var(--l-fg-1));
    text-decoration: underline;
    text-underline-offset: 2px;
}
.source-links a:hover {
    color: hsl(var(--hs-primary), var(--l-fg-2));
}
/***** UTILITIES *****/
.mt-2 {
    margin-top: 2rem;
}
/***** THEME *****/
[data-theme="light"] #theme-icon .sun-beams {
    opacity: 0;
    transition: var(--transition);
}
[data-theme="light"] #theme-icon>.moon>circle {
    transform: translateX(-7px);
    transition: var(--transition);
}
/***** MEDIA QUERIES *****/
@media (max-width: 920px) {
    /* Show hamburger */
    .nav-toggle {
        align-self: center;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 6px;
        height: 32px;
        justify-content: center;
        width: 32px;
        z-index: 1100;
    }
    .header-container {
        padding: 0.5rem var(--container-padding);
    }
    .section {
        padding: 2.5rem 0;
    }
    .text-title {
        font-size: var(--font-size-2xl);
    }
    h1.text-title {
        font-size: var(--font-size-3xl);
    }
    .grid {
        gap: 1rem;
    }
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    /* Hamburger button */
    .nav-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: hsl(var(--hs-neutral), var(--l-fg-1));
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .nav-toggle span.open {
        opacity: 0;
        transform: rotate(45deg) translate(7px, 6px);
        transform: rotate(-45deg) translate(7px, -6px);
    }
    /* Hidden .nav-menu (default mobile) */
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: hsl(var(--hs-neutral), var(--l-bg-2));
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    /* Shown .nav-menu when active */
    .nav-menu.active {
        flex-direction: column;
        max-height: 70vh;
        overflow-y: auto;
        transition: max-height 0.4s ease;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-menu li {
        display: flex;
        align-items: center;
        justify-content: stretch;
        flex-direction: row;
    }
    .nav-menu a,
    .nav-menu button {
        flex-direction: column;
        flex-grow: 1;
        text-align: center;
        padding: 0.75rem 0;
    }
    .logo img {
        max-height: 48px;
    }
}
@media (min-width: 921px) {
    .nav-toggle {
        display: none;
    }
}
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }
    .text-title {
        font-size: var(--font-size-xl);
    }
    h1.text-title {
        font-size: var(--font-size-2xl);
    }
    .product-icon {
        font-size: 2.5rem;
    }
    .logo img {
        max-height: 40px;
    }
}