/* ------------------------------------------------------------------
   RemoteRedirect - public site theme
   Dark studio look: ruled nav, split hero, electric-blue accent.
   Ported from dbnetsoftLicensingWeb's public theme (same --ds-* tokens),
   so the two sites share one visual language. Loaded only by /Pages
   (public + Identity, which shares this layout). The Admin area keeps
   its own CoreUI Pro theme and is not affected by this file.
   ------------------------------------------------------------------ */

:root {
    --ds-bg: #0a0a0c;
    --ds-bg-lift: #101014;
    --ds-surface: rgba(255, 255, 255, .035);
    --ds-surface-strong: rgba(255, 255, 255, .07);
    --ds-line: rgba(255, 255, 255, .11);
    --ds-rule: rgba(255, 255, 255, .17);
    --ds-line-soft: rgba(255, 255, 255, .06);

    --ds-text: #f4f4f6;
    --ds-muted: #9a9aa4;
    --ds-dim: #6c6c78;

    --ds-accent: #1c6cff;
    --ds-accent-hot: #4d8bff;
    --ds-accent-deep: #0b3fb8;

    --ds-gradient: linear-gradient(100deg, var(--ds-accent) 0%, #3f7bff 50%, #6aa0ff 100%);
    --ds-radius: 14px;
    --ds-nav-h: 84px;

    /* page gutter, shared by the nav rules and the hero so they line up */
    --ds-gutter: clamp(1.25rem, 5vw, 5.5rem);
}

/* ---------- base ---------- */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ds-bg);
    color: var(--ds-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--ds-accent-hot);
    text-decoration: none;
}

a:hover {
    color: #8fb4ff;
}

::selection {
    background: var(--ds-accent);
    color: #fff;
}

/* ---------- studio backdrop ---------- */

.ds-stage {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--ds-bg);
    overflow: hidden;
}

.ds-stage::before,
.ds-stage::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.ds-stage::before {
    right: -10vw;
    top: 4vh;
    width: 62vw;
    height: 62vw;
    max-width: 880px;
    max-height: 880px;
    background: radial-gradient(circle, rgba(28, 108, 255, .42) 0%, rgba(28, 108, 255, 0) 66%);
    opacity: .9;
}

.ds-stage::after {
    left: -18vw;
    bottom: -20vw;
    width: 55vw;
    height: 55vw;
    max-width: 760px;
    max-height: 760px;
    background: radial-gradient(circle, rgba(64, 76, 120, .4) 0%, rgba(64, 76, 120, 0) 70%);
    opacity: .8;
}

.ds-wave {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150vw;
    height: 62vh;
    transform: translate(-50%, -50%);
    opacity: .3;
}

.ds-wave path {
    fill: none;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.ds-body--inner .ds-wave {
    opacity: .16;
}

.ds-body--inner .ds-stage::before {
    opacity: .45;
}

/* ---------- ruled top navigation ---------- */

.ds-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(10, 10, 12, .72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ds-rule);
    transition: background .25s ease;
}

.ds-nav.is-stuck {
    background: rgba(10, 10, 12, .94);
}

.ds-nav__inner {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    min-height: var(--ds-nav-h);
    padding-inline: var(--ds-gutter);
}

.ds-nav__brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding-inline: clamp(1rem, 2.5vw, 2.5rem);
    margin-inline-start: calc(var(--ds-gutter) * -1 + clamp(1.25rem, 3vw, 3rem));
    border-inline: 1px solid var(--ds-rule);
}

.ds-nav__brand img {
    height: 30px;
    width: auto;
    display: block;
}

.ds-nav__brand span {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.ds-nav__collapse {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
}

.ds-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.6rem);
    list-style: none;
    margin: 0;
    padding-inline: clamp(1.25rem, 3vw, 3rem);
}

.ds-nav__link {
    color: rgba(255, 255, 255, .74);
    font-size: .92rem;
    font-weight: 400;
    padding-block: .4rem;
    position: relative;
    white-space: nowrap;
    transition: color .2s ease;
}

.ds-nav__link:hover,
.ds-nav__link.active {
    color: #fff;
}

.ds-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ds-accent);
    transition: right .25s ease;
}

.ds-nav__link:hover::after,
.ds-nav__link.active::after {
    right: 0;
}

.ds-nav__actions {
    display: flex;
    align-items: center;
    gap: clamp(.75rem, 1.6vw, 1.6rem);
    margin-inline-start: auto;
    padding-inline: clamp(1rem, 2.5vw, 2.25rem);
    border-inline: 1px solid var(--ds-rule);
}

