/* XingYi communications brochure. Loaded after the template stylesheet. */

:root {
    --xy-ink: #17283b;
    --xy-muted: #526277;
    --xy-line: #d7e2ec;
    --xy-paper: #f3f7fb;
    --xy-navy: #091e3e;
    --xy-cyan: #06a3da;
    --xy-cyan-dark: #057eaa;
}

body {
    color: var(--xy-ink);
    background: #fff;
    overflow-x: clip;
}

img {
    max-width: 100%;
}

.xy-brand {
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
}

.xy-kicker {
    margin-bottom: 0.75rem;
    color: var(--xy-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.xy-lead {
    color: var(--xy-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.xy-section {
    padding: 5.25rem 0;
}

.xy-section h2 {
    margin-bottom: 1rem;
    color: var(--xy-navy);
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.25;
}

.xy-caption {
    margin-top: 0.65rem;
    color: var(--xy-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.xy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.65rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.xy-btn-primary {
    background: var(--xy-cyan);
    color: #fff;
}

.xy-btn-primary:hover,
.xy-btn-primary:focus {
    background: var(--xy-cyan-dark);
    color: #fff;
}

.xy-btn-line {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: transparent;
}

.xy-btn-line:hover,
.xy-btn-line:focus {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.xy-btn-navy {
    background: var(--xy-navy);
    color: #fff;
}

.xy-btn-navy:hover,
.xy-btn-navy:focus {
    background: #12325f;
    color: #fff;
}

/* Navbar: solid bar, readable without sitting on a photo. */
@media (min-width: 992px) {
    nav.navbar.navbar-dark {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        background: var(--xy-navy);
        border-bottom: 0;
    }

    nav.navbar.navbar-dark .navbar-nav .nav-link {
        padding: 1.15rem 0;
        color: #fff;
        font-size: 1rem;
    }

    nav.navbar.navbar-dark.sticky-top {
        position: fixed;
        top: 0;
        left: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(9, 30, 62, 0.08);
    }

    nav.navbar.navbar-dark.sticky-top .navbar-nav .nav-link {
        padding: 0.85rem 0;
        color: var(--xy-navy);
    }

    nav.navbar.navbar-dark.sticky-top .xy-brand {
        color: var(--xy-cyan);
    }
}

@media (max-width: 991.98px) {
    nav.navbar.navbar-dark {
        background: #fff;
    }

    .xy-brand {
        color: var(--xy-cyan);
    }
}

.xy-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(6, 163, 218, 0.18), transparent 28%),
        var(--xy-navy);
    color: #fff;
}

.xy-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 4rem;
}

.xy-hero h1 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.15;
}

.xy-hero .xy-lead {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.82);
}

.xy-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.xy-hero-media {
    margin: 0;
}

.xy-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 72% center;
    border-radius: 6px;
}

.xy-capabilities {
    background: var(--xy-paper);
}

.xy-cap-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--xy-line);
}

.xy-cap-list li {
    min-width: 0;
    padding: 1.5rem 1.25rem 0.25rem 0;
    border-right: 1px solid var(--xy-line);
}

.xy-cap-list li:last-child {
    border-right: 0;
    padding-right: 0;
}

.xy-cap-list span {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--xy-cyan);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.xy-cap-list h3 {
    margin-bottom: 0.55rem;
    color: var(--xy-navy);
    font-size: 1.2rem;
}

.xy-cap-list p {
    color: var(--xy-muted);
    line-height: 1.65;
}

.xy-about-grid,
.xy-split,
.xy-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.xy-about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
}

.xy-photo {
    margin: 0;
}

.xy-photo img {
    display: block;
    width: 100%;
    height: min(640px, 72vw);
    object-fit: cover;
    border-radius: 6px;
    background: var(--xy-paper);
}

.xy-photo-wide img {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
}

.xy-photo-lab img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #10243d;
}

.xy-split-reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.xy-split + .xy-split {
    margin-top: 4.5rem;
}

.xy-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.xy-text-link {
    color: var(--xy-cyan-dark);
    font-weight: 800;
    text-decoration: none;
}

.xy-text-link:hover,
.xy-text-link:focus {
    color: var(--xy-navy);
}

.xy-scenarios {
    background:
        linear-gradient(180deg, #fff 0%, var(--xy-paper) 28%, var(--xy-paper) 100%);
}

.xy-stage {
    position: relative;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.xy-stage .xy-photo img {
    height: auto;
    aspect-ratio: 16 / 9;
}

.xy-stage-panel {
    width: min(100%, 420px);
    margin-top: -4.5rem;
    margin-left: auto;
    padding: 1.5rem 1.4rem;
    background: #fff;
    border-top: 4px solid var(--xy-cyan);
    box-shadow: 0 16px 40px rgba(9, 30, 62, 0.08);
}

.xy-stage-panel h3,
.xy-scenario-rest h3,
.xy-role h3,
.xy-tool h3 {
    color: var(--xy-navy);
    font-size: 1.25rem;
}

.xy-scenario-rest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 0.5rem;
}

.xy-scenario-rest article {
    padding-top: 1rem;
    border-top: 1px solid var(--xy-line);
}

.xy-process {
    background: var(--xy-navy);
    color: #fff;
}

.xy-process h2,
.xy-process .xy-kicker {
    color: #fff;
}

.xy-process .xy-kicker {
    color: #7fd4f5;
}

.xy-process-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: center;
}

