* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #faf8f5;
    --white: #ffffff;
    --text: #292522;
    --muted: #746d66;
    --primary: #76573c;
    --primary-light: #9b7653;
    --cream: #f3eee8;
    --border: #e4dacf;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    height: 80px;

    background: rgba(250, 248, 245, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(14px);
}

.nav {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary);
}

.logo span {
    color: var(--text);
}

.nav nav {
    display: flex;
    gap: 32px;
}

.nav nav a {
    font-size: 14px;
    color: var(--muted);

    transition: 0.2s;
}

.nav nav a:hover {
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    padding: 10px 16px;

    color: var(--muted);
    font-size: 14px;

    border-radius: 50px;

    transition: 0.2s;
}

.login-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}


/* =========================
   BUTTONS
========================= */

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 22px;

    border-radius: 50px;

    background: var(--primary);
    color: white;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

.primary-btn:hover {
    background: #61462f;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(118, 87, 60, 0.18);
}

.primary-btn.large,
.secondary-btn.large {
    padding: 15px 26px;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 22px;

    border-radius: 50px;

    border: 1px solid #d9cec2;

    color: var(--primary);

    font-size: 14px;
    font-weight: 600;

    background: rgba(255,255,255,0.5);

    transition: 0.2s;
}

.secondary-btn:hover {
    background: white;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 720px;

    padding-top: 80px;

    overflow: hidden;
}

.hero-decoration {
    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    filter: blur(70px);

    opacity: 0.5;

    pointer-events: none;
}

.decoration-left {
    left: -200px;
    top: 150px;

    background: #eadfd3;
}

.decoration-right {
    right: -200px;
    top: 220px;

    background: #e6d8cb;
}

.hero-grid {
    min-height: 640px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;

    padding-top: 70px;
    padding-bottom: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;

    padding: 9px 15px;

    border: 1px solid #e5d9cc;

    border-radius: 50px;

    background: rgba(255,255,255,0.55);

    color: var(--primary);

    font-size: 13px;
}

.hero h1 {
    margin-top: 24px;

    font-size: clamp(48px, 6vw, 76px);

    line-height: 1.03;

    letter-spacing: -4px;

    font-weight: 700;
}

.hero h1 span {
    color: var(--primary-light);

    font-family: Georgia, serif;

    font-style: italic;

    font-weight: 400;
}

.hero-content > p {
    max-width: 560px;

    margin-top: 28px;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}

.hero-features {
    display: flex;

    flex-wrap: wrap;

    gap: 25px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================
   INVITATION PREVIEW
========================= */

.invitation-wrapper {
    position: relative;

    width: 100%;
    max-width: 430px;

    margin: 0 auto;

    transform: rotate(2deg);
}

.invitation-wrapper::before {
    content: "";

    position: absolute;

    inset: -25px;

    border-radius: 40px;

    background: #e8ddd1;

    filter: blur(30px);

    opacity: 0.7;

    z-index: -1;
}

.invitation-card {
    padding: 12px;

    border-radius: 30px;

    background: #f1e8df;

    box-shadow:
        0 30px 70px rgba(0,0,0,0.12),
        0 10px 25px rgba(0,0,0,0.06);
}

.invitation-inner {
    position: relative;

    min-height: 580px;

    overflow: hidden;

    border-radius: 22px;

    background: #fbf8f4;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 40px;
}

.save-date {
    font-size: 10px;

    letter-spacing: 4px;

    color: var(--primary-light);
}

.line {
    width: 70px;

    height: 1px;

    background: #cdb69d;

    margin: 28px 0;
}

.names {
    font-family: Georgia, serif;

    font-style: italic;

    font-size: 52px;

    line-height: 1.05;

    color: var(--primary);
}

.and {
    margin: 8px 0;

    color: var(--primary-light);
}

.date {
    font-size: 13px;

    letter-spacing: 3px;

    color: var(--muted);
}

.location {
    margin-top: 10px;

    font-size: 13px;

    color: var(--muted);
}

.preview-button {
    margin-top: 38px;

    padding: 9px 20px;

    border: 1px solid #d7c6b5;

    border-radius: 50px;

    color: var(--primary);

    font-size: 11px;
}

.circle {
    position: absolute;

    width: 80px;
    height: 80px;

    border-radius: 50%;

    border: 1px solid #d9c5b0;
}

.circle-top {
    top: 20px;
    left: 20px;
}

.circle-bottom {
    right: 20px;
    bottom: 20px;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;
}

.white {
    background: white;
}

.beige {
    background: var(--cream);
}

.section-header {
    max-width: 650px;

    margin: 0 auto;

    text-align: center;
}

.section-header.left {
    margin-left: 0;

    text-align: left;
}

.eyebrow {
    color: var(--primary-light);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;
}

.section-header h2 {
    margin-top: 15px;

    font-size: clamp(36px, 5vw, 52px);

    line-height: 1.1;

    letter-spacing: -2px;
}

.section-header p {
    margin-top: 18px;

    color: var(--muted);

    line-height: 1.8;
}


/* =========================
   TEMPLATES
========================= */

.templates-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 55px;
}

