:root {
    color-scheme: dark;
    --bg: oklch(0.145 0.012 46);
    --bg-lift: oklch(0.19 0.018 48);
    --surface: oklch(0.225 0.018 48);
    --surface-strong: oklch(0.285 0.026 48);
    --line: oklch(0.34 0.022 54);
    --line-soft: oklch(0.27 0.018 54);
    --text: oklch(0.94 0.018 72);
    --muted: oklch(0.74 0.032 72);
    --soft: oklch(0.58 0.028 72);
    --accent: oklch(0.72 0.19 48);
    --accent-ink: oklch(0.19 0.04 48);
    --telegram: oklch(0.72 0.15 232);
    --telegram-ink: oklch(0.15 0.035 235);
    --max: 1120px;
    --page-pad: clamp(16px, 3vw, 32px);
    --radius: 12px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        linear-gradient(180deg, var(--bg-lift) 0, var(--bg) 430px),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
.button:focus-visible {
    outline: 3px solid color-mix(in oklch, var(--telegram), white 12%);
    outline-offset: 4px;
}

.site-header,
main,
footer {
    width: min(var(--max), calc(100% - (var(--page-pad) * 2)));
    margin-inline: auto;
}

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    grid-template-columns: repeat(2, 5px);
    grid-template-rows: repeat(2, 5px);
    place-content: center;
    gap: 6px;
    border: 1px solid color-mix(in oklch, var(--accent), black 28%);
    border-radius: 9px;
    background: color-mix(in oklch, var(--accent), black 78%);
}

.brand-mark span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
}

nav {
    gap: clamp(12px, 2vw, 20px);
    color: var(--muted);
    font-size: 0.94rem;
}

nav a {
    transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}

nav a:hover {
    color: var(--text);
}

.nav-cta {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid color-mix(in oklch, var(--telegram), black 24%);
    border-radius: 999px;
    color: var(--text);
}

.nav-cta:hover {
    background: color-mix(in oklch, var(--telegram), transparent 88%);
    border-color: var(--telegram);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.78fr);
    align-items: center;
    gap: clamp(32px, 5vw, 68px);
    padding: clamp(32px, 6vw, 58px) 0 clamp(52px, 7vw, 84px);
}

.hero > * {
    min-width: 0;
}

.hero-copy {
    width: 100%;
    max-width: 720px;
    animation: rise-in 720ms var(--ease-out) both;
}

.kicker {
    width: fit-content;
    margin: 0 0 18px;
    padding: 7px 11px;
    border: 1px solid color-mix(in oklch, var(--accent), black 38%);
    border-radius: 999px;
    background: color-mix(in oklch, var(--accent), transparent 88%);
    color: color-mix(in oklch, var(--accent), white 10%);
    font-size: 0.86rem;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(2.85rem, 6.2vw, 5.7rem);
    line-height: 0.96;
    letter-spacing: -0.025em;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 3.8vw, 3.35rem);
    line-height: 1.03;
    letter-spacing: -0.018em;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.lead {
    max-width: 620px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--telegram);
    color: var(--telegram-ink);
}

.button.secondary {
    border: 1px solid var(--line);
    color: var(--text);
}

.button.secondary:hover {
    border-color: color-mix(in oklch, var(--accent), white 6%);
    background: color-mix(in oklch, var(--accent), transparent 90%);
}

.fineprint {
    max-width: 590px;
    margin: 0;
    color: var(--soft);
    font-size: 0.88rem;
    text-wrap: pretty;
}

.product-shots {
    width: min(100%, 460px);
    aspect-ratio: 1 / 1.32;
    position: relative;
    margin: 0;
    isolation: isolate;
    animation: rise-in 780ms 80ms var(--ease-out) both;
}

.product-shots::before {
    content: "";
    position: absolute;
    inset: 11% 2% 7% 12%;
    z-index: -1;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, color-mix(in oklch, var(--surface-strong), transparent 6%), color-mix(in oklch, var(--bg), transparent 4%));
}

.product-shots::after {
    content: "Wallet + Rooms";
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.76rem;
    font-weight: 900;
}

.shot {
    width: 55%;
    height: auto;
    display: block;
    position: absolute;
    border-radius: clamp(14px, 2.2vw, 24px);
    background: #090807;
    box-shadow: 0 28px 62px rgba(0, 0, 0, 0.46);
}

.shot-wallet {
    top: 0;
    left: 0;
    z-index: 1;
}

.shot-rooms {
    right: 0;
    bottom: 0;
    z-index: 2;
}

.section {
    padding: clamp(54px, 7vw, 86px) 0;
    border-top: 1px solid var(--line-soft);
}

.section-heading {
    max-width: 740px;
    margin-bottom: clamp(28px, 4vw, 42px);
}

.section-heading p,
.steps p,
.plain-list,
.cta-band p,
footer {
    color: var(--muted);
}

.section-heading p {
    max-width: 58ch;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 30px);
}

.steps article {
    min-width: 0;
    padding-top: 18px;
    border-top: 1px solid color-mix(in oklch, var(--accent), black 24%);
}

.steps p {
    margin-bottom: 0;
    font-size: 0.96rem;
    text-wrap: pretty;
}

.step-number {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 9px;
    background: color-mix(in oklch, var(--accent), black 78%);
    color: var(--accent);
    font-weight: 900;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(32px, 6vw, 70px);
}

.plain-list {
    max-width: 680px;
    font-size: 1.05rem;
}

.plain-list p {
    text-wrap: pretty;
}

ul {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

li {
    position: relative;
    padding-left: 26px;
}

li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}

li + li {
    margin-top: 10px;
}

.cta-band {
    margin: clamp(20px, 4vw, 34px) 0 clamp(54px, 7vw, 76px);
    padding: clamp(26px, 5vw, 44px);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, color-mix(in oklch, var(--telegram), black 26%), color-mix(in oklch, var(--accent), black 24%));
    color: var(--telegram-ink);
}

.cta-band h2 {
    max-width: 620px;
    margin-bottom: 10px;
    color: oklch(0.985 0.016 80);
}

.cta-band p {
    max-width: 620px;
    margin-bottom: 22px;
    color: oklch(0.985 0.01 80);
}

.cta-band .button.primary {
    background: oklch(0.985 0.016 80);
    color: oklch(0.18 0.034 48);
}

footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.9rem;
}

footer span:first-child {
    color: var(--text);
    font-weight: 800;
}

@keyframes rise-in {
    from {
        transform: translateY(14px);
        filter: blur(6px);
    }
    to {
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 900px) {
    .hero,
    .split,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 24px;
        padding-top: 28px;
    }

    .hero-copy {
        max-width: 650px;
    }

    .product-shots {
        width: min(100%, 400px);
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 66px;
        gap: 14px;
    }

    nav a:not(.nav-cta) {
        display: none;
    }

    h1 {
        max-width: 11ch;
        font-size: clamp(2.45rem, 12vw, 3.25rem);
    }

    .lead {
        max-width: 34ch;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .kicker {
        margin-bottom: 14px;
    }

    .product-shots {
        width: min(100%, 320px);
    }

    .product-shots::after {
        right: 8px;
        bottom: 6px;
    }

    .section {
        padding-block: 48px;
    }

    footer {
        min-height: 86px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }
}

@media (max-width: 420px) {
    .site-header {
        width: calc(100% - 24px);
    }

    .brand {
        gap: 10px;
    }

    .nav-cta {
        padding-inline: 12px;
    }

    .hero {
        padding-bottom: 42px;
    }

    h1 {
        font-size: 2.35rem;
    }

    .product-shots {
        width: min(100%, 280px);
    }

    .cta-band {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
