:root {
    --cream: #fcfaf5;
    --paper: #ffffff;
    --ink: #1f1c19;
    --muted: #6f6860;
    --faint: #aaa197;
    --line: #e6dfd7;
    --terracotta: #c7664d;
    --terracotta-dark: #a94d37;
    --terracotta-soft: #f4e3db;
    --mint: #dff5ef;
    --teal: #1e7f78;
    --coal: #11100f;
    --blue: #dcecf2;
    --font-display: Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container: 1200px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    width: min(100% - 48px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 112px 0;
}

.display {
    font-family: var(--font-display);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: 0;
    font-variation-settings: "SOFT" 55, "opsz" 144;
}

.h2 {
    max-width: 820px;
    margin: 0;
    font-size: 56px;
}

.lead {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.5;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--terracotta);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(252, 250, 245, 0);
    transition: background 220ms var(--ease), border-color 220ms var(--ease), backdrop-filter 220ms var(--ease);
}

.nav.is-scrolled {
    border-bottom-color: rgba(230, 223, 215, 0.85);
    background: rgba(252, 250, 245, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 650;
}

.brand__mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
}

.nav__links,
.footer__nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.nav__links a:last-child {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--cream);
}

.nav__links a:hover,
.footer__nav a:hover {
    color: var(--terracotta);
}

.nav__links a:last-child:hover {
    background: var(--terracotta);
    color: var(--cream);
}

.hero {
    position: relative;
    padding: 112px 0 64px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(223, 245, 239, 0.72), rgba(223, 245, 239, 0) 42%),
        var(--cream);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
    align-items: center;
    gap: 54px;
}

.hero__title {
    max-width: 760px;
    margin: 0 0 26px;
    font-size: 62px;
}

.hero__lead {
    margin-bottom: 34px;
}

.hero__ctas,
.final-cta__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__visual {
    min-height: 540px;
    position: relative;
}

.phone {
    position: relative;
    overflow: hidden;
    border: 10px solid var(--coal);
    border-radius: 38px;
    background: var(--coal);
    box-shadow: 0 28px 70px rgba(31, 28, 25, 0.22);
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 27px;
}

.phone--main {
    width: 285px;
    aspect-ratio: 1206 / 2622;
    margin: 0 auto;
    z-index: 3;
}

.phone--side {
    width: 200px;
    aspect-ratio: 1206 / 2622;
    position: absolute;
    top: 72px;
    opacity: 0.96;
}

.phone--left {
    left: 0;
    transform: rotate(-7deg);
}

.phone--right {
    right: 0;
    transform: rotate(7deg);
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.proof {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.proof__value {
    color: var(--terracotta);
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 650;
    line-height: 1;
}

.proof__label {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
}

.install-btn {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: var(--cream);
    font-family: inherit;
    cursor: pointer;
    transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.install-btn:hover {
    transform: translateY(-2px);
    border-color: var(--terracotta);
    background: var(--terracotta);
}

.install-btn__icon {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
}

.install-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.install-btn__small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0.78;
}

.install-btn__large {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
}

.install-btn--secondary {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
}

.install-btn--secondary:hover {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--paper);
}

.section-heading {
    margin-bottom: 46px;
}

.section-heading--split {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    align-items: end;
    gap: 48px;
}

.section-heading--center {
    text-align: center;
}

.section-heading--center .h2,
.section-heading--center .lead {
    margin-left: auto;
    margin-right: auto;
}

.intro-band {
    background: var(--paper);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card,
.moment-card,
.step-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.feature-card {
    padding: 28px;
}

.feature-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 8px;
    background: var(--terracotta-soft);
    color: var(--terracotta);
}

.feature-card__icon svg {
    width: 25px;
    height: 25px;
}

.feature-card h3,
.moment-card h3,
.step-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.feature-card p,
.moment-card p,
.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.52;
}

.story-section--dark {
    background: var(--coal);
    color: var(--cream);
}

.story-section--dark .lead,
.story-section--dark .insight p {
    color: rgba(252, 250, 245, 0.74);
}

.story-grid,
.intelligence-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 64px;
}