.template-card {
    cursor: pointer;
}

.template-preview {
    aspect-ratio: 4 / 5;

    position: relative;

    overflow: hidden;

    border-radius: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    transition:
        transform 0.4s,
        box-shadow 0.4s;
}

.template-card:hover .template-preview {
    transform: translateY(-8px);

    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.template-preview > div {
    font-size: 50px;
}

.template-preview h3 {
    margin-top: 22px;

    font-family: Georgia, serif;

    font-size: 30px;

    font-style: italic;

    color: var(--primary);
}

.template-preview span {
    margin-top: 8px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: var(--primary);
}

.wedding-one {
    background: linear-gradient(
        135deg,
        #eadfd3,
        #cbb39a
    );
}

.wedding-two {
    background: linear-gradient(
        135deg,
        #e7e0d8,
        #b8a99a
    );
}

.birthday {
    background: linear-gradient(
        135deg,
        #e7d3c7,
        #b98876
    );
}

.template-card h4 {
    margin-top: 17px;

    font-size: 17px;
}

.template-card p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================
   FEATURES
========================= */

.features-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    margin-top: 55px;
}

.feature {
    padding: 30px;

    border: 1px solid var(--border);

    border-radius: 24px;

    background: rgba(255,255,255,0.7);
}

.feature-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #eee3d8;

    font-size: 23px;
}

.feature h3 {
    margin-top: 22px;

    font-size: 18px;
}

.feature p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================
   STEPS
========================= */

.steps {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 50px;

    margin-top: 60px;
}

.step-number {
    font-family: Georgia, serif;

    font-size: 60px;

    font-style: italic;

    color: #e5d8ca;
}

.step h3 {
    margin-top: 8px;

    font-size: 20px;
}

.step p {
    margin-top: 12px;

    color: var(--muted);

    line-height: 1.8;
}


/* =========================
   CTA
========================= */

.cta-section {
    padding: 30px 0;
}

.cta {
    padding: 90px 30px;

    border-radius: 32px;

    background: var(--primary);

    color: white;

    text-align: center;
}

.cta h2 {
    max-width: 700px;

    margin: 18px auto 0;

    font-size: clamp(36px, 5vw, 52px);

    line-height: 1.1;

    letter-spacing: -2px;
}

.cta p {
    max-width: 500px;

    margin: 20px auto 0;

    color: #e7d9cb;
}

.white-btn {
    display: inline-flex;

    margin-top: 30px;

    padding: 15px 27px;

    border-radius: 50px;

    background: white;

    color: var(--primary);

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;
}

.white-btn:hover {
    background: #f4eee8;

    transform: translateY(-2px);
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 40px 0;

    background: var(--bg);
}

.footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--muted);

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a:hover {
    color: var(--primary);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .nav nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 50px;

        text-align: center;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-features {
        justify-content: center;
    }

    .templates-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header.left {
        margin-left: auto;

        text-align: center;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .header,
    .nav {
        height: 70px;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-grid {
        padding-top: 50px;
    }

    .hero h1 {
        font-size: 49px;

        letter-spacing: -2.5px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    .login-btn {
        display: none;
    }

    .invitation-wrapper {
        max-width: 340px;
    }

    .invitation-inner {
        min-height: 500px;
    }

    .names {
        font-size: 43px;
    }

    .section {
        padding: 80px 0;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;

        text-align: center;

        gap: 15px;
    }
}
