:root {
    --bg: #130b0d;
    --bg-soft: #1d1015;
    --panel: rgba(31, 18, 23, 0.8);
    --panel-strong: rgba(43, 24, 30, 0.92);
    --line: rgba(255, 231, 212, 0.12);
    --text: #f7eadf;
    --muted: #d4c0b2;
    --accent: #f4bb7a;
    --accent-strong: #eb8e47;
    --cool: #7fd5df;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 168, 96, 0.18), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(89, 173, 181, 0.18), transparent 24%),
        linear-gradient(180deg, #160d10 0%, #12090b 52%, #0f0809 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.25;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
}

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

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

.ambient {
    position: fixed;
    width: 38vw;
    height: 38vw;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
}

.ambient--left {
    top: 6%;
    left: -12%;
    background: rgba(236, 135, 72, 0.24);
}

.ambient--right {
    right: -14%;
    top: 22%;
    background: rgba(88, 151, 187, 0.22);
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section {
    padding: 38px 0 100px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(16, 9, 11, 0.58);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(251, 197, 124, 0.28), rgba(135, 208, 216, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
}

.brand__text {
    font-size: 1rem;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a:hover,
.header-cta:hover {
    color: var(--text);
}

.header-cta {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 180ms ease, background 180ms ease;
}

.header-cta:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    padding-top: 46px;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: rgba(247, 234, 223, 0.7);
}

.hero h1,
.section-heading h2,
.why__panel h2,
.cta-panel h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.96;
}

.hero h1 {
    font-size: clamp(3.3rem, 8vw, 6.2rem);
    max-width: 10ch;
}

.hero__lede,
.story-card p,
.format-card p,
.point-card p,
.faq-item p,
.cta-panel p,
.why__panel p,
.section-heading__aside {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.02rem;
}

.hero__lede {
    max-width: 62ch;
    margin: 24px 0 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.98rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #1e100e;
    box-shadow: 0 14px 32px rgba(235, 142, 71, 0.28);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.button--large {
    min-height: 62px;
    padding-inline: 28px;
}

.button--compact {
    min-height: 48px;
    padding: 10px 18px;
    white-space: normal;
    text-align: center;
    line-height: 1.18;
}

.mode-note {
    margin: 0;
    max-width: 58ch;
    color: rgba(247, 234, 223, 0.76);
    line-height: 1.7;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.stat-card,
.format-card,
.story-card,
.point-card,
.faq-item,
.cta-panel,
.why__panel,
.hero__capsule {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px 18px 20px;
    border-radius: 24px;
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

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

.hero__badge {
    position: absolute;
    max-width: 240px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    background: rgba(20, 12, 15, 0.7);
    animation: float 7s ease-in-out infinite;
}

.hero__badge span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(247, 234, 223, 0.72);
    margin-bottom: 8px;
}

.hero__badge strong {
    font-size: 0.96rem;
    line-height: 1.45;
}

.hero__badge--warm {
    top: 6%;
    left: -2%;
}

.hero__badge--cool {
    top: 48%;
    right: -2%;
    animation-delay: -2.5s;
}

.hero-poster {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--panel-strong);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
}

.hero-poster--front {
    inset: 10% 14% 18% 12%;
    transform: rotate(-4deg);
}

.hero-poster--back {
    width: 42%;
    height: 56%;
    top: 18%;
    right: 2%;
    transform: rotate(7deg);
}

.hero__capsule {
    position: absolute;
    left: 2%;
    bottom: 3%;
    width: min(360px, 70%);
    padding: 22px 24px;
    border-radius: 26px;
    backdrop-filter: blur(16px);
}

.hero__capsule p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

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

.section-heading h2,
.why__panel h2,
.cta-panel h2 {
    font-size: clamp(2.3rem, 4vw, 4.3rem);
    max-width: 13ch;
}

.section-heading--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.section-heading__aside {
    max-width: 30rem;
    margin: 0;
}

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

.format-card {
    padding: 28px;
    border-radius: 28px;
}

.format-card__index {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 0.88rem;
    letter-spacing: 0.16em;
}

.format-card h3,
.story-card h3,
.point-card h3,
.faq-item h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.35;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.story-card {
    border-radius: 30px;
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease;
}

.story-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.24);
}

.story-card__image {
    aspect-ratio: 0.72 / 1;
    overflow: hidden;
}

.story-card__image img {
    height: 100%;
    object-fit: cover;
}

.story-card__body {
    padding: 20px 20px 24px;
}

.story-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.story-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(247, 234, 223, 0.84);
    font-size: 0.8rem;
}

