/* ==========================================================================
   home-2027.css — home page only
   --------------------------------------------------------------------------
   Depends on css/site-2027.css for tokens and chrome. The home page loads
   NO legacy stylesheet (no global.css / home.css / dark-redesign.css), so
   this file owns its own reset and body treatment.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.cy27-hero {
    padding: 180px var(--cy27-gutter) 120px;
}

.cy27-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
    max-width: var(--cy27-container);
    margin: 0 auto;
}

.cy27-hero__eyebrow {
    display: block;
    margin-bottom: 22px;
}

.cy27-hero h1 {
    margin-bottom: 26px;
}

.cy27-hero__lead {
    max-width: 520px;
    margin-bottom: 36px;
    font-size: 1.14rem;
    line-height: 1.7;
    color: var(--cy27-body);
}

.cy27-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.cy27-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-family: var(--cy27-mono);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cy27-subtle);
}

/* Frame stack */
.cy27-hero__frames {
    position: relative;
    perspective: 1100px;
}

.cy27-frames {
    position: relative;
    transition: transform .25s ease;
    transform-style: preserve-3d;
}

.cy27-frame {
    border: 1px solid var(--cy27-line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(9, 13, 20, .9);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}

.cy27-frame__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(6, 9, 14, .8);
    border-bottom: 1px solid var(--cy27-line-soft);
}

.cy27-frame__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2b3442;
    flex-shrink: 0;
}

.cy27-frame__url {
    margin-left: 8px;
    font-family: var(--cy27-mono);
    font-size: .7rem;
    color: var(--cy27-subtle);
}

.cy27-frame__shot {
    aspect-ratio: 16 / 11;
}

/* Secondary frame overlaps the primary, bottom-right. */
.cy27-frame--mini {
    position: absolute;
    right: -18px;
    bottom: -34px;
    width: 50%;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}

.cy27-frame--mini .cy27-frame__bar {
    padding: 9px 12px;
}

.cy27-frame--mini .cy27-frame__dot {
    width: 7px;
    height: 7px;
}

.cy27-frame--mini .cy27-frame__shot {
    aspect-ratio: 16 / 10;
}

/* --------------------------------------------------------------------------
   2. Built with
   -------------------------------------------------------------------------- */

.cy27-builtwith {
    display: flex;
    align-items: baseline;
    gap: 28px;
    padding: 22px 0;
    border-top: 1px solid var(--cy27-line);
    border-bottom: 1px solid var(--cy27-line);
}

.cy27-builtwith__label {
    flex-shrink: 0;
}

.cy27-builtwith p {
    font-size: .98rem;
    line-height: 1.7;
    color: var(--cy27-muted);
}

/* --------------------------------------------------------------------------
   3. Section headers
   -------------------------------------------------------------------------- */

.cy27-sechead {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 36px;
    margin-bottom: 44px;
}

.cy27-sechead__eyebrow {
    display: block;
    margin-bottom: 16px;
}

.cy27-sechead h2 {
    max-width: 16ch;
}

.cy27-sechead__aside {
    max-width: 420px;
    text-align: right;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cy27-body);
}

.cy27-sechead--stack {
    grid-template-columns: 1fr;
}

.cy27-sechead--stack h2 {
    max-width: 22ch;
}

.cy27-sechead--stack .cy27-lead {
    max-width: 620px;
    margin-top: 18px;
}

/* --------------------------------------------------------------------------
   4. Two offers
   -------------------------------------------------------------------------- */

.cy27-offers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.cy27-offer {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color .4s var(--cy27-ease);
}

/* Cursor glow follows the pointer inside the card. */
.cy27-offer__glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
    background: radial-gradient(420px circle at var(--cy27-gx, 50%) var(--cy27-gy, 50%),
        rgba(0, 192, 250, .13), transparent 62%);
}

.cy27-offer.is-glowing {
    border-color: rgba(0, 192, 250, .34);
}

.cy27-offer.is-glowing .cy27-offer__glow {
    opacity: 1;
}

.cy27-offer > *:not(.cy27-offer__glow) {
    position: relative;
    z-index: 1;
}

.cy27-offer__shot {
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.cy27-offer__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 34px 32px 32px;
}

.cy27-offer__titlerow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cy27-offer__titlerow h3 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.015em;
}

