/* =========================================================
   Velexa — design tokens
   ========================================================= */
:root {
    --c-blue: #0056ff;
    --c-blue-light: #0a87ff;
    --c-blue-dark: #001d4c;
    --c-white: #ffffff;
    --c-black: #000000;

    --font-sans:
        "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --shadow-nav: 0 16px 24px rgba(0, 86, 255, 0.08);

    /* Layout — desktop design canvas is 1728px wide with 128px outer padding,
     so content area is 1472px. */
    --container-max: 1472px;
    --gutter: 128px;

    /* Button slope width for the parallelogram clip-path. */
    --btn-slope: 64px;
    --btn-h: 96px;
}

/* =========================================================
   Modal — EXANTE consolidation announcement
   ========================================================= */
body.has-modal {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 29, 76, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
}

.modal-card {
    width: 100%;
    max-width: 1220px;
    background: var(--c-white);
    color: var(--c-blue-dark);
    align-items: stretch;
    box-shadow: 0 32px 64px rgba(0, 29, 76, 0.24);
    display: flex;
    flex-direction: row;
    gap: 64px;
}

.modal-card-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 80px;
}

.modal-card-right {
    display: flex;
    min-width: 310px;
    min-height: 320px;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-direction: column;
    padding: 90px 75px;
    background-color: #0b1214;
    background-position: center center;
    background-image: url("/img/banner-bg.jpg");
    background-size: cover;
}

.modal-card-right-text {
    text-align: center;
}

.modal-headline {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: var(--c-blue-dark);
}

.modal-body {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--c-blue-dark);
}

.link-arrow {
    display: inline;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: var(--c-blue);
    transition: color 160ms ease;
}

.link-arrow:hover {
    color: var(--c-blue-light);
}

.link-arrow-nowrap {
    white-space: nowrap;
}

.link-arrow-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 16px;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask: url("../img/icon-arrow-right.svg") no-repeat center / contain;
    mask: url("../img/icon-arrow-right.svg") no-repeat center / contain;
    transition: transform 200ms ease;
}

.link-arrow:hover .link-arrow-icon {
    transform: translateX(4px);
}

.link-underlined {
    background: linear-gradient(to right, currentColor 0%, currentColor 100%);
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
}

.modal-cta {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 1280px) {
    .modal-card-left {
        padding: 64px 56px;
    }
    .modal-card-right {
        padding: 64px;
    }
}

@media (max-width: 1080px) {
    .modal-card {
        gap: 0;
    }
    .modal-card-left {
        padding: 32px 16px;
        gap: 16px;
    }
    .modal-card-right {
        padding: 32px 16px;
    }
    .modal-headline,
    .modal-body {
        font-size: 18px;
        line-height: 26px;
    }
    .link-arrow {
        font-size: 18px;
        line-height: 26px;
    }
    .link-arrow-icon {
        width: 20px;
        height: 20px;
        margin-left: 12px;
    }

    .modal-overlay {
        padding: 16px;
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .modal-card {
        flex-direction: column;
    }

    .modal-overlay {
        align-items: flex-start;
        padding: 0px;
    }
}

/* =========================================================
   Reset & base
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--c-blue-dark);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
    width: 100%;
    max-width: calc(var(--container-max) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

@media (max-width: 1280px) {
    :root {
        --gutter: 64px;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 24px;
    }
}

/* =========================================================
   Buttons — angled parallelogram (desktop), rounded (mobile)
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--btn-h);
    padding: 0 calc(var(--btn-slope) + 24px);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: var(--c-white);
    white-space: nowrap;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        filter 160ms ease,
        transform 160ms ease,
        background-color 160ms ease;
    /* Right-leaning parallelogram: / Center / */
    clip-path: polygon(0 0, calc(100% - var(--btn-slope)) 0, 100% 100%, var(--btn-slope) 100%);
}

.btn:hover {
    filter: brightness(1.06);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--c-blue-light);
    color: var(--c-white);
}

.btn-ghost {
    background: transparent;
    color: var(--c-white);
    padding: 0 24px; /* ghost button has no clipped edges in the design */
    clip-path: none;
}

.btn-arrow {
    width: 22px;
    height: 22px;
    color: var(--c-white);
}

/* On mobile, drop the parallelogram for usability + tap target clarity */
@media (max-width: 768px) {
    .btn {
        height: 56px;
        font-size: 16px;
        line-height: 24px;
        padding: 0 24px;
        border-radius: 8px;
        clip-path: none;
    }
    .btn-arrow {
        width: 18px;
        height: 18px;
    }
}

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-top: 32px;
}

