:root {
    --bg: #030812;
    --card: #0a1426;
    --card2: #0d1c36;
    --line: #16335a;
    --blue: #0b77c3;
    --cyan: #38c6f4;
    --text: #fff;
    --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: 30px 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(36px, 5.2vw, 62px);
    font-weight: 800;
}

h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    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;
}

.top b {
    color: var(--cyan);
    font-weight: 700;
}

.k {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.lede {
    font-size: 18px;
    max-width: 720px;
}

.g2,
.alt {
    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;
}

.mt {
    margin-top: 40px;
}

.card {
    background: linear-gradient(160deg, var(--card2), var(--card));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    transition:
        transform 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 12px 36px rgba(11, 119, 195, 0.25);
}

.card p:last-child {
    margin-bottom: 0;
}

.n {
    color: var(--cyan);
}

.val,
.ben {
    font-size: 15px;
    color: var(--mut);
}

.val b,
.ben b,
.ka {
    color: var(--cyan);
}

.btn {
    display: inline-block;
    font-weight: 600;
    padding: 15px 26px;
    border-radius: 10px;
    text-decoration: none;
    margin: 6px 12px 6px 0;
    transition: 0.25s;
}

.bp {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 28px rgba(11, 119, 195, 0.4);
}

.bp:hover {
    background: #1590e6;
    transform: translateY(-2px);
}

.bg {
    color: var(--text);
    border: 1px solid var(--line);
}

.bg:hover {
    border-color: var(--cyan);
}

.dl {
    display: grid;
    grid-template-columns: 170px 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: 13px 18px;
    border-bottom: 1px solid var(--line);
}

.dl dt {
    color: var(--cyan);
    font-weight: 600;
    font-size: 14px;
}

.dl dd {
    color: var(--text);
}

.dl .hd {
    grid-column: 1/-1;
    background: rgba(11, 119, 195, 0.2);
    color: var(--text);
    font-weight: 700;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
}

.dl dt:nth-last-of-type(1),
.dl dd:last-child {
    border-bottom: 0;
}

.alt {
    margin-bottom: 72px;
}

.alt:last-child {
    margin-bottom: 0;
}

.alt.f .at {
    order: 2;
}

.big {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--cyan);
    margin-bottom: 14px;
}

.step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

ul.cl {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.cl li {
    padding: 7px 0 7px 22px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

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 img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
    flex: none;
}

.tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    background: rgba(11, 119, 195, 0.14);
    color: var(--text);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 500;
}

.shot .shot {
    padding: 18px 18px 24px;
}

.cta {
    background: linear-gradient(135deg, #0b77c3, #08365f 70%);
    border-radius: 22px;
    padding: 60px;
    border: 1px solid rgba(56, 198, 244, 0.35);
    box-shadow: 0 20px 60px rgba(11, 119, 195, 0.3);
}

.cta p {
    color: #e6f2fc;
    max-width: 760px;
}

.cta .bp {
    background: #fff;
    color: #06365e;
    box-shadow: none;
}

.cta .bg {
    border-color: rgba(255, 255, 255, 0.5);
}

.sum {
    font-size: 19px;
    color: var(--text);
}

footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    font-size: 14px;
}

@media (max-width: 900px) {

    .g2,
    .alt {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .alt.f .at {
        order: 0;
    }

    .g3 {
        grid-template-columns: 1fr 1fr;
    }

    section {
        padding: 64px 0;
    }
}

@media (max-width: 600px) {
    .g3 {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 34px 22px;
    }

    .dl {
        grid-template-columns: 1fr;
    }

    .dl dt {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .card {
        padding: 22px;
    }

    .btn {
        display: block;
        text-align: center;
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== IMAGE FIGURES (phone screenshots, 1300x1827 webp) ===== */
.fig {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 70% 12%,
            rgba(56, 198, 244, 0.24),
            transparent 55%),
        linear-gradient(160deg, #0b1b36, #04101f);
    padding: 28px 20px;
    overflow: hidden;
    isolation: isolate;
}

.fig img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 1300/1827;
    object-fit: contain;
    mix-blend-mode: lighten;
}

.fig.hero {
    max-width: 480px;
    margin-left: auto;
}

.fig.hero img {
    max-width: 360px;
}

.fig.s {
    padding: 14px;
    margin-bottom: 16px;
}

.fig.s img {
    max-width: 250px;
}

.fig.duo img,
.fig.trio img {
    max-width: none;
    flex: 0 0 auto;
}

.fig.duo img {
    width: 46%;
}

.fig.duo img:nth-child(2) {
    transform: translateY(28px);
}

.fig.trio img {
    width: 32%;
}

.fig.trio img:nth-child(2) {
    transform: translateY(-22px);
}

.shot {
    padding: 18px 18px 24px;
}

@media (max-width: 900px) {
    .fig.hero {
        margin: 0 auto;
    }

    .fig img {
        max-width: 300px;
    }

    .fig.s img {
        max-width: 260px;
    }
}

@media (max-width: 600px) {
    .fig {
        padding: 20px 12px;
    }

    .fig.duo,
    .fig.trio {
        gap: 8px;
    }
}

/* scroll reveal (class added by script.js, so the page works without JS) */
.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;
    }
}

/* image figures: phone mockups blend into the glow panel */
.fig {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 70% 12%,
            rgba(56, 198, 244, 0.24),
            transparent 55%),
        linear-gradient(160deg, #0b1b36, #04101f);
    padding: 28px 20px;
    overflow: hidden;
}

.fig img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 1300/1827;
    mix-blend-mode: lighten;
}

