:root {
    --bg-1: #050608;
    --bg-2: #15161a;
    --bg-3: #271e1a;
    --glow-1: rgba(126, 98, 79, 0.45);
    --glow-2: rgba(72, 81, 92, 0.34);
    --glow-3: rgba(177, 139, 106, 0.32);
    --primary-text: rgba(255, 255, 255, 0.94);
    --secondary-text: rgba(255, 255, 255, 0.64);
    --button-fill: rgba(255, 255, 255, 0.08);
    --button-stroke: rgba(243, 231, 221, 0.12);
    --button-glow: rgba(188, 146, 108, 0.45);
    --dot-active: rgba(243, 236, 231, 0.8);
    --dot-inactive: rgba(243, 236, 231, 0.18);
    --panel-fill: rgba(8, 11, 16, 0.44);
    --panel-border: rgba(255, 255, 255, 0.08);
    --shadow-strong: 0 40px 120px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.22);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: #040608;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Avenir Next Rounded", "Avenir Next", "SF Pro Rounded", "Segoe UI", sans-serif;
    background: #040608;
    color: var(--primary-text);
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

button {
    color: inherit;
    font: inherit;
}

button,
.demo-surface {
    -webkit-tap-highlight-color: transparent;
}

button:focus,
.demo-surface:focus {
    outline: none;
}

button:focus-visible,
.demo-surface:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-background {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    inset: -5%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 900ms ease;
    will-change: opacity;
}

.bg-layer.is-active {
    opacity: 1;
}

.site-background--static .bg-layer--static {
    opacity: 1;
    background-image: var(--page-background);
}

.site-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, var(--glow-1), transparent 38%),
        radial-gradient(circle at 82% 24%, var(--glow-2), transparent 34%),
        radial-gradient(circle at 50% 82%, var(--glow-3), transparent 40%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.3) 58%, rgba(0, 0, 0, 0.56));
}

.site-noise {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 180px 180px;
    mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
}

.page-shell,
.document-shell {
    position: relative;
    z-index: 1;
}

.page-shell {
    padding:
        var(--safe-top)
        var(--safe-right)
        var(--safe-bottom)
        var(--safe-left);
}

.site-header,
.hero-grid,
.promo-panel,
.site-footer,
.document-shell {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 0;
}

.brand-mark {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--secondary-text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a,
.footer-links a {
    color: var(--secondary-text);
    transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.button:hover {
    color: var(--primary-text);
}

.hero-section {
    min-height: calc(100svh - 28px);
    display: flex;
    align-items: center;
    padding: 36px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 420px);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--secondary-text);
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-copy h1,
.promo-copy h2,
.document-panel h1 {
    margin: 0;
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 8vw, 5.8rem);
    max-width: 11ch;
}

.hero-lede,
.promo-lede,
.document-intro {
    margin: 22px 0 0;
    max-width: 40rem;
    color: var(--secondary-text);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-support {
    margin: 16px 0 0;
    max-width: 38rem;
    color: var(--secondary-text);
    font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}

.document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

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

.button--primary {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.1);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--secondary-text);
}

.demo-column {
    width: min(100%, 460px);
    justify-self: center;
}

.demo-app {
    position: relative;
    width: 100%;
    min-height: 620px;
    border-radius: 40px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
        rgba(7, 10, 14, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.demo-app::before,
.demo-app::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
}

.demo-app::before {
    width: 64%;
    height: 20%;
    left: 18%;
    top: 26%;
    background: radial-gradient(circle, var(--button-glow), transparent 70%);
    opacity: 0.16;
    filter: blur(42px);
}

.demo-app::after {
    width: 70%;
    height: 22%;
    left: 15%;
    bottom: -8%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 72%);
    opacity: 0.22;
    filter: blur(26px);
}

.timer-button,
.preset-nav {
    border: 1px solid var(--button-stroke);
    background: var(--button-fill);
    color: var(--primary-text);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.timer-button {
    min-width: 76px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1;
}

.timer-button--compact {
    font-size: 0.9rem;
}

.demo-surface {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 28px 44px;
    touch-action: pan-y;
    --current-index: 0;
    --drag-offset: 0px;
}

.demo-surface.is-dragging {
    cursor: grabbing;
}

.title-window {
    width: 100%;
    overflow: hidden;
    margin-top: auto;
}

.preset-title-track {
    display: flex;
    width: 100%;
    transform: translate3d(calc(var(--current-index) * -100% + var(--drag-offset)), 0, 0);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.demo-surface.is-dragging .preset-title-track {
    transition: none;
}

.preset-title {
    flex: 0 0 100%;
    padding: 0 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.95rem, 4.4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin-top: 34px;
}

.play-control {
    position: relative;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
}

.play-control::before,
.play-control::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
}

.play-control::before {
    background: var(--button-fill);
    border: 1px solid var(--button-stroke);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.play-control::after {
    inset: 24px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 78%);
    filter: blur(18px);
    opacity: 0.8;
}

.play-core,
.timer-ring {
    position: absolute;
    inset: 0;
}

.play-core {
    display: grid;
    place-items: center;
}

.glyph {
    position: absolute;
    width: 44px;
    height: 44px;
    fill: var(--primary-text);
    transition: opacity 180ms ease, transform 180ms ease;
}

.glyph--play {
    transform: translateX(1px);
}

.glyph--pause {
    opacity: 0;
    transform: scale(0.92);
}

.play-control.is-playing .glyph--play {
    opacity: 0;
    transform: translateX(1px) scale(0.92);
}

.play-control.is-playing .glyph--pause {
    opacity: 1;
    transform: scale(1);
}

.timer-ring {
    overflow: visible;
    pointer-events: none;
}

.timer-ring__track,
.timer-ring__progress {
    fill: none;
    stroke-width: 2.6;
    transform-origin: center;
    transform: rotate(-90deg);
}

.timer-ring__track {
    stroke: transparent;
}

.timer-ring__progress {
    stroke: rgba(255, 255, 255, 0.34);
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 180ms ease;
}

.play-control.timer-active .timer-ring__progress {
    opacity: 1;
}

.control-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin-top: 34px;
    margin-bottom: auto;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    flex: 0 0 auto;
}