.nav {
    display: flex;
    align-items: center;
    height: 96px;
    filter: drop-shadow(var(--shadow-nav));
}

.nav-bar {
    flex: 1 0 0;
    display: flex;
    align-items: center;
    gap: 64px;
    height: 100%;
    padding: 0 64px 0 32px;
    background: var(--c-white);
    /* Nav bar: straight left, angled right edge */
    clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 100%, 0 100%);
    margin-right: -64px; /* let the CTA tuck under the angled edge */
}

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

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
    flex: 1;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: var(--c-blue-dark);
    transition: color 160ms ease;
}

.nav-links a:hover {
    color: var(--c-blue);
}

.nav-chevron {
    width: 12px;
    height: 12px;
    color: var(--c-blue-dark);
}

.nav-cta {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--c-white);
    border-radius: 8px;
    box-shadow: var(--shadow-nav);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-blue-dark);
    border-radius: 1px;
}

.mobile-menu {
    display: none;
}

/* Tighten nav for laptop sizes */
@media (max-width: 1280px) {
    .nav-bar {
        gap: 32px;
        padding-left: 24px;
    }
    .nav-links {
        gap: 32px;
    }
    .nav-links a {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .nav-links a {
        font-size: 15px;
    }
    .nav-bar {
        gap: 20px;
    }
    .nav-links {
        gap: 20px;
    }
}

/* Mobile: hide inline links + CTA, show hamburger */
@media (max-width: 768px) {
    .site-header {
        padding-top: 16px;
    }
    .nav {
        height: 64px;
        filter: none;
        gap: 8px;
    }
    .nav-bar {
        height: 64px;
        padding: 0 16px;
        clip-path: none;
        border-radius: 12px;
        margin-right: 0;
        gap: 0;
        box-shadow: var(--shadow-nav);
    }
    .nav-links,
    .nav-cta {
        display: none;
    }
    .nav-logo {
        flex: 1;
    }
    .nav-logo img {
        height: 32px;
    }
    .nav-toggle {
        display: inline-flex;
        height: 48px;
        width: 48px;
    }
    .mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        margin-top: 8px;
        background: var(--c-white);
        border-radius: 12px;
        box-shadow: var(--shadow-nav);
    }
    .mobile-menu[hidden] {
        display: none;
    }
    .mobile-menu a {
        padding: 12px;
        font-size: 16px;
        font-weight: 500;
        color: var(--c-blue-dark);
        border-radius: 8px;
    }
    .mobile-menu a:hover {
        background: rgba(0, 86, 255, 0.06);
    }
    .mobile-menu .btn {
        margin-top: 8px;
        justify-content: center;
    }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    background: var(--c-black);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    min-height: 1120px;
    padding-top: 200px; /* clear the nav */
    padding-bottom: 120px;
    color: var(--c-white);
}

.hero-content {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 56px;
    max-width: 880px;
}

.hero-title {
    font-size: clamp(40px, 4.6vw, 72px);
    line-height: 1.11;
    font-weight: 700;
    margin: 0;
    color: var(--c-white);
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: clamp(18px, 1.4vw, 24px);
    line-height: 1.33;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-vision {
    flex-shrink: 0;
    width: 240px;
    height: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 320ms ease;
}

.hero-vision img {
    width: 100%;
    height: 100%;
}

.hero-vision:hover {
    transform: scale(1.03);
}

/* Hero — laptop */
@media (max-width: 1280px) {
    .hero-inner {
        min-height: 820px;
        padding-top: 160px;
        padding-bottom: 80px;
    }
    .hero-vision {
        width: 200px;
        height: 200px;
    }
    .hero-content {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        min-height: 720px;
    }
    .hero-vision {
        width: 160px;
        height: 160px;
    }
}

/* Hero — tablet/mobile */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
        padding-top: 120px;
        padding-bottom: 64px;
        gap: 40px;
    }
    .hero-content {
        gap: 24px;
        max-width: 100%;
        width: 100%;
    }
    .hero-title {
        font-size: clamp(32px, 8vw, 44px);
        line-height: 1.15;
    }
    .hero-sub {
        font-size: 16px;
        line-height: 1.5;
    }
    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-vision {
        width: 120px;
        height: 120px;
        align-self: center;
    }
}