.insight-list {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.insight {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(252, 250, 245, 0.16);
}

.insight span {
    color: var(--mint);
    font-weight: 800;
}

.insight p {
    margin: 0;
}

.screen-pair {
    display: grid;
    grid-template-columns: 310px minmax(180px, 1fr);
    align-items: end;
    gap: 20px;
}

.phone--feature {
    width: 100%;
    aspect-ratio: 1206 / 2622;
    border-width: 9px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.quote-panel {
    padding: 24px;
    border: 1px solid rgba(252, 250, 245, 0.22);
    border-radius: 8px;
    background: rgba(252, 250, 245, 0.08);
}

.quote-panel p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.2;
}

.moment-section {
    background: var(--mint);
}

.moment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.moment-card {
    overflow: hidden;
    background: var(--paper);
}

.moment-card__screen {
    height: 420px;
    overflow: hidden;
    background: var(--cream);
}

.moment-card__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.moment-card__copy {
    padding: 24px;
}

.intelligence-section {
    background:
        linear-gradient(90deg, var(--paper) 0 56%, var(--blue) 56% 100%);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag-cloud span {
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.intelligence-screens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 20px;
}

.phone--offset {
    margin-top: 82px;
}

.screens-section {
    background: var(--paper);
}

.screen-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.gallery-phone {
    margin: 0;
}

.gallery-phone img {
    width: 100%;
    aspect-ratio: 1206 / 2622;
    object-fit: cover;
    object-position: top center;
    border: 8px solid var(--coal);
    border-radius: 30px;
    background: var(--coal);
    box-shadow: 0 18px 38px rgba(31, 28, 25, 0.16);
}

.gallery-phone figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.onboarding-section {
    background: var(--cream);
}

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.72);
}

.step-card span {
    display: inline-flex;
    margin-bottom: 46px;
    color: var(--terracotta);
    font-weight: 800;
}

.final-cta {
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: var(--cream);
    text-align: center;
}

.final-cta__inner {
    max-width: 760px;
}

.final-cta .lead {
    margin: 18px auto 30px;
    color: rgba(252, 250, 245, 0.72);
}

.final-cta__ctas {
    justify-content: center;
}

.final-cta .install-btn {
    border-color: var(--cream);
}

.footer {
    padding: 44px 0 54px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.footer__brand {
    color: var(--ink);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.reveal.is-waiting:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group .reveal:nth-child(2) {
    transition-delay: 90ms;
}

.reveal-group .reveal:nth-child(3) {
    transition-delay: 180ms;
}

.reveal-group .reveal:nth-child(4) {
    transition-delay: 270ms;
}

.reveal-group .reveal:nth-child(5) {
    transition-delay: 360ms;
}

.reveal-group .reveal:nth-child(6) {
    transition-delay: 450ms;
}

.ph-badge-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ph-badge-wrap img {
    display: block;
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.ph-badge-wrap:hover img {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1100px) {
    .hero__grid,
    .story-grid,
    .intelligence-grid,
    .section-heading--split {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        max-width: 650px;
        margin: 0 auto;
        width: 100%;
    }

    .story-copy,
    .intelligence-copy {
        max-width: 760px;
    }

    .screen-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .section {
        padding: 82px 0;
    }

    .hero {
        padding-top: 118px;
    }

    .hero__title {
        font-size: 54px;
    }

    .h2 {
        font-size: 42px;
    }

    .lead {
        font-size: 18px;
    }

    .feature-grid,
    .moment-grid,
    .onboarding-grid,
    .proof-strip {
        grid-template-columns: 1fr;
    }

    .proof {
        min-height: 88px;
    }

    .screen-pair {
        grid-template-columns: 1fr;
        max-width: 390px;
    }

    .intelligence-section {
        background: var(--paper);
    }

    .intelligence-screens {
        max-width: 600px;
    }
}

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

    .nav__inner {
        min-height: 64px;
    }

    .nav__links a:not(:last-child) {
        display: none;
    }

    .brand,
    .footer__brand {
        font-size: 21px;
    }

    .hero__grid {
        gap: 34px;
    }

    .hero__title {
        font-size: 43px;
    }

    .h2 {
        font-size: 34px;
    }

    .hero__visual {
        min-height: 520px;
    }

    .phone--main {
        width: 265px;
    }

    .phone--side {
        width: 174px;
        top: 96px;
    }

    .phone--left {
        left: -18px;
    }

    .phone--right {
        right: -18px;
    }

    .hero__ctas,
    .final-cta__ctas {
        flex-direction: column;
    }

    .install-btn {
        width: 100%;
        justify-content: center;
    }

    .moment-card__screen {
        height: 360px;
    }

    .intelligence-screens {
        grid-template-columns: 1fr;
        max-width: 310px;
    }

    .phone--offset {
        margin-top: 0;
    }

    .screen-gallery {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 4px 16px 18px;
        scroll-snap-type: x mandatory;
    }

    .gallery-phone {
        min-width: 220px;
        scroll-snap-align: start;
    }

    .footer__inner,
    .footer__nav {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ph-badge-wrap {
        position: static;
        width: 100%;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        justify-content: center;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        background: var(--paper);
    }

    .ph-badge-wrap img {
        width: 180px;
        box-shadow: none;
    }

}

@media (max-width: 420px) {
    .hero__title {
        font-size: 38px;
    }

    .h2 {
        font-size: 31px;
    }

    .hero__visual {
        min-height: 470px;
    }

    .phone--main {
        width: 236px;
    }

    .phone--side {
        width: 148px;
    }

    .proof__value {
        font-size: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
