* {
    box-sizing: border-box;
}

:root {
    --bg-deep: #130e0c;
    --bg-dark: #1a1411;
    --bg-panel: #231a16;
    --cream: #efe3d4;
    --cream-2: #dfcfbb;
    --ink: #2a1f18;
    --ink-soft: #5a4a40;
    --line: rgba(223, 207, 187, 0.35);
    --gold: #b79363;
    --button-dark: #2a3b34;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--cream);
    font-family: 'Manrope', sans-serif;
    background: linear-gradient(180deg, #120d0b 0%, #17110e 50%, #100b09 100%);
}

.navbar {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
    background: transparent;
    border-bottom: none;
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    color: rgba(239, 227, 212, 0.88);
}

.logo-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.logo-button:hover,
.logo-button:focus-visible {
    color: #fff;
    outline: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(239, 227, 212, 0.82);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #fff;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/images/hero-bg.png') center center / cover no-repeat;
    filter: saturate(0.92) brightness(0.54);
    transform-origin: 50% 45%;
    animation: heroCinematicMove 24s ease-in-out infinite alternate;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    filter: saturate(1) brightness(1);
}

body.hero-has-video .hero-video {
    display: block;
}

body.hero-has-video .hero-bg {
    opacity: 0;
    animation: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: -10%;
    background-image:
        radial-gradient(circle at 20% 35%, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle at 70% 60%, rgba(255, 215, 165, 0.08) 0, rgba(255, 215, 165, 0) 45%),
        radial-gradient(circle at 40% 80%, rgba(255, 245, 220, 0.05) 0, rgba(255, 245, 220, 0) 35%);
    mix-blend-mode: screen;
    animation: heroGlowDrift 16s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.04) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
    opacity: 0.11;
    mix-blend-mode: soft-light;
    animation: filmGrain 0.9s steps(3) infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2) 58%),
        linear-gradient(180deg, rgba(16, 12, 10, 0.06) 0%, rgba(16, 12, 10, 0.25) 80%, rgba(16, 12, 10, 0.34) 100%);
}

@keyframes heroCinematicMove {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.08) translate3d(-1.3%, -1.1%, 0);
    }
}

@keyframes heroGlowDrift {
    0% {
        transform: translate3d(-1%, 0, 0) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate3d(1.2%, -1%, 0) scale(1.06);
        opacity: 0.95;
    }
}

