:root {
    --bg: #030812;
    --card: #0a1426;
    --card2: #0d1c36;
    --line: #16335a;
    --blue: #0b77c3;
    --cyan: #38c6f4;
    --text: #ffffff;
    --mut: #b4c2d9;
    --f: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(900px 500px at 85% -5%,
            rgba(11, 119, 195, 0.22),
            transparent 60%),
        var(--bg);
    color: var(--mut);
    font: 400 16px/1.7 var(--f);
    overflow-x: hidden;
    padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}

a {
    color: var(--cyan);
}

a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.w {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 60px 0;
    border-top: 1px solid var(--line);
    position: relative;
}

h1,
h2,
h3 {
    color: var(--text);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(34px, 4.8vw, 54px);
    font-weight: 800;
}

h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    margin-bottom: 18px;
}

h3 {
    font-size: 20px;
    font-weight: 650;
    margin-bottom: 10px;
}

p {
    margin: 0 0 16px;
}

.top {
    padding: 16px 0;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.k {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.lede {
    font-size: 18px;
    color: var(--mut);
    max-width: 760px;
    line-height: 1.7;
}

.mt {
    margin-top: 36px;
}

.g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

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

.g4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.card {
    background: linear-gradient(160deg, var(--card2), var(--card));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 12px 36px rgba(11, 119, 195, 0.25);
}

.card p {
    color: var(--mut);
    margin: 0 0 12px;
}

.card p:last-child {
    margin-bottom: 0;
}

.n {
    color: var(--cyan);
    margin-right: 6px;
}

.val,
.ben {
    font-size: 15px;
    color: var(--mut);
    margin-top: 14px;
}

.val b,
.ben b,
.ka {
    color: var(--cyan);
}

.meta {
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
    color: var(--mut);
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(22, 51, 90, 0.6);
}

.meta li:last-child {
    border-bottom: none;
}

.meta b {
    color: var(--cyan);
    margin-right: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    margin: 8px 12px 8px 0;
    transition: background-color .2s ease, color .2s ease,
        border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

button.btn {
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.btn.bp {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 28px rgba(11, 119, 195, 0.4);
}

.btn.bp:hover {
    background: #1590e6;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(11, 119, 195, 0.55);
    color: #fff;
}

.btn.bg {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn.bg:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

.fig16 {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: radial-gradient(circle at 70% 12%, rgba(56, 198, 244, 0.22), transparent 55%),
        linear-gradient(160deg, #0b1b36, #04101f);
    padding: 20px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.fig16.mobile {
    max-width: 380px;
    margin: 0 auto;
}

.fig16 img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
}

.card .fig16.mobile {
    max-width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 16px;
    box-shadow: none;
}

.card .fig16.mobile img {
    max-width: 260px;
    border-radius: 10px;
}

.dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    margin: 24px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
}

.dl dt,
.dl dd {
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.dl dt {
    color: var(--cyan);
    font-weight: 600;
    font-size: 14px;
    background: rgba(11, 119, 195, 0.1);
}

.dl dd {
    color: var(--text);
}

.dl dt:nth-last-of-type(1),
.dl dd:last-child {
    border-bottom: 0;
}

.alt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 72px;
}

.alt:last-child {
    margin-bottom: 0;
}

.alt.f .at {
    order: 2;
}

.alt.f .fig16 {
    order: 1;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    font-size: 15px;
}

ul.cl {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.cl li {
    padding: 8px 0 8px 22px;
    position: relative;
    border-bottom: 1px solid var(--line);
    color: var(--mut);
}

ul.cl li:last-child {
    border: 0;
}

ul.cl li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--cyan);
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.tech span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: rgba(11, 119, 195, 0.14);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 500;
    transition: border-color .2s, background-color .2s;
}

.tech span:hover {
    border-color: var(--cyan);
    background: rgba(56, 198, 244, 0.16);
}

.tech img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

.sum {
    font-size: 17px;
    color: var(--mut);
    line-height: 1.75;
    margin-bottom: 16px;
}

.cta {
    background: linear-gradient(135deg, #0b77c3, #08365f 70%);
    border-radius: 22px;
    padding: 60px 48px;
    border: 1px solid rgba(56, 198, 244, 0.35);
    box-shadow: 0 20px 60px rgba(11, 119, 195, 0.3);
    text-align: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta p {
    color: #e6f2fc;
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 17px;
}

.cta .bp {
    background: #fff;
    color: #06365e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta .bp:hover {
    background: #eaf3fc;
    color: #042542;
    transform: translateY(-2px);
}

.cta .bg {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cta .bg:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Scroll reveal animations */
.js .rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .rv.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .rv {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {

    .g2,
    .alt {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .alt.f .at {
        order: 0;
    }

    .alt.f .fig16 {
        order: 0;
    }

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

    section {
        padding: 50px 0;
    }
}

@media (max-width: 600px) {

    .g3,
    .g4 {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 36px 20px;
    }

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

    .dl dt {
        border-bottom: 0;
        padding-bottom: 4px;
    }

    .card {
        padding: 22px;
    }

    .btn {
        display: flex;
        width: 100%;
        margin-right: 0;
    }
}

#tech .g3 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    /* keep your existing gap */
}

#tech .g3>.card {
    grid-column: span 2;
}

/* last two cards centered */
#tech .g3>.card:nth-last-child(2) {
    grid-column: 2 / span 2;
}

#tech .g3>.card:nth-last-child(1) {
    grid-column: 4 / span 2;
}

/* tablet / mobile: reset */
@media (max-width: 991px) {
    #tech .g3 {
        grid-template-columns: repeat(2, 1fr);
    }

    #tech .g3>.card,
    #tech .g3>.card:nth-last-child(1),
    #tech .g3>.card:nth-last-child(2) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    #tech .g3 {
        grid-template-columns: 1fr;
    }
}