:root {
    --ink: #1f261f;
    --muted: #5c665b;
    --paper: #f7f3e8;
    --surface: #fffdf7;
    --surface-strong: #f1e8cc;
    --forest: #0f3b2f;
    --forest-soft: #1b5b47;
    --gold: #d5b348;
    --gold-deep: #b9822c;
    --line: rgba(15, 59, 47, 0.14);
    --shadow: 0 24px 70px rgba(30, 43, 31, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 14px;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(213, 179, 72, 0.18), transparent 28%),
        linear-gradient(180deg, #fbf8ef 0%, #f5efdf 100%);
}

body.celebration-open {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.shell {
    width: min(1100px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(213, 179, 72, 0.24);
    background: rgba(251, 248, 239, 0.88);
    backdrop-filter: blur(18px);
}

.topbar {
    min-height: 102px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark img {
    width: clamp(72px, 9vw, 112px);
    height: auto;
    display: block;
}

.brand-copy {
    display: grid;
    gap: 4px;
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong,
h1,
h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
}

.brand-copy strong {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    line-height: 0.9;
    color: var(--forest);
}

.brand-copy small {
    color: var(--gold-deep);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 40px;
    padding: 48px 0 56px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-deep);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.9;
    color: var(--forest);
}

.hero-title-main,
.hero-title-sub {
    display: block;
}

.hero-title-main {
    font-size: 1em;
    line-height: 0.9;
}

.hero-title-sub {
    margin-top: 8px;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: clamp(0.68rem, 1.1vw, 0.92rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 0.96;
    color: var(--forest);
}

.hero-text {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.7;
}

.hero-cta,
.submit-button,
.celebration-button {
    min-height: 48px;
    border: 0;
    color: #fff9ec;
    background: linear-gradient(135deg, var(--forest), var(--forest-soft));
    box-shadow: 0 16px 32px rgba(15, 59, 47, 0.22);
    font-weight: 800;
}

.hero-cta {
    margin-top: 24px;
    border-radius: 999px;
    padding: 0 26px;
}

.hero-panel {
    min-height: 360px;
    position: relative;
    display: grid;
    place-items: center;
}

.hero-badge {
    width: min(82%, 380px);
    padding: 26px;
    border: 1px solid rgba(213, 179, 72, 0.26);
    border-radius: 28px;
    background: rgba(255, 253, 247, 0.92);
    box-shadow: var(--shadow);
    transform: rotate(-5deg);
}

.hero-badge img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-badge.secondary {
    width: min(26%, 108px);
    position: absolute;
    right: 2%;
    top: 50%;
    padding: 16px;
    transform: rotate(6deg);
}

.hero-glow {
    width: 270px;
    height: 270px;
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 179, 72, 0.32), transparent 68%);
    z-index: -1;
}

.quick-actions {
    padding: 10px 0 54px;
}

.qr-showcase {
    padding: 6px 0 54px;
}

.qr-heading {
    margin-bottom: 24px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.qr-card {
    display: block;
    position: relative;
    padding: 18px;
    border: 1px solid rgba(213, 179, 72, 0.22);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(213, 179, 72, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 241, 223, 0.92));
    box-shadow: 0 18px 42px rgba(30, 43, 31, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.qr-card:hover,
.qr-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(213, 179, 72, 0.38);
    box-shadow: 0 24px 52px rgba(30, 43, 31, 0.12);
}

.qr-card::after {
    content: "";
    width: 64px;
    height: 64px;
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 179, 72, 0.14), transparent 68%);
    pointer-events: none;
}

.qr-card-frame {
    min-height: 188px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 59, 47, 0.08);
    border-radius: 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.qr-card-frame img {
    width: 100%;
    max-width: 164px;
    height: auto;
    display: block;
}

.qr-card h3 {
    margin: 16px 0 6px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--forest);
}

.qr-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 20px;
}

.action-grid {
    display: grid;
    gap: 18px;
}

.action-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.action-card {
    min-height: 226px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(213, 179, 72, 0.28);
    border-radius: 28px;
    padding: 94px 28px 28px;
    text-align: left;
    color: #fffdf7;
    background: linear-gradient(145deg, var(--forest), #184c3b 55%, #2d725b);
    box-shadow: 0 26px 0 #0a2b22, 0 34px 58px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    position: relative;
    overflow: visible;
}

.action-card:hover,
.action-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 34px 0 #0a2b22, 0 42px 70px rgba(0, 0, 0, 0.24);
}

.icon-3d {
    width: 150px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    position: absolute;
    top: -74px;
    left: 50%;
    translate: -50% 0;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.22));
}

.icon-3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-title {
    display: block;
    font-size: 1.18rem;
    line-height: 1.3;
    font-weight: 800;
    max-width: 540px;
}

.card-copy {
    color: rgba(255, 253, 247, 0.84);
    line-height: 1.6;
    max-width: 680px;
}

.review-section {
    padding: 54px 0 140px;
    border-block: 1px solid rgba(213, 179, 72, 0.18);
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(247, 243, 232, 0.98));
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.category-tab {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--forest);
    background: var(--surface);
    font-weight: 800;
}

.tab-icon {
    width: 24px;
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--gold-deep);
    background: rgba(213, 179, 72, 0.16);
    font-size: 0.88rem;
    line-height: 1;
}

.category-tab.is-active {
    color: #fff9ec;
    border-color: transparent;
    background: linear-gradient(135deg, var(--forest), var(--forest-soft));
    box-shadow: 0 12px 24px rgba(15, 59, 47, 0.18);
}

