:root {
    --bg-deep: #070b14;
    --bg-mid: #0e1624;
    --bg-subtle: #121c2e;
    --accent: #3ec8f0;
    --accent-alt: #1aa8d4;
    --accent-dim: rgba(62, 200, 240, 0.16);
    --text: #e8eef8;
    --text-muted: rgba(232, 238, 248, 0.64);
    --border: rgba(62, 200, 240, 0.16);
    --glass: rgba(8, 14, 26, 0.78);
    --max-width: 1180px;
    --nav-height: 80px;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --error: #f87171;
    --success: #34d399;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    background: var(--bg-deep);
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse 80% 55% at 8% -8%, rgba(62, 200, 240, 0.16), transparent 52%),
        radial-gradient(ellipse 55% 40% at 100% 0%, rgba(26, 168, 212, 0.1), transparent 48%),
        var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::selection {
    background: rgba(62, 200, 240, 0.32);
    color: #fff;
}

body.page-auth {
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-alt);
}

/* ── Navigation ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    min-height: var(--nav-height);
    max-height: var(--nav-height);
    overflow: visible;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

/* Home: video runs under a transparent header (same bar size as other pages) */
body.home .site-header {
    position: fixed;
    left: 0;
    right: 0;
    height: var(--nav-height);
    min-height: var(--nav-height);
    max-height: var(--nav-height);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

body.home .site-header.is-solid,
body.home .site-header.is-menu-open {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
    box-shadow: none;
}

body.home .nav-links a {
    color: rgba(255, 255, 255, 0.88);
}

body.home .nav-links a:hover,
body.home .nav-links a.active {
    color: #fff;
}

body.home .nav-toggle span {
    background: #fff;
}

body.home .site-header.is-solid .nav-links a,
body.home .site-header.is-menu-open .nav-links a {
    color: var(--text-muted);
}

body.home .site-header.is-solid .nav-links a:hover,
body.home .site-header.is-solid .nav-links a.active,
body.home .site-header.is-menu-open .nav-links a:hover,
body.home .site-header.is-menu-open .nav-links a.active {
    color: var(--accent);
}

body.home .site-header.is-solid .nav-toggle span,
body.home .site-header.is-menu-open .nav-toggle span {
    background: var(--text);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-brand img {
    height: 36px;
    width: auto;
    mix-blend-mode: screen;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1.35rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-alt) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 153, 204, 0.28);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 153, 204, 0.38);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-dim);
    color: var(--accent-alt);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-login {
    height: 44px;
    padding: 0 1.15rem;
    background: transparent;
    color: var(--text);
    border-color: var(--border);
    flex-shrink: 0;
    gap: 0.45rem;
    font-size: 0.95rem;
    box-shadow: none;
}

.btn-login svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-login:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: none;
}

/* Keep nav CTAs locked to the same size on every page */
.nav-cta .btn-primary,
.nav-cta .btn-login {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    font-size: 0.95rem;
    line-height: 1;
}

body.home .site-header:not(.is-solid):not(.is-menu-open) .btn-login {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

body.home .site-header:not(.is-solid):not(.is-menu-open) .btn-login:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

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

.nav-signin__toggle {
    font-family: inherit;
}

.nav-signin__caret {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.nav-signin.is-open .nav-signin__caret {
    transform: rotate(180deg);
}

.nav-signin__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 15.5rem;
    padding: 0.4rem;
    background: #0b1422;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    z-index: 220;
}

.nav-signin.is-open .nav-signin__menu {
    display: flex !important;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-signin__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
}

.nav-signin__item:hover,
.nav-signin__item:focus-visible {
    background: var(--accent-dim);
    color: var(--text);
}

.nav-signin__item strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-signin__item span {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Layout ── */

main {
    flex: 1;
}

.section {
    padding: 5rem 1.5rem;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-mid);
}

.section-subtle {
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-deep) 100%);
}

.section-header {
    max-width: 640px;
    margin-bottom: 3rem;
}