.xy-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.xy-steps li {
    position: relative;
    padding: 0 0 1.5rem 4.25rem;
}

.xy-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 2.4rem;
    bottom: 0.2rem;
    left: 1.15rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.xy-steps li::after {
    content: counter(step, decimal-leading-zero);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(127, 212, 245, 0.8);
    border-radius: 50%;
    color: #7fd4f5;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 2.3rem;
    text-align: center;
}

.xy-steps h3 {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 1.15rem;
}

.xy-steps p,
.xy-process .xy-lead {
    color: rgba(255, 255, 255, 0.78);
}

.xy-contact {
    background: #fff;
}

.xy-contact-grid {
    align-items: start;
}

.xy-mail {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-top: 1.5rem;
}

.xy-mail i {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 4px;
    background: var(--xy-cyan);
    color: #fff;
}

.xy-mail a {
    color: var(--xy-cyan-dark);
    font-weight: 800;
    text-decoration: none;
}

.xy-form-panel {
    padding: 1.5rem;
    background: var(--xy-paper);
    border: 1px solid var(--xy-line);
    border-radius: 6px;
}

.xy-form-panel .form-control {
    min-height: 52px;
    background: #fff;
    border: 1px solid #c9d6e2;
    color: var(--xy-ink);
}

.xy-form-panel textarea.form-control {
    min-height: 140px;
}

.xy-form-panel .form-control:focus {
    border-color: var(--xy-cyan);
    box-shadow: 0 0 0 0.2rem rgba(6, 163, 218, 0.15);
}

.xy-form-panel .form-check-label,
.xy-form-panel .xy-privacy {
    color: var(--xy-muted);
}

.xy-pagehead {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background:
        linear-gradient(100deg, rgba(9, 30, 62, 0.92) 0%, rgba(9, 30, 62, 0.78) 48%, rgba(9, 30, 62, 0.55) 100%),
        url("../img/adi-goldstein-EUsVwEOsblE-unsplash.jpg") center / cover no-repeat;
    color: #fff;
}

.xy-pagehead-plain {
    background: var(--xy-navy);
}

.xy-pagehead h1 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.xy-pagehead .xy-lead {
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.82);
}

.xy-product-layout,
.xy-about-page {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 4.5rem;
}

.xy-toc {
    position: sticky;
    top: 6rem;
    align-self: start;
    padding: 1rem;
    border: 1px solid var(--xy-line);
    border-radius: 6px;
}

.xy-toc p {
    margin-bottom: 0.75rem;
    color: var(--xy-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.xy-toc a {
    display: block;
    padding: 0.45rem 0;
    color: var(--xy-navy);
    font-weight: 700;
    text-decoration: none;
}

.xy-toc a:hover,
.xy-toc a:focus {
    color: var(--xy-cyan-dark);
}

.xy-product + .xy-product {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--xy-line);
}

.xy-feature-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

.xy-feature-list li + li {
    margin-top: 0.45rem;
}

.xy-chain {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.xy-chain li {
    position: relative;
    min-width: 0;
    padding: 0.9rem 0.75rem;
    background: var(--xy-paper);
    border-radius: 4px;
    color: var(--xy-navy);
    font-weight: 800;
    text-align: center;
}

.xy-chain li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-top: 2px solid var(--xy-cyan);
    border-right: 2px solid var(--xy-cyan);
    transform: translateY(-50%) rotate(45deg);
}

.xy-topics {
    margin: 0.5rem 0 0;
}

.xy-topics div {
    display: grid;
    grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--xy-line);
}

.xy-topics dt {
    color: var(--xy-navy);
    font-weight: 800;
}

.xy-topics dd {
    margin: 0;
    color: var(--xy-muted);
}

.xy-role-list,
.xy-tool-grid {
    display: grid;
    gap: 0;
}

.xy-role {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.35rem 0;
    border-top: 1px solid var(--xy-line);
}

.xy-role span {
    color: var(--xy-cyan);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.xy-tool-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
}

.xy-tool {
    padding-top: 1rem;
    border-top: 3px solid var(--xy-cyan);
}

.xy-tool p {
    color: var(--xy-muted);
    line-height: 1.7;
}

#sdr,
#fpga,
#contact,
#about,
#technology {
    scroll-margin-top: 5.5rem;
}

@media (max-width: 991.98px) {
    .xy-section {
        padding: 3.5rem 0;
    }

    .xy-hero-grid,
    .xy-about-grid,
    .xy-split,
    .xy-split-reverse,
    .xy-process-grid,
    .xy-contact-grid,
    .xy-product-layout,
    .xy-about-page,
    .xy-cap-list,
    .xy-scenario-rest,
    .xy-tool-grid,
    .xy-chain {
        grid-template-columns: 1fr;
    }

    .xy-hero-grid {
        padding: 2.5rem 1rem 2.75rem;
        gap: 1.5rem;
    }

    .xy-cap-list li {
        padding: 1.25rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--xy-line);
    }

    .xy-stage-panel {
        width: 100%;
        margin-top: 0;
    }

    .xy-photo img,
    .xy-photo-lab img {
        height: auto;
        max-height: 460px;
    }

    .xy-product-layout,
    .xy-about-page {
        padding-top: 2rem;
    }

    .xy-toc {
        position: static;
    }

    .xy-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .xy-chain li:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -0.55rem;
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
    }

    .xy-topics div,
    .xy-role {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .xy-hero-actions,
    .xy-link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .xy-form-panel {
        padding: 1rem;
    }
}
