:root {
    --bg: #04070b;
    --panel: #08101a;
    --panel2: #0c1521;
    --text: #f5f7fa;
    --muted: #91a0b3;
    --line: rgba(255, 255, 255, .11);
    --orange: #ff8c00;
    --orange2: #ffb13b;
    --blue: #47a7ff;
    --max: 1600px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font-d: "Space Grotesk", sans-serif;
    --font-b: "Manrope", sans-serif
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-b)
}

button,
a {
    font: inherit;
    color: inherit
}

button {
    cursor: pointer
}

a {
    text-decoration: none
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    opacity: .024;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E")
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none
}

.glow-a {
    width: 420px;
    height: 420px;
    background: rgba(71, 167, 255, .10);
    right: 10%;
    top: -12%
}

.glow-b {
    width: 340px;
    height: 340px;
    background: rgba(255, 140, 0, .11);
    left: -8%;
    bottom: -12%
}

.app-shell {
    height: 100dvh;
    width: min(100% - 40px, var(--max));
    margin: auto;
    display: grid;
    grid-template-rows: 72px minmax(0, .92fr) minmax(0, 1.08fr) 28px;
    gap: 10px;
    padding: 10px 0
}

.topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line)
}

.brand {
    width: 56px
}

.brand img {
    width: 100%;
    display: block;
    filter: brightness(0) invert(1)
}

.top-copy {
    text-align: center
}

.top-copy span {
    font: 700 9px var(--font-d);
    letter-spacing: .2em;
    color: #c7d0da
}

.top-copy b {
    display: block;
    margin-top: 4px;
    font-size: 7px;
    letter-spacing: .18em;
    color: #6e7a8b
}

.top-cta {
    justify-self: end;
    border: 1px solid rgba(255, 140, 0, .55);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 800
}

.top-cta i {
    font-style: normal;
    color: var(--orange);
    margin-left: 8px
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
    gap: 18px;
    min-height: 0
}

.hero-copy {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(22px, 3.2vh, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, rgba(11, 18, 28, .84), rgba(4, 7, 11, .96));
    position: relative;
    overflow: hidden
}

.hero-copy:after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, .13), transparent 70%)
}

.eyebrow {
    font: 800 8px var(--font-d);
    letter-spacing: .17em;
    color: #afbac8
}

.eyebrow i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 12px var(--orange);
    margin-right: 8px
}

.hero-copy h1 {
    font: 600 clamp(42px, 5.2vw, 82px)/.88 var(--font-d);
    letter-spacing: -.06em;
    margin: 16px 0 14px
}

.hero-copy h1 strong {
    color: var(--orange);
    font-weight: 700
}

.hero-copy p {
    max-width: 650px;
    margin: 0;
    color: #abb7c5;
    font-size: clamp(11px, 1vw, 15px);
    line-height: 1.6
}

.hero-actions {
    display: flex;
    gap: 9px;
    margin-top: 18px
}

.hero-actions button {
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 9px;
    font-weight: 800
}

.primary {
    border: 0;
    background: linear-gradient(110deg, var(--orange2), var(--orange));
    color: #111
}

.primary b {
    margin-left: 12px
}

.secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025)
}

.micro-stats {
    display: flex;
    gap: 18px;
    margin-top: 16px;
    font-size: 7px;
    color: #7f8b9c;
    text-transform: uppercase;
    letter-spacing: .12em;
    flex-wrap: wrap
}

.micro-stats b {
    color: #fff;
    margin-right: 4px
}

.hero-visual {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    min-height: 0;
    background: #07101a
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.visual-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 7, 11, .15), transparent 50%, rgba(4, 7, 11, .18)), linear-gradient(0deg, rgba(4, 7, 11, .55), transparent 50%)
}

.visual-chip {
    position: absolute;
    right: 14px;
    bottom: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(4, 7, 11, .62);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 6px;
    letter-spacing: .15em;
    font-weight: 800
}

.service-zone {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px
}

.zone-head {
    display: flex;
    align-items: end;
    justify-content: space-between
}

.zone-head span {
    font: 800 7px var(--font-d);
    letter-spacing: .16em;
    color: var(--orange)
}

.zone-head strong {
    display: block;
    font: 600 18px var(--font-d);
    margin-top: 2px
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px
}