.fig.hero {
    max-width: 480px;
    margin-left: auto;
}

.fig.hero img {
    max-width: 360px;
}

.fig.s {
    padding: 14px;
    margin-bottom: 16px;
}

.fig.s img {
    max-width: 250px;
}

.fig.duo img,
.fig.trio img {
    max-width: none;
}

.fig.duo img {
    width: 46%;
}

.fig.duo img:nth-child(2) {
    transform: translateY(28px);
}

.fig.trio img {
    width: 32%;
}

.fig.trio img:nth-child(2) {
    transform: translateY(-22px);
}

.ph {
    aspect-ratio: 4/3;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: radial-gradient(circle at 80% 10%, rgba(56, 198, 244, .2), transparent 50%), linear-gradient(160deg, #0E2547, #071122);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden
}

.ph i {
    display: block;
    height: 14px;
    border-radius: 7px;
    background: rgba(56, 198, 244, .18)
}

.ph i:first-child {
    width: 45%;
    background: var(--blue)
}

.ph u {
    flex: 1;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11, 119, 195, .35), rgba(11, 119, 195, .05));
    border: 1px solid var(--line)
}

.shot .ph {
    aspect-ratio: 16/10;
    margin-bottom: 16px;
    padding: 16px
}

.big.sm {
    font-size: 34px;
    line-height: 1.1
}

.g3.t9 {
    grid-template-columns: repeat(3, 1fr)
}

.tech {
    margin-top: 4px
}

@media(max-width:900px) {
    .g3.t9 {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .g3.t9 {
        grid-template-columns: 1fr
    }
}

.fig16 {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: radial-gradient(circle at 70% 12%, rgba(56, 198, 244, .24), transparent 55%), linear-gradient(160deg, #0B1B36, #04101F);
    padding: 14px;
    overflow: hidden;
    isolation: isolate
}

.fig16 img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1307/730;
    object-fit: contain;
    mix-blend-mode: lighten
}

.fig16.hero {
    max-width: 560px;
    margin-left: auto
}

.fig16.light img {
    mix-blend-mode: normal;
    border-radius: 14px
}

.fig16.s {
    padding: 10px;
    margin-bottom: 16px
}

@media(max-width:900px) {
    .fig16.hero {
        margin: 0 auto
    }
}

/* Base button */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 15px 26px;
    border-radius: 10px;
    text-decoration: none;
    margin: 6px 12px 6px 0;
    transition: 0.25s;
}

/* Primary button (Discuss a Similar Project) */
.bp {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 28px rgba(11, 119, 195, 0.4);
}

.bp:hover {
    background: #1590e6;
    transform: translateY(-2px);
}

/* Native <button> reset so it looks like the old link */
button.btn {
    border: 0;
    font: inherit;
    font-weight: 600;
    line-height: 1.7;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

button.btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* White version inside the bottom CTA box */
.cta .bp {
    background: #fff;
    color: #06365e;
    box-shadow: none;
}

/* Full-width on mobile */
@media (max-width: 600px) {
    .btn {
        display: block;
        text-align: center;
        margin-right: 0;
    }
}

.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;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease,
        border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn.bg {
    background: #0b77c3;
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 119, 195, .25);
}

.btn.bg:hover {
    background: #095f9c;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 119, 195, .35);
}

.btn.bg:active {
    transform: translateY(0);
}

.btn.bg:focus-visible {
    outline: 3px solid rgba(11, 119, 195, .4);
    outline-offset: 3px;
}