:root {
    --bg: #faf7f2;
    --bg-warm: #f4ede1;
    --paper: rgba(255, 255, 255, 0.88);
    --paper-strong: #fffdf9;
    --ink: #171512;
    --muted: #665f57;
    --subtle: #8d857c;
    --border: #ddd3c3;
    --accent: #8a6cff;
    --accent-soft: #ede7ff;
    --accent-warm: #ffcf8a;
    --accent-cool: #95def5;
    --shadow: 0 20px 60px rgba(63, 42, 19, 0.1);
    --shadow-paper: 0 10px 30px rgba(46, 29, 13, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 207, 138, 0.32), transparent 26%),
        radial-gradient(circle at 86% 14%, rgba(138, 108, 255, 0.18), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(149, 222, 245, 0.18), transparent 28%),
        linear-gradient(180deg, #fffdf9 0%, var(--bg) 100%);
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(20px, 4vw, 42px);
}

.page {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
    width: min(760px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(138, 108, 255, 0.16);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    color: #5b46b4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    max-width: 10ch;
    margin-bottom: 20px;
    font-size: clamp(3.2rem, 8vw, 6.2rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
    text-wrap: balance;
}

.lead {
    max-width: 40rem;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    line-height: 1.7;
}

.supporting-copy {
    max-width: 34rem;
    color: var(--subtle);
    font-size: 1rem;
    line-height: 1.7;
}

.preview-stage {
    position: relative;
    width: min(100%, 560px);
    justify-self: center;
}

.scene-frame {
    position: relative;
    overflow: hidden;
    min-height: clamp(360px, 42vw, 500px);
    padding: clamp(20px, 4vw, 34px);
    border-radius: 36px;
    border: 1px solid rgba(221, 211, 195, 0.8);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 244, 0.94)),
        var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.scene-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(23, 21, 18, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 21, 18, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 86%);
}

.ambient,
.orbit {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.ambient {
    filter: blur(22px);
}

.ambient-one {
    width: 220px;
    height: 220px;
    top: -18px;
    left: 28px;
    background: rgba(255, 207, 138, 0.34);
}

.ambient-two {
    width: 260px;
    height: 260px;
    top: 54px;
    right: 52px;
    background: rgba(138, 108, 255, 0.18);
}

.ambient-three {
    width: 210px;
    height: 210px;
    bottom: 12px;
    left: 42%;
    background: rgba(149, 222, 245, 0.22);
}

.paper {
    position: absolute;
    border-radius: 28px;
    border: 1px solid rgba(221, 211, 195, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.92));
    box-shadow: var(--shadow-paper);
}

.paper-back {
    top: 72px;
    left: 64px;
    width: min(44vw, 360px);
    padding: 26px;
    transform: rotate(-7deg);
}

.paper-main {
    position: relative;
    width: min(46vw, 380px);
    margin: 72px auto 0;
    padding: 28px;
    z-index: 2;
}

.paper-side {
    right: 72px;
    bottom: 68px;
    width: min(28vw, 220px);
    padding: 22px;
    transform: rotate(8deg);
}

.paper-topline {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.paper-chip {
    height: 12px;
    border-radius: 999px;
}

.chip-accent {
    width: 88px;
    background: linear-gradient(90deg, #8a6cff 0%, #95def5 100%);
}

.chip-muted {
    width: 56px;
    background: rgba(23, 21, 18, 0.08);
}

.chip-soft {
    width: 72px;
    margin-bottom: 18px;
    background: rgba(255, 207, 138, 0.64);
}

.paper-line {
    height: 11px;
    border-radius: 999px;
    background: rgba(23, 21, 18, 0.08);
    margin-bottom: 12px;
}

.line-hero {
    width: 86%;
    height: 14px;
    background: rgba(23, 21, 18, 0.12);
}

.line-wide {
    width: 92%;
}

.line-mid {
    width: 72%;
}

.line-short {
    width: 48%;
    margin-bottom: 0;
}

.paper-stack {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stack-card {
    aspect-ratio: 1;
    border-radius: 18px;
    border: 1px solid rgba(221, 211, 195, 0.78);
}

.stack-a {
    background: linear-gradient(180deg, rgba(255, 207, 138, 0.48), rgba(255, 255, 255, 0.8));
}

.stack-b {
    background: linear-gradient(180deg, rgba(149, 222, 245, 0.45), rgba(255, 255, 255, 0.82));
}

.stack-c {
    background: linear-gradient(180deg, rgba(138, 108, 255, 0.34), rgba(255, 255, 255, 0.82));
}

.orbit {
    border: 1px dashed rgba(102, 95, 87, 0.2);
}

.orbit-left {
    left: 26px;
    bottom: 26px;
    width: 168px;
    height: 168px;
}

.orbit-right {
    top: 28px;
    right: 22px;
    width: 142px;
    height: 142px;
}

.teaser-points {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.teaser-pill {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(221, 211, 195, 0.95);
    background: rgba(255, 255, 255, 0.76);
    color: var(--muted);
    font-size: 0.94rem;
    box-shadow: 0 6px 20px rgba(63, 42, 19, 0.05);
}

@media (max-width: 840px) {
    .page {
        width: min(980px, 100%);
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .scene-frame {
        min-height: 420px;
    }

    .paper-back {
        top: 42px;
        left: 18px;
        width: 46%;
    }

    .paper-main {
        width: min(58vw, 380px);
        margin-top: 72px;
    }

    .paper-side {
        right: 18px;
        bottom: 28px;
        width: 34%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px;
    }

    .page {
        gap: 24px;
    }

    .eyebrow {
        margin-bottom: 18px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    h1 {
        max-width: 11ch;
    }

    .lead {
        font-size: 1rem;
    }

    .scene-frame {
        min-height: 430px;
        padding: 16px;
        border-radius: 28px;
    }

    .paper-back {
        top: 22px;
        left: 10px;
        width: 52%;
        padding: 18px;
    }

    .paper-main {
        width: 76%;
        margin-top: 92px;
        padding: 20px;
    }

    .paper-side {
        right: 12px;
        bottom: 22px;
        width: 42%;
        padding: 18px;
    }

    .paper-stack {
        gap: 8px;
    }

    .stack-card {
        border-radius: 14px;
    }

    .orbit-left {
        width: 112px;
        height: 112px;
        left: 10px;
        bottom: 14px;
    }

    .orbit-right {
        width: 98px;
        height: 98px;
        top: 16px;
        right: 10px;
    }

    .teaser-pill {
        width: 100%;
        text-align: center;
    }
}