.ds-nav__login {
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
    white-space: nowrap;
}

.ds-nav__login:hover {
    color: #fff;
}

.ds-nav .navbar-toggler-icon {
    /* the vendored Bootstrap build predates data-bs-theme, so its toggler
       icon defaults to dark strokes - invisible on this dark navbar */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.88%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.ds-nav .navbar-toggler {
    border-color: var(--ds-line);
    padding: .35rem .55rem;
    margin-inline-start: auto;
    align-self: center;
}

.ds-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(28, 108, 255, .35);
}

/* ---------- buttons ---------- */

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    border: 0;
    border-radius: 999px;
    padding: .85rem 1.7rem;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ds-btn:hover {
    transform: translateY(-2px);
}

.ds-btn__arrow {
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 auto;
    transition: transform .25s ease;
}

.ds-btn:hover .ds-btn__arrow {
    transform: translateX(3px);
}

.ds-btn--primary {
    background: var(--ds-accent);
    color: #fff;
    box-shadow: 0 10px 30px -12px rgba(28, 108, 255, .9);
}

.ds-btn--primary:hover {
    background: #2a78ff;
    color: #fff;
    box-shadow: 0 16px 38px -14px rgba(28, 108, 255, 1);
}

.ds-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, .88);
    border: 1px solid var(--ds-line);
}

.ds-btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .42);
    background: var(--ds-surface);
}

.ds-btn--sm {
    padding: .62rem 1.3rem;
    font-size: .88rem;
}

.ds-btn--lg {
    padding: 1.05rem 2.2rem;
    font-size: 1.02rem;
}

/* ---------- split hero ---------- */

.ds-hero {
    padding-inline: var(--ds-gutter);
    padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem);
}

.ds-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    max-width: 1680px;
    margin-inline: auto;
    min-height: min(70vh, 720px);
}

.ds-hero__eyebrow {
    color: var(--ds-accent-hot);
    font-size: clamp(.95rem, 1.3vw, 1.12rem);
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.ds-hero__title {
    font-size: clamp(2.7rem, 6.4vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.02;
    margin: 0 0 clamp(1.5rem, 2.8vw, 2.25rem);
    text-wrap: balance;
}

.ds-hero__lead {
    color: var(--ds-muted);
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.75;
    max-width: 34rem;
    margin: 0 0 clamp(1.8rem, 3vw, 2.6rem);
}

.ds-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

/* ---------- hero teaser: the product mark on a lit plinth ---------- */

.ds-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.ds-teaser {
    position: relative;
    width: min(100%, 560px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ds-teaser__glow {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 130%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 108, 255, .34) 0%, rgba(28, 108, 255, .08) 42%, rgba(28, 108, 255, 0) 68%);
    filter: blur(28px);
    pointer-events: none;
}

.ds-teaser__card {
    position: relative;
    width: min(100%, 460px);
    padding: clamp(2.25rem, 4.5vw, 3.6rem) clamp(1.75rem, 4vw, 3.2rem);
    border-radius: 22px;
    border: 1px solid var(--ds-line);
    /* light panel (not the translucent dark glass used elsewhere) so the
       product mark, which is full-colour on a light background, reads
       cleanly instead of going near-invisible on the dark page */
    background: linear-gradient(150deg, #f4f6fb 0%, #e7ecf6 100%);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 70px -30px rgba(28, 108, 255, .55);
    transform: rotateY(-15deg) rotateX(7deg) rotateZ(-1.5deg);
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.ds-teaser:hover .ds-teaser__card {
    transform: rotateY(-9deg) rotateX(4deg) rotateZ(-1deg);
}

.ds-teaser__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(140, 180, 255, .8) 35%, rgba(255, 255, 255, 0) 100%);
}

.ds-teaser__card img {
    display: block;
    width: 100%;
    height: auto;
}

.ds-teaser__tag {
    margin-top: clamp(1.4rem, 2.5vw, 2rem);
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ds-dim);
    text-align: center;
}

.ds-teaser__plinth {
    position: relative;
    z-index: -1;
    width: min(78%, 380px);
    height: clamp(64px, 9vw, 110px);
    margin-top: clamp(-3.4rem, -4vw, -2.2rem);
    border-radius: 6px;
    background: linear-gradient(160deg, #1d1d24 0%, #131318 45%, #0a0a0d 100%);
    border: 1px solid rgba(255, 255, 255, .05);
    transform: perspective(700px) rotateX(52deg);
    transform-origin: top center;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
}

.ds-teaser__plinth::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: radial-gradient(ellipse at 50% 0%, rgba(28, 108, 255, .26) 0%, rgba(28, 108, 255, 0) 70%);
}

.ds-teaser__card::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -14px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 72%);
    filter: blur(6px);
    pointer-events: none;
}