.section-header.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.amp {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0 0.04em;
}

.display-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1rem;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.25rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
}

.lead.centered {
    margin-left: auto;
    margin-right: auto;
}

.text-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.text-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.text-link:hover::after {
    transform: translateX(3px);
}

/* ── Hero video (home) ── */

.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 560px;
    /* Deep blue standing in for the video: sampled from the footage itself,
       so a failed or slow load reads as intentional rather than broken. */
    background: linear-gradient(180deg, #44536b 0%, #2f3a4c 40%, #1a2230 100%);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.hero-video__vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(8, 16, 28, 0.5) 0%, rgba(8, 16, 28, 0.12) 22%, transparent 40%),
        linear-gradient(to top, rgba(8, 16, 28, 0.72) 0%, rgba(8, 16, 28, 0.35) 28%, transparent 55%);
}

.hero-video__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 1.5rem 5.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.hero-video__inner {
    max-width: min(var(--max-width), 52rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-video__brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
    animation: fade-up 0.7s ease both;
}

.hero-video__title,
.hero-video__content h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.1rem, 5.2vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 28ch;
    margin: 0 auto 1.75rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    animation: fade-up 0.7s ease 0.05s both;
}

.hero-video__title[data-typewriter] {
    position: relative;
}

.hero-typewriter__sizer {
    visibility: hidden;
    display: block;
}

.hero-typewriter__live {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.hero-typewriter__cursor {
    display: inline-block;
    width: 0.085em;
    height: 0.82em;
    margin-left: 0.1em;
    background: currentColor;
    vertical-align: -0.05em;
    animation: hero-caret 0.85s steps(1, end) infinite;
}

.hero-typewriter__cursor.is-done {
    opacity: 0;
    animation: none;
}

.hero-video__content .btn-group {
    justify-content: center;
    animation: fade-up 0.7s ease 0.15s both;
}

.home-register-mobile {
    display: none;
}

.hero-video__controls {
    position: static;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    z-index: 3;
    animation: fade-up 0.7s ease 0.22s both;
}

/* Feature brochure rows (home), alternating text / media */
.feature-strip {
    background: var(--bg-subtle);
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    position: relative;
}

.feature-rows::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(
        180deg,
        rgba(0, 153, 204, 0) 0%,
        var(--accent) 6%,
        var(--accent) 94%,
        rgba(0, 153, 204, 0) 100%
    );
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.feature-row::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 5px var(--bg-subtle);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.feature-row--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.feature-row--reverse .feature-row__copy {
    order: 2;
}

.feature-row--reverse .feature-row__media {
    order: 1;
}

.feature-row__copy h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.feature-row__copy p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 36rem;
}

.feature-row__media {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(62, 200, 240, 0.12), rgba(7, 11, 20, 0.4)),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(62, 200, 240, 0.04) 8px,
            rgba(62, 200, 240, 0.04) 16px
        );
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.feature-row__media.feature-media--ready {
    background: #0b1220;
    border-style: solid;
    cursor: zoom-in;
}

.feature-row__media.feature-media--ready.feature-media--contain {
    background: var(--bg-mid);
}

.feature-media__expand {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.feature-media__expand[hidden] {
    display: none;
}

.feature-media__expand:hover {
    background: rgba(15, 23, 42, 0.92);
}

.feature-media__expand:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.45);
}

.feature-media__expand svg {
    width: 18px;
    height: 18px;
}

.feature-media__placeholder {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.feature-media__placeholder[hidden] {
    display: none;
}

.feature-row__media img,
.feature-row__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-media img,
.feature-media video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.feature-media img.is-active,
.feature-media video.is-active {
    opacity: 1;
}

.feature-media--contain img,
.feature-media--contain video {
    object-fit: contain;
    background: var(--bg-mid);
}

/* Media lightbox / fullscreen popup */
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 16, 28, 0.84);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.media-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: calc(100vh - 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox__image,
.media-lightbox__video {
    max-width: 100%;
    max-height: calc(100vh - 2.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    background: #0b1220;
}

.media-lightbox__video {
    width: min(1100px, 100%);
}

.media-lightbox__image[hidden],
.media-lightbox__video[hidden] {
    display: none;
}

.media-lightbox__close,
.media-lightbox__nav {
    position: absolute;
    border: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.media-lightbox__close:hover,
.media-lightbox__nav:hover {
    background: rgba(15, 23, 42, 0.95);
}

.media-lightbox__close:focus-visible,
.media-lightbox__nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.45);
}

.media-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    z-index: 2;
}

