:root {
    color-scheme: light dark;
    --violet: #5b47e0;
    --amber: #ffb238;
    --bg: #faf7f2;
    --surface: #ffffff;
    --muted: #f1edf8;
    --line: #e6e0f0;
    --text: #17142a;
    --soft: #625c7a;
    --accent: #5b47e0;
    --on-accent: #ffffff;
    --success: #1f9d68;
    --glow: rgba(91, 71, 224, 0.16);
    --shadow: 0 30px 60px -30px rgba(23, 20, 42, 0.45);
    --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #100e1d;
        --surface: #1c1930;
        --muted: #27233f;
        --line: #2f2a4b;
        --text: #f4f1fb;
        --soft: #a9a3c2;
        --accent: #9c8cff;
        --on-accent: #17142a;
        --success: #3dcb91;
        --glow: rgba(124, 104, 255, 0.28);
        --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 var(--round);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow {
    max-width: 720px;
}

header.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
}

nav.site {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    font-weight: 600;
    font-size: 15px;
}

nav.site a {
    color: var(--soft);
    text-decoration: none;
}

nav.site a:hover,
nav.site a[aria-current] {
    color: var(--text);
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
}

h2 {
    font-size: clamp(28px, 4.2vw, 42px);
    font-weight: 800;
}

h3 {
    font-size: 20px;
    font-weight: 700;
}

p {
    margin: 0;
    text-wrap: pretty;
}

.lead {
    font-size: clamp(18px, 2.2vw, 21px);
    color: var(--soft);
    max-width: 34em;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    padding-block: 48px 96px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -160px -30% auto auto;
    width: 900px;
    height: 900px;
    background: radial-gradient(closest-side, var(--glow), transparent);
    pointer-events: none;
    z-index: -1;
}

.hero-copy {
    display: grid;
    gap: 22px;
    justify-items: start;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cta-note {
    margin: 0;
    color: var(--soft);
    font-size: 15px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 18px;
    font-weight: 700;
    text-decoration: none;
    background: var(--accent);
    color: var(--on-accent);
    transition: transform 0.15s ease;
}

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

.button.ghost {
    background: var(--muted);
    color: var(--text);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--muted);
    color: var(--soft);
    font-size: 14px;
    font-weight: 600;
}

.pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
}

.phones {
    position: relative;
    height: 620px;
}

.phone {
    position: absolute;
    width: 270px;
    border-radius: 42px;
    padding: 8px;
    background: #0b0a14;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone img {
    border-radius: 34px;
    width: 100%;
    height: auto;
}

.phones .phone:nth-child(1) {
    left: 4%;
    top: 40px;
    transform: rotate(-6deg);
}

.phones .phone:nth-child(2) {
    right: 2%;
    top: 0;
    transform: rotate(5deg);
}

section {
    padding-block: 72px;
}

.section-head {
    display: grid;
    gap: 14px;
    margin-bottom: 40px;
    max-width: 40em;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.card p {
    color: var(--soft);
    font-size: 16px;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--muted);
    color: var(--accent);
    margin-bottom: 6px;
}

.icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.split .copy {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.split .copy p {
    color: var(--soft);
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: grid;
    gap: 12px;
}

.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
}

.steps li::before {
    content: counter(step);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 800;
    font-size: 15px;
}

.code {
    overflow-x: auto;
    background: #17142a;
    color: #e9e5fb;
    border-radius: 26px;
    padding: 24px;
    font: 14px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    box-shadow: var(--shadow);
    margin: 0;
}

.code .k {
    color: #b9adff;
}

.code .s {
    color: #ffcf7d;
}

.shots {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 24px 28px;
    scroll-snap-type: x mandatory;
    justify-content: safe center;
}

.shots .phone {
    position: static;
    flex: none;
    width: 240px;
    scroll-snap-align: center;
}

.shots .phone img {
    border-radius: 34px;
}

.band {
    background: var(--violet);
    color: #fff;
    border-radius: 36px;
    padding: clamp(28px, 5vw, 56px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    overflow: hidden;
}

.band p {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 14px;
    max-width: 32em;
}

.band ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.band li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--amber);
    font-weight: 800;
}

.band img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.12);
}

.band a {
    color: #fff;
}

footer.site {
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding-block: 32px 48px;
    color: var(--soft);
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
}

footer.site nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

footer.site a {
    color: var(--soft);
}

.doc {
    padding-block: 32px 48px;
}

.doc h1 {
    font-size: clamp(34px, 5vw, 48px);
    margin-bottom: 12px;
}

.doc h2 {
    font-size: 24px;
    margin: 40px 0 10px;
}

.doc p,
.doc ul {
    margin: 0 0 14px;
}

.doc ul {
    padding-left: 22px;
}

.doc li {
    margin-bottom: 6px;
}

.doc .meta {
    color: var(--soft);
}

.doc .summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px 24px;
    margin: 24px 0;
}

.doc .summary p:last-child,
.doc details p:last-child {
    margin-bottom: 0;
}

.doc details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 10px;
}

.doc summary {
    font-weight: 700;
    cursor: pointer;
}

.doc details[open] summary {
    margin-bottom: 10px;
}

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

    .hero {
        padding-block: 24px 48px;
    }

    .phones {
        height: 500px;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .phone {
        width: 210px;
        border-radius: 34px;
        padding: 6px;
    }

    .phone img {
        border-radius: 28px;
    }

    .band img {
        width: 120px;
        height: 120px;
        order: -1;
    }

    section {
        padding-block: 48px;
    }
}

@media (max-width: 520px) {
    nav.site a[href^="#"] {
        display: none;
    }
}

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

    .button {
        transition: none;
    }
}
