:root {
    --green: #123c32;
    --green-dark: #0b2922;
    --cream: #f8f4ea;
    --cream-light: #fffdf8;
    --red: #b7443c;
    --gold: #c49a4c;
    --text: #18332c;
    --muted: #66736d;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* --------------------------------
   Background decoration
-------------------------------- */

.glow {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: rgba(196, 154, 76, 0.09);
    filter: blur(20px);
    pointer-events: none;
}

.glow.one {
    top: -250px;
    left: -220px;
}

.glow.two {
    right: -280px;
    bottom: -300px;
    background: rgba(183, 68, 60, 0.07);
}

.snow {
    position: absolute;
    color: rgba(18, 60, 50, 0.15);
    font-size: 20px;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.snow.s1 {
    top: 14%;
    left: 8%;
}

.snow.s2 {
    top: 24%;
    right: 10%;
    font-size: 14px;
    animation-delay: 1s;
}

.snow.s3 {
    bottom: 22%;
    left: 13%;
    font-size: 16px;
    animation-delay: 2s;
}

.snow.s4 {
    bottom: 15%;
    right: 12%;
    font-size: 22px;
    animation-delay: 3s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

/* --------------------------------
   Header
-------------------------------- */

header {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 28px 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--green);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--green);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-size: 17px;
    position: relative;
}

.logo-mark::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    top: -3px;
    right: -3px;
    border: 2px solid var(--cream);
}

/* --------------------------------
   Hero
-------------------------------- */

main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    #padding: 55px 5vw 90px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 70px;
    min-height: calc(100vh - 140px);
}

.hero-copy {
    max-width: 600px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--red);
}

h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(54px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: -4px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 27px;
}

h1 span {
    display: block;
    color: var(--red);
    font-style: italic;
    font-weight: 500;
}

.description {
    max-width: 480px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 36px;
}

/* --------------------------------
   Signup
-------------------------------- */

.signup {
    max-width: 480px;
}

.form {
    display: flex;
    gap: 10px;
    padding: 6px;
    background: var(--white);
    border: 1px solid rgba(18, 60, 50, 0.1);
    border-radius: 9px;
    box-shadow: 0 12px 35px rgba(18, 60, 50, 0.07);
}

.form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 14px 15px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

.form input::placeholder {
    color: #9ba49f;
}

.form button {
    border: 0;
    background: var(--green);
    color: var(--white);
    border-radius: 6px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.form button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.form-note {
    margin-top: 11px;
    font-size: 11px;
    color: #89938e;
}

/* --------------------------------
   Gift card visual
-------------------------------- */

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

.card-shadow {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(196, 154, 76, 0.16);
    filter: blur(40px);
}

.gift-card {
    position: relative;
    width: min(100%, 390px);
    aspect-ratio: 1.55 / 1;
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.06),
            transparent 45%
        ),
        var(--green);

    box-shadow:
        0 35px 70px rgba(18, 60, 50, 0.25),
        0 8px 20px rgba(18, 60, 50, 0.12);

    transform: rotate(5deg);
    overflow: hidden;

    animation: cardFloat 5s ease-in-out infinite;
}

@keyframes cardFloat {
    0%,
    100% {
        transform: rotate(5deg) translateY(0);
    }

    50% {
        transform: rotate(5deg) translateY(-10px);
    }
}

.gift-card::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    top: -180px;
    right: -80px;
}

.gift-card::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    bottom: -150px;
    left: -70px;
}

.card-top {
    position: absolute;
    top: 28px;
    left: 30px;
    right: 30px;

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

.card-brand {
    color: var(--cream);
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 600;
}

.card-badge {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

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

    color: var(--gold);
    font-size: 15px;
}

.card-content {
    position: absolute;
    left: 30px;
    bottom: 28px;
    color: var(--cream);
}

.card-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 5px;
}

.card-value {
    font-family: "Playfair Display", serif;
    font-size: 43px;
    line-height: 1;
}

