:root {
    --site-nav-height: 99px;
    --site-primary-navy: #0a1f44;
    --site-deep-navy: #071634;
    --site-accent-blue: #7ecbff;
    --site-accent-blue-hover: #a8d8ff;
    --site-focus-color: var(--site-accent-blue);
}

html {
    max-width: 100%;
}

body {
    min-width: 0;
    padding-top: var(--site-nav-height);
}

img,
svg,
video {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-cta {
    display: inline-flex;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 26px;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-cta--primary {
    border-color: var(--site-accent-blue);
    background: var(--site-accent-blue);
    color: var(--site-deep-navy);
}

.site-cta--primary:visited {
    color: var(--site-deep-navy);
}

.site-cta--primary:hover,
.site-cta--primary:active {
    border-color: var(--site-accent-blue-hover);
    background: var(--site-accent-blue-hover);
    color: var(--site-deep-navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--site-focus-color);
    outline-offset: 4px;
}

.site-cta:focus-visible {
    box-shadow:
        0 0 0 3px var(--site-primary-navy),
        0 0 0 6px var(--site-focus-color);
}

@media (forced-colors: active) {
    .site-cta:focus-visible {
        outline-color: Highlight;
        box-shadow: none;
    }
}

nav {
    left: 0;
    right: 0;
    min-height: var(--site-nav-height);
}

.nav-logo,
.nav-logo a {
    display: flex;
    align-items: center;
}

.nav-logo a {
    min-width: 44px;
    min-height: 44px;
}

.nav-logo img {
    width: auto;
}

.nav-links a[aria-current="page"]::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 11px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
    :root {
        --site-nav-height: 77px;
    }

    nav {
        padding: 12px 16px;
    }

    .nav-logo img {
        height: 52px;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 12px;
        right: 12px;
        display: none;
        max-height: calc(100vh - var(--site-nav-height) - 24px);
        padding: 8px;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 0 0 12px 12px;
        background: rgba(7, 22, 52, 0.98);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(18px);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: flex;
        min-height: 44px;
        padding: 11px 14px;
        align-items: center;
        border-radius: 6px;
        font-size: 16px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible,
    .nav-links a[aria-current="page"] {
        background: rgba(255, 255, 255, 0.1);
    }

    .connect-btn {
        padding: 11px 14px;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .site-cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .wave-main,
    .wave-glow,
    .floating-bg {
        display: none !important;
    }

    .hero-content,
    .why-card {
        opacity: 1 !important;
        transform: none !important;
    }
}
