:root {
    --velvet-midnight: #1a1023;
    --plum-velour: #3c1d4b;
    --rose-quartz: #a66fb5;
    --blush-veil: #e9c6d4;
    --moonlit-cream: #f8f1f7;
    --gilded-amber: #f2c36b;
    --ink-charcoal: rgba(12, 5, 18, 0.8);
    --transition-fast: 0.2s ease-in-out;
}

body.bg-gradient-dark {
    min-height: 100vh;
    background: radial-gradient(circle at 12% 20%, rgba(233, 198, 212, 0.32) 0%, transparent 45%),
                radial-gradient(circle at 88% 15%, rgba(166, 111, 181, 0.28) 0%, transparent 38%),
                linear-gradient(150deg, var(--velvet-midnight) 0%, var(--plum-velour) 45%, #6a2f66 75%, var(--rose-quartz) 100%);
    font-family: 'Manrope', sans-serif;
    color: var(--moonlit-cream);
    position: relative;
    overflow-x: hidden;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(12, 5, 18, 0.35);
    z-index: 1090;
    pointer-events: none;
    overflow: hidden;
}

.scroll-progress__indicator {
    --progress: 0;
    width: 100%;
    height: 100%;
    transform-origin: left;
    transform: scaleX(var(--progress));
    background: linear-gradient(90deg, rgba(242, 195, 107, 0.15), rgba(242, 195, 107, 0.85));
    box-shadow: 0 0 12px rgba(242, 195, 107, 0.45);
}

.floating-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.45;
    background: radial-gradient(circle at 30% 30%, rgba(233, 198, 212, 0.45), transparent 65%);
    mix-blend-mode: screen;
}

.floating-orbs .orb-primary {
    width: 420px;
    height: 420px;
    top: -110px;
    left: -110px;
}

.floating-orbs .orb-secondary {
    width: 360px;
    height: 360px;
    bottom: -140px;
    right: 12%;
    background: radial-gradient(circle at 70% 30%, rgba(166, 111, 181, 0.45), transparent 60%);
}

.floating-orbs .orb-tertiary {
    width: 280px;
    height: 280px;
    top: 22%;
    right: -120px;
    background: radial-gradient(circle at 40% 40%, rgba(242, 195, 107, 0.4), transparent 65%);
}

main {
    position: relative;
    z-index: 2;
}

