/* =========================================================
   ZANCK — HOMEPAGE STYLES
   File: assets/css/homepage.css

   Homepage-specific presentation only.
   Global foundations are handled by:
   variables.css
   reset.css
   typography.css
   layout.css
   navigation.css
   components.css
   animations.css
   responsive.css
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    position: relative;
    min-height: min(900px, 100vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-background, #ffffff);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: min(900px, 100vh);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    align-items: center;
    gap: clamp(40px, 7vw, 110px);
    padding-top: clamp(100px, 12vh, 150px);
    padding-bottom: clamp(80px, 10vh, 120px);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    min-width: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    display: inline-block;
    background: currentColor;
    opacity: 0.6;
}

.hero-content h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(64px, 8vw, 132px);
    line-height: 0.88;
    letter-spacing: -0.065em;
    font-weight: 700;
}

.hero-content h1 span {
    display: block;
    color: var(--color-primary, #1e6dbb);
}

.hero-description {
    max-width: 650px;
    margin: 38px 0 0;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.65;
    color: var(--color-text-secondary, #5f6368);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 42px;
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 700px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
}

.hero-visual__grid {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image:
        linear-gradient(
            to right,
            rgba(30, 109, 187, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(30, 109, 187, 0.08) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    mask-image: radial-gradient(
        circle at center,
        black 0%,
        transparent 72%
    );
    -webkit-mask-image: radial-gradient(
        circle at center,
        black 0%,
        transparent 72%
    );
}

.hero-visual__core {
    position: relative;
    width: 420px;
    height: 420px;
    max-width: 82%;
    max-height: 82%;
}

.hero-visual__orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at 35% 30%,
        #4a92d9,
        var(--zanck-blue, #1e6dbb) 65%,
        #0f3f70 100%
    );
    box-shadow:
        0 0 0 1px rgba(30, 109, 187, .15),
        0 20px 60px -10px rgba(30, 109, 187, .55),
        0 0 40px rgba(30, 109, 187, .35);
    animation: heroOrbPulse 4s ease-in-out infinite;
}

.hero-visual__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(30, 109, 187, .28);
}

.hero-visual__ring--one {
    width: 230px;
    height: 230px;
    animation: heroRingRotate 26s linear infinite;
}

.hero-visual__ring--two {
    width: 380px;
    height: 380px;
    border-style: dashed;
    animation: heroRingRotate 42s linear infinite reverse;
}

.hero-visual__node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--zanck-blue, #1e6dbb);
    box-shadow:
        0 0 0 4px rgba(30, 109, 187, .14),
        0 0 16px rgba(30, 109, 187, .5);
}

.hero-visual__node--one {
    top: 6%;
    left: 50%;
    transform: translate(-50%, 0);
}

.hero-visual__node--two {
    top: 70%;
    left: 10%;
}

.hero-visual__node--three {
    top: 64%;
    left: 86%;
}

@keyframes heroOrbPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(30, 109, 187, .15),
            0 20px 60px -10px rgba(30, 109, 187, .55),
            0 0 40px rgba(30, 109, 187, .35);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(30, 109, 187, .15),
            0 20px 60px -10px rgba(30, 109, 187, .7),
            0 0 55px rgba(30, 109, 187, .5);
    }
}

@keyframes heroRingRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(30, 109, 187, 0.16);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero-orbit--one {
    width: 72%;
    height: 72%;
    transform:
        translate(-50%, -50%)
        rotate(25deg)
        scaleY(0.42);
}

.hero-orbit--two {
    width: 82%;
    height: 82%;
    transform:
        translate(-50%, -50%)
        rotate(-28deg)
        scaleY(0.42);
}

.hero-core {
    position: relative;
    z-index: 4;
    width: clamp(120px, 17vw, 210px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(30, 109, 187, 0.25);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, 1),
            rgba(245, 248, 255, 0.92) 55%,
            rgba(230, 237, 255, 0.72)
        );
    box-shadow:
        0 0 0 20px rgba(30, 109, 187, 0.025),
        0 0 0 55px rgba(30, 109, 187, 0.018),
        0 30px 80px rgba(30, 109, 187, 0.14);
}

.hero-core::before {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(30, 109, 187, 0.18);
    border-radius: 50%;
}

.hero-core span {
    position: relative;
    z-index: 2;
    color: var(--color-primary, #1e6dbb);
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.08em;
}

.hero-node {
    position: absolute;
    z-index: 5;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary, #1e6dbb);
    box-shadow: 0 0 0 7px rgba(30, 109, 187, 0.08);
}

.hero-node--one {
    top: 16%;
    left: 48%;
}

.hero-node--two {
    right: 15%;
    top: 43%;
}

.hero-node--three {
    bottom: 17%;
    left: 34%;
}

.hero-node--four {
    left: 13%;
    top: 55%;
}


/* =========================================================
   POSITIONING SECTION
   ========================================================= */