.cy27-offer__price {
    flex-shrink: 0;
    font-family: var(--cy27-mono);
    font-size: .82rem;
    color: var(--cy27-accent);
}

.cy27-offer__desc {
    margin-bottom: 22px;
    font-size: .97rem;
    line-height: 1.7;
    color: var(--cy27-body);
}

.cy27-offer__list {
    display: grid;
    gap: 11px;
    margin-bottom: 26px;
}

.cy27-offer__list li {
    display: flex;
    gap: 11px;
    font-size: .97rem;
    line-height: 1.6;
    color: var(--cy27-body-strong);
}

.cy27-offer__list i {
    flex-shrink: 0;
    margin-top: .35em;
    font-size: .78rem;
    color: var(--cy27-accent);
}

.cy27-offer__link {
    margin-top: auto;
    font-size: .95rem;
    font-weight: 700;
}

/* Supporting tiles */
.cy27-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 22px;
}

.cy27-tile {
    padding: 28px 26px;
}

.cy27-tile h4 {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.cy27-tile p {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--cy27-body);
}

/* --------------------------------------------------------------------------
   5. Decision helper
   -------------------------------------------------------------------------- */

.cy27-decide {
    margin-top: 60px;
    padding: 44px 40px;
    border-radius: 16px;
}

.cy27-decide__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.cy27-decide__head h3 {
    font-size: 1.25rem;
}

.cy27-decide__grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 36px;
}

.cy27-decide__rule {
    background: var(--cy27-line);
}

.cy27-decide__col h4 {
    margin-bottom: 18px;
    font-family: var(--cy27-mono);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--cy27-accent);
}

.cy27-decide__list {
    display: grid;
    gap: 14px;
}

.cy27-decide__list li {
    display: flex;
    gap: 12px;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--cy27-body-strong);
}

.cy27-decide__list i {
    flex-shrink: 0;
    margin-top: .35em;
    font-size: .72rem;
    color: var(--cy27-accent);
}

.cy27-decide__note {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cy27-line);
    font-size: .95rem;
    line-height: 1.7;
    color: var(--cy27-muted);
}

/* --------------------------------------------------------------------------
   6. Scope builder
   -------------------------------------------------------------------------- */

.cy27-estimator {
    padding: 40px 36px;
}

.cy27-estimator__grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 44px;
}

.cy27-group {
    margin-bottom: 32px;
}

.cy27-group:last-child {
    margin-bottom: 0;
}

.cy27-group__label {
    display: block;
    margin-bottom: 14px;
}

.cy27-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cy27-chip {
    min-height: 44px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    color: var(--cy27-body-strong);
    font-family: var(--cy27-mono);
    font-size: .82rem;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease,
                color .25s ease, box-shadow .25s ease;
}

.cy27-chip:hover {
    border-color: rgba(255, 255, 255, .26);
    color: #fff;
}

.cy27-chip[aria-pressed="true"],
.cy27-chip[aria-checked="true"] {
    background: rgba(0, 192, 250, .14);
    border-color: rgba(0, 192, 250, .5);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 150, 250, .22);
}

.cy27-estimator__out {
    padding-left: 36px;
    border-left: 1px solid var(--cy27-line);
}

.cy27-estimator__outlabel {
    display: block;
    margin-bottom: 14px;
}

.cy27-estimator__price {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--cy27-heading);
    margin-bottom: 10px;
}

.cy27-estimator__time {
    font-family: var(--cy27-mono);
    font-size: .82rem;
    color: var(--cy27-muted);
}

.cy27-estimator__scope {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--cy27-line);
    font-size: .97rem;
    line-height: 1.6;
    color: var(--cy27-body-strong);
}

.cy27-estimator__send {
    margin-top: 24px;
}

.cy27-estimator__fine {
    margin-top: 16px;
    font-family: var(--cy27-mono);
    font-size: .72rem;
    line-height: 1.6;
    color: var(--cy27-subtle);
}

/* --------------------------------------------------------------------------
   7. Proof
   -------------------------------------------------------------------------- */

.cy27-flagship {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    overflow: hidden;
    margin-bottom: 22px;
}

.cy27-flagship__body {
    display: flex;
    flex-direction: column;
    padding: 44px 40px;
}