.gothic-brand {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.85rem;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    color: var(--moonlit-cream);
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.navbar {
    background: rgba(20, 12, 31, 0.75);
    border-bottom: 1px solid rgba(233, 198, 212, 0.35);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 3;
}

.nav-link {
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    color: var(--moonlit-cream) !important;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blush-veil), transparent);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--blush-veil) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-outline-demon {
    color: var(--moonlit-cream);
    border-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.14rem;
    border-width: 0;
    background: linear-gradient(135deg, rgba(233, 198, 212, 0.2) 0%, rgba(166, 111, 181, 0.65) 100%);
    box-shadow: 0 12px 24px rgba(86, 33, 92, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-outline-demon:hover,
.btn-outline-demon:focus {
    color: var(--velvet-midnight);
    background: linear-gradient(135deg, rgba(233, 198, 212, 0.9) 0%, rgba(242, 195, 107, 0.85) 100%);
    box-shadow: 0 18px 32px rgba(242, 195, 107, 0.35);
    transform: translateY(-2px);
    filter: saturate(115%);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5vw, 3.85rem);
    letter-spacing: 0.18rem;
    color: var(--moonlit-cream);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.section-subtitle {
    color: rgba(248, 241, 247, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.38rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.hero {
    padding: 6.5rem 0 4.5rem;
}

.hero .hero-tagline {
    max-width: 720px;
    font-size: 1.05rem;
    color: rgba(248, 241, 247, 0.8);
}

.hero-support {
    max-width: 640px;
    color: rgba(248, 241, 247, 0.72);
    font-size: 0.98rem;
}

.card-dark {
    background: linear-gradient(160deg, rgba(248, 241, 247, 0.12) 0%, rgba(20, 12, 31, 0.65) 100%);
    border: 1px solid rgba(233, 198, 212, 0.32);
    border-radius: 1.5rem;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    overflow: hidden;
    box-shadow: 0 24px 42px rgba(23, 10, 35, 0.35);
    --base-transform: translate3d(0, 0, 0);
    --tilt-transform: translate3d(0, 0, 0);
    --tilt-delay: 0ms;
    transform: var(--tilt-transform) var(--base-transform);
}

.card-dark:hover {
    --base-transform: translateY(-10px);
    border-color: rgba(242, 195, 107, 0.55);
    box-shadow: 0 28px 48px rgba(242, 195, 107, 0.25);
}

.card-dark img {
    height: 220px;
    object-fit: cover;
    filter: brightness(1.05) saturate(110%);
}

.hero .card-dark img {
    transform: scale(1.02);
    transform-origin: center;
    transition: transform 0.6s ease;
}

.hero-parallax-media {
    will-change: transform;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(233, 198, 212, 0.35);
    backdrop-filter: blur(2px);
}

.timeline-step {
    margin-bottom: 2rem;
}

.timeline-step h5 {
    color: var(--moonlit-cream);
    letter-spacing: 0.16rem;
    font-family: 'Playfair Display', serif;
}

.badge-ember {
    background: rgba(233, 198, 212, 0.16);
    color: var(--moonlit-cream);
    border: 1px solid rgba(242, 195, 107, 0.7);
    letter-spacing: 0.12rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 1.2rem;
    box-shadow: 0 18px 35px rgba(23, 10, 35, 0.45);
    transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
    filter: saturate(112%) brightness(1.08);
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 26px 45px rgba(242, 195, 107, 0.28);
    filter: saturate(128%) brightness(1.15);
}

.gradient-divider {
    height: 2px;
    width: 140px;
    background: linear-gradient(90deg, transparent, rgba(242, 195, 107, 0.85), transparent);
    margin: 2.4rem auto;
}

.contact-card {
    background: linear-gradient(165deg, rgba(248, 241, 247, 0.08) 0%, rgba(22, 12, 32, 0.92) 100%);
    border: 1px solid rgba(233, 198, 212, 0.25);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}

.service-tabs .nav-pills .nav-link {
    border-radius: 999px;
    padding: 0.6rem 1.8rem;
    margin: 0 0.4rem;
    background: rgba(248, 241, 247, 0.08);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.service-tabs .nav-pills .nav-link.active,
.service-tabs .nav-pills .nav-link:hover {
    background: linear-gradient(135deg, rgba(242, 195, 107, 0.75), rgba(166, 111, 181, 0.75));
    color: var(--velvet-midnight) !important;
    border-color: rgba(242, 195, 107, 0.75);
    box-shadow: 0 16px 34px rgba(242, 195, 107, 0.25);
}

.service-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    --base-transform: translate3d(0, 0, 0);
    --tilt-transform: translate3d(0, 0, 0);
    --tilt-delay: 0ms;
    transform: var(--tilt-transform) var(--base-transform);
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(242, 195, 107, 0.18), transparent 45%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.service-card:hover {
    --base-transform: translateY(-14px) rotate3d(1, -1, 0, 6deg);
    box-shadow: 0 32px 55px rgba(0, 0, 0, 0.45);
}

.service-card:hover::after {
    opacity: 1;
}

.tilt-ready {
    will-change: transform;
}

.service-card-upsell {
    border-color: rgba(242, 195, 107, 0.55) !important;
    box-shadow: 0 28px 52px rgba(242, 195, 107, 0.22);
}

.badge-tier {
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.68rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(233, 198, 212, 0.2);
    border: 1px solid rgba(166, 111, 181, 0.65);
}

.pricing-ribbon {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(242, 195, 107, 0.18);
    color: var(--moonlit-cream);
    box-shadow: inset 0 0 0 1px rgba(242, 195, 107, 0.45);
}

.chip-duration {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(248, 241, 247, 0.12);
    border: 1px solid rgba(233, 198, 212, 0.2);
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    color: rgba(248, 241, 247, 0.85);
}

.perk-item i {
    color: rgba(242, 195, 107, 0.8);
    font-size: 1rem;
}

.availability-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(36, 22, 48, 0.65);
    border: 1px solid rgba(166, 111, 181, 0.45);
    color: rgba(248, 241, 247, 0.75);
}

.availability-pill i {
    color: rgba(242, 195, 107, 0.8);
    margin-right: 0.35rem;
}

.duration-tag {
    position: absolute;
    bottom: 1.4rem;
    left: 1.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(233, 198, 212, 0.18);
}

.upsell-badge {
    position: absolute;
    bottom: 1.4rem;
    right: 1.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(242, 195, 107, 0.9), rgba(166, 111, 181, 0.9));
    color: var(--velvet-midnight);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(242, 195, 107, 0.35);
}

.service-card .upsell-badge {
    position: absolute;
}

.bg-dark-lucid {
    background: linear-gradient(160deg, rgba(14, 7, 22, 0.95), rgba(38, 19, 55, 0.85));
}

.api-callout {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: rgba(248, 241, 247, 0.08);
    border: 1px solid rgba(166, 111, 181, 0.35);
    box-shadow: inset 0 0 0 1px rgba(242, 195, 107, 0.18);
}

.api-callout .badge {
    letter-spacing: 0.16rem;
}

.api-callout code {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.28);
}

.api-note {
    font-size: 0.82rem;
    color: rgba(248, 241, 247, 0.75);
    padding: 0.45rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(233, 198, 212, 0.08);
    border: 1px dashed rgba(242, 195, 107, 0.35);
}

.api-note i {
    color: rgba(242, 195, 107, 0.85);
    margin-right: 0.35rem;
}

.ritual-card,
.add-on-card {
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    --base-transform: translate3d(0, 0, 0);
    --tilt-transform: translate3d(0, 0, 0);
    --tilt-delay: 0ms;
    transform: var(--tilt-transform) var(--base-transform);
}

.ritual-card:hover,
.add-on-card:hover {
    --base-transform: translateY(-8px);
    box-shadow: 0 26px 45px rgba(0, 0, 0, 0.4);
}

.ritual-card .upsell-badge {
    position: static;
    display: inline-block;
    margin-left: 0.75rem;
}

form .form-control {
    background: rgba(248, 241, 247, 0.08);
    border: 1px solid rgba(233, 198, 212, 0.3);
    color: var(--moonlit-cream);
}

.marquee-clients {
    backdrop-filter: blur(16px);
}

.marquee-label {
    letter-spacing: 0.32rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: rgba(248, 241, 247, 0.65);
}

.client-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(242, 195, 107, 0.45);
    background: linear-gradient(140deg, rgba(248, 241, 247, 0.16), rgba(20, 12, 31, 0.6));
    box-shadow: 0 14px 28px rgba(20, 12, 31, 0.4);
    gap: 0.2rem;
}

.client-name {
    font-weight: 600;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.client-focus {
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: rgba(248, 241, 247, 0.6);
}

.metrics-and-testimonials .glass-panel {
    background: linear-gradient(160deg, rgba(248, 241, 247, 0.16) 0%, rgba(12, 5, 18, 0.85) 100%);
    border: 1px solid rgba(166, 111, 181, 0.35);
    border-radius: 1.8rem;
    box-shadow: 0 30px 50px rgba(10, 4, 16, 0.55);
    position: relative;
    overflow: hidden;
    --base-transform: translate3d(0, 0, 0);
    --tilt-transform: translate3d(0, 0, 0);
    --tilt-delay: 0ms;
    transform: var(--tilt-transform) var(--base-transform);
}

.metrics-and-testimonials .glass-panel::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(242, 195, 107, 0.5), rgba(166, 111, 181, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.metrics-and-testimonials .glass-panel > * {
    position: relative;
    z-index: 1;
}

.stat-card {
    border-radius: 1.2rem;
    padding: 1.4rem;
    background: linear-gradient(140deg, rgba(242, 195, 107, 0.18), rgba(166, 111, 181, 0.25));
    color: var(--moonlit-cream);
    border: 1px solid rgba(242, 195, 107, 0.4);
    box-shadow: 0 18px 34px rgba(86, 33, 92, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    letter-spacing: 0.12rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.22rem;
    color: rgba(248, 241, 247, 0.7);
}

.testimonial-stack {
    display: grid;
    gap: 1.5rem;
    margin-top: auto;
}

.testimonial-card {
    margin: 0;
    padding: 1.6rem;
    border-radius: 1.5rem;
    background: rgba(26, 16, 35, 0.75);
    border: 1px solid rgba(233, 198, 212, 0.35);
    box-shadow: inset 0 0 0 1px rgba(242, 195, 107, 0.1), 0 16px 28px rgba(10, 4, 16, 0.55);
    position: relative;
    overflow: hidden;
    --base-transform: translate3d(0, 0, 0);
    --tilt-transform: translate3d(0, 0, 0);
    --tilt-delay: 0ms;
    transform: var(--tilt-transform) var(--base-transform);
}

.testimonial-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(242, 195, 107, 0.25), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: rgba(248, 241, 247, 0.9);
}

.testimonial-author {
    display: block;
    font-weight: 600;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    margin-top: 1rem;
}

.testimonial-title {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    color: rgba(248, 241, 247, 0.6);
}

.glass-strip {
    border-radius: 999px;
    padding: 1rem 2rem;
    background: linear-gradient(120deg, rgba(248, 241, 247, 0.12), rgba(12, 5, 18, 0.85));
    border: 1px solid rgba(242, 195, 107, 0.4);
    box-shadow: 0 22px 40px rgba(12, 5, 18, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.why-title {
    letter-spacing: 0.4rem;
    font-size: 0.85rem;
    color: rgba(248, 241, 247, 0.7);
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: rgba(248, 241, 247, 0.08);
    border: 1px solid rgba(166, 111, 181, 0.4);
    box-shadow: 0 16px 28px rgba(10, 4, 16, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.78rem;
}

.highlight-badge i {
    font-size: 1rem;
    color: rgba(242, 195, 107, 0.85);
    filter: drop-shadow(0 0 8px rgba(242, 195, 107, 0.6));
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-progress__indicator {
        animation: progressGlow 4s ease-in-out infinite;
    }

    .floating-orbs .orb {
        animation: orbDrift 28s ease-in-out infinite alternate;
    }

    .floating-orbs .orb-secondary {
        animation-duration: 34s;
        animation-delay: -6s;
    }

    .floating-orbs .orb-tertiary {
        animation-duration: 30s;
        animation-delay: -10s;
    }

    .tilt-ready.is-visible {
        animation: cardReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: var(--tilt-delay, 0ms);
    }

    .hero .card-dark {
        transition: transform 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
    }

    .hero .card-dark img {
        transform: scale(1.05) translate3d(var(--hero-media-translate-x, 0), var(--hero-media-translate-y, 0), 0) rotateY(var(--hero-media-rotate, 0deg));
    }

    .cta-shimmer {
        position: relative;
        overflow: hidden;
        z-index: 0;
    }

    .cta-shimmer::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 35%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
        transform: translateX(-120%);
        animation: ctaShimmer 2.75s ease infinite;
        pointer-events: none;
        mix-blend-mode: screen;
    }
}

@keyframes progressGlow {
    0%,
    100% {
        box-shadow: 0 0 8px rgba(242, 195, 107, 0.4);
        opacity: 0.75;
    }

    50% {
        box-shadow: 0 0 16px rgba(242, 195, 107, 0.7);
        opacity: 1;
    }
}

@keyframes orbDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translate3d(24px, -28px, 0) scale(1.08);
        opacity: 0.55;
    }

    100% {
        transform: translate3d(-18px, 32px, 0) scale(1.02);
        opacity: 0.4;
    }
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: var(--tilt-transform) var(--base-transform) translateY(24px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: var(--tilt-transform) var(--base-transform);
    }
}

@keyframes ctaShimmer {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }

    45% {
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .glass-strip {
        border-radius: 1.6rem;
        padding: 1.4rem;
    }

    .client-badge {
        width: 100%;
    }

    .highlight-badge {
        width: 100%;
        justify-content: center;
    }
}

form .form-control::placeholder {
    color: rgba(248, 241, 247, 0.55);
}

form .form-control:focus {
    background: rgba(248, 241, 247, 0.16);
    border-color: rgba(242, 195, 107, 0.85);
    box-shadow: 0 0 0 0.2rem rgba(242, 195, 107, 0.2);
    color: var(--moonlit-cream);
}

footer {
    background: rgba(25, 14, 36, 0.85);
    border-top: 1px solid rgba(233, 198, 212, 0.25);
    color: rgba(248, 241, 247, 0.7);
    position: relative;
    z-index: 2;
}

@media (max-width: 576px) {
    .hero {
        padding-top: 4.5rem;
    }

    .card-dark img {
        height: 185px;
    }
}