.positioning-section {
    position: relative;
    background: var(--color-background, #ffffff);
}

.positioning-section .section-header {
    max-width: 900px;
}

.positioning-section .section-header h2 {
    max-width: 900px;
}

.positioning-section .section-header h2 span {
    display: block;
    color: var(--color-primary, #1e6dbb);
}

.positioning-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: clamp(50px, 10vw, 160px);
    margin-top: clamp(60px, 8vw, 110px);
    padding-top: clamp(40px, 5vw, 70px);
    border-top: 1px solid var(--color-border, #e6e8ec);
}

.positioning-statement p {
    max-width: 780px;
    margin: 0;
    font-size: clamp(28px, 3.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.positioning-copy {
    align-self: end;
    max-width: 520px;
}

.positioning-copy p {
    margin: 0 0 30px;
    color: var(--color-text-secondary, #5f6368);
    font-size: 18px;
    line-height: 1.75;
}


/* =========================================================
   SERVICES PREVIEW
   ========================================================= */

.services-preview-section {
    position: relative;
    overflow: hidden;
}

.services-preview-section::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    top: -300px;
    right: -250px;
    border-radius: 50%;
    background: rgba(30, 109, 187, 0.08);
    filter: blur(90px);
    pointer-events: none;
}

.services-preview-section .section-header {
    position: relative;
    z-index: 2;
}

.services-preview-section .section-header h2 {
    max-width: 760px;
}

.services-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(50px, 7vw, 90px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.service-card {
    position: relative;
    min-height: 370px;
    padding: clamp(30px, 4vw, 48px);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        background-color 250ms ease,
        transform 250ms ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.035);
}

.service-number {
    display: block;
    margin-bottom: 70px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.service-card h3 {
    max-width: 360px;
    margin: 0;
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.service-card p {
    max-width: 420px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 16px;
    line-height: 1.7;
}

.service-card-link {
    position: absolute;
    right: 32px;
    bottom: 32px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.service-card-link img {
    width: 17px;
    height: 17px;
    filter: brightness(0) invert(1);
}

.service-card:hover .service-card-link {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translate(2px, -2px);
}


/* =========================================================
   OUTCOMES
   ========================================================= */

.outcomes-section {
    position: relative;
}

.outcomes-section .section-header {
    max-width: 900px;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(55px, 7vw, 90px);
    border-top: 1px solid var(--color-border, #e6e8ec);
    border-left: 1px solid var(--color-border, #e6e8ec);
}

.outcome-card {
    min-height: 300px;
    padding: clamp(30px, 4vw, 52px);
    border-right: 1px solid var(--color-border, #e6e8ec);
    border-bottom: 1px solid var(--color-border, #e6e8ec);
}

.outcome-index {
    display: block;
    margin-bottom: 60px;
    color: var(--color-primary, #1e6dbb);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.outcome-card h3 {
    margin: 0;
    font-size: clamp(25px, 2.4vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.outcome-card p {
    max-width: 500px;
    margin: 18px 0 0;
    color: var(--color-text-secondary, #5f6368);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   INDUSTRIES
   ========================================================= */

.industries-section {
    position: relative;
}

.industries-section .section-header h2 {
    max-width: 820px;
}

.industries-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(50px, 7vw, 90px);
    border-top: 1px solid var(--color-border, #e6e8ec);
}

.industry-item {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
    padding-right: 24px;
    border-bottom: 1px solid var(--color-border, #e6e8ec);
    color: inherit;
    text-decoration: none;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.025em;
    transition:
        color 200ms ease,
        padding-left 200ms ease;
}

.industry-item:nth-child(odd) {
    padding-left: 0;
    padding-right: 60px;
}

.industry-item:nth-child(even) {
    padding-left: 60px;
    border-left: 1px solid var(--color-border, #e6e8ec);
}

.industry-item img {
    width: 19px;
    height: 19px;
    opacity: 0.55;
    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.industry-item:hover {
    color: var(--color-primary, #1e6dbb);
}

.industry-item:hover img {
    opacity: 1;
    transform: translateX(5px);
}


/* =========================================================
   SOLUTIONS
   ========================================================= */

.solutions-section {
    position: relative;
}

.solutions-section .section-header {
    max-width: 900px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(55px, 7vw, 90px);
    background: var(--color-border, #e6e8ec);
    border: 1px solid var(--color-border, #e6e8ec);
}

.solution-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3.5vw, 46px);
    background: var(--color-background, #ffffff);
    color: inherit;
    text-decoration: none;
    transition:
        background-color 250ms ease,
        color 250ms ease;
}

.solution-card > span {
    margin-bottom: auto;
    color: var(--color-primary, #1e6dbb);
    font-size: 13px;
    letter-spacing: 0.1em;
}

.solution-card h3 {
    margin: 45px 0 0;
    font-size: clamp(24px, 2vw, 31px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.solution-card p {
    max-width: 340px;
    margin: 14px 0 0;
    color: var(--color-text-secondary, #5f6368);
    line-height: 1.6;
}

.solution-card > img {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: translate(-5px, 5px);
    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.solution-card:hover {
    background: var(--color-primary, #1e6dbb);
    color: #ffffff;
}

.solution-card:hover p,
.solution-card:hover > span {
    color: rgba(255, 255, 255, 0.7);
}

.solution-card:hover > img {
    opacity: 1;
    transform: translate(0, 0);
    filter: brightness(0) invert(1);
}


/* =========================================================
   INSIGHTS
   ========================================================= */

.insights-section {
    position: relative;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(50px, 7vw, 90px);
    border-top: 1px solid var(--color-border, #e6e8ec);
    border-left: 1px solid var(--color-border, #e6e8ec);
}

.insight-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    padding: clamp(30px, 4vw, 50px);
    border-right: 1px solid var(--color-border, #e6e8ec);
    border-bottom: 1px solid var(--color-border, #e6e8ec);
}

.insight-card-meta {
    margin-bottom: auto;
}

.insight-card-meta span {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid var(--color-border, #e6e8ec);
    border-radius: 999px;
    color: var(--color-text-secondary, #5f6368);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.insight-card h3 {
    max-width: 460px;
    margin: 60px 0 30px;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.insight-card .text-link {
    margin-top: auto;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::before {
    width: 600px;
    height: 600px;
    top: -380px;
    left: -160px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-section::after {
    width: 800px;
    height: 800px;
    right: -350px;
    bottom: -550px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin-inline: auto;
}

.cta-container h2 {
    max-width: 900px;
    margin: 24px auto 0;
    font-size: clamp(48px, 6vw, 90px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.cta-container p {
    max-width: 620px;
    margin: 30px auto 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
    line-height: 1.7;
}

.cta-container .button {
    margin-top: 38px;
}


/* =========================================================
   HOMEPAGE BUTTON OVERRIDES
   ========================================================= */

.hero-actions .button,
.cta-container .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-actions .button img,
.cta-container .button img {
    width: 16px;
    height: 16px;
}

.hero-actions .button--primary img {
    filter: brightness(0) invert(1);
}

.cta-container .button--light img {
    filter: none;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
        gap: 50px;
    }

    .hero-content h1 {
        font-size: clamp(60px, 8vw, 100px);
    }

    .services-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        min-height: 340px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insight-card {
        min-height: 330px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 820px) {

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 130px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-visual {
        max-width: 520px;
        margin-top: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .hero-actions .button {
        width: 100%;
    }

    .positioning-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .positioning-copy {
        max-width: 680px;
    }

    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
    }

    .industries-list {
        grid-template-columns: 1fr;
    }

    .industry-item:nth-child(even) {
        padding-left: 0;
        border-left: 0;
    }

    .industry-item:nth-child(odd) {
        padding-right: 24px;
    }

    .solution-card {
        min-height: 300px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .hero-container {
        padding-top: 110px;
        padding-bottom: 70px;
    }

    .hero-eyebrow {
        margin-bottom: 22px;
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: clamp(58px, 17vw, 86px);
        line-height: 0.9;
    }

    .hero-description {
        margin-top: 28px;
        font-size: 17px;
        line-height: 1.6;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 32px;
    }

    .hero-actions .btn,
    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        width: min(100%, 430px);
    }

    .positioning-grid {
        margin-top: 50px;
        padding-top: 35px;
    }

    .positioning-statement p {
        font-size: clamp(28px, 8vw, 40px);
    }

    .positioning-copy p {
        font-size: 16px;
    }

    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 330px;
    }

    .service-number {
        margin-bottom: 55px;
    }

    .outcomes-grid {
        margin-top: 50px;
    }

    .outcome-card {
        min-height: 270px;
    }

    .outcome-index {
        margin-bottom: 45px;
    }

    .industries-list {
        margin-top: 50px;
    }

    .industry-item,
    .industry-item:nth-child(odd),
    .industry-item:nth-child(even) {
        min-height: 82px;
        padding: 22px 0;
        font-size: 20px;
    }

    .solutions-grid {
        margin-top: 50px;
    }

    .solution-card {
        min-height: 270px;
    }

    .insights-grid {
        margin-top: 50px;
    }

    .insight-card {
        min-height: 340px;
    }

    .insight-card h3 {
        margin-top: 45px;
        font-size: 26px;
    }

    .cta-container h2 {
        font-size: clamp(45px, 12vw, 68px);
    }

    .cta-container p {
        font-size: 16px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-orbit,
    .hero-node,
    .hero-core,
    .hero-visual__ring,
    .hero-visual__orb,
    .service-card,
    .service-card-link,
    .industry-item,
    .industry-item img,
    .solution-card,
    .solution-card > img {
        transition: none;
        animation: none;
    }

}