.story-card--tall {
    transform: translateY(18px);
}

.why__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    align-items: start;
}

.why__panel {
    padding: 34px;
    border-radius: 30px;
}

.why__points {
    display: grid;
    gap: 18px;
}

.point-card {
    padding: 28px;
    border-radius: 28px;
}

.faq__layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: start;
}

.section-heading--left {
    margin-bottom: 0;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    padding: 26px 28px;
    border-radius: 28px;
}

.faq-item p {
    margin: 0;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 24px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
}

.cta-panel__copy p:last-child,
.cta-panel__hint {
    margin: 16px 0 0;
}

.cta-panel__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.legal {
    padding-top: 0;
}

.legal-card {
    padding: 24px 26px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(19, 10, 13, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.legal-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.legal-card__top p,
.legal-grid p {
    margin: 0;
    color: rgba(247, 234, 223, 0.68);
    font-size: 0.94rem;
    line-height: 1.7;
}

.legal-card__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(227, 181, 112, 0.28);
    background: rgba(227, 181, 112, 0.12);
    color: #f4d094;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.mobile-bar {
    position: sticky;
    bottom: 0;
    z-index: 18;
    padding: 0 12px 12px;
    pointer-events: none;
}

.mobile-bar__inner {
    width: min(calc(100% - 8px), 680px);
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 9, 12, 0.88);
    backdrop-filter: blur(18px);
    padding: 12px 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.mobile-bar__inner strong,
.mobile-bar__inner span {
    display: block;
}

.mobile-bar__inner span {
    margin-top: 4px;
    color: rgba(247, 234, 223, 0.7);
    font-size: 0.86rem;
}

html[data-delivery-mode="smart"] .button--primary,
html[data-delivery-mode="smart"] .header-cta {
    box-shadow: 0 16px 34px rgba(96, 175, 186, 0.24);
}

html[data-delivery-mode="smart"] .button--primary {
    background: linear-gradient(135deg, #8fe5df, #5ab6c6);
    color: #0e1b21;
}

body.install-route .hero__badge--cool,
body.install-route .hero__capsule {
    border-color: rgba(143, 229, 223, 0.3);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1180px) {
    .stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card--tall {
        transform: none;
    }

    .hero__layout,
    .why__layout,
    .faq__layout,
    .cta-panel,
    .section-heading--split {
        grid-template-columns: 1fr;
        display: grid;
    }

    .section-heading--split {
        align-items: start;
    }
}

@media (max-width: 920px) {
    .site-nav,
    .header-cta {
        display: none;
    }

    .format-grid,
    .hero__stats {
        grid-template-columns: 1fr;
    }

    .hero__layout {
        gap: 28px;
    }

    .hero__visual {
        min-height: 620px;
    }

    .hero-poster--front {
        inset: 12% 10% 18% 4%;
    }

    .hero-poster--back {
        width: 46%;
        height: 50%;
        top: 8%;
        right: 2%;
    }

    .hero__badge--warm {
        top: 2%;
        left: 2%;
    }

    .hero__badge--cool {
        right: 4%;
        top: auto;
        bottom: 28%;
    }

    .mobile-bar__inner {
        display: flex;
    }
}

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

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .hero {
        padding-top: 26px;
    }

    .hero h1 {
        max-width: none;
    }

    .hero__visual {
        min-height: 520px;
    }

    .hero__badge {
        position: static;
        max-width: none;
        margin-bottom: 12px;
        animation: none;
    }

    .hero-poster--front {
        inset: 22% 8% 20% 0;
    }

    .hero-poster--back {
        width: 44%;
        height: 42%;
        top: 12%;
        right: 0;
    }

    .hero__capsule {
        left: 0;
        right: 0;
        width: auto;
        bottom: 0;
    }

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

    .format-card,
    .why__panel,
    .point-card,
    .faq-item,
    .cta-panel,
    .legal-card {
        padding: 24px;
    }

    .button,
    .button--large {
        width: 100%;
    }

    .hero__actions,
    .cta-panel__actions {
        align-items: stretch;
    }

    .legal-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .mobile-bar__inner {
        padding: 10px 12px;
        align-items: center;
    }

    .mobile-bar__inner strong {
        font-size: 0.92rem;
    }

    .mobile-bar__inner span {
        display: none;
    }

    .mobile-bar .button--compact {
        min-width: 190px;
        font-size: 0.84rem;
        padding-inline: 14px;
    }
}
