* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --text: #24212a;
    --muted: #77727f;
    --primary: #e85b78;
    --primary-dark: #d84666;
    --soft: #fff4f6;
    --border: #eee8eb;
    --white: #ffffff;
    --dark: #211d25;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: #fff;

    line-height: 1.6;
}

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

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


/* HEADER */

.site-header {
    height: 76px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 22px;
    font-weight: 800;
}

.logo-icon {
    font-size: 25px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: #65606a;
}

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

.header-button {
    background: var(--text);
    color: white;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}


/* HERO */

.hero {
    background:
        radial-gradient(circle at 10% 20%, #ffecef 0, transparent 30%),
        radial-gradient(circle at 90% 80%, #fff1e9 0, transparent 30%),
        #fffafa;

    overflow: hidden;
}

.hero-content {
    min-height: 650px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

    padding-top: 70px;
    padding-bottom: 70px;
}

.hero-badge {
    display: inline-flex;
    background: white;
    border: 1px solid #f3dce1;
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 13px;
    color: #8d6570;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(52px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -4px;
    margin-bottom: 28px;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-text > p {
    max-width: 540px;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 34px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    background: var(--primary);
    color: white;

    padding: 15px 22px;
    border-radius: 12px;

    font-weight: 700;

    box-shadow: 0 12px 25px rgba(232,91,120,.25);

    transition: .2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 15px 20px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 12px;
    font-weight: 600;
}


/* HERO CARD */

.hero-card-wrapper {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: min(390px, 100%);
    aspect-ratio: 4 / 5;

    background:
        radial-gradient(circle at 20% 20%, #fff 0, transparent 25%),
        linear-gradient(145deg, #ffe0e7, #fff4e9);

    border-radius: 25px;

    padding: 50px 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;

    box-shadow:
        0 35px 80px rgba(84, 49, 58, .15);

    transform: rotate(3deg);
}

.card-small {
    font-size: 13px;
    color: #a46a76;
    margin-bottom: 20px;
}

.card-heart {
    font-size: 60px;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 25px;
    animation: heartbeat 2s infinite;
}

.hero-card h2 {
    font-family: Georgia, serif;
    font-size: 31px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-card p {
    color: #876c73;
    max-width: 260px;
}

.card-bottom {
    margin-top: 35px;
    font-size: 13px;
    color: #a46a76;
}

.card-decoration {
    position: absolute;
    font-size: 26px;
}

.decoration-one {
    top: 35px;
    left: 45px;
}

.decoration-two {
    right: 45px;
    bottom: 45px;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}


/* SECTIONS */

.categories,
.templates-section,
.how-section {
    padding: 100px 0;
}

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

.section-heading span {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.view-all {
    color: var(--primary);
    font-weight: 700;
}


/* CATEGORIES */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 15px;
    text-align: center;
    transition: .2s;
}

.category:hover {
    transform: translateY(-4px);
    border-color: #f0cbd3;
    box-shadow: 0 15px 30px rgba(0,0,0,.05);
}

.category-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.category strong {
    display: block;
    font-size: 14px;
}

.category small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}


/* TEMPLATES */

.templates-section {
    background: #faf9fa;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.template-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: .2s;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0,0,0,.08);
}

.template-image {
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
}

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

.template-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg,#fff0f3,#fff8ef);
    font-size: 55px;
}

.premium-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--dark);
    color: white;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 800;
}

.template-info {
    padding: 16px;
}

.template-info strong {
    display: block;
}

.template-info span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.empty-templates {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
}

.empty-templates div {
    font-size: 50px;
    margin-bottom: 15px;
}


/* HOW */

.center {
    text-align: center;
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 12px;
    font-weight: 800;
    color: #b9b3b9;
    margin-bottom: 12px;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 18px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    max-width: 280px;
    margin: auto;
    font-size: 14px;
}


/* CTA */

.cta-section {
    padding-bottom: 100px;
}

.cta-box {
    background: var(--dark);
    color: white;

    border-radius: 25px;
    padding: 55px 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-box span {
    color: #f4a8b8;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cta-box h2 {
    font-size: 38px;
    margin-top: 5px;
}

.btn-white {
    background: white;
    color: var(--dark);
    padding: 14px 22px;
    border-radius: 11px;
    font-weight: 700;
    white-space: nowrap;
}


/* FOOTER */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

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

.footer-logo {
    font-weight: 800;
}

.footer-copy {
    font-size: 12px;
    color: var(--muted);
}


/* MOBILE */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-card {
        width: 320px;
    }

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

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        height: 68px;
    }

    .header-button {
        padding: 9px 12px;
        font-size: 12px;
    }

    .hero-content {
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 55px;
        letter-spacing: -3px;
    }

    .hero-text > p {
        font-size: 16px;
    }

    .hero-card {
        width: 290px;
        padding: 35px 25px;
    }

    .hero-card h2 {
        font-size: 26px;
    }

    .categories,
    .templates-section,
    .how-section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-grid {
        gap: 12px;
    }

    .template-info {
        padding: 12px;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .cta-box h2 {
        font-size: 30px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}