.page-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--dot-inactive);
    transition:
        width 220ms ease,
        background-color 220ms ease,
        opacity 220ms ease;
}

.page-dot.is-active {
    width: 20px;
    background: var(--dot-active);
}

.preset-nav {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.84;
    flex: 0 0 auto;
}

.preset-nav svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.promo-section {
    padding: 18px 0 72px;
}

.faq-section {
    padding: 0 0 72px;
}

.promo-panel,
.document-panel {
    border-radius: 36px;
    background: var(--panel-fill);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

.promo-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
    gap: clamp(28px, 4vw, 52px);
    padding: clamp(26px, 4vw, 42px);
}

.promo-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 18px;
}

.app-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.promo-copy h2 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    max-width: 10ch;
}

.feature-grid {
    display: grid;
    gap: 18px;
    margin-top: 38px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
}

.feature-card {
    padding: 20px 20px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    color: var(--secondary-text);
}

.screenshot-gallery {
    position: relative;
    min-height: 760px;
}

.shot-card {
    position: absolute;
    width: min(46%, 250px);
    margin: 0;
}

.shot-device {
    position: relative;
    width: 100%;
    padding: 7px;
    border-radius: 46px;
    background:
        linear-gradient(145deg, rgba(74, 79, 86, 0.92), rgba(19, 21, 25, 0.98) 26%, rgba(9, 10, 13, 0.99) 68%, rgba(46, 50, 57, 0.9)),
        rgba(10, 13, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 34px 72px rgba(0, 0, 0, 0.34),
        0 0 0 0.5px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 -1px 0 rgba(0, 0, 0, 0.24) inset;
}

.shot-device::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.18), transparent 16%, transparent 72%, rgba(255, 255, 255, 0.07));
    opacity: 0.5;
    pointer-events: none;
}

.shot-device__screen {
    position: relative;
    overflow: hidden;
    border-radius: 39px;
    background: #000;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 0 1px rgba(0, 0, 0, 0.44);
}

.shot-device__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 0 0 1.5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 2;
}

.shot-device__screen img {
    width: 100%;
    aspect-ratio: 1179 / 2556;
    object-fit: cover;
    border-radius: 39px;
}

.shot-device__island {
    position: absolute;
    top: 11px;
    left: 50%;
    width: 31%;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.07) 0 10%, transparent 12%),
        radial-gradient(circle at 31% 50%, rgba(255, 255, 255, 0.035) 0 7%, transparent 9%),
        linear-gradient(180deg, rgba(15, 17, 20, 0.995), rgba(2, 3, 4, 1));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 20px rgba(0, 0, 0, 0.22);
    z-index: 3;
}

.shot-device__gloss {
    position: absolute;
    inset: 7px;
    border-radius: 39px;
    background:
        linear-gradient(122deg, rgba(255, 255, 255, 0.1), transparent 20%, transparent 60%, rgba(255, 255, 255, 0.03));
    mix-blend-mode: screen;
    opacity: 0.28;
    pointer-events: none;
    z-index: 2;
}

.shot-card figcaption {
    margin-top: 12px;
    color: var(--secondary-text);
    font-size: 0.92rem;
}

.shot-card--one {
    top: 0;
    left: 6%;
    transform: rotate(-8deg);
}

.shot-card--two {
    top: 14%;
    right: 4%;
    transform: rotate(6deg);
}

.shot-card--three {
    bottom: 0;
    left: 26%;
    transform: rotate(-2deg);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 42px;
    color: var(--secondary-text);
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.document-body {
    min-height: 100vh;
}

.document-shell {
    padding: 28px 0 56px;
}

.document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.document-header nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.document-panel {
    padding: clamp(24px, 4vw, 42px);
}

.document-panel h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    max-width: 12ch;
}

.document-section {
    margin-top: 26px;
}

.document-section h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.document-faq {
    display: grid;
    gap: 18px;
}

.document-faq-item {
    padding: 20px 20px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.document-faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

.document-faq-item p {
    margin: 0;
    color: var(--secondary-text);
}

.document-section p,
.document-section li {
    color: var(--secondary-text);
}

.document-section ul {
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 980px) {
    .hero-grid,
    .promo-panel {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-copy h1,
    .promo-copy h2,
    .document-panel h1 {
        max-width: none;
    }

    .demo-column {
        order: -1;
    }

    .screenshot-gallery {
        min-height: auto;
        display: grid;
        gap: 16px;
    }

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

    .shot-card {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
    }
}

@media (max-width: 640px) {
    .site-header,
    .hero-grid,
    .promo-panel,
    .site-footer,
    .document-shell {
        width: min(100% - 28px, 1200px);
    }

    .site-header,
    .site-footer,
    .document-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav,
    .footer-links,
    .document-header nav {
        flex-wrap: wrap;
    }

    .hero-section {
        padding-top: 22px;
    }

    .preset-title {
        font-size: 1.7rem;
    }

    .play-control {
        width: 136px;
        height: 136px;
    }

    .demo-app {
        min-height: 560px;
    }

    .control-row,
    .control-footer {
        gap: 14px;
    }

    .preset-nav {
        width: 48px;
        height: 48px;
    }

    .screenshot-gallery {
        display: block;
    }

    .shot-card:not(.shot-card--one) {
        display: none;
    }

    .shot-card figcaption {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