/* ---------- inner pages ---------- */

.ds-page {
    padding-block: 3.5rem 4.5rem;
}

.ds-page__eyebrow {
    font-size: .95rem;
    color: var(--ds-accent-hot);
    margin-bottom: .7rem;
}

.ds-page__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .9rem;
}

.ds-page__lead {
    color: var(--ds-muted);
    max-width: 44rem;
    line-height: 1.8;
}

.ds-panel {
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-soft);
    border-radius: var(--ds-radius);
    backdrop-filter: blur(10px);
    padding: 1.6rem;
}

.ds-panel + .ds-panel {
    margin-top: 1.25rem;
}

.ds-panel__title {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ds-muted);
    margin: 0 0 1.1rem;
}

.ds-panel--accent {
    position: relative;
    overflow: hidden;
}

.ds-panel--accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ds-gradient);
}

.ds-panel img.teaser {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---------- footer ---------- */

.ds-footer {
    margin-top: auto;
    border-top: 1px solid var(--ds-line-soft);
    padding: 1.6rem 0;
    background: rgba(10, 10, 12, .6);
}

.ds-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .78rem;
    color: var(--ds-dim);
}

.ds-footer__brand {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.ds-footer img {
    height: 18px;
    width: auto;
    opacity: .75;
}

.ds-footer a {
    color: var(--ds-muted);
}

.ds-footer a:hover {
    color: #fff;
}

/* ---------- forms (Identity pages inherit this layout) ---------- */

.ds-page .form-control,
.ds-page .form-select {
    background-color: rgba(255, 255, 255, .04);
    border-color: var(--ds-line);
    color: var(--ds-text);
    padding: .7rem .9rem;
}

.ds-page .form-control:focus,
.ds-page .form-select:focus {
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(28, 108, 255, .7);
    box-shadow: 0 0 0 .2rem rgba(28, 108, 255, .18);
    color: var(--ds-text);
}

.ds-page .form-floating > label {
    color: var(--ds-dim);
}

.ds-page .btn-primary {
    background: var(--ds-accent);
    border: 0;
}

.ds-page h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .9rem;
}

.ds-page hr {
    border-color: var(--ds-line);
    opacity: 1;
}

.ds-page .btn-lg {
    border-radius: 999px;
    padding: .85rem 1.6rem;
    font-size: .95rem;
    font-weight: 500;
}

.ds-page .form-check-input {
    background-color: rgba(255, 255, 255, .06);
    border-color: var(--ds-line);
}

.ds-page .form-check-input:checked {
    background-color: var(--ds-accent);
    border-color: var(--ds-accent);
}

.ds-page .text-danger {
    color: #fb7185 !important;
}

/* ---------- motion / responsive ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ds-btn:hover,
    .ds-btn:hover .ds-btn__arrow {
        transform: none;
    }

    .ds-teaser__card,
    .ds-teaser:hover .ds-teaser__card {
        transition: none;
    }
}

@media (max-width: 1199.98px) {
    .ds-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    }
}

@media (max-width: 991.98px) {
    .ds-nav__inner {
        padding-block: .75rem;
    }

    .ds-nav__brand {
        margin-inline-start: 0;
        padding-inline: 0;
        border-inline: 0;
    }

    .ds-nav__collapse {
        flex: 1 0 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-nav__links {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
        padding-inline: 0;
        padding-block: 1rem;
    }

    .ds-nav__actions {
        margin-inline-start: 0;
        padding-inline: 0;
        border-inline: 0;
        padding-bottom: 1rem;
        flex-wrap: wrap;
    }

    .ds-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 3rem;
    }

    .ds-hero__visual {
        order: -1;
    }

    .ds-teaser__card {
        transform: rotateY(-8deg) rotateX(4deg);
    }
}

@media (max-width: 575.98px) {
    .ds-hero {
        padding-block: 2.5rem 3.5rem;
    }

    .ds-hero__actions .ds-btn {
        width: 100%;
    }

    .ds-footer__inner {
        justify-content: center;
        text-align: center;
    }
}
