:root {
    --black: #090909;
    --surface: #151517;
    --surface-2: #202022;
    --cream: #f6efe2;
    --paper: #fff8ec;
    --gold: #cba35e;
    --gold-dark: #9a6c2d;
    --muted: #aaa298;
    --line: rgba(246, 239, 226, 0.12);
    --line-dark: rgba(9, 9, 9, 0.12);
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--black);
    color: var(--cream);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 68px;
    padding: 12px clamp(18px, 5vw, 64px);
    background: rgba(9, 9, 9, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.site-nav a,
.app-store,
.site-footer a {
    text-decoration: none;
}

.brand,
.site-footer span {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: var(--cream);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 0.9;
    white-space: nowrap;
}

.brand span,
.site-footer span span,
.hero h1 span {
    color: var(--gold);
    font-weight: 500;
    transform: rotate(-7deg);
    transform-origin: 50% 60%;
}

.brand span,
.site-footer span span {
    display: inline-block;
    font-size: 44px;
}

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

.site-nav a {
    min-height: 42px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(246, 239, 226, 0.74);
    font-size: 13px;
    font-weight: 800;
}

.site-nav a:hover {
    background: rgba(246, 239, 226, 0.08);
    color: var(--paper);
}

.site-nav .store-link {
    background: var(--paper);
    color: var(--black);
}

.hero {
    padding: clamp(58px, 7vw, 92px) 0 clamp(52px, 6vw, 82px);
    background:
        linear-gradient(90deg, rgba(203, 163, 94, 0.12) 0 18%, transparent 18% 100%),
        var(--black);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.78fr);
    align-items: center;
    gap: clamp(34px, 6vw, 86px);
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.final-cta h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0;
}

.hero h1 {
    display: inline-flex;
    align-items: baseline;
    gap: 0.06em;
    font-size: clamp(64px, 7vw, 104px);
    white-space: nowrap;
}

.hero h1 span {
    display: inline-block;
    font-size: 1.36em;
}

.lede {
    margin: 20px 0 0;
    color: var(--cream);
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 600;
    line-height: 1;
}

.sublede {
    max-width: 520px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 600;
    line-height: 1.5;
}

.app-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin-top: 34px;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--black);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    transition: transform 140ms ease, background 140ms ease;
}

.app-store:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.app-store svg {
    width: 25px;
    height: 31px;
    fill: currentColor;
    flex: 0 0 auto;
}

.app-store span {
    display: grid;
    line-height: 1.05;
}

.app-store small {
    color: rgba(9, 9, 9, 0.62);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-store strong {
    margin-top: 3px;
    font-size: 19px;
}

.hero-screens {
    position: relative;
    min-height: 640px;
}

.phone {
    position: relative;
    overflow: hidden;
    width: min(100%, 280px);
    aspect-ratio: 1206 / 2622;
    --status-font: 11px;
    --status-pad-x: 9%;
    --status-pad-top: 4.1%;
    border: 1px solid #2c2c2e;
    border-radius: 34px;
    background: #050505;
    box-shadow:
        0 28px 62px rgba(0, 0, 0, 0.44),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 8px;
    left: 50%;
    width: 33%;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
    background: #050505;
}

.status-bar {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 6.1%;
    padding: var(--status-pad-top) var(--status-pad-x) 0;
    background: linear-gradient(180deg, #050505 0%, #050505 78%, rgba(5, 5, 5, 0) 100%);
    color: #f7f1e6;
    font-family: var(--sans);
    font-size: var(--status-font);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.status-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: currentColor;
}

.status-icons::before {
    content: "";
    width: 16px;
    height: 10px;
    background:
        linear-gradient(currentColor, currentColor) 0 7px / 3px 3px no-repeat,
        linear-gradient(currentColor, currentColor) 5px 5px / 3px 5px no-repeat,
        linear-gradient(currentColor, currentColor) 10px 2px / 3px 8px no-repeat,
        linear-gradient(currentColor, currentColor) 15px 0 / 3px 10px no-repeat;
    border-radius: 1px;
}

.status-icons::after {
    content: "";
    width: 20px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    background: linear-gradient(currentColor, currentColor) 3px 2px / 13px 4px no-repeat;
    box-shadow: 3px 0 0 -1px currentColor;
}

.status-wifi {
    position: relative;
    width: 13px;
    height: 10px;
    overflow: hidden;
}

.status-wifi::before,
.status-wifi::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border: 2px solid currentColor;
    border-right: 0;
    border-bottom: 0;
    border-radius: 10px 0 0;
}

.status-wifi::before {
    top: 2px;
    width: 14px;
    height: 14px;
}

.status-wifi::after {
    top: 6px;
    width: 7px;
    height: 7px;
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone--hero {
    z-index: 2;
    width: min(360px, 72vw);
    --status-font: 15px;
    margin: 0 0 0 auto;
}

.phone--behind {
    position: absolute;
    z-index: 1;
    right: 230px;
    bottom: 26px;
    width: 250px;
    --status-font: 10px;
    opacity: 0.58;
    transform: rotate(-6deg);
}

.promise-band {
    padding: clamp(46px, 6vw, 76px) 0;
    background: var(--cream);
    color: var(--black);
}

.promise-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 3vw, 36px);
}

