:root {
    color-scheme: light;
    --paper: #fbf8fc;
    --white: #fff;
    --ink: #281829;
    --muted: #5e4c62;
    --accent: #822653;
    --accent-hover: #632142;
    --lavender: #e5c9f3;
    --lavender-light: #f2e7f7;
    --pink: #f5dee8;
    --line: #dfd0e3;
    --dark: #32203c;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: Manrope, system-ui, sans-serif;
    --header-height: 72px;
    --gutter: clamp(1.15rem, 4vw, 3.5rem);
    --section-space: clamp(4.5rem, 8vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1.3rem);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.65 var(--sans);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

h1, h2, h3, p { margin: 0; }
h1, h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: .95;
    text-wrap: balance;
}

h1 { font-size: clamp(4.3rem, 8.3vw, 8.8rem); }
h2 { font-size: clamp(3.1rem, 6.3vw, 6.1rem); }
h1 em, h2 em { color: var(--accent); }
h3 { font-size: 1.075rem; line-height: 1.35; font-weight: 800; }

.container { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-space); }

.skip-link {
    position: fixed;
    top: .75rem;
    left: 1rem;
    z-index: 3;
    padding: .6rem 1rem;
    background: var(--white);
    transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: fixed;
    z-index: 2;
    inset: 0 0 auto;
    background: rgb(251 248 252 / 90%);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
    transition: border-color 180ms, background-color 180ms;
}

.site-header.is-scrolled {
    background: rgb(251 248 252 / 97%);
    border-color: var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    font-size: .96rem;
    font-weight: 800;
    text-decoration: none;
}

.brand img { width: 35px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3.1vw, 2.75rem); }
.site-nav > a { font-size: .875rem; font-weight: 800; text-decoration: none; }
.site-nav > a:not(.button):hover, .text-link:hover { color: var(--accent); }
.menu-toggle { display: none; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 53px;
    padding: .75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 180ms, color 180ms;
}

.button:hover { background: var(--accent-hover); }
.button-small {
    min-height: 42px;
    padding: .55rem .95rem;
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
}