.media-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 2;
}

.media-lightbox__nav[hidden] {
    display: none;
}

.media-lightbox__nav--prev { left: 0.5rem; }
.media-lightbox__nav--next { right: 0.5rem; }

.media-lightbox__close svg,
.media-lightbox__nav svg {
    width: 22px;
    height: 22px;
}

.media-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 500;
}

.media-lightbox__counter[hidden] {
    display: none;
}

body.lightbox-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .feature-media img,
    .feature-media video {
        transition: none;
    }

    .hero-typewriter__sizer {
        visibility: visible;
    }

    .hero-typewriter__live {
        display: none;
    }
}

/* Calm rotating principles, below the video hero */
.signal-band {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.signal-band .section-inner {
    max-width: 52rem;
}

.signal-rotator {
    margin-top: 0.5rem;
}

.signal-rotator__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1rem;
    max-width: 22ch;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.signal-rotator__lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.signal-rotator.is-fading .signal-rotator__title,
.signal-rotator.is-fading .signal-rotator__lead {
    opacity: 0;
    transform: translateY(0.35rem);
}

.signal-rotator__dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.signal-rotator__dots[hidden] {
    display: none;
}

.signal-dot {
    width: 0.5rem;
    height: 0.5rem;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: rgba(232, 238, 248, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.signal-dot.is-active {
    background: var(--accent);
    transform: scale(1.25);
}

.signal-dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .signal-rotator__title,
    .signal-rotator__lead {
        transition: none;
    }

    .signal-rotator.is-fading .signal-rotator__title,
    .signal-rotator.is-fading .signal-rotator__lead {
        transform: none;
    }
}

.btn-on-media {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-on-media:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.hero-video__audio {
    display: none;
}

.hero-video__btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-video__btn:hover {
    background: rgba(15, 23, 42, 0.75);
}

.hero-video__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.45);
}

.hero-video__btn svg {
    width: 20px;
    height: 20px;
}

.hero-video__btn .icon-muted,
.hero-video__btn .icon-play {
    display: none;
}

.hero-video__btn.is-muted .icon-muted,
.hero-video__btn.is-paused .icon-play {
    display: block;
}

.hero-video__btn.is-muted .icon-unmuted,
.hero-video__btn.is-paused .icon-pause {
    display: none;
}

/* ── Hero (legacy / inner pages) ── */

.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 1.5rem 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(232, 244, 248, 0.95) 0%, rgba(255, 255, 255, 0.88) 45%, rgba(241, 245, 249, 0.92) 100%),
        radial-gradient(ellipse at 70% 40%, rgba(0, 153, 204, 0.08) 0%, transparent 60%);
    z-index: 0;
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: min(55vw, 680px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
    animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
    from { transform: translateY(-50%) translateX(0); }
    to { transform: translateY(-48%) translateX(-12px); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-brand {
    margin-bottom: 2rem;
    animation: fade-up 0.7s ease both;
}

.hero-brand img {
    height: clamp(48px, 8vw, 72px);
    width: auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    max-width: 14ch;
    margin-bottom: 1.25rem;
    animation: fade-up 0.7s ease 0.1s both;
}

.hero .lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 520px;
    margin-bottom: 2.25rem;
    animation: fade-up 0.7s ease 0.2s both;
}

.hero .btn-group {
    animation: fade-up 0.7s ease 0.3s both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Grids & cards ── */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pathway-card {
    padding: 2rem 0;
    border-top: 2px solid var(--accent);
}

.pathway-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pathway-card p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.section-who {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #08101c;
}

.section-who::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8, 16, 28, 0.42) 0%,
        rgba(8, 16, 28, 0.58) 100%
    );
}