@keyframes filmGrain {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-1%, 1%);
    }
    50% {
        transform: translate(1%, -1%);
    }
    75% {
        transform: translate(0.5%, 0.5%);
    }
    100% {
        transform: translate(0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 8.2rem 1.25rem 5rem;
}

.hero-content h1 {
    margin: 0;
    color: #f6ebdd;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.45rem, 5.6vw, 3.65rem);
    line-height: 0.96;
    letter-spacing: 0.01em;
    font-weight: 500;
}

.hero-content p {
    margin: 0.95rem 0 1.25rem;
    color: rgba(241, 226, 210, 0.9);
    font-size: 0.93rem;
    line-height: 1.45;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr 54px;
    max-width: 540px;
    margin: 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    background: rgba(248, 240, 231, 0.96);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

.hero-search input {
    border: none;
    background: transparent;
    color: #3a312a;
    font-size: 1.08rem;
    padding: 0.82rem 1.2rem;
    font-family: 'Cormorant Garamond', serif;
}

.hero-search input::placeholder {
    color: #726355;
}

.hero-search input:focus {
    outline: none;
}

.search-icon {
    border: none;
    background: #3f4f46;
    color: #f9f1e5;
    cursor: pointer;
    font-size: 1.05rem;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin: 0.75rem 0 1.25rem;
}

.tag {
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(232, 214, 195, 0.95);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
}

.tag:not(:last-child)::after {
    content: '·';
    margin-left: 0.48rem;
    color: rgba(232, 214, 195, 0.8);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.62rem 1.4rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-dark {
    background: linear-gradient(180deg, #4b5f52, #314137);
    color: #f6ece0;
    border-color: rgba(223, 207, 187, 0.34);
}

.btn-light {
    background: linear-gradient(180deg, #f0e6da, #e4d6c5);
    color: #3c3128;
    border-color: rgba(60, 49, 40, 0.2);
}

.btn-gradient {
    background: linear-gradient(180deg, #3c4f44, #2a3730);
    color: #f5ece0;
    border-color: rgba(223, 207, 187, 0.25);
}

.btn-outline {
    background: transparent;
    color: #4f4036;
    border-color: rgba(79, 64, 54, 0.28);
    margin-top: 0.55rem;
}

.how-it-works {
    position: relative;
    padding: 3.35rem 1rem 2.8rem;
    text-align: center;
    color: #332820;
    border-top: 1px solid rgba(223, 207, 187, 0.15);
    background:
        linear-gradient(180deg, rgba(239, 227, 215, 0.9) 0%, rgba(230, 216, 201, 0.88) 100%),
        url('assets/images/cream-wallpaper.png') center / cover no-repeat;
}

.how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(125deg, rgba(154, 127, 99, 0.06) 25%, transparent 25%, transparent 50%, rgba(154, 127, 99, 0.06) 50%, rgba(154, 127, 99, 0.06) 75%, transparent 75%, transparent);
    background-size: 28px 28px;
    opacity: 0.18;
}

.how-it-works > * {
    position: relative;
    z-index: 1;
}

.how-it-works h2,
.experiences h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.quiz-section {
    padding: 3rem 1rem;
    background:
        linear-gradient(180deg, rgba(22, 16, 13, 0.94), rgba(22, 16, 13, 0.96)),
        url('assets/images/dark-wallpaper.png') center / cover no-repeat;
    border-top: 1px solid rgba(223, 207, 187, 0.12);
    border-bottom: 1px solid rgba(223, 207, 187, 0.12);
    text-align: center;
}

.quiz-section h2 {
    margin: 0;
    color: #efe2d3;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 3.7vw, 2.6rem);
    font-weight: 500;
}

.quiz-section p {
    margin: 0.55rem auto 1.25rem;
    max-width: 700px;
    color: rgba(234, 217, 198, 0.86);
}

.quiz-form {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(223, 207, 187, 0.16);
    border-radius: 0.8rem;
}

.quiz-form label span {
    color: rgba(239, 227, 212, 0.88);
}

.quiz-form input,
.quiz-form select {
    background: rgba(255, 252, 247, 0.96);
}

.quiz-form button {
    grid-column: 1 / -1;
}

.quiz-result {
    max-width: 920px;
    margin: 1rem auto 0;
    min-height: 1px;
}

.quiz-result-card {
    text-align: left;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 0.95rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(223, 207, 187, 0.2);
    background: rgba(15, 12, 10, 0.72);
}

.quiz-result-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0.55rem;
}

.quiz-result-copy h3 {
    margin: 0 0 0.2rem;
    color: #f0e1d0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.quiz-result-copy .price {
    color: rgba(224, 198, 168, 0.9);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.28rem;
}

.quiz-result-copy p {
    margin: 0.35rem 0 0.8rem;
    color: rgba(232, 215, 196, 0.86);
    font-size: 0.92rem;
    line-height: 1.4;
}

.btn.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.features {
    max-width: 1060px;
    margin: 1.6rem auto 1.45rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(91, 68, 48, 0.12);
}

.features article {
    padding: 1rem 1rem 1.12rem;
    background: rgba(255, 255, 255, 0.35);
    border-right: 1px solid rgba(91, 68, 48, 0.12);
}

.features article:last-child {
    border-right: none;
}

.features .icon {
    font-size: 1.28rem;
    margin-bottom: 0.35rem;
}

.features h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: #31271f;
}

.features p {
    margin: 0.35rem auto 0;
    max-width: 220px;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #5d4d41;
}

.experiences {
    position: relative;
    padding: 3.2rem 1rem 2.3rem;
    text-align: center;
    color: #ebddce;
    background:
        linear-gradient(180deg, rgba(18, 13, 10, 0.8), rgba(18, 13, 10, 0.82)),
        url('assets/images/dark-wallpaper.png') center / cover no-repeat;
    border-top: 1px solid rgba(223, 207, 187, 0.12);
    border-bottom: 1px solid rgba(223, 207, 187, 0.12);
}

.experiences p {
    margin: 0.55rem auto 1.4rem;
    max-width: 700px;
    color: rgba(229, 212, 194, 0.82);
    font-size: 0.88rem;
}

.cards {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.card {
    text-align: left;
    border: 1px solid rgba(236, 220, 203, 0.25);
    background: rgba(18, 14, 12, 0.64);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus {
    transform: translateY(-2px);
    border-color: rgba(236, 220, 203, 0.48);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
    outline: none;
}

.card img {
    width: 100%;
    height: 158px;
    object-fit: cover;
    display: block;
}

.card-meta {
    padding: 0.72rem 0.8rem 0.8rem;
}

.card-meta h3 {
    margin: 0 0 0.25rem;
    color: #efe2d3;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    line-height: 1.02;
    font-weight: 500;
}

.card-meta span {
    color: rgba(226, 202, 175, 0.9);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1;
}

.testimonials {
    text-align: center;
    padding: 1.2rem 1rem 1.9rem;
    background: #120d0b;
}

.testimonials blockquote {
    margin: 0;
    color: #dcc9b2;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 2.3vw, 2.1rem);
    line-height: 1.12;
}

.testimonials cite {
    display: block;
    margin-top: 0.3rem;
    color: rgba(210, 188, 164, 0.82);
    font-style: normal;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
}

.footer {
    border-top: 1px solid rgba(223, 207, 187, 0.14);
    background: #100b09;
    color: rgba(215, 194, 170, 0.85);
    padding: 1.25rem 1rem 1.45rem;
    text-align: center;
    font-size: 0.82rem;
}

.footer p {
    margin: 0.2rem 0;
}

.modal,
.modal-centered {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 6, 5, 0.8);
    z-index: 90;
}

.modal-body {
    background: #fbf5ee;
    border-radius: 0.8rem;
    width: min(92vw, 920px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.4rem;
    position: relative;
    color: #2f241c;
}

.modal-body img {
    width: 100%;
    border-radius: 0.6rem;
    margin-bottom: 0.9rem;
}

.close {
    position: absolute;
    right: 0.7rem;
    top: 0.55rem;
    border: none;
    background: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #7a6859;
}

.close:hover {
    color: #34291f;
}

.experience-content h3 {
    margin: 0 0 0.3rem;
    color: #251d17;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
}

.experience-content p {
    color: #4b3f36;
    margin-bottom: 0.65rem;
}

.experience-content ul {
    list-style: disc;
    margin-left: 1.2rem;
    color: #4b3f36;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

form label span {
    display: block;
    margin-bottom: 0.27rem;
    font-weight: 600;
    color: #4e3e31;
    font-size: 0.9rem;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1px solid #c8af95;
    border-radius: 0.55rem;
    font-size: 0.93rem;
    font-family: 'Manrope', sans-serif;
    background: #fffdf9;
    color: #352a21;
}

form textarea {
    resize: vertical;
}

.admin-editor {
    display: none;
}

body.show-admin .admin-editor {
    display: block;
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features article:nth-child(2n) {
        border-right: none;
    }

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

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .nav-container {
        justify-content: center;
    }

    .hero {
        min-height: 560px;
    }

    .hero-bg {
        animation-duration: 28s;
    }

    .hero-content {
        padding-top: 6.8rem;
        padding-bottom: 3.3rem;
    }

    .hero-search {
        grid-template-columns: 1fr 48px;
    }

    .hero-search input {
        font-size: 1rem;
    }

    .tag {
        font-size: 0.94rem;
    }

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

    .quiz-form {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .quiz-result-card {
        grid-template-columns: 1fr;
    }

    .quiz-result-card img {
        height: 190px;
    }

    .features article {
        border-right: none;
        border-bottom: 1px solid rgba(91, 68, 48, 0.12);
    }

    .features article:last-child {
        border-bottom: none;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .card img {
        height: 190px;
    }

    .modal-body {
        width: calc(100vw - 1.1rem);
        padding: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .hero-bg::before,
    .hero-bg::after {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
