/*
 * landing.css — styles for the public landing page (Pages/Index.cshtml) only.
 *
 * Everything visual is scoped under .landing so it cannot leak into the Blazor
 * app, which shares custom.css. Loaded by Index.cshtml, never by _Host.cshtml.
 *
 * The landing page is fully self-styled and deliberately loads neither
 * bootstrap.min.css nor custom.css, so it carries its own small reset.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Anchor targets must clear the fixed nav. */
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.landing {
    /* Brand palette */
    --eurl-navy: #003776;
    --eurl-ink: #0D2642;
    --eurl-blue: #5895DB;
    --eurl-sky: #99C9FF;
    --eurl-mist: #CCE4FF;

    --eurl-white: #fff;
    --eurl-slate: #33475e;
    --eurl-slate-soft: #5a6e86;

    --band-y: clamp(4rem, 9vw, 7.5rem);
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --shell: 1200px;
    --radius: 14px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    font-family: "Roboto", Helvetica, Arial, sans-serif;
    color: var(--eurl-slate);
    line-height: 1.65;
    overflow-x: clip;
}

/*
 * Element defaults for the page. These are wrapped in :where() so they carry the
 * specificity of ".landing" alone (0,1,0) rather than (0,1,1) — otherwise a bare
 * ".landing a" would out-rank every single-class component rule below it and, for
 * example, paint .btn-eurl--ghost navy-on-navy. Component rules come later in this
 * file and win on source order.
 */
.landing :where(h1, h2, h3, h4) {
    color: var(--eurl-navy);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0;
}

.landing :where(p) {
    margin: 0;
}

.landing :where(a) {
    color: var(--eurl-navy);
    text-decoration: none;
}

.landing :where(a):hover {
    color: var(--eurl-blue);
}

.landing__shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- bands -- */

.band {
    padding-block: var(--band-y);
}

.band--mist {
    background: linear-gradient(180deg, var(--eurl-white) 0%, var(--eurl-mist) 22%, var(--eurl-mist) 100%);
}

.band--ink {
    background: var(--eurl-ink);
    color: rgba(255, 255, 255, 0.78);
}

.band--ink h2,
.band--ink h3,
.band--ink h4 {
    color: var(--eurl-white);
}

.band__head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.band__head--centre {
    margin-inline: auto;
    text-align: center;
}

.kicker {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--eurl-blue);
}

.band--ink .kicker {
    color: var(--eurl-sky);
}

.band__title {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.band__lead {
    margin-top: 1.25rem;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--eurl-slate-soft);
}

.band--ink .band__lead {
    color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------- buttons -- */

.btn-eurl {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
                border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-eurl:hover {
    transform: translateY(-2px);
}

.btn-eurl--primary {
    background: var(--eurl-blue);
    color: var(--eurl-white);
}

.btn-eurl--primary:hover {
    background: var(--eurl-sky);
    color: var(--eurl-ink);
}

.btn-eurl--solid {
    background: var(--eurl-navy);
    color: var(--eurl-white);
}

.btn-eurl--solid:hover {
    background: var(--eurl-ink);
    color: var(--eurl-white);
}

.btn-eurl--ghost {
    border-color: rgba(153, 201, 255, 0.55);
    color: var(--eurl-white);
}

.btn-eurl--ghost:hover {
    border-color: var(--eurl-sky);
    background: rgba(153, 201, 255, 0.14);
    color: var(--eurl-white);
}

.btn-eurl--quiet {
    border-color: var(--eurl-sky);
    color: var(--eurl-navy);
}

.btn-eurl--quiet:hover {
    background: var(--eurl-navy);
    border-color: var(--eurl-navy);
    color: var(--eurl-white);
}

/* ----------------------------------------------------------------- nav -- */

.landing-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    padding-block: 1.1rem;
    background: transparent;
    transition: background-color 0.3s var(--ease), padding 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}

.landing-nav.is-stuck {
    padding-block: 0.55rem;
    background: var(--eurl-ink);
    box-shadow: 0 6px 28px rgba(13, 38, 66, 0.28);
}

.landing-nav__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: auto;
    color: var(--eurl-white);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.landing-nav__brand:hover {
    color: var(--eurl-sky);
}

/*
 * Typographic wordmark. Deliberately not /images/eurl-logo.svg — that file is the
 * Progress vendor logo, not an EURL mark. Swap in a real logo when one exists.
 */
.landing-nav__mark {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border: 1px solid var(--eurl-sky);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--eurl-sky);
}

.landing-nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-nav__link {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    padding-block: 0.35rem;
}