.carousel-controls button {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #07101a
}

.carousel-controls span {
    min-width: 52px;
    text-align: center;
    color: #9aa7b6
}

.cards-viewport {
    overflow: hidden;
    min-height: 0
}

.cards-track {
    height: 100%;
    display: flex;
    gap: 10px;
    transition: transform .45s var(--ease);
    will-change: transform
}

.service-card {
    flex: 0 0 min(290px, 32vw);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(145deg, #0a121d, #05090f);
    transition: .35s var(--ease);
    position: relative;
    overflow: hidden
}

.service-card:before {
    content: "";
    position: absolute;
    inset: auto -20% -60% 25%;
    height: 160px;
    background: radial-gradient(circle, rgba(71, 167, 255, .10), transparent 68%)
}

.service-card:hover,
.service-card.active {
    transform: translateY(-3px);
    border-color: rgba(255, 140, 0, .48);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .28)
}

.service-card.active:after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--blue))
}

.service-card small {
    font: 800 7px var(--font-d);
    letter-spacing: .16em;
    color: var(--orange)
}

.service-card h2 {
    font: 600 20px/1.05 var(--font-d);
    margin: 8px 0 8px
}

.service-card p {
    margin: 0;
    color: #98a5b5;
    font-size: 10px;
    line-height: 1.45
}

.tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px
}

.tags span {
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 6px;
    color: #8996a8
}

.detail-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(9, 16, 26, .94), rgba(5, 9, 15, .98));
    padding: 12px 15px;
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(300px, 1.35fr) minmax(300px, 1.2fr) auto;
    gap: 16px;
    align-items: center
}

.detail-heading span {
    font: 800 6px var(--font-d);
    letter-spacing: .15em;
    color: var(--orange)
}

.detail-heading h3 {
    font: 600 16px/1.05 var(--font-d);
    margin: 4px 0 0
}

.detail-panel>p {
    margin: 0;
    color: #94a0af;
    font-size: 9px;
    line-height: 1.5
}

.detail-modules {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.detail-modules span {
    padding: 6px 8px;
    border-radius: 8px;
    background: #0d1723;
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: 6.5px;
    color: #c6ced8
}

.detail-link {
    white-space: nowrap;
    border: 1px solid rgba(255, 140, 0, .45);
    background: rgba(255, 140, 0, .07);
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 8px;
    font-weight: 800
}

.detail-link span {
    color: var(--orange);
    margin-left: 8px
}

.footer-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 6px;
    letter-spacing: .14em;
    color: #566171
}

.footer-line b {
    color: #8995a5
}

.footer-line span:last-child {
    text-align: right
}

.footer-line i {
    font-style: normal
}

.modal {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--text)
}

.modal::backdrop {
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(8px)
}

.modal-box {
    width: min(720px, 92vw);
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(145deg, #0b1420, #05080d);
    border-radius: 24px;
    padding: 28px;
    position: relative;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55)
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #07101a;
    font-size: 18px
}

.modal-kicker {
    font: 800 7px var(--font-d);
    letter-spacing: .16em;
    color: var(--orange)
}

.modal h2 {
    font: 600 clamp(28px, 4vw, 46px)/.95 var(--font-d);
    letter-spacing: -.04em;
    margin: 12px 40px 12px 0
}

.modal p {
    color: #9eabb9;
    font-size: 12px;
    line-height: 1.6
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 18px 0
}

.modal-grid span {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    font-size: 9px;
    background: #09111b
}

.modal-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 999px;
    padding: 13px 16px;
    background: linear-gradient(110deg, var(--orange2), var(--orange));
    color: #111;
    font-size: 9px;
    font-weight: 800
}

@media(max-width:980px) {
    .app-shell {
        width: min(100% - 24px, var(--max));
        grid-template-rows: 64px minmax(0, .86fr) minmax(0, 1.14fr) 22px
    }

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

    .hero-copy {
        padding: 20px
    }

    .hero-copy h1 {
        font-size: clamp(38px, 6.2vw, 64px)
    }

    .service-card {
        flex-basis: min(260px, 43vw)
    }

    .detail-panel {
        grid-template-columns: 1fr 1.4fr auto
    }

    .detail-modules {
        display: none
    }

    .detail-panel>p {
        font-size: 8.5px
    }
}

