/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
:root {
    --font-main: "Montserrat", sans-serif;
    --brand-1: #005a9c;
    --brand-2: #3355c6;
    --brand-3: #654ff0;
    --brand-4: #8472f3;
    --brand-5: #9b8df5;
}
*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
}
body {
    --bg: #020713;
    --surface: rgba(9, 19, 44, 0.74);
    --surface-border: rgba(132, 114, 243, 0.36);
    --text: #edf3ff;
    --text-muted: #9db0d7;
    --accent: var(--brand-4);
    --chip: rgba(22, 40, 84, 0.86);
    font-family: var(--font-main);
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(101, 79, 240, 0.34), transparent 34%),
        radial-gradient(circle at 90% 12%, rgba(0, 90, 156, 0.28), transparent 38%),
        linear-gradient(165deg, #020713 0%, #050d20 62%, #030913 100%);
    transition: background 320ms ease, color 240ms ease;
}
body[data-theme="light"] {
    --bg: #e9f1ff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-border: rgba(51, 85, 198, 0.34);
    --text: #081c46;
    --text-muted: #4d6495;
    --accent: var(--brand-2);
    --chip: rgba(222, 233, 255, 0.95);
    background:
        radial-gradient(circle at 6% 0%, rgba(101, 79, 240, 0.24), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(0, 90, 156, 0.2), transparent 38%),
        linear-gradient(165deg, #eef4ff 0%, #e8f0ff 56%, #e2ebff 100%);
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: min(1080px, calc(100% - 2.5rem));
    margin-inline: auto;
}
.ambient {
    position: fixed;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(92px);
    pointer-events: none;
    z-index: -1;
}
.ambient-a {
    top: -190px;
    right: -130px;
    background: rgba(101, 79, 240, 0.24);
}
.ambient-b {
    bottom: -230px;
    left: -180px;
    background: rgba(0, 90, 156, 0.2);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid color-mix(in srgb, var(--surface-border) 70%, transparent);
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 76%, transparent);
}
.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand-logo {
    width: clamp(50px, 7vw, 70px);
    opacity: 0.9;
    transition: opacity 220ms ease, transform 220ms ease;
}
.brand-logo:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.nav-link {
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 180ms ease, background 180ms ease;
}
.nav-link:hover {
    color: var(--text);
    background: var(--chip);
}
.icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease;
}
.icon-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 74%, var(--surface-border));
}
.hero {
    padding: clamp(2.7rem, 7vw, 4rem) 0 1rem;
    text-align: center;
}
.eyebrow {
    margin: 0 0 0.8rem;
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.78rem;
    border-radius: 999px;
    background: var(--chip);
    color: var(--brand-5);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}
.hero h1 {
    margin: 0 auto;
    max-width: 24ch;
    font-size: clamp(1.8rem, 3.8vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.hero-copy {
    margin: 0.9rem auto 0;
    max-width: 64ch;
    color: var(--text-muted);
    font-size: clamp(0.96rem, 1.5vw, 1.03rem);
}
.license-note {
    margin: 0.7rem 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}
.license-note a {
    color: var(--accent);
}
.grid {
    padding: 1.1rem 0 2.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}
.card {
    display: block;
    border: 1px solid color-mix(in srgb, var(--surface-border) 74%, transparent);
    border-radius: 16px;
    background: linear-gradient(
        170deg,
        color-mix(in srgb, var(--surface) 92%, transparent),
        color-mix(in srgb, #071127 30%, transparent)
    );
    padding: 0.95rem;
    color: var(--text);
    will-change: transform, border-color, box-shadow;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 76%, var(--surface-border));
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.3);
}
.card .material-icons-outlined {
    color: var(--accent);
}
.card h2 {
    margin: 0.54rem 0 0.3rem;
    font-size: 1rem;
}
.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    margin-top: 0.7rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.site-footer {
    padding: 2rem 0 2.8rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.88rem;
}
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms ease, transform 520ms ease;
    transition-delay: var(--delay, 0ms);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.card.reveal {
    transition: opacity 520ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.card.reveal.in-view:hover {
    transform: translateY(-4px);
}
@media (max-width: 930px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .navbar {
        min-height: 50px;
    }
    .brand-logo {
        width: 50px;
    }
    .nav-actions {
        gap: 0.3rem;
    }
    .nav-link {
        padding: 0.42rem 0.58rem;
        font-size: 0.81rem;
    }
}
@media (max-width: 620px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