.ribbon {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--red);
    color: white;

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

    font-size: 23px;

    box-shadow: 0 10px 25px rgba(183, 68, 60, 0.3);

    right: -8px;
    bottom: 34px;

    transform: rotate(-12deg);
}

.ribbon::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cream);
    opacity: 0.7;
}

/* --------------------------------
   Footer
-------------------------------- */

.bottom-message {
    position: absolute;
    bottom: 27px;
    left: 0;
    right: 0;

    text-align: center;

    font-size: 10px;
    color: rgba(18, 60, 50, 0.45);

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* --------------------------------
   Responsive
-------------------------------- */

@media (max-width: 850px) {

    header {
        padding-top: 22px;
    }

    main {
        padding-top: 35px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
        min-height: auto;
        text-align: center;
    }

    .hero-copy {
        margin: 0 auto;
    }

    .eyebrow {
        justify-content: center;
    }

    .description,
    .signup {
        margin-left: auto;
        margin-right: auto;
    }

    .visual {
        min-height: 400px;
    }

    .gift-card {
        width: min(85%, 390px);
    }

    .bottom-message {
        position: relative;
        bottom: auto;
        padding: 20px;
    }
}

@media (max-width: 520px) {

    h1 {
        font-size: 52px;
        letter-spacing: -2.5px;
    }

    .description {
        font-size: 15px;
    }

    .form {
        flex-direction: column;
        padding: 7px;
    }

    .form input {
        text-align: center;
        padding: 13px;
    }

    .form button {
        width: 100%;
    }

    .visual {
        min-height: 320px;
    }

    .gift-card {
        width: 92%;
        border-radius: 14px;
    }

    .card-brand {
        font-size: 18px;
    }

    .card-value {
        font-size: 34px;
    }

    .card-top {
        top: 22px;
        left: 23px;
        right: 23px;
    }

    .card-content {
        left: 23px;
        bottom: 22px;
    }

    .ribbon {
        width: 54px;
        height: 54px;
        font-size: 19px;
        right: -4px;
        bottom: 25px;
    }

    .snow {
        display: none;
    }
}

/* --------------------------------
   Form error
-------------------------------- */

.form-error {
    max-width: 480px;
    margin-bottom: 15px;
    padding: 12px 15px;

    background: rgba(183, 68, 60, 0.08);
    border: 1px solid rgba(183, 68, 60, 0.18);
    border-radius: 7px;

    color: var(--red);
    font-size: 12px;
}


/* --------------------------------
   Thank-you page
-------------------------------- */

.thank-you-main {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    min-height: calc(100vh - 140px);

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

    padding: 50px 5vw 100px;
}

.thank-you {
    width: 100%;
    max-width: 650px;

    text-align: center;

    animation: fadeUp 0.6s ease-out both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 28px;

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

    border-radius: 50%;

    background: var(--green);
    color: var(--cream);

    font-size: 25px;
    font-weight: 600;

    box-shadow:
        0 12px 30px rgba(18, 60, 50, 0.18);
}

.thank-you .eyebrow {
    justify-content: center;
    margin-bottom: 20px;
}

.thank-you h1 {
    font-size: clamp(48px, 7vw, 76px);
    margin-bottom: 25px;
}

.thank-you-text {
    max-width: 500px;
    margin: 0 auto 35px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.8;
}

.back-link {
    display: inline-flex;
    align-items: center;

    color: var(--green);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.8px;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-link:hover {
    color: var(--red);
    transform: translateX(-3px);
}


/* --------------------------------
   Thank-you responsive
-------------------------------- */

@media (max-width: 520px) {

    .thank-you-main {
        min-height: calc(100vh - 120px);
        padding-top: 30px;
    }

    .success-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 23px;
    }

    .thank-you h1 {
        font-size: 48px;
    }

    .thank-you-text {
        font-size: 15px;
    }
}

/* --------------------------------
   Accessibility
-------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