@media(max-width:700px) {

    html,
    body {
        overflow: hidden
    }

    .app-shell {
        width: calc(100% - 16px);
        padding: 6px 0;
        grid-template-rows: 54px 38% minmax(0, 1fr) 18px;
        gap: 6px
    }

    .topbar {
        grid-template-columns: auto 1fr auto
    }

    .brand {
        width: 42px
    }

    .top-copy {
        text-align: left;
        margin-left: 10px
    }

    .top-copy b {
        display: none
    }

    .top-cta {
        padding: 8px 10px;
        font-size: 8px
    }

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

    .hero-copy {
        position: absolute;
        z-index: 2;
        inset: 0;
        background: linear-gradient(90deg, rgba(3, 6, 10, .94), rgba(3, 6, 10, .72) 60%, rgba(3, 6, 10, .28));
        border: 0;
        border-radius: 20px;
        padding: 18px
    }

    .hero-visual {
        border-radius: 20px
    }

    .hero-copy h1 {
        font-size: clamp(36px, 12vw, 58px);
        margin: 10px 0
    }

    .hero-copy p {
        max-width: 78%;
        font-size: 9.2px
    }

    .hero-actions {
        margin-top: 12px
    }

    .hero-actions button {
        padding: 9px 11px;
        font-size: 7.5px
    }

    .micro-stats {
        display: none
    }

    .visual-chip {
        display: none
    }

    .zone-head strong {
        font-size: 14px
    }

    .service-zone {
        grid-template-rows: auto minmax(0, 1fr) auto
    }

    .service-card {
        flex-basis: 78vw;
        padding: 15px
    }

    .service-card h2 {
        font-size: 18px
    }

    .service-card p {
        font-size: 9px
    }

    .detail-panel {
        grid-template-columns: 1fr auto;
        padding: 10px 11px
    }

    .detail-panel>p,
    .detail-modules {
        display: none
    }

    .detail-heading h3 {
        font-size: 13px;
        max-width: 230px
    }

    .detail-link {
        padding: 8px 9px;
        font-size: 7px
    }

    .footer-line {
        font-size: 5px
    }

    .footer-line span:first-child {
        display: none
    }

    .footer-line {
        grid-template-columns: 1fr auto
    }

    .footer-line b {
        text-align: left
    }

    .modal-box {
        padding: 22px
    }

    .modal-grid {
        grid-template-columns: 1fr
    }
}

@media(max-height:720px) and (min-width:701px) {
    .app-shell {
        grid-template-rows: 58px minmax(0, .82fr) minmax(0, 1.18fr) 20px
    }

    .hero-copy {
        padding: 18px 24px
    }

    .hero-copy h1 {
        font-size: clamp(38px, 4.6vw, 62px);
        margin: 10px 0
    }

    .hero-copy p {
        font-size: 10px
    }

    .hero-actions {
        margin-top: 12px
    }

    .micro-stats {
        margin-top: 10px
    }

    .service-card {
        padding: 14px
    }

    .service-card h2 {
        font-size: 17px
    }

    .service-card p {
        font-size: 8.5px
    }

    .detail-panel {
        padding: 9px 12px
    }

    .detail-heading h3 {
        font-size: 14px
    }
}

/* KYNVAK ambient motion + polished modal */
.glow-a {
    animation: kynvakDriftA 11s ease-in-out infinite alternate
}

.glow-b {
    animation: kynvakDriftB 13s ease-in-out infinite alternate
}

.ambient-scan {
    position: fixed;
    inset: -35% 0 auto 0;
    height: 38%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(71, 167, 255, .035) 45%, rgba(255, 140, 0, .045) 55%, transparent);
    animation: kynvakScan 9s ease-in-out infinite
}

.hero-copy:before {
    content: "";
    position: absolute;
    inset: -60% -30%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 43%, rgba(255, 255, 255, .025) 49%, rgba(255, 140, 0, .055) 50%, transparent 57%);
    transform: translateX(-45%);
    animation: kynvakSweep 8s ease-in-out infinite
}

.hero-visual img {
    animation: kynvakImageBreath 12s ease-in-out infinite alternate;
    will-change: transform
}