.section-who .section-inner {
    position: relative;
    z-index: 2;
}

.section-who .display-title {
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.section-who .eyebrow {
    color: #7dd3ee;
}

.section-who .pathway-card {
    background: rgba(8, 16, 28, 0.82);
    padding: 2rem 1.75rem;
    border-radius: 12px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.capability-item {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}

.capability-item--media {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
    gap: 2.5rem;
    align-items: stretch;
    border-bottom: none;
}

.capability-item__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.capability-item__thumb {
    position: relative;
    width: 100%;
    min-height: 220px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--bg-mid);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.capability-item__thumb[data-protect="model"] {
    background-image: url("images/media/c8p1.jpg");
}

.capability-item__thumb[data-protect="maintain"] {
    background-image: url("images/media/h5r8.jpg");
}

.capability-item__thumb[data-protect="operate"] {
    background-image: url("images/media/v2n9.jpg");
}

.protected-media {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.protected-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}

.protected-media--fill {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.protected-media--fill[data-protect="who"] {
    background: url("images/media/a7k2.jpg") center / cover no-repeat;
}

.capability-item:last-child {
    border-bottom: none;
}

.capability-item .page-title {
    font-size: 1.75rem;
}

.capability-item p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.capability-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.step-list {
    counter-reset: steps;
    list-style: none;
}

.step-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.step-item:last-child {
    border-bottom: none;
}

.step-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
    padding-top: 0.15rem;
}

.step-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

.org-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2.5rem;
    background: var(--bg-mid);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
}

.org-strip p {
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.65;
}

.cta-band {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-subtle) 100%);
}

.cta-band h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.cta-band p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-band--white {
    background: var(--bg-deep);
}

/* ── Page header (inner pages) ── */

.page-hero {
    padding: 2.75rem 1.5rem 3rem;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
}

.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-hero .lead {
    max-width: 600px;
}

.page-hero--platform {
    overflow-x: hidden;
    padding: 2.5rem 0 0;
    border-bottom: none;
    background: var(--bg-deep);
}

.platform-hero {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.platform-hero .eyebrow {
    margin-bottom: 1rem;
}

.platform-hero__media {
    margin: 0;
}

.platform-flow.stage {
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 2rem 1.5rem 3.5rem;
    border: none;
    border-radius: 0;
    background:
        radial-gradient(
            ellipse 100% 80% at 50% 38%,
            #10192a 0%,
            #070b14 42%,
            #0a1220 100%
        );
}

.platform-flow .platform-hero__copy {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    margin-top: 2.25rem;
}

.platform-flow .platform-hero__copy .page-title {
    margin-bottom: 0.75rem;
}

.platform-flow .platform-hero__copy .lead {
    max-width: 40rem;
    margin: 0;
}

/* ── Contact desks ── */

.desk-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.desk-tab {
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px;
}

.desk-tab:hover {
    color: var(--text);
}

.desk-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.desk-panel {
    display: none;
}

.desk-panel.active {
    display: block;
    animation: fade-up 0.35s ease both;
}

.desk-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 560px;
    line-height: 1.65;
}

.support-strip {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: var(--bg-mid);
    border-radius: 8px;
}

.support-strip p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Forms ── */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-mid);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.btn:focus-visible,
.desk-tab:focus-visible,
.nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-input {
    margin-top: 0.25rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 153, 204, 0.3);
    color: var(--success);
}

.form-message.error {
    display: block;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: var(--error);
}

.form-fallback {
    display: inline-flex;
    margin-top: 0.85rem;
    font-weight: 600;
}

.form-fallback[hidden] {
    display: none;
}

.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-card {
    position: relative;
    max-width: 640px;
}

/* ── Legal content ── */