.cy27-badge {
    align-self: flex-start;
    padding: 6px 12px;
    background: rgba(0, 192, 250, .14);
    border: 1px solid rgba(0, 192, 250, .28);
    border-radius: 6px;
    font-family: var(--cy27-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cy27-accent);
    margin-bottom: 22px;
}

.cy27-flagship__mark {
    font-size: clamp(2.2rem, 3.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.05;
    color: var(--cy27-heading);
    margin-bottom: 8px;
}

.cy27-flagship__body h3 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

/* Targeted by class, not `.cy27-flagship__body p` — a descendant-element
   selector would outrank .cy27-flagship__mark and shrink the wordmark. */
.cy27-flagship__desc {
    margin-bottom: 22px;
    font-size: .97rem;
    line-height: 1.7;
    color: var(--cy27-body);
}

.cy27-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.cy27-tags span {
    padding: 6px 11px;
    border: 1px solid var(--cy27-line-strong);
    border-radius: 6px;
    font-family: var(--cy27-mono);
    font-size: .7rem;
    color: var(--cy27-muted);
}

.cy27-flagship__link {
    margin-top: auto;
    font-size: .95rem;
    font-weight: 700;
}

.cy27-flagship__shot {
    min-height: 400px;
    border-left: 1px solid rgba(255, 255, 255, .07);
}

/* Before/after comparison slider */
.cy27-compare {
    position: relative;
    /* Width must be definite: with only aspect-ratio + min-height, a forced
       height back-computes the width and overflows the container on mobile. */
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 280px;
    margin-bottom: 22px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--cy27-line);
    cursor: ew-resize;
    -webkit-user-select: none;
            user-select: none;
    touch-action: pan-y;
}

.cy27-compare__layer {
    position: absolute;
    inset: 0;
}

.cy27-compare__layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.cy27-compare__layer--after {
    clip-path: inset(0 0 0 var(--cy27-split, 50%));
}

.cy27-compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--cy27-split, 50%);
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg, transparent, rgba(0, 192, 250, .9), transparent);
    z-index: 3;
}

.cy27-compare__grip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(7, 9, 13, .85);
    border: 1px solid rgba(0, 192, 250, .5);
    color: var(--cy27-accent);
    cursor: ew-resize;
}

.cy27-compare__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 28px 30px;
    pointer-events: none;
    /* Both captured sites are light at the edges, so the scrim has to carry
       real weight for the label, heading and captions to stay readable. */
    background: linear-gradient(180deg,
        rgba(4, 7, 12, .9) 0%,
        rgba(4, 7, 12, .55) 20%,
        transparent 42%,
        rgba(4, 7, 12, .55) 80%,
        rgba(4, 7, 12, .9) 100%);
}

.cy27-compare__label {
    display: block;
    margin-bottom: 10px;
}

.cy27-compare__overlay h3 {
    font-size: 1.25rem;
}

.cy27-compare__pill {
    position: absolute;
    top: 28px;
    right: 30px;
    padding: 6px 12px;
    border: 1px solid var(--cy27-line-strong);
    border-radius: 6px;
    background: rgba(7, 9, 13, .6);
    font-family: var(--cy27-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cy27-body-strong);
}

.cy27-compare__foot {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--cy27-mono);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--cy27-placeholder-ink);
}

.cy27-compare__foot span:last-child {
    color: #a8d8ee;
}