.landing-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--eurl-sky);
    transition: width 0.25s var(--ease);
}

.landing-nav__link:hover {
    color: var(--eurl-white);
}

.landing-nav__link:hover::after {
    width: 100%;
}

.landing-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* Desktop: links and actions sit on one row, pushed right by the brand's auto margin. */
@media (min-width: 992px) {
    .landing-nav__menu {
        display: flex;
        align-items: center;
        gap: 2.25rem;
    }
}

.landing-nav__signin {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    white-space: nowrap;
}

.landing-nav__signin:hover {
    color: var(--eurl-white);
}

.landing-nav__toggle {
    display: none;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(153, 201, 255, 0.5);
    border-radius: 8px;
    background: transparent;
    color: var(--eurl-white);
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .landing-nav__toggle {
        display: inline-flex;
    }

    .landing-nav__menu {
        display: none;
        flex-basis: 100%;
        order: 3;
        margin-top: 1rem;
        padding: 1.25rem;
        border-radius: var(--radius);
        background: var(--eurl-ink);
        box-shadow: 0 18px 40px rgba(13, 38, 66, 0.35);
    }

    .landing-nav__menu.is-open {
        display: block;
    }

    .landing-nav__inner {
        flex-wrap: wrap;
    }

    .landing-nav__links,
    .landing-nav__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .landing-nav__actions {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(153, 201, 255, 0.22);
    }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(88vh, 780px);
    padding-block: clamp(8rem, 16vw, 11rem) clamp(4rem, 9vw, 7rem);
    background: linear-gradient(150deg, var(--eurl-navy) 0%, var(--eurl-ink) 68%);
    color: rgba(255, 255, 255, 0.82);
    overflow: hidden;
}

/* Faint grid, nudged by landing.js for a slow parallax drift. */
.hero__grid {
    position: absolute;
    inset: -20% -10%;
    background-image:
        linear-gradient(rgba(153, 201, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(153, 201, 255, 0.09) 1px, transparent 1px);
    background-size: 68px 68px;
    transform: translate3d(0, var(--parallax, 0px), 0);
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    top: -30%;
    right: -12%;
    width: 60vw;
    max-width: 820px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 149, 219, 0.42) 0%, transparent 62%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 54rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--eurl-white);
}

.hero__title em {
    font-style: normal;
    color: var(--eurl-sky);
}

.hero__lead {
    max-width: 40rem;
    margin-top: 1.75rem;
    font-size: clamp(1.05rem, 1.9vw, 1.3rem);
    color: rgba(255, 255, 255, 0.76);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(153, 201, 255, 0.22);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------- trust strip -- */

.trust {
    padding-block: 2.75rem;
    background: var(--eurl-white);
    border-bottom: 1px solid var(--eurl-mist);
}

.trust__label {
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--eurl-slate-soft);
}

.marquee {
    display: flex;
    overflow: hidden;
    /* Fade the edges so chips enter and leave softly. */
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    flex-shrink: 0;
    gap: 1rem;
    padding-right: 1rem;
    animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.35rem;
    border: 1px solid var(--eurl-mist);
    border-radius: 999px;
    background: var(--eurl-white);
    font-size: 0.85rem;
    color: var(--eurl-navy);
    white-space: nowrap;
}

/* --------------------------------------------------------------- grids -- */

.grid {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

/* --------------------------------------------------------------- cards -- */

.card-eurl {
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid var(--eurl-mist);
    border-radius: var(--radius);
    background: var(--eurl-white);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
                border-color 0.3s var(--ease);
}

.card-eurl:hover {
    transform: translateY(-4px);
    border-color: var(--eurl-sky);
    box-shadow: 0 18px 40px rgba(0, 55, 118, 0.1);
}

.card-eurl__title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 400;
}

.card-eurl__body {
    margin-top: 0.9rem;
    color: var(--eurl-slate-soft);
}

.card-eurl__list {
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.card-eurl__list li {
    position: relative;
    padding-left: 1.9rem;
    font-size: 0.95rem;
}

.card-eurl__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--eurl-mist)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23003776' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E")
        center / 0.72rem no-repeat;
}

.card-eurl__foot {
    margin-top: auto;
    padding-top: 2rem;
}

/* Numbered problem cards — the "challenge" band. */
.card-issue {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border-radius: var(--radius);
    background: var(--eurl-white);
    border-top: 3px solid var(--eurl-blue);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card-issue:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 55, 118, 0.12);
}

.card-issue__num {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--eurl-blue);
}

.card-issue__title {
    font-size: 1.3rem;
    font-weight: 400;
}