.promise-list p {
    margin: 0;
    border-top: 2px solid var(--gold);
    padding-top: 18px;
    font-family: var(--serif);
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 700;
    line-height: 1;
}

.screens-section {
    padding: clamp(70px, 8vw, 112px) 0;
    background: var(--surface);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(32px, 5vw, 62px);
}

.section-heading h2 {
    max-width: 760px;
    color: var(--cream);
    font-size: clamp(42px, 6vw, 78px);
}

.screen-grid {
    display: grid;
    grid-template-columns: 1.18fr repeat(2, 0.72fr);
    align-items: end;
    gap: clamp(18px, 3vw, 34px);
}

.screen-card {
    margin: 0;
}

.screen-card .phone {
    width: 100%;
    max-width: 248px;
    --status-font: 10px;
    margin: 0 auto;
}

.screen-card--large {
    grid-row: span 2;
}

.screen-card--large .phone {
    max-width: 350px;
    --status-font: 14px;
}

.screen-card figcaption {
    margin-top: 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.final-cta {
    padding: clamp(58px, 7vw, 92px) 0;
    background: var(--cream);
    color: var(--black);
}

.final-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.final-cta .eyebrow {
    color: var(--gold-dark);
}

.final-cta h2 {
    max-width: 700px;
    font-size: clamp(40px, 5vw, 72px);
}

.app-store--dark {
    margin-top: 0;
    background: var(--black);
    color: var(--paper);
}

.app-store--dark small {
    color: rgba(255, 248, 236, 0.62);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px clamp(18px, 5vw, 64px) 34px;
    background: var(--black);
    border-top: 1px solid var(--line);
}

.site-footer span {
    font-size: 24px;
}

.site-footer span span {
    font-size: 36px;
}

.site-footer a {
    color: rgba(246, 239, 226, 0.62);
    font-size: 13px;
    border-bottom: 1px solid rgba(246, 239, 226, 0.24);
}

.site-footer a:hover {
    color: var(--paper);
    border-bottom-color: var(--paper);
}

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

    .hero-screens {
        min-height: auto;
    }

    .phone--hero {
        margin: 0 auto;
    }

    .phone--behind {
        display: none;
    }

    .promise-list,
    .screen-grid {
        grid-template-columns: 1fr;
    }

    .screen-card--large {
        grid-row: auto;
    }

    .section-heading,
    .final-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, 1160px);
    }

    .site-nav {
        display: none;
    }

    .brand {
        font-size: 24px;
    }

    .brand span {
        font-size: 36px;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-copy {
        max-width: min(100%, 360px);
    }

    .hero h1 {
        max-width: 100%;
        gap: 0.04em;
        font-size: clamp(42px, 11vw, 56px);
    }

    .lede {
        font-size: clamp(31px, 7.5vw, 38px);
    }

    .sublede {
        max-width: 32ch;
    }

    .app-store {
        width: min(100%, 360px);
        justify-content: center;
    }

    .phone--hero {
        width: min(100%, 310px);
        --status-font: 13px;
    }

    .promise-list p {
        font-size: clamp(25px, 7vw, 32px);
    }

    .promise-list,
    .final-inner {
        max-width: 360px;
        margin-left: 16px;
        margin-right: 16px;
    }

    .section-heading h2,
    .final-cta h2 {
        max-width: 360px;
        font-size: clamp(32px, 8vw, 40px);
    }

    .screens-section .container {
        max-width: 360px;
        margin-left: 16px;
        margin-right: 16px;
    }

    .screen-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .screen-card {
        min-width: 0;
    }

    .screen-card--large {
        grid-column: 1 / -1;
    }

    .screen-card .phone {
        max-width: 150px;
        --status-font: 7px;
        border-radius: 24px;
    }

    .screen-card--large .phone {
        max-width: 240px;
        --status-font: 10px;
        border-radius: 30px;
    }

    .screen-card figcaption {
        margin-top: 10px;
        font-size: 11px;
    }

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

@media (max-width: 420px) {
    .site-nav {
        display: none;
    }

    .hero h1 {
        font-size: clamp(48px, 14vw, 56px);
    }

    .section-heading h2,
    .final-cta h2 {
        font-size: clamp(36px, 11vw, 44px);
    }
}

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

    .app-store {
        transition: none;
    }
}
