:root {
    color-scheme: light;
    --ink: #16212a;
    --muted: #66717d;
    --paper: #fbfcf9;
    --line: #dbe3df;
    --coral: #eb6f5f;
    --teal: #1f9b92;
    --gold: #e3b84f;
    --leaf: #5d8d62;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(18, 31, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
}

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

.site-header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 16px clamp(20px, 5vw, 68px);
    background: rgba(251, 252, 249, 0.82);
    border-bottom: 1px solid rgba(219, 227, 223, 0.72);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(22, 33, 42, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 34px);
    color: #33404a;
    font-size: 0.95rem;
    font-weight: 650;
}

.nav-links a {
    padding: 8px 0;
}

.hero {
    position: relative;
    min-height: min(760px, 92vh);
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    background:
            linear-gradient(90deg, rgba(251, 252, 249, 0.96) 0%, rgba(251, 252, 249, 0.78) 42%, rgba(251, 252, 249, 0.24) 72%),
            linear-gradient(180deg, rgba(251, 252, 249, 0.42) 0%, rgba(251, 252, 249, 0.06) 64%, var(--paper) 100%);
}

.hero-content {
    position: relative;
    width: min(680px, calc(100% - 40px));
    margin-left: clamp(20px, 6vw, 82px);
    padding-top: 72px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(4.2rem, 13vw, 9.5rem);
    line-height: 0.86;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 560px;
    margin-bottom: 30px;
    color: #36434d;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 800;
}

.primary-link {
    background: var(--ink);
    color: var(--white);
}

.secondary-link {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(22, 33, 42, 0.16);
}

.section {
    padding: clamp(70px, 10vw, 118px) clamp(20px, 5vw, 68px);
}

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

h2 {
    max-width: 860px;
    margin-bottom: 0;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.24rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.preview-layout {
    display: grid;
    grid-template-columns: minmax(280px, 410px) 1fr;
    gap: clamp(24px, 5vw, 68px);
    align-items: center;
}

.phone-preview {
    width: min(100%, 410px);
    min-height: 620px;
    padding: 18px;
    border: 1px solid rgba(22, 33, 42, 0.12);
    border-radius: 30px;
    background: #f6f8f4;
    box-shadow: var(--shadow);
}

.phone-top {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px 18px;
}

.phone-top span:first-child {
    width: 80px;
    height: 8px;
    border-radius: 999px;
    background: #19242d;
}

.phone-top span:last-child {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    background: var(--coral);
}

.post-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--line);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author p,
.post-text,
.feature-card p,
.moment-row p,
.community-section p,
.site-footer {
    color: var(--muted);
    line-height: 1.65;
}

.post-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-block;
}

.avatar-coral {
    background: linear-gradient(135deg, var(--coral), var(--gold));
}

.post-media {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    grid-template-rows: 150px 150px;
    gap: 10px;
}

.post-media span {
    border-radius: 10px;
    background: linear-gradient(135deg, #e8695b, #f0bd56);
}

.post-media span:first-child {
    grid-row: span 2;
    background: linear-gradient(135deg, #23424d, #1f9b92);
}

.post-media span:last-child {
    background: linear-gradient(135deg, #637d64, #d7b245);
}

.post-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.post-actions span {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 8px;
    background: #f1f4f0;
    color: #33404a;
    font-size: 0.84rem;
    font-weight: 800;
}

.post-text {
    margin-bottom: 0;
}

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

.feature-card,
.moment-row article {
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.feature-icon,
.moment-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    margin-bottom: 52px;
    border-radius: 999px;
    background: #e8f4f1;
    color: var(--teal);
    font-weight: 900;
    font-size: 0.82rem;
}

.feature-card:nth-child(2) .feature-icon {
    background: #fff0ed;
    color: var(--coral);
}

.feature-card:nth-child(3) .feature-icon {
    background: #fbf3d9;
    color: #9b7417;
}

.moments-section {
    background: #f0f5f1;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.moment-chip {
    margin-bottom: 44px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
}

.community-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.8fr);
    gap: clamp(28px, 8vw, 120px);
    align-items: end;
    background: var(--ink);
    color: var(--white);
}

.community-section .eyebrow {
    color: #79d4cc;
}

.community-section p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(20px, 5vw, 68px);
    background: #101820;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer span:first-child {
    color: var(--white);
    font-weight: 900;
}

@media (max-width: 980px) {
    .preview-layout,
    .community-section {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .moment-row {
        grid-template-columns: 1fr;
    }

    .phone-preview {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: absolute;
        min-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 720px;
        align-items: end;
    }

    .hero-shade {
        background:
                linear-gradient(180deg, rgba(251, 252, 249, 0.26) 0%, rgba(251, 252, 249, 0.92) 54%, var(--paper) 100%);
    }

    .hero-content {
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 120px 0 58px;
    }

    h1 {
        font-size: clamp(4rem, 19vw, 6.5rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .post-media {
        grid-template-rows: 128px 128px;
    }

    .site-footer {
        flex-direction: column;
    }
}