.card-issue__kicker {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--eurl-slate-soft);
}

.card-issue__body {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--eurl-slate-soft);
}

/* ------------------------------------------------------- feature rows -- */

.feature {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--eurl-mist);
}

.feature:last-child {
    border-bottom: 0;
}

/* Alternate the media/copy order on wide screens only. */
@media (min-width: 62rem) {
    .feature:nth-child(even) .feature__media {
        order: -1;
    }
}

.feature__index {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--eurl-blue);
}

.feature__title {
    margin-top: 0.9rem;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.feature__body {
    margin-top: 1.15rem;
    color: var(--eurl-slate-soft);
}

.feature__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--eurl-navy);
}

.feature__link span {
    transition: transform 0.25s var(--ease);
}

.feature__link:hover span {
    transform: translateX(4px);
}

/* Placeholder artwork — a tinted panel with a schematic, no image assets. */
.feature__media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: linear-gradient(140deg, var(--eurl-mist) 0%, var(--eurl-white) 100%);
    border: 1px solid var(--eurl-sky);
    overflow: hidden;
}

.feature__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 55, 118, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 55, 118, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
}

.feature__media span {
    position: absolute;
    inset: auto 1.25rem 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eurl-navy);
    opacity: 0.55;
}

.feature__bars {
    position: absolute;
    inset: auto 1.5rem 3.5rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 46%;
}

.feature__bars i {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--eurl-blue);
    opacity: 0.75;
    height: var(--h, 40%);
}

/* --------------------------------------------------------------- stats -- */

.stat {
    text-align: center;
}

.stat__value {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 200;
    line-height: 1;
    color: var(--eurl-sky);
}

.stat__label {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.66);
}

/* -------------------------------------------------------- testimonial -- */

.quote {
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
}

.quote__mark {
    font-size: 4rem;
    line-height: 0.6;
    color: var(--eurl-sky);
}

.quote__text {
    margin-top: 1.5rem;
    font-size: clamp(1.25rem, 2.6vw, 1.85rem);
    font-weight: 300;
    line-height: 1.45;
    color: var(--eurl-navy);
}

.quote__by {
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: var(--eurl-slate-soft);
}

/* ------------------------------------------------------------- contact -- */

.contact-card {
    padding: 1.75rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(153, 201, 255, 0.24);
}

.contact-card__label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eurl-sky);
}

.contact-card hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid rgba(153, 201, 255, 0.24);
    opacity: 1;
}

.contact-card__value {
    font-size: 1.05rem;
    color: var(--eurl-white);
}

.contact-card__value a {
    color: var(--eurl-white);
}

.contact-card__value a:hover {
    color: var(--eurl-sky);
}

/* ----------------------------------------------------------------- faq -- */

.faq {
    max-width: 52rem;
    margin-inline: auto;
}

.faq__item {
    border-bottom: 1px solid var(--eurl-mist);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.4rem 0;
    border: 0;
    background: none;
    text-align: left;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--eurl-navy);
    cursor: pointer;
}

.faq__q:hover {
    color: var(--eurl-blue);
}

.faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease);
}

.faq__icon::after {
    transform: rotate(90deg);
}

.faq__q[aria-expanded="true"] .faq__icon::after {
    transform: rotate(0deg);
}

.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
}

.faq__a > div {
    overflow: hidden;
}

.faq__item.is-open .faq__a {
    grid-template-rows: 1fr;
}

.faq__a p {
    padding-bottom: 1.5rem;
    color: var(--eurl-slate-soft);
}

/* -------------------------------------------------------------- footer -- */

.landing-foot {
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    background: var(--eurl-ink);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.landing-foot__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.landing-foot__brand .landing-nav__mark {
    display: flex;
    width: fit-content;
    margin-bottom: 1rem;
}

.landing-foot h4 {
    margin-bottom: 1.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eurl-sky);
}

.landing-foot ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.landing-foot a {
    color: rgba(255, 255, 255, 0.62);
}

.landing-foot a:hover {
    color: var(--eurl-white);
}

.landing-foot__base {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 1.75rem;
    border-top: 1px solid rgba(153, 201, 255, 0.18);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------ reveals -- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/*
 * Motion is decoration here: strip every transform/animation and make sure
 * revealed content is visible, since landing.js bails out in this mode.
 */
@media (prefers-reduced-motion: reduce) {
    .landing *,
    .landing *::before,
    .landing *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__grid {
        transform: none;
    }

    .marquee__track {
        animation: none;
    }

    .btn-eurl:hover,
    .card-eurl:hover,
    .card-issue:hover {
        transform: none;
    }
}