.category-tab.is-active .tab-icon {
    color: #fff9ec;
    background: rgba(255, 255, 255, 0.18);
}

.lead-form {
    padding: 26px;
    border: 1px solid rgba(213, 179, 72, 0.24);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-heading {
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lead-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.84rem;
}

.lead-form .project-field {
    grid-column: 1 / -1;
    position: relative;
}

.lead-form input {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdf8;
    color: var(--ink);
    padding: 0 16px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.lead-form input:focus,
.project-menu-button:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(213, 179, 72, 0.16);
    outline: none;
}

.native-project-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.project-menu {
    position: relative;
    z-index: 8;
}

.project-menu-button {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    padding: 10px 46px 10px 12px;
    text-align: left;
    font-weight: 800;
    line-height: 1.35;
    position: relative;
}

.project-menu-button::after {
    content: "";
    width: 9px;
    height: 9px;
    position: absolute;
    right: 15px;
    top: 50%;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
}

.project-menu-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    max-height: min(360px, 48vh);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fffdf8;
    box-shadow: 0 22px 44px rgba(30, 43, 31, 0.16);
    padding: 10px;
}

.project-menu-option {
    width: 100%;
    min-height: 76px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    padding: 0;
    text-align: left;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
}

.project-menu-option:disabled {
    cursor: not-allowed;
    color: #7c8177;
    background: transparent;
}

.project-menu-card {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(15, 59, 47, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf7, #f7f1df);
    padding: 12px 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-menu-option:hover .project-menu-card,
.project-menu-option:focus-visible .project-menu-card,
.project-menu-option.is-selected .project-menu-card {
    border-color: rgba(213, 179, 72, 0.34);
    box-shadow: 0 14px 28px rgba(30, 43, 31, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.project-menu-option:disabled .project-menu-card {
    opacity: 0.58;
    box-shadow: none;
    transform: none;
}

.project-menu-logo-wrap {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(213, 179, 72, 0.12);
    overflow: hidden;
}

.project-menu-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.project-menu-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.project-menu-name {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.project-menu-meta {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.project-menu-tick {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: transparent;
    background: rgba(213, 179, 72, 0.18);
    font-size: 0.95rem;
    font-weight: 900;
}

.project-menu-option.is-selected .project-menu-tick {
    color: #fff9ec;
    background: var(--forest-soft);
}

.submit-button {
    margin-top: 16px;
    border-radius: 16px;
    padding: 0 20px;
}

.form-message {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.form-message.is-success {
    color: var(--forest-soft);
}

.form-message.is-error {
    color: #8a3f2d;
}

.celebration-modal {
    display: grid;
    place-items: center;
    padding: 24px 16px;
    position: fixed;
    inset: 0;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.celebration-modal[hidden] {
    display: none !important;
}

.celebration-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.celebration-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 59, 47, 0.44);
    backdrop-filter: blur(10px);
}

.celebration-dialog {
    width: min(420px, calc(100% - 32px));
    position: relative;
    z-index: 1;
    padding: 34px 24px 26px;
    border: 1px solid rgba(213, 179, 72, 0.22);
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(213, 179, 72, 0.18), transparent 42%),
        linear-gradient(180deg, #fffdf7, #f5efdf);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.celebration-burst {
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    top: 84px;
}

.celebration-piece {
    width: 10px;
    height: 18px;
    position: absolute;
    left: -5px;
    top: -9px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    opacity: 0;
    transform: rotate(var(--angle)) translateY(0) scale(0.4);
    animation: confettiBurst 900ms ease-out forwards;
    animation-delay: var(--delay);
}

.celebration-piece:nth-child(3n) {
    background: linear-gradient(180deg, #184c3b, #2d725b);
}

.celebration-piece:nth-child(4n) {
    background: linear-gradient(180deg, #efe2b4, #d5b348);
}

.celebration-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #fff9ec;
    background: linear-gradient(145deg, var(--forest), var(--forest-soft));
    box-shadow: 0 18px 40px rgba(15, 59, 47, 0.22);
    font-size: 2.2rem;
    font-weight: 900;
}

.celebration-title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--forest);
}

.celebration-text {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.celebration-button {
    min-width: 132px;
    margin-top: 22px;
    border-radius: 999px;
    padding: 0 24px;
}

@keyframes confettiBurst {
    0% {
        opacity: 0;
        transform: rotate(var(--angle)) translateY(0) scale(0.4);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scale(1) rotate(180deg);
    }
}

.site-footer {
    padding: 22px 0;
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 34px;
    }

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

    .hero-panel {
        min-height: 260px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        min-height: 0;
        padding: 22px;
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        grid-template-areas:
            "icon title"
            "icon copy";
        align-items: center;
        column-gap: 16px;
        row-gap: 8px;
    }

    .icon-3d {
        position: relative;
        top: auto;
        left: auto;
        translate: none;
        grid-area: icon;
        width: 108px;
    }

    .card-title {
        grid-area: title;
    }

    .card-copy {
        grid-area: copy;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 24px, 1120px);
    }

    .topbar {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-mark {
        align-items: center;
    }

    .hero {
        padding-bottom: 36px;
    }

    .qr-showcase {
        padding-bottom: 42px;
    }

    .qr-grid {
        grid-template-columns: 1fr;
    }

    .qr-card {
        padding: 16px;
        border-radius: 22px;
    }

    .qr-card-frame {
        min-height: 172px;
    }

    .action-card {
        padding: 18px;
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .icon-3d {
        width: 96px;
    }

    .lead-form,
    .celebration-dialog {
        padding-inline: 18px;
    }
}
