:root {
    --bg: #f8f7ff;
    --bg-soft: #f3f1ff;
    --panel: rgba(255, 255, 255, 0.8);
    --panel-strong: #ffffff;
    --ink: #1f2235;
    --muted: #59627d;
    --line: rgba(130, 128, 178, 0.16);
    --lavender: #d9d0ff;
    --lavender-deep: #7d6fe4;
    --sky: #dff3ff;
    --sky-deep: #5ca3d5;
    --peach: #ffd9c7;
    --peach-deep: #e58c63;
    --mint: #dff7ee;
    --mint-deep: #5bb28f;
    --shadow: 0 24px 60px rgba(132, 118, 204, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(217, 208, 255, 0.7), transparent 28%),
        radial-gradient(circle at bottom right, rgba(223, 243, 255, 0.8), transparent 24%),
        var(--bg);
    color: var(--ink);
}

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

button,
a {
    font: inherit;
}

.page-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 20px auto 40px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(130, 128, 178, 0.12);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(93, 86, 158, 0.05);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7d6da, #d8d4ff);
    color: var(--ink);
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
}

.brand-name {
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--ink);
}

.nav-button,
.primary-btn,
.secondary-btn {
    border: none;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.nav-button {
    background: rgba(125, 111, 228, 0.12);
    color: var(--ink);
    padding: 0.8rem 1.2rem;
    font-weight: 700;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
}

.primary-btn {
    background: linear-gradient(135deg, var(--lavender-deep), #8bc3ff);
    color: #fff;
    box-shadow: 0 18px 35px rgba(125, 111, 228, 0.25);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    border: 1px solid rgba(98, 89, 163, 0.12);
}

.nav-button:hover,
.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-1px);
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 34px;
    align-items: center;
    padding: 64px 0 40px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-family: "Playfair Display", serif;
    max-width: 600px;
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lavender-deep);
}

.subtitle {
    max-width: 560px;
    margin-top: 20px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 34px;
}

.stats-row div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-row strong {
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.stats-row span {
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card {
    position: relative;
    width: min(100%, 460px);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(127, 117, 202, 0.1);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 22px 20px 18px;
    backdrop-filter: blur(18px);
}

.mini-header {
    display: flex;
    gap: 8px;
    padding-bottom: 18px;
}

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

.dot-pink { background: #f2bfd2; }
.dot-yellow { background: #fbdcab; }
.dot-green { background: #bfe7c9; }

.chat-window {
    background: linear-gradient(180deg, rgba(247, 248, 255, 0.9), rgba(244, 244, 255, 0.8));
    border: 1px solid rgba(130, 128, 178, 0.1);
    border-radius: 24px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble {
    max-width: 84%;
    padding: 14px 15px;
    border-radius: 18px;
    line-height: 1.5;
}

.chat-bubble p {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.chat-bubble small {
    color: var(--muted);
    font-size: 0.7rem;
}

.incoming {
    background: #fff;
    border: 1px solid rgba(138, 129, 210, 0.08);
    align-self: flex-start;
}

.outgoing {
    background: linear-gradient(135deg, #d9d0ff, #ccecff);
    align-self: flex-end;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill-row span,
.tag-row span,
.group-pill,
.card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pill-row span {
    background: rgba(103, 92, 166, 0.08);
    color: var(--ink);
}

.floating-card {
    position: absolute;
    width: 220px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(130, 128, 178, 0.1);
    border-radius: 20px;
    padding: 12px 14px;
    box-shadow: 0 18px 32px rgba(117, 107, 196, 0.12);
    backdrop-filter: blur(14px);
}

.card-one {
    left: 0;
    bottom: 14px;
}

.card-two {
    right: 0;
    top: 40px;
}

.card-tag {
    width: fit-content;
    margin-bottom: 10px;
    background: #f2ecff;
    color: #5a45d2;
}

.card-tag.alt {
    background: #e8f4ff;
    color: #3578a0;
}

.floating-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.84rem;
}

.feature-section,
.groups-section,
.community-section {
    padding-top: 48px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.06em;
    font-family: "Playfair Display", serif;
}

.split-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.text-link {
    text-decoration: none;
    color: var(--lavender-deep);
    font-weight: 700;
}

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

.feature-card,
.group-card,
.post-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 18px 38px rgba(127, 118, 188, 0.06);
}

.feature-card {
    padding: 22px 20px 24px;
}

.icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.soft-lavender { background: var(--lavender); }
.soft-sky { background: var(--sky); }
.soft-peach { background: var(--peach); }

.feature-card h3,
.group-card h3,
.post-card h4 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.feature-card p,
.group-card p,
.post-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.group-card {
    padding: 20px 18px 18px;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.group-card.live {
    border-color: rgba(122, 110, 216, 0.2);
    box-shadow: 0 18px 38px rgba(127, 118, 188, 0.1);
}

.group-card.pending {
    opacity: 0.76;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.48);
}

.group-card.pending:hover,
.group-card.live:hover {
    transform: translateY(-2px);
}

.group-pill {
    margin-bottom: 14px;
}

.group-pill.purple { background: #efe9ff; color: #5c4cc6; }
.group-pill.blue { background: #e3f4ff; color: #3780b4; }
.group-pill.peach { background: #ffeae0; color: #d67c52; }
.group-pill.mint { background: #e7faf3; color: #2f8666; }
.group-pill.muted-pill {
    background: rgba(120, 128, 158, 0.09);
    color: #68738f;
}

.group-card span {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.8rem;
}

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

.post-card {
    padding: 20px 18px;
}

.post-card.highlight {
    background: linear-gradient(180deg, rgba(233, 228, 255, 0.8), rgba(255,255,255,0.72));
}

.post-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f0d9ff, #d9f2ff);
    color: var(--ink);
    font-weight: 700;
}

.avatar.alt {
    background: linear-gradient(135deg, #ffe4ca, #d0f7f1);
}

.post-top small {
    color: var(--muted);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-row span {
    background: rgba(96, 87, 174, 0.08);
    color: var(--ink);
}

.join-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 56px 0 30px;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(227, 221, 255, 0.8), rgba(220, 245, 255, 0.8));
    border: 1px solid rgba(130, 128, 178, 0.12);
    border-radius: 30px;
}

.join-banner h2 {
    margin: 0;
    max-width: 620px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -0.06em;
    font-family: "Playfair Display", serif;
}

@media (max-width: 980px) {
    .hero,
    .feature-grid,
    .group-grid,
    .feed-layout {
        grid-template-columns: 1fr 1fr;
    }

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

    .feature-grid,
    .group-grid,
    .feed-layout {
        grid-template-columns: 1fr;
    }

    .split-head,
    .join-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .stats-row {
        justify-content: center;
        text-align: center;
    }

    .hero-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .app-card {
        width: min(100%, 420px);
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1200px);
    }

    .topbar {
        padding: 16px 18px;
        gap: 10px;
    }

    .nav {
        gap: 12px 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-copy h1 {
        font-size: 3.1rem;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .floating-card {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .hero-visual {
        min-height: auto;
        display: block;
    }
}
