:root {
    --ink: #071c17;
    --deep: #08251d;
    --green: #0b7b52;
    --mint: #39e59d;
    --lime: #c8f04b;
    --cream: #f7f3e8;
    --muted: #61716a;
    --line: #dce5df;
    --danger: #bb2d3b;
    --white: #fff;
    --shadow: 0 28px 80px rgba(3, 27, 20, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    background:
        radial-gradient(circle at 8% 18%, rgba(200, 240, 75, .25), transparent 24rem),
        radial-gradient(circle at 92% 82%, rgba(57, 229, 157, .22), transparent 27rem),
        var(--cream);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: .28;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 11rem; height: 11rem; right: -4rem; top: 8rem; border: 1px solid rgba(8,37,29,.12); }
.ambient-two { width: 16rem; height: 16rem; left: -9rem; bottom: 3rem; border: 1px solid rgba(8,37,29,.12); }

.site-header, .page-shell, footer {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: block; width: 170px; max-height: 56px; object-fit: contain; object-position: left center; }
.event-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .9rem;
    color: var(--deep);
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid rgba(8,37,29,.13);
    border-radius: 99px;
    background: rgba(255,255,255,.52);
    backdrop-filter: blur(8px);
}
.event-pill i { width: 8px; height: 8px; border-radius: 50%; background: #1dcf72; box-shadow: 0 0 0 5px rgba(29,207,114,.14); }

.page-shell {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
    padding: 42px 0 70px;
}

.festival-tag, .eyebrow {
    color: var(--green);
    font-family: Manrope, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.festival-tag span { color: #e75c34; margin: 0 .35rem; }
.hero h1 {
    margin: 1rem 0 1.25rem;
    font: 800 clamp(3.25rem, 6.2vw, 6.4rem)/.92 Manrope, sans-serif;
    letter-spacing: -.07em;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 32rem; margin: 0; color: #53645d; font-size: 1.08rem; line-height: 1.7; }

.trust-row {
    display: flex;
    margin: 2rem 0;
    gap: 0;
}
.trust-row div { padding: 0 1.3rem; border-left: 1px solid rgba(8,37,29,.14); }
.trust-row div:first-child { padding-left: 0; border: 0; }
.trust-row strong, .trust-row span { display: block; }
.trust-row strong { font-family: Manrope, sans-serif; font-size: .9rem; }
.trust-row span { margin-top: .2rem; color: var(--muted); font-size: .72rem; }

.app-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    max-width: 360px;
    padding: .75rem .9rem;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid rgba(8,37,29,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.55);
    transition: transform .2s, background .2s;
}
.app-link:hover { transform: translateY(-2px); background: white; }
.app-link > span:nth-child(2) { flex: 1; font-weight: 700; font-size: .86rem; }
.app-link small { display: block; margin-bottom: .08rem; color: var(--muted); font-weight: 500; font-size: .68rem; }
.app-icon { display: grid; place-items: center; width: 37px; height: 37px; color: white; border-radius: 10px; background: var(--deep); }
.mobile-app-link { display: none; }

.form-card {
    padding: clamp(1.5rem, 4vw, 3.2rem);
    border: 1px solid rgba(8,37,29,.07);
    border-radius: 30px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.card-heading h2, .success-state h2 { margin: .5rem 0 .4rem; font: 800 clamp(1.8rem, 3vw, 2.6rem)/1.1 Manrope, sans-serif; letter-spacing: -.04em; }
.card-heading p, .success-state p { margin: 0 0 1.7rem; color: var(--muted); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field.full, .consent, .primary-button, .privacy-note, .alert, .consent-error { grid-column: 1 / -1; }
.field label { display: flex; align-items: center; min-height: 19px; margin-bottom: .45rem; color: #35463f; font-size: .76rem; font-weight: 700; }
.field label b, .consent b { color: #e04c35; }
.field label i { margin-left: auto; color: #829089; font-size: .66rem; font-style: normal; font-weight: 500; }
.input-wrap { position: relative; }
.input-wrap span { position: absolute; left: 15px; top: 50%; translate: 0 -50%; color: #8a9892; font-size: .75rem; }
input[type=text], input[type=email], input[type=tel] {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 39px;
    outline: 0;
    color: var(--ink);
    font: 500 .9rem "DM Sans", sans-serif;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfa;
    transition: border .2s, box-shadow .2s, background .2s;
}
input:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 4px rgba(11,123,82,.09); }
input::placeholder { color: #a5afa9; font-weight: 400; }
.error { display: block; margin-top: .35rem; color: var(--danger); font-size: .72rem; }
.alert { padding: .8rem 1rem; color: #8d1d2a; font-size: .82rem; border-radius: 10px; background: #fff0f1; }
.consent { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; color: #68766f; font-size: .72rem; line-height: 1.45; }
.consent input { position: absolute; opacity: 0; }
.checkmark {
    display: grid;
    flex: 0 0 19px;
    place-items: center;
    width: 19px;
    height: 19px;
    color: transparent;
    border: 1px solid #b9c5be;
    border-radius: 5px;
    transition: .2s;
}
.consent input:checked + .checkmark { color: white; border-color: var(--green); background: var(--green); }
.primary-button {
    display: flex;
    width: 100%;
    height: 57px;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    color: white;
    font: 800 .92rem Manrope, sans-serif;
    text-decoration: none;
    border: 0;
    border-radius: 13px;
    background: var(--green);
    box-shadow: 0 12px 25px rgba(11,123,82,.2);
    transition: transform .2s, background .2s;
}
.primary-button:hover { transform: translateY(-2px); background: #096b48; }
.primary-button span { font-size: 1.3rem; }
.privacy-note { margin: -.45rem 0 0; color: #89958f; text-align: center; font-size: .68rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.success-state { padding: 2.8rem .5rem; text-align: center; }
.success-mark { display: grid; width: 74px; height: 74px; margin: 0 auto 1.5rem; place-items: center; color: white; font-size: 2rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 12px rgba(11,123,82,.09); }
.success-state p { max-width: 29rem; margin-inline: auto; line-height: 1.65; }
.success-state .primary-button { max-width: 360px; margin: 1.8rem auto 1rem; }
.text-link { color: var(--green); font-size: .82rem; font-weight: 700; }

footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 32px;
    color: #718079;
    font-size: .68rem;
    border-top: 1px solid rgba(8,37,29,.1);
}

@media (max-width: 860px) {
    .site-header, .page-shell, footer { width: min(100% - 30px, 620px); }
    .site-header { min-height: 80px; }
    .logo { width: 145px; }
    .page-shell { grid-template-columns: 1fr; gap: 2rem; padding: 30px 0 50px; }
    .hero { text-align: center; }
    .hero h1 { font-size: clamp(3.3rem, 16vw, 5.6rem); }
    .hero-copy { margin-inline: auto; }
    .trust-row { justify-content: center; }
    .desktop-app-link { display: none; }
    .mobile-app-link { display: flex; max-width: none; }
}

@media (max-width: 520px) {
    .site-header, .page-shell, footer { width: calc(100% - 24px); }
    .event-pill { font-size: .66rem; }
    .logo { width: 128px; }
    .page-shell { padding-top: 22px; }
    .hero h1 { margin-top: .8rem; }
    .hero-copy { font-size: .98rem; line-height: 1.6; }
    .trust-row { margin-bottom: .3rem; }
    .trust-row div { padding: 0 .75rem; }
    .trust-row span { font-size: .64rem; }
    .form-card { padding: 1.5rem 1.15rem; border-radius: 22px; }
    form { grid-template-columns: 1fr; gap: 1rem; }
    .field, .field.full { grid-column: 1; }
    footer { gap: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .form-card { animation: rise .65s ease-out both; }
    .hero > * { animation: rise .55s ease-out both; }
    .hero > :nth-child(2) { animation-delay: .06s; }
    .hero > :nth-child(3) { animation-delay: .12s; }
    @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

