
:root {
    --background: #020817;
    --background-deep: #01050e;
    --blue: #1473ff;
    --blue-light: #20a4ff;
    --white: #ffffff;
    --text: #f5f8ff;
    --muted: #aeb9cc;
    --border: rgba(109, 151, 211, 0.22);
    --header-height: 82px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--background);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
    background: rgba(1, 5, 14, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-logo {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0;
    color: var(--white);
    text-decoration: none;
}

.header-logo-icon {
    display: block;
    width: 66px;
    height: 66px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: -6px;
    filter: drop-shadow(0 0 10px rgba(0, 174, 255, 0.3));
}

.header-brand-text {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1;
}

.header-brand-text strong {
    color: var(--white);
    font-size: 2.15rem;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.header-brand-text > span {
    max-width: 102px;
    color: #f3f7ff;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.04;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.desktop-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    justify-self: center;
}

.desktop-navigation a {
    color: #e9eef8;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.desktop-navigation a:hover,
.desktop-navigation a.active {
    color: var(--white);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 999px;
}

.hero {
    min-height: 600px;
    padding: 54px 28px 44px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 42%, rgba(0, 119, 255, 0.2), transparent 34%),
        linear-gradient(135deg, #020817 0%, #020b1d 52%, #07356f 100%);
}

.hero-content {
    width: min(100%, 1400px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
    align-items: center;
    gap: 54px;
}

.hero-copy {
    max-width: 670px;
}

.hero h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(3.4rem, 5.2vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero h1 span {
    color: var(--blue);
}

.hero-description {
    max-width: 610px;
    margin: 24px 0 0;
    color: #d0d8e6;
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-top: 32px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    min-height: 76px;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.primary-button {
    background: linear-gradient(135deg, #0874ff, #276fff);
    border: 1px solid rgba(94, 170, 255, 0.7);
    box-shadow: 0 12px 34px rgba(0, 91, 255, 0.25);
}

.secondary-button {
    background: rgba(3, 11, 27, 0.75);
    border: 1px solid var(--blue);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.button-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.button-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.button-text strong {
    font-size: 0.98rem;
}

.button-text small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
}

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 30px;
    margin-top: 34px;
    color: #d3dceb;
    font-size: 0.86rem;
}

.trust-item {
    display: flex;
    gap: 9px;
    align-items: center;
}

.trust-item span {
    color: var(--blue);
    font-size: 1.1rem;
}

.hero-visual {
    min-height: 455px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-platform-image {
    display: block;
    width: min(100%, 590px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 26px rgba(0, 125, 255, 0.35));
}

.demos-section {
    padding: 74px 28px 88px;
    background:
        radial-gradient(circle at 50% 0%, rgba(20, 115, 255, 0.1), transparent 32%),
        linear-gradient(180deg, #020917, #030b1a);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.demos-heading {
    width: min(100%, 820px);
    margin: 0 auto;
    text-align: center;
}

.demos-heading > p {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.demos-heading h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.demos-heading > span {
    display: block;
    max-width: 680px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.demos-grid {
    width: min(100%, 1180px);
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.demo-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background:
        linear-gradient(
            155deg,
            rgba(8, 22, 43, 0.98),
            rgba(5, 15, 30, 0.96)
        );
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 16px 38px rgba(0, 0, 0, 0.16);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.demo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(28, 132, 255, 0.5);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.26),
        0 0 25px rgba(16, 111, 255, 0.08);
}

.demo-number {
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.demo-card h3 {
    margin: 18px 0 12px;
    color: var(--white);
    font-size: 1.15rem;
    line-height: 1.35;
}

.demo-card p {
    margin: 0;
    color: #b4bfd0;
    font-size: 0.92rem;
    line-height: 1.68;
}

.demo-card a,
.demo-status {
    margin-top: auto;
    padding-top: 24px;
    color: #298aff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.demo-status {
    color: #75869f;
}

.demo-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
    padding-top: 24px;
}

.demo-card .demo-actions a,
.demo-card .demo-actions .demo-status {
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 1180px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
    }

    .desktop-navigation {
        gap: 28px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-button,
    .secondary-button {
        width: min(100%, 410px);
    }

    .demos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 78px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        padding: 0 16px;
    }

    .desktop-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        justify-self: end;
    }

    .desktop-navigation.mobile-open {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: rgba(3, 12, 28, 0.99);
        border: 1px solid var(--border);
        border-radius: 10px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    }

    .desktop-navigation.mobile-open a {
        padding: 14px 16px;
        border-radius: 6px;
    }

    .desktop-navigation.mobile-open a:hover {
        background: rgba(20, 115, 255, 0.12);
    }

    .hero {
        padding-top: 44px;
    }

    .hero-visual {
        min-height: 390px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 72px;
    }

    .header-logo-icon {
        width: 54px;
        height: 54px;
        margin-right: -5px;
    }

    .header-brand-text strong {
        font-size: 1.65rem;
    }

    .header-brand-text > span {
        max-width: 76px;
        font-size: 0.64rem;
    }

    .hero {
        min-height: auto;
        padding: 40px 18px 30px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions,
    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .trust-points {
        flex-direction: column;
        gap: 13px;
    }

    .hero-visual {
        min-height: 290px;
    }

    .cloud-platform-image {
        width: 470px;
        max-width: 128%;
    }

    .demos-section {
        padding: 56px 18px 66px;
    }

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

@media (max-width: 390px) {
    .header-logo-icon {
        width: 49px;
        height: 49px;
    }

    .header-brand-text strong {
        font-size: 1.46rem;
    }

    .header-brand-text > span {
        max-width: 66px;
        font-size: 0.58rem;
    }
}


/* ===== BIY Client Demo Center ===== */
.portal-hero {
    min-height: 700px;
    padding: 72px 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 34%, rgba(20, 115, 255, 0.22), transparent 30%),
        radial-gradient(circle at 15% 10%, rgba(32, 164, 255, 0.10), transparent 26%),
        linear-gradient(135deg, #020817 0%, #020b1d 56%, #06336c 100%);
}

.portal-hero-inner {
    width: min(100%, 1400px);
    margin: 0 auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: 60px;
}

.portal-copy {
    max-width: 660px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 8px 13px;
    color: #83c8ff;
    border: 1px solid rgba(87, 167, 255, .35);
    border-radius: 999px;
    background: rgba(10, 79, 158, .20);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.portal-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3.4rem, 5.6vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.portal-copy h1 span {
    color: #1473ff;
}

.portal-description {
    max-width: 610px;
    margin: 26px 0 0;
    color: #cbd6e7;
    font-size: 1.1rem;
    line-height: 1.7;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.compact-button {
    min-height: 54px;
    padding: 13px 22px;
    font-size: .92rem;
    font-weight: 750;
}

.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 570px;
    margin-top: 34px;
    padding: 17px 18px;
    border: 1px solid rgba(109,151,211,.20);
    border-radius: 12px;
    background: rgba(3,11,27,.48);
}

.privacy-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #1473ff;
}

.privacy-note strong {
    color: #fff;
    font-size: .92rem;
}

.privacy-note p {
    margin: 4px 0 0;
    color: #9fb0c7;
    font-size: .82rem;
    line-height: 1.5;
}

.portal-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-window {
    width: min(100%, 720px);
    overflow: hidden;
    border: 1px solid rgba(110,167,232,.26);
    border-radius: 18px;
    background: #071226;
    box-shadow: 0 34px 80px rgba(0,0,0,.45), 0 0 55px rgba(20,115,255,.10);
}

.browser-top {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: #040b18;
}

.browser-top > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #33455f;
}

.browser-url {
    flex: 1;
    max-width: 430px;
    margin-left: 12px;
    padding: 7px 13px;
    color: #8091aa;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 7px;
    background: #091222;
    font-size: .72rem;
}

.browser-content {
    min-height: 450px;
    padding: 44px 42px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(20,115,255,.20), transparent 32%),
        linear-gradient(180deg,#08152c,#050c18);
}

.portal-cloud {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(32,164,255,.30));
}

.preview-label {
    color: #4fa6ff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.browser-content h2 {
    margin: 10px 0 8px;
    font-size: 2rem;
    letter-spacing: -.03em;
}

.browser-content > p {
    max-width: 500px;
    margin: 0 auto;
    color: #9eb0c8;
    font-size: .9rem;
    line-height: 1.6;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-top: 30px;
}

.preview-cards > div {
    min-height: 115px;
    padding: 18px 12px;
    border: 1px solid rgba(109,151,211,.16);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}

.preview-cards span,
.preview-cards strong,
.preview-cards small {
    display: block;
}

.preview-cards span {
    margin-bottom: 8px;
    color: #1473ff;
    font-size: .72rem;
    font-weight: 800;
}

.preview-cards strong {
    color: #fff;
    font-size: .92rem;
}

.preview-cards small {
    margin-top: 5px;
    color: #7f91aa;
    font-size: .72rem;
}

.portal-process {
    padding: 92px 28px 70px;
    background:
        radial-gradient(circle at 50% 0%, rgba(20,115,255,.08), transparent 30%),
        #020817;
}

.section-heading {
    width: min(100%, 850px);
    margin: 0 auto;
    text-align: center;
}

.section-heading p {
    margin: 0 0 10px;
    color: #1473ff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem,4vw,3.3rem);
    letter-spacing: -.04em;
}

.section-heading span {
    display: block;
    margin-top: 14px;
    color: #9baac0;
    line-height: 1.6;
}

.process-grid {
    width: min(100%, 1180px);
    margin: 46px auto 0;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.process-card {
    min-height: 220px;
    padding: 26px;
    border: 1px solid rgba(109,151,211,.17);
    border-radius: 15px;
    background: linear-gradient(180deg,rgba(12,28,54,.66),rgba(4,12,25,.76));
}

.process-number {
    margin-bottom: 28px;
    color: #1473ff;
    font-size: 1.9rem;
    font-weight: 800;
}

.process-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
}

.process-card p {
    margin: 12px 0 0;
    color: #91a3ba;
    font-size: .86rem;
    line-height: 1.65;
}

.portal-footer-note {
    width: min(100%, 1180px);
    margin: 56px auto 0;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #71839c;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .8rem;
}

.portal-footer-note strong {
    color: #aebed2;
}

@media (max-width: 1050px) {
    .portal-hero-inner {
        grid-template-columns: 1fr;
    }
    .portal-copy {
        max-width: 760px;
    }
    .portal-visual {
        justify-content: flex-start;
    }
    .process-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 700px) {
    .portal-hero {
        padding: 48px 20px 56px;
    }
    .portal-copy h1 {
        font-size: 3rem;
    }
    .portal-actions {
        display: grid;
    }
    .portal-actions a {
        width: 100%;
    }
    .browser-content {
        padding: 34px 20px;
    }
    .preview-cards {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .portal-footer-note {
        flex-direction: column;
    }
}