.button-small:hover { background: var(--accent); color: var(--white); }
.play-icon {
    display: inline-block;
    width: .85rem;
    height: .95rem;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5.5rem);
    padding-block: calc(var(--header-height) + clamp(1.5rem, 4vw, 4.2rem)) clamp(3rem, 6vw, 5.5rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero-badge::before {
    width: .43rem;
    height: .43rem;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.hero h1 { text-wrap: initial; }
.hero h1 em { display: block; }

.hero-description {
    max-width: 31ch;
    margin-top: 1.55rem;
    color: var(--muted);
    font-size: clamp(1.025rem, 2vw, 1.24rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .95rem 1.5rem;
    margin-top: 1.8rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    font-size: .875rem;
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: .23em;
}

.hero-display {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: clamp(28rem, 47vw, 36.5rem);
    overflow: hidden;
    border: 1px solid #d9b6e6;
    border-radius: clamp(1rem, 2.5vw, 2rem);
    background:
        radial-gradient(ellipse at 18% 17%, #f8e6ed, transparent 54%),
        radial-gradient(ellipse at 85% 83%, #d7a9e6, transparent 57%),
        var(--lavender);
}

.hero-display::before,
.hero-display::after {
    position: absolute;
    z-index: -1;
    width: 95%;
    height: 65%;
    border: 1px solid rgb(130 38 83 / 28%);
    border-radius: 50%;
    content: "";
}

.hero-display::before {
    box-shadow: 0 0 0 1.45rem rgb(251 248 252 / 20%);
    transform: rotate(-31deg);
}

.hero-display::after { transform: rotate(29deg) scale(.92); }

.phone {
    width: clamp(12.7rem, 23vw, 16rem);
    padding: .55rem;
    border: 1px solid #5e4c62;
    border-radius: 1.85rem;
    background: var(--ink);
    box-shadow: .8rem 1.5rem 2.6rem rgb(60 26 62 / 32%);
    transform: rotate(-5deg);
}

.phone img { width: 100%; border-radius: 1.25rem; }

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: end;
    gap: 1rem 2.5rem;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-heading h2, .steps-layout h2, .launcher h2, .download h2 { text-wrap: initial; }
.section-heading p { max-width: 42ch; color: var(--muted); }

.gallery-section {
    border-block: 1px solid var(--line);
    background: var(--lavender-light);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(.65rem, 1.7vw, 1.25rem);
}

.gallery a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: .9rem;
    background: var(--paper);
    cursor: zoom-in;
    transition: box-shadow 180ms;
}

.gallery a:hover { box-shadow: 0 6px 18px rgb(50 32 60 / 20%); }
.gallery img { width: 100%; }
.gallery .gallery-banner {
    display: grid;
    grid-column: 1 / -1;
    place-items: center;
    background: var(--dark);
}

.gallery-banner img { max-height: 27rem; width: auto; object-fit: contain; }

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature {
    padding: clamp(1.15rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
}

.feature-mark {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: 1.15rem;
    border-radius: .75rem;
    background: var(--lavender-light);
    color: var(--accent);
    font: 1.3rem/1 system-ui, sans-serif;
}

.feature:nth-child(2n) .feature-mark { background: var(--pink); }
.feature p, .steps p, .launcher-copy p { margin-top: .55rem; color: var(--muted); }

.steps-section { background: var(--dark); color: var(--paper); }
.steps-layout, .launcher, .download {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem clamp(2rem, 6vw, 5.5rem);
}

.steps-layout h2 em { color: #f0b7d4; }
.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
    padding: 1.2rem 0;
    border-top: 1px solid rgb(251 248 252 / 26%);
}

.steps li:last-child { border-bottom: 1px solid rgb(251 248 252 / 26%); }

.steps li::before {
    grid-row: span 2;
    color: #f0b7d4;
    font: 1.75rem/1 var(--serif);
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
}

.steps p { grid-column: 2; color: #eee1f1; }

.launcher { align-items: center; }
.launcher-copy p { max-width: 50ch; margin-top: 1rem; }

.launcher-art {
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid #e7bfd1;
    border-radius: 1.25rem;
    background: repeating-radial-gradient(ellipse at 24% 10%, transparent 0 1.7rem, rgb(130 38 83 / 13%) 1.7rem calc(1.7rem + 1px)), var(--pink);
}

.launcher-art img {
    width: min(100%, 13rem);
    border-radius: .75rem;
    box-shadow: 0 .85rem 2rem rgb(90 29 66 / 20%);
}

.use-section { padding-block: 2.5rem; border-block: 1px solid var(--line); }
.use-section .section-heading { align-items: start; margin-bottom: 0; }
.use-section h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.use-section p + p { margin-top: .5rem; }
.use-section a, .footer-grid a:not(.brand) { text-underline-offset: .2em; }

.download-section { background: var(--lavender); }
.download { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.download p { margin-top: 1rem; color: var(--muted); }

.site-footer { padding-block: 2.75rem 1.3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.65rem;
    font-size: .875rem;
}

.footer-links { display: grid; gap: .35rem; justify-items: start; }
.footer-grid address { font-style: normal; color: var(--muted); overflow-wrap: anywhere; }
.footer-grid address strong { color: var(--ink); }
.footer-grid a:hover { color: var(--accent); }
.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 1.5rem;
    overflow: auto;
    border: 0;
    background: transparent;
    color: var(--paper);
}

.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(24 14 29 / 92%); }
body.lightbox-open { overflow: hidden; }
.lightbox-content { position: relative; width: fit-content; max-width: 100%; padding-top: 3.3rem; }
.lightbox img { max-height: calc(100dvh - 6.3rem); width: auto; object-fit: contain; border-radius: .5rem; }
.lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:focus-visible { outline-color: var(--pink); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.is-revealed { animation: reveal 460ms ease both; }

@keyframes reveal {
    from { opacity: .5; transform: translateY(.55rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .hero { gap: 2rem; }
    .hero h1 { font-size: clamp(3.8rem, 8.9vw, 6rem); }
    .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    :root { --header-height: 60px; }

    .header-row { flex-wrap: wrap; }
    .menu-toggle:not([hidden]) {
        display: inline-grid;
        place-items: center;
        min-height: 44px;
        padding: .4rem .8rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--white);
        color: var(--ink);
        font-size: .8rem;
        font-weight: 800;
        cursor: pointer;
    }

    .site-nav {
        position: absolute;
        inset: 100% 0 auto;
        flex-wrap: wrap;
        gap: .65rem 1rem;
        padding: .65rem var(--gutter) .85rem;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
    }

    .menu-toggle:not([hidden]) + .site-nav:not(.is-open) { display: none; }
    .site-nav > a { display: inline-flex; align-items: center; min-height: 44px; }

    .site-header:has(.menu-toggle[hidden]) { position: sticky; top: 0; }
    .menu-toggle[hidden] + .site-nav { position: static; padding-inline: 0; border-bottom: 0; }
    .site-header:has(.menu-toggle[hidden]) + main .hero { padding-top: 2rem; }

    .hero, .section-heading, .steps-layout, .launcher, .download { grid-template-columns: 1fr; }
    .hero { gap: 2rem; padding-top: calc(var(--header-height) + 2.35rem); }
    .hero h1 { font-size: clamp(3.85rem, 12vw, 5.7rem); }
    .hero-display { min-height: clamp(25rem, 104vw, 32rem); }
    .phone { width: clamp(12rem, 49vw, 15rem); }
    .features, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .launcher-art { order: 1; }
    .download { justify-items: start; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
    .features, .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
