/* ============================================
   Luxury Background — subtle ambient & patterns
   ============================================ */

:root {
    --lux-orb-1: rgba(196, 162, 101, 0.07);
    --lux-orb-2: rgba(196, 162, 101, 0.05);
    --lux-orb-3: rgba(220, 201, 154, 0.06);
    --lux-pattern: rgba(196, 162, 101, 0.04);
    --lux-line: rgba(196, 162, 101, 0.12);
    --lux-shimmer: linear-gradient(
        135deg,
        transparent 0%,
        rgba(196, 162, 101, 0.03) 25%,
        transparent 50%,
        rgba(220, 201, 154, 0.04) 75%,
        transparent 100%
    );
}

/* Fixed ambient layer */
.luxury-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.luxury-bg__mesh {
    position: absolute;
    inset: 0;
    background:
        var(--lux-shimmer),
        linear-gradient(180deg, var(--off-white) 0%, var(--white) 35%, var(--off-white) 70%, var(--white) 100%);
}

.luxury-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: luxOrbFloat 24s ease-in-out infinite;
}

.luxury-bg__orb--1 {
    width: min(680px, 90vw);
    height: min(680px, 90vw);
    top: -12%;
    right: -8%;
    background: radial-gradient(circle, var(--lux-orb-1) 0%, transparent 70%);
    animation-delay: 0s;
}

.luxury-bg__orb--2 {
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    bottom: 10%;
    left: -10%;
    background: radial-gradient(circle, var(--lux-orb-2) 0%, transparent 70%);
    animation-delay: -8s;
}

.luxury-bg__orb--3 {
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--lux-orb-3) 0%, transparent 70%);
    animation-delay: -16s;
    opacity: 0.8;
}

@keyframes luxOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, 3%) scale(1.04); }
    66% { transform: translate(-2%, -2%) scale(0.96); }
}

.luxury-bg__orb--3 {
    animation-name: luxOrbFloatCenter;
}

@keyframes luxOrbFloatCenter {
    0%, 100% { transform: translateX(-50%) translate(0, 0); }
    50% { transform: translateX(-50%) translate(3%, -4%); }
}

/* Diamond lattice — reusable pattern */
.luxury-pattern {
    position: relative;
    isolation: isolate;
}

.luxury-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23c4a265' stroke-width='0.35' opacity='0.35'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}

.luxury-pattern > * {
    position: relative;
    z-index: 1;
}

/* Section-specific luxury backgrounds */
.intro {
    position: relative;
    overflow: hidden;
}

.intro::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: min(420px, 50vw);
    height: min(420px, 50vw);
    border-radius: 50%;
    background: radial-gradient(circle, var(--lux-orb-1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.intro__layout,
.intro .container {
    position: relative;
    z-index: 1;
}

.stats-strip {
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, var(--lux-line) 50%, transparent 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0v40M0 20h40' stroke='%23c4a265' stroke-width='0.2' opacity='0.2'/%3E%3C/svg%3E");
    background-size: 100% 1px, 40px 40px;
    background-position: center top, center;
    background-repeat: no-repeat, repeat;
    opacity: 0.6;
    pointer-events: none;
}

.quote-section {
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '“';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Georgia, serif;
    font-size: clamp(12rem, 25vw, 22rem);
    line-height: 1;
    color: var(--lux-pattern);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.quote-section__inner {
    position: relative;
    z-index: 1;
}

.services {
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lux-line), transparent);
}

.services::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: min(360px, 45vw);
    height: min(360px, 45vw);
    border-radius: 50%;
    background: radial-gradient(circle, var(--lux-orb-2) 0%, transparent 70%);
    pointer-events: none;
}

.products,
.product-grid-section {
    position: relative;
}

.product-grid-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lux-shimmer);
    pointer-events: none;
    opacity: 0.7;
}

.products::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 1px;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--lux-line), transparent);
    pointer-events: none;
}

.how-it-works {
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1' fill='%23c4a265' opacity='0.25'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    pointer-events: none;
}

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

.promotions {
    position: relative;
}

.promotions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(200px, 40vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.valuation {
    position: relative;
    overflow: hidden;
}

.valuation::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: min(500px, 60vw);
    height: min(500px, 60vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 162, 101, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

/* Ornamental corners on section headers */
.section-header::before,
.section-header--left::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 0 auto 16px;
    opacity: 0.6;
}

.section-header--left::before {
    margin: 0 0 16px;
}

/* Feature cards soft glow */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--lux-orb-3) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}

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

/* Footer subtle top glow */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80vw);
    height: 120px;
    background: radial-gradient(ellipse at top, var(--lux-orb-1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer {
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .luxury-bg__orb { filter: blur(60px); opacity: 0.7; }
    .quote-section::before { font-size: 8rem; }
}
