* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

html {
            scroll-behavior: smooth;
        }

body::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            opacity: 0.18;
            mix-blend-mode: multiply;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
        }

body::after {
            content: "";
            position: fixed;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            background: radial-gradient(ellipse at 50% 36%, transparent 58%, rgba(14, 30, 42, 0.09) 100%);
        }

a {
            color: inherit;
            text-decoration: none;
        }

.app-container {
            position: relative;
            z-index: 2;
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto;
            padding: 22px 0 34px;
        }

.dropdown-menu {
            display: none;
        }

.mega-menu {
            position: absolute;
            top: calc(100% + 14px);
            left: 50%;
            width: min(960px, calc(100vw - 32px));
            padding: 18px;
            border: 1px solid rgba(255, 255, 255, 0.62);
            border-radius: 28px;
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
                radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.82), transparent 30%),
                radial-gradient(circle at 88% 18%, rgba(197, 232, 239, 0.55), transparent 34%);
            box-shadow: 0 32px 70px -44px rgba(9, 37, 48, 0.72);
            backdrop-filter: blur(24px) saturate(145%);
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, 14px) scale(0.985);
            transform-origin: top center;
            transition: opacity 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
            background-image:
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
            background-repeat: repeat;
        }

.mega-feature {
            min-height: 190px;
            padding: 18px;
            border: 1px solid rgba(255, 255, 255, 0.62);
            border-radius: 22px;
            background: rgba(255, 255, 255);
        }

.mega-cards-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            width: 100%;
        }

.mega-card {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.62);
            background: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            color: #173747;
            transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
            box-shadow: 0 4px 6px -1px rgba(18, 44, 58, 0.03);
        }

.mega-card-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 12px;
            background: rgba(27, 119, 136, 0.08);
            color: var(--teal);
            flex-shrink: 0;
            transition: transform 180ms ease, background 180ms ease, color 180ms ease;
        }

.mega-card-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
        }

.mega-card-title {
            font-size: 0.9rem;
            font-weight: 800;
            color: #183445;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

.mega-card-desc {
            font-size: 0.76rem;
            color: var(--muted);
            margin-top: 3px;
            line-height: 1.2;
            /* white-space: nowrap; */
            overflow: hidden;
            text-overflow: ellipsis;
        }

.mega-feature {
            background:
                linear-gradient(145deg, rgba(22, 77, 94, 0.94), rgba(27, 119, 136, 0.78)),
                rgba(255, 255, 255, 0.24);
            color: white;
        }

.mega-kicker {
            margin-bottom: 10px;
            color: rgba(255, 255, 255, 0.72);
            font-size: 0.72rem;
            font-weight: 850;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

.mega-visual {
            position: relative;
            min-height: 104px;
            margin-top: 18px;
            overflow: hidden;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.28);
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent),
                var(--mega-visual);
            background-size: cover;
            background-position: center;
        }

.button-primary {
            color: #fff;
            background: #164d5e;
            box-shadow: 0 16px 30px -24px #0b3040;
        }

/* -------------------------------------------------------------------------- */
/* FULLY UNIFIED SITE NAVIGATION AND MEGA MENU                                  */
/* -------------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 16px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
    margin-bottom: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease, color 320ms ease, transform 260ms ease, backdrop-filter 320ms ease;
}

.app-container:has(.hero.has-video) .site-nav {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.site-nav.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    box-sizing: border-box;
    padding: 10px max(16px, calc((100vw - 1180px) / 2 + 14px));
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px -20px rgba(9, 37, 48, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f3441;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(145deg, var(--teal), #1d5367);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 26px -18px #0d4050;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #123846;
    font-size: 0.88rem;
    font-weight: 700;
}

.nav-link,
.dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 30px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    cursor: pointer;
    font: inherit;
    backdrop-filter: blur(8px);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link::after,
.dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 7px;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.nav-link:hover,
.dropdown-toggle:hover,
.dropdown:hover .dropdown-toggle {
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(255, 255, 255, 0.84);
    color: var(--teal-dark);
    transform: translateY(-1px);
}

.site-nav:not(.is-scrolled) .nav-link,
.site-nav:not(.is-scrolled) .dropdown-toggle {
    background: rgba(255, 255, 255, 0.24);
}

.site-nav:not(.is-scrolled) .nav-link:hover,
.site-nav:not(.is-scrolled) .dropdown-toggle:hover,
.site-nav:not(.is-scrolled) .dropdown:hover .dropdown-toggle {
    background: rgba(255, 255, 255, 0.58);
}

.nav-link:hover::after,
.dropdown:hover .dropdown-toggle::after {
    transform: scaleX(1);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: min(960px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.82), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(197, 232, 239, 0.55), transparent 34%);
    box-shadow: 0 32px 70px -44px rgba(9, 37, 48, 0.72);
    backdrop-filter: blur(24px) saturate(145%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 14px) scale(0.985);
    transform-origin: top center;
    transition: opacity 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.nav-links:has([data-mega-trigger]:hover)+.mega-menu,
.mega-menu:hover,
.site-nav.mega-open .mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.mega-grid {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
}

.mega-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
}

.mega-menu.is-swapping .mega-grid {
    opacity: 0;
    transform: translateY(6px);
}

.mega-grid {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.mega-feature {
    min-height: 190px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 22px;
    background: rgba(255, 255, 255);
}

.mega-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.mega-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    color: #173747;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 4px 6px -1px rgba(18, 44, 58, 0.03);
}

.mega-card:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(27, 119, 136, 0.35);
    box-shadow: 0 8px 18px -6px rgba(18, 44, 58, 0.08);
}

.mega-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(27, 119, 136, 0.08);
    color: var(--teal);
    flex-shrink: 0;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.mega-card:hover .mega-card-icon {
    background: var(--teal);
    color: white;
    transform: scale(1.05);
}

.mega-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mega-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #183445;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-card-desc {
    font-size: 0.76rem;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.2;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-feature {
    background:
        linear-gradient(145deg, rgba(22, 77, 94, 0.94), rgba(27, 119, 136, 0.78)),
        rgba(255, 255, 255, 0.24);
    color: white;
}

.mega-kicker {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mega-feature strong,
.mega-column strong {
    display: block;
    margin-bottom: 10px;
    color: inherit;
    font-size: 1rem;
}

.mega-feature p {
    max-width: 240px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.mega-visual {
    position: relative;
    min-height: 104px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent),
        var(--mega-visual);
    background-size: cover;
    background-position: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: #164d5e;
    box-shadow: 0 16px 30px -24px #0b3040;
}

.button-primary:hover {
    background: #0f3d4c;
}

.button-secondary {
    color: var(--teal-dark);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: none;
}

.site-nav.is-scrolled .brand,
.site-nav.is-scrolled .nav-links {
    text-shadow: none;
}

.site-nav.is-scrolled .nav-link,
.site-nav.is-scrolled .dropdown-toggle {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(12px);
}

.site-nav.is-scrolled .button-secondary {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(12px);
}