.legal-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal-section p,
.legal-section li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

/* ── Auth pages ── */

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.auth-card::before {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 2rem;
}

.auth-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 153, 204, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
}

.auth-icon.error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
}

.auth-icon.error svg {
    stroke: var(--error);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.auth-card p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.auth-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ── Product portal chooser ── */

.portal-main {
    flex: 1;
    padding: 0 1.5rem 4.5rem;
}

.portal-split {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.portal-split.portal-split--single {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.portal-split__pane {
    padding: 2.75rem 2.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-split__rule {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.portal-split__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 153, 204, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-split__icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
}

.portal-split__pane h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.portal-split__pane p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 34ch;
}

.portal-split__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
}

.portal-split__pane .btn {
    min-width: 12.5rem;
}

.portal-intro {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem 2.75rem;
    align-items: stretch;
}

.portal-intro__copy h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.portal-intro__copy > p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.15rem;
}

.portal-intro__copy > p:last-child {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.portal-points {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.portal-points li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.05rem 1.15rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.portal-points li div {
    min-width: 0;
}

.portal-points strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 0.28rem;
    line-height: 1.3;
}

.portal-points p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.portal-points__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid rgba(62, 200, 240, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(62, 200, 240, 0.12);
}

.portal-points__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.portal-intro .portal-split {
    margin: 0;
    max-width: none;
    grid-template-columns: 1fr;
    height: 100%;
    align-self: stretch;
}

.portal-intro .portal-split__pane {
    height: 100%;
    justify-content: center;
}

/* ── Footer ── */

.site-footer {
    background: #05080f;
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand a {
    display: inline-block;
}

.footer-brand img {
    height: 32px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.footer-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.15rem;
}

.footer-bottom-nav a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-bottom-nav a:hover {
    color: #fff;
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .home-register-mobile {
        display: inline-flex;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .portal-split {
        grid-template-columns: 1fr;
    }

    .portal-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portal-split__rule {
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

    .capability-item--media {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .capability-item__thumb {
        order: -1;
    }

    .page-hero--platform {
        padding: 2rem 0 0;
    }

    .feature-row,
    .feature-row--reverse {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-rows::before,
    .feature-row::after {
        display: none;
    }

    .feature-row .feature-row__media,
    .feature-row--reverse .feature-row__media {
        order: -1;
    }

    .feature-row--reverse .feature-row__copy {
        order: unset;
    }

    .feature-rows {
        gap: 3.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero-video {
        min-height: 520px;
    }

    .hero-video__content {
        padding: 0 1.25rem 4.5rem;
    }

    .hero-video__title,
    .hero-video__content h1 {
        max-width: 24ch;
    }

    .hero-visual {
        opacity: 0.1;
        right: -20%;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: auto;
        min-height: var(--nav-height);
        max-height: none;
    }

    .feature-rows {
        gap: 2.75rem;
    }

    body.home .site-header {
        height: auto;
        min-height: var(--nav-height);
        max-height: none;
    }

    .nav-inner {
        flex-wrap: wrap;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .nav-links,
    .nav-cta .btn-primary {
        display: none;
    }

    .nav-cta {
        margin-left: auto;
        margin-right: 0.25rem;
    }

    .nav-cta .btn-login {
        display: inline-flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding: 1rem 0 0.5rem;
        gap: 0.75rem;
        border-top: 1px solid var(--border);
        margin-top: 0.75rem;
    }

    .nav-cta.open {
        display: flex;
        width: 100%;
        order: 4;
        padding-bottom: 0.5rem;
        margin-left: 0;
        gap: 0.75rem;
    }

    .nav-cta.open .btn-login {
        flex-shrink: 0;
    }

    .nav-cta.open .btn-primary {
        display: inline-flex;
        flex: 1;
        justify-content: center;
    }

    .nav-cta.open .nav-signin {
        flex: 0 0 auto;
    }

    .section {
        padding: 3.5rem 1.25rem;
    }

    .org-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .desk-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}
