@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #0b1020;
    --surface: #121a2b;
    --surface-light: #192337;
    --text: #f4f6fb;
    --muted: #9ba8bd;
    --accent: #b8f36b;
    --border: rgba(255, 255, 255, .09);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    max-width: 1240px;
    margin: auto;
    padding: 25px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 12px;
    font-size: 1.4rem;
}

.brand-light {
    font-weight: 400;
    color: var(--muted);
}

.header-link {
    color: var(--muted);
    font-size: .9rem;
}

.header-link:hover,
.secondary-link:hover {
    color: var(--accent);
}

.hero {
    max-width: 1240px;
    margin: auto;
    padding: 75px 6% 95px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 55px;
    min-height: 670px;
}

.hero-content {
    max-width: 550px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(184, 243, 107, .6);
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.hero h1 {
    margin: 25px 0 10px;
    font-size: clamp(3rem, 5.5vw, 5rem);
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-description,
.connect-copy p,
.result-description {
    color: var(--muted);
    line-height: 1.85;
}

.hero-description {
    max-width: 490px;
    margin-bottom: 20px;
}

.trust-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    color: var(--muted);
    font-size: .78rem;
}

.trust-line > span:first-child {
    color: var(--accent);
}

.trust-separator {
    color: #5d6980;
}

.coffee-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, .18);
}

.field-label {
    display: block;
    margin: 18px 0 9px;
    font-size: .87rem;
    font-weight: 600;
}

.coffee-card .field-label:first-of-type {
    margin-top: 0;
}

.amount-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid #34405a;
    border-radius: 12px;
    padding: 0 15px;
}

.amount-input:focus-within,
.text-input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(184, 243, 107, .12);
}

.currency-symbol {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.amount-input input {
    width: 100%;
    min-width: 0;
    background: transparent;
    color: var(--text);
    border: 0;
    outline: 0;
    padding: 16px 0;
}

.amount-input input::placeholder,
.text-input::placeholder {
    color: #718098;
}

.field-hint {
    color: var(--muted);
    font-size: .76rem;
    margin: 8px 0 20px;
}

.optional {
    color: var(--muted);
    font-weight: 400;
}

.text-input {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid #34405a;
    border-radius: 12px;
    padding: 14px 15px;
    outline: 0;
}

.message-input {
    resize: vertical;
    min-height: 90px;
}

.coffee-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--accent);
    color: #101820;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.coffee-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184, 243, 107, .16);
}

.coffee-button:disabled {
    opacity: .7;
    cursor: wait;
}

.button-arrow {
    margin-left: auto;
    font-size: 1.2rem;
}

.secure-note {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: .72rem;
    text-align: center;
}

.secondary-link {
    display: block;
    margin-top: 24px;
    color: var(--muted);
    font-size: .86rem;
}

.secondary-link span {
    color: var(--accent);
    font-weight: 600;
}

.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: .85rem;
}

.alert-error {
    background: rgba(255, 105, 105, .1);
    border: 1px solid rgba(255, 105, 105, .25);
    color: #ffb5b5;
}

.hero-visual {
    min-height: 480px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(90px);
}

.glow-one {
    background: rgba(184, 243, 107, .16);
    top: 80px;
    left: 25%;
}

.glow-two {
    background: rgba(76, 114, 255, .12);
    right: 5%;
    bottom: 30px;
}

.coffee-art {
    width: 300px;
    height: 340px;
    position: relative;
    display: grid;
    place-items: center;
    z-index: 1;
}

.cup {
    position: relative;
    z-index: 2;
    width: 190px;
    filter: drop-shadow(0 25px 20px rgba(0, 0, 0, .25));
}

.cup-top {
    position: relative;
    z-index: 2;
    width: 190px;
    height: 42px;
    border-radius: 50%;
    background: #d9e0e5;
    border: 8px solid #aeb9c5;
    display: grid;
    place-items: center;
}

.coffee-liquid {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #543822;
    color: var(--accent);
}

.coffee-liquid span {
    font-size: 1.25rem;
}