/* Client cards */
.cy27-clients {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cy27-client {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    transition: transform .4s var(--cy27-ease), border-color .4s var(--cy27-ease),
                box-shadow .4s var(--cy27-ease);
}

.cy27-client.is-lifted {
    transform: translate3d(0, -7px, 0);
    border-color: rgba(0, 192, 250, .32);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.cy27-client__shot {
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.cy27-client__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.cy27-client__kicker {
    display: block;
    margin-bottom: 12px;
}

.cy27-client__body h4 {
    margin-bottom: 10px;
}

.cy27-client__body p {
    margin-bottom: 18px;
    font-size: .93rem;
    line-height: 1.6;
    color: var(--cy27-body);
}

.cy27-client .cy27-tags {
    margin-bottom: 18px;
}

.cy27-client__link {
    margin-top: auto;
    font-size: .9rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   8. Industries
   -------------------------------------------------------------------------- */

.cy27-industries {
    padding-top: 40px;
    border-top: 1px solid var(--cy27-line);
}

.cy27-industries__label {
    display: block;
    margin-bottom: 20px;
}

.cy27-industries__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cy27-industries__pills li {
    padding: 11px 18px;
    border: 1px solid var(--cy27-line-strong);
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--cy27-body-strong);
}

/* --------------------------------------------------------------------------
   9. Process
   -------------------------------------------------------------------------- */

.cy27-process {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 64px;
}

.cy27-process__intro h2 {
    margin-bottom: 20px;
}

.cy27-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.cy27-step:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.cy27-step__num {
    font-family: var(--cy27-mono);
    font-size: .8rem;
    letter-spacing: .1em;
    color: var(--cy27-accent);
    padding-top: .25em;
}

.cy27-step h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.cy27-step p {
    font-size: .97rem;
    line-height: 1.7;
    color: var(--cy27-body);
}

/* --------------------------------------------------------------------------
   10. Credibility trio
   -------------------------------------------------------------------------- */

.cy27-cred {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cy27-cred__card {
    padding: 32px;
}

.cy27-cred__label {
    display: block;
    margin-bottom: 16px;
}

.cy27-cred__card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.35;
}

.cy27-cred__card p {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--cy27-body);
}

/* --------------------------------------------------------------------------
   11. Final CTA
   -------------------------------------------------------------------------- */

.cy27-final {
    text-align: center;
    border-radius: 20px;
    padding: clamp(40px, 6vw, 84px) clamp(24px, 5vw, 64px);
}

.cy27-final h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    margin-bottom: 20px;
}

.cy27-final p {
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--cy27-body);
}

.cy27-final__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.cy27-final__note {
    font-family: var(--cy27-mono);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cy27-subtle);
}

/* --------------------------------------------------------------------------
   Headline word rise
   -------------------------------------------------------------------------- */

.cy27-word {
    display: inline-block;
    overflow: hidden;
    /* Without this compensation the overflow clip cuts descenders. */
    padding: .18em 0 .22em;
    margin: -.18em 0 -.22em;
}

.cy27-word > span {
    display: inline-block;
    transform: translate3d(0, 105%, 0);
    transition: transform .9s var(--cy27-ease-rise);
    transition-delay: var(--cy27-word-delay, 0ms);
}

[data-cy27-words].is-revealed .cy27-word > span {
    transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
    .cy27-hero {
        padding: 132px var(--cy27-gutter) 80px;
    }

    .cy27-hero__grid,
    .cy27-process {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cy27-sechead {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cy27-sechead__aside {
        text-align: left;
        max-width: 620px;
    }

    .cy27-offers,
    .cy27-tiles,
    .cy27-clients,
    .cy27-cred {
        grid-template-columns: 1fr;
    }

    .cy27-decide__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cy27-decide__rule {
        height: 1px;
    }

    .cy27-estimator__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cy27-estimator__out {
        padding-left: 0;
        padding-top: 28px;
        border-left: 0;
        border-top: 1px solid var(--cy27-line);
    }

    .cy27-flagship {
        grid-template-columns: 1fr;
    }

    .cy27-flagship__shot {
        min-height: 240px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .07);
    }
}

@media (max-width: 760px) {
    .cy27-section,
    .cy27-section--tight {
        padding-bottom: 84px;
    }

    .cy27-builtwith {
        flex-direction: column;
        gap: 12px;
    }

    /* The overlapping mini frame has nowhere to go at this width. */
    .cy27-frame--mini {
        position: static;
        width: 100%;
        margin-top: 18px;
    }

    .cy27-decide {
        padding: 32px 24px;
    }

    .cy27-decide__head,
    .cy27-offer__titlerow {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cy27-estimator {
        padding: 28px 22px;
    }

    .cy27-flagship__body,
    .cy27-offer__body {
        padding: 28px 24px;
    }

    .cy27-compare {
        aspect-ratio: 4 / 3;
    }

    .cy27-compare__foot {
        font-size: .62rem;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.cy27-page::after {
        animation: none;
    }

    .cy27-frames,
    .cy27-client,
    .cy27-offer,
    .cy27-offer__glow {
        transition: none;
    }

    .cy27-word > span {
        transform: none;
        transition: none;
    }
}