.visual-chip {
    animation: kynvakChip 4.6s ease-in-out infinite
}

.eyebrow i {
    animation: kynvakPulse 2.4s ease-in-out infinite
}

.service-card.active:after {
    background-size: 200% 100%;
    animation: kynvakLine 3.8s linear infinite
}

.detail-panel {
    position: relative;
    overflow: hidden
}

.detail-panel:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 0 44%, rgba(71, 167, 255, .025) 49%, rgba(255, 140, 0, .035) 52%, transparent 58%);
    transform: translateX(-110%);
    animation: kynvakDetailSweep 7s ease-in-out infinite
}

.modal {
    overflow: hidden;
    max-height: 100dvh;
    opacity: 0;
    transform: scale(.965) translateY(10px);
    transition: opacity .24s ease, transform .32s var(--ease), display .32s allow-discrete, overlay .32s allow-discrete
}

.modal[open] {
    opacity: 1;
    transform: scale(1) translateY(0)
}

.modal::backdrop {
    opacity: 0;
    transition: opacity .28s ease, display .28s allow-discrete, overlay .28s allow-discrete
}

.modal[open]::backdrop {
    opacity: 1
}

.modal-box {
    overflow: hidden;
    max-height: calc(100dvh - 28px);
    transition: transform .32s var(--ease), opacity .24s ease
}

.modal.is-closing {
    opacity: 0;
    transform: scale(.975) translateY(8px)
}

.modal.is-closing::backdrop {
    opacity: 0
}

.modal-close {
    display: grid;
    place-items: center;
    transition: transform .35s var(--ease), border-color .3s ease, background .3s ease, box-shadow .3s ease
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.06);
    border-color: rgba(255, 140, 0, .6);
    background: rgba(255, 140, 0, .09);
    box-shadow: 0 0 22px rgba(255, 140, 0, .12)
}

@starting-style {
    .modal[open] {
        opacity: 0;
        transform: scale(.965) translateY(10px)
    }

    .modal[open]::backdrop {
        opacity: 0
    }
}

@keyframes kynvakDriftA {
    to {
        transform: translate(-8vw, 9vh) scale(1.12)
    }
}

@keyframes kynvakDriftB {
    to {
        transform: translate(10vw, -7vh) scale(.92)
    }
}

@keyframes kynvakScan {

    0%,
    15% {
        transform: translateY(-30vh);
        opacity: 0
    }

    30% {
        opacity: .8
    }

    65% {
        opacity: .35
    }

    82%,
    100% {
        transform: translateY(150vh);
        opacity: 0
    }
}

@keyframes kynvakSweep {

    0%,
    18% {
        transform: translateX(-55%)
    }

    55%,
    100% {
        transform: translateX(65%)
    }
}

@keyframes kynvakImageBreath {
    from {
        transform: scale(1.01) translate3d(0, 0, 0)
    }

    to {
        transform: scale(1.055) translate3d(-.7%, .5%, 0)
    }
}

@keyframes kynvakChip {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(71, 167, 255, 0)
    }

    50% {
        transform: translateY(-3px);
        box-shadow: 0 8px 26px rgba(71, 167, 255, .08)
    }
}

@keyframes kynvakPulse {

    0%,
    100% {
        opacity: .7;
        box-shadow: 0 0 8px var(--orange)
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px var(--orange)
    }
}

@keyframes kynvakLine {
    to {
        background-position: 200% 0
    }
}

@keyframes kynvakDetailSweep {

    0%,
    22% {
        transform: translateX(-110%)
    }

    62%,
    100% {
        transform: translateX(110%)
    }
}

@media(max-width:700px) {
    .modal {
        overflow: hidden
    }

    .modal-box {
        max-height: calc(100dvh - 16px);
        overflow: auto;
        scrollbar-width: none
    }

    .modal-box::-webkit-scrollbar {
        display: none
    }

    .ambient-scan {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {

    .glow-a,
    .glow-b,
    .ambient-scan,
    .hero-copy:before,
    .hero-visual img,
    .visual-chip,
    .eyebrow i,
    .service-card.active:after,
    .detail-panel:before {
        animation: none !important
    }

    .modal,
    .modal::backdrop,
    .modal-box,
    .modal-close {
        transition: none !important
    }
}