.cup-body {
    height: 165px;
    margin: -5px 9px 0;
    border-radius: 8px 8px 42px 42px;
    background: linear-gradient(110deg, #c9d0d9, #f9fbff 40%, #aab5c3);
    display: grid;
    place-items: center;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

.cup-brand {
    color: #101820;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.cup-base {
    width: 115px;
    height: 12px;
    margin: auto;
    background: #aeb9c5;
    border-radius: 50%;
}

.cup-handle {
    position: absolute;
    width: 75px;
    height: 100px;
    border: 18px solid #aeb9c5;
    border-radius: 20px 40px 40px 20px;
    top: 125px;
    right: 20px;
    z-index: 0;
}

.cup-shadow {
    position: absolute;
    bottom: 32px;
    width: 230px;
    height: 35px;
    background: rgba(0, 0, 0, .28);
    filter: blur(20px);
    border-radius: 50%;
}

.coffee-steam {
    position: absolute;
    width: 18px;
    height: 65px;
    top: 12px;
    border-left: 3px solid rgba(184, 243, 107, .65);
    border-radius: 50%;
    transform: rotate(15deg);
    animation: steam 3s ease-in-out infinite;
}

.steam-one { left: 95px; }
.steam-two { left: 145px; top: 0; animation-delay: .5s; }
.steam-three { left: 190px; animation-delay: 1s; }

@keyframes steam {
    0%, 100% { opacity: .25; transform: translateY(8px) rotate(15deg); }
    50% { opacity: .8; transform: translateY(-5px) rotate(-10deg); }
}

.floating-note {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    background: rgba(25, 35, 55, .92);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
}

.note-top {
    top: 65px;
    right: 0;
}

.note-bottom {
    bottom: 55px;
    left: 0;
}

.note-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: rgba(184, 243, 107, .12);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1.2rem;
}

.floating-note strong,
.floating-note small {
    display: block;
}

.floating-note strong {
    font-size: .8rem;
}

.floating-note small {
    color: var(--muted);
    font-size: .68rem;
}

.connect-section {
    max-width: 1110px;
    margin: 0 auto 80px;
    padding: 45px;
    border: 1px solid var(--border);
    background: linear-gradient(120deg, #121a2b, #0e1525);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.connect-copy {
    max-width: 640px;
}

.connect-copy h2,
.result-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 15px 0;
}

.connect-copy p {
    margin-bottom: 0;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    background: var(--accent);
    color: var(--bg);
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 700;
}

.site-footer {
    max-width: 1240px;
    margin: auto;
    padding: 25px 6%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: .8rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a:hover {
    color: var(--accent);
}

.result-page {
    min-height: 75vh;
    display: grid;
    place-items: center;
    padding: 65px 20px;
}

.result-card {
    width: 100%;
    max-width: 540px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    text-align: center;
}

.result-card h1 {
    font-size: clamp(2.3rem, 6vw, 3.4rem);
    margin: 20px 0 15px;
}

.success-icon,
.failure-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
}

.success-icon {
    background: rgba(184, 243, 107, .12);
    border: 1px solid rgba(184, 243, 107, .35);
    color: var(--accent);
}

.failure-icon {
    background: rgba(255, 105, 105, .12);
    color: #ff9999;
}

.payment-summary {
    margin: 28px 0;
    padding: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.payment-summary span,
.payment-summary strong,
.payment-summary small {
    display: block;
}

.payment-summary span,
.payment-summary small {
    color: var(--muted);
    font-size: .82rem;
}

.payment-summary strong {
    margin: 6px 0;
    color: var(--accent);
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.result-divider {
    height: 1px;
    background: var(--border);
    margin: 30px 0;
}

.result-card h2 {
    font-size: 1.5rem;
}

.contact-cta {
    text-decoration: none;
}

.email-display {
    margin: 17px 0;
    color: var(--muted);
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.email-display a {
    color: var(--accent);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 55px;
    }

    .hero-content {
        max-width: 650px;
        margin: auto;
        width: 100%;
    }

    .hero-visual {
        min-height: 420px;
    }

    .connect-section {
        margin: 0 6% 60px;
        padding: 30px;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 18px 5%;
    }

    .brand {
        font-size: 1rem;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    .header-link {
        font-size: .8rem;
    }

    .hero {
        padding: 45px 5% 60px;
    }

    .hero h1 {
        font-size: 3.15rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .trust-line {
        line-height: 1.8;
    }

    .coffee-card {
        padding: 20px;
    }

    .hero-visual {
        min-height: 350px;
    }

    .coffee-art {
        transform: scale(.82);
    }

    .note-top {
        top: 20px;
        right: -5px;
    }

    .note-bottom {
        bottom: 15px;
        left: -5px;
    }

    .floating-note {
        padding: 10px;
        gap: 8px;
    }

    .floating-note strong {
        font-size: .72rem;
    }

    .floating-note small {
        font-size: .61rem;
    }

    .connect-section {
        margin: 0 5% 45px;
        padding: 25px 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .contact-button {
        width: 100%;
        justify-content: center;
    }

    .site-footer {
        padding: 22px 5%;
        flex-direction: column;
        gap: 8px;
    }

    .result-card {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}