/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-base: #050505;
    --bg-surface: #0A0A0A;
    --text-primary: #F5F2EB;
    --text-secondary: rgba(245, 242, 235, 0.65);
    --text-muted: rgba(245, 242, 235, 0.35);
    --border-color: rgba(245, 242, 235, 0.08);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    --max-width: 1440px;
    --padding-x: 5vw;
    
    /* Smooth Luxury Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
    scrollbar-gutter: stable; /* Prevents layout shift when scrollbar appears */
}

body { 
    font-family: var(--font-sans); 
    background-color: var(--bg-base); 
    color: var(--text-primary); 
    line-height: 1.6; 
    overflow-x: hidden; 
    cursor: none; 
}

/* Prevents scrolling while preloader is active */
body.loading {
    overflow: hidden;
}

@media (pointer: coarse) { body { cursor: auto; } }
a, button, input, textarea, select { cursor: none; }
@media (pointer: coarse) { a, button, input, textarea, select { cursor: pointer; } }

::selection { background: var(--text-primary); color: var(--bg-base); }

/* =========================================
   2. PRELOADER & CUSTOM CURSOR
   ========================================= */
.preloader { position: fixed; inset: 0; background: var(--bg-base); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 1s var(--ease-out-expo); }
.preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-content { display: flex; flex-direction: column; align-items: center; }
.preloader-logo { height: 80px; width: auto; margin-bottom: 24px; }
.preloader-bar-container { width: 160px; height: 1px; background: var(--border-color); }
.preloader-bar { height: 100%; width: 0%; background: var(--text-primary); transition: width 0.3s; }

.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; }
.cursor-dot { width: 4px; height: 4px; background: var(--text-primary); }
.cursor-outline { width: 36px; height: 36px; border: 1px solid var(--text-muted); transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), background 0.4s; }
.cursor-outline.hover { width: 64px; height: 64px; background: rgba(245, 242, 235, 0.08); border-color: transparent; }
@media (pointer: coarse) { .cursor-dot, .cursor-outline { display: none; } }

/* =========================================
   3. HEADER & MOBILE MENU
   ========================================= */
.navbar { position: fixed; top: 0; width: 100%; padding: 24px var(--padding-x); z-index: 1000; transition: all 0.5s var(--ease-out-expo); }
.navbar.scrolled { padding: 16px var(--padding-x); background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border-color); }
.nav-container { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { text-decoration: none; color: var(--text-primary); display: flex; align-items: center; z-index: 1002; }

.nav-links { display: flex; gap: 40px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-link { text-decoration: none; color: var(--text-secondary); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; transition: color 0.3s; position: relative; padding: 6px 0; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--text-primary); transition: width 0.4s var(--ease-out-expo); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; z-index: 1002; }
.nav-btn { text-decoration: none; color: var(--bg-base); background: var(--text-primary); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; padding: 12px 24px; border-radius: 40px; transition: all 0.4s; border: 1px solid var(--text-primary); }
.nav-btn:hover { background: transparent; color: var(--text-primary); }

.nav-mobile-toggle { display: none; background: none; border: none; flex-direction: column; gap: 6px; padding: 10px; z-index: 1002; }
.nav-mobile-toggle span { width: 24px; height: 1.5px; background: var(--text-primary); transition: all 0.3s; }

.mobile-menu { position: fixed; inset: 0; background: var(--bg-base); z-index: 1001; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 32px; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out-expo); }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--font-serif); font-size: 2rem; color: var(--text-primary); text-decoration: none; opacity: 0; transform: translateY(20px); transition: all 0.5s var(--ease-out-expo); }
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu .mobile-cta { margin-top: 20px; color: var(--text-muted); font-size: 1rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; }

/* =========================================
   4. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); } 
h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); margin-bottom: 16px; }
p { font-size: clamp(0.95rem, 1vw, 1.05rem); color: var(--text-secondary); font-weight: 300; max-width: 65ch; margin-bottom: 24px; line-height: 1.8; }

.text-gradient { background: linear-gradient(135deg, #F5F2EB 30%, rgba(245, 242, 235, 0.2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-container { max-width: var(--max-width); margin: 0 auto; padding: 120px var(--padding-x); }
.section-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--text-muted); margin-bottom: 20px; }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); overflow: hidden; background: var(--bg-base); }
.hero-video-container { position: absolute; inset: 0; z-index: 1; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) grayscale(20%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.6) 60%, transparent 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; width: 100%; padding-top: 60px; }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-subtitle { font-size: clamp(1rem, 1.1vw, 1.1rem); color: var(--text-secondary); max-width: 500px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-cta { display: inline-flex; align-items: center; justify-content: center; padding: 16px 36px; background: var(--text-primary); color: var(--bg-base); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; border-radius: 50px; transition: all 0.4s var(--ease-out-expo); border: 1px solid var(--text-primary); }
.hero-cta:hover { background: transparent; color: var(--text-primary); }
.hero-cta-outline { display: inline-flex; align-items: center; justify-content: center; padding: 16px 36px; background: transparent; color: var(--text-primary); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; border-radius: 50px; transition: all 0.4s var(--ease-out-expo); border: 1px solid rgba(245, 242, 235, 0.3); }
.hero-cta-outline:hover { background: rgba(245, 242, 235, 0.08); border-color: var(--text-primary); }

/* =========================================
   6. PREMIUM TRUST BAR
   ========================================= */
.trust-bar { border-bottom: 1px solid var(--border-color); background: var(--bg-surface); padding: 32px var(--padding-x); display: flex; justify-content: center; align-items: center; }
.trust-container { display: flex; align-items: center; gap: 40px; }
.trust-item { display: flex; align-items: baseline; gap: 12px; }
.trust-number { font-family: var(--font-serif); font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.trust-text { font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-primary); font-weight: 500; }
.trust-divider { width: 1px; height: 20px; background: var(--border-color); }

/* =========================================
   7. PILLARS & SWIPE STACK
   ========================================= */
.pillar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: stretch; border-top: 1px solid var(--border-color); padding: 80px 0; }
.pillar-row.reverse { direction: rtl; }
.pillar-row.reverse > * { direction: ltr; }
.pillar-number { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-muted); margin-bottom: 12px; display: block; }
.pillar-text { padding-right: 40px; display: flex; flex-direction: column; justify-content: center; }

.swipe-container { position: relative; width: 100%; max-width: 420px; height: 340px; perspective: 1000px; margin: 0 auto; }
.swipe-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.6); transition: transform 0.8s var(--ease-out-expo), opacity 0.8s; will-change: transform; border: 1px solid var(--border-color); }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; }
.swipe-card[data-index="0"] { z-index: 3; transform: translateY(0) scale(1); }
.swipe-card[data-index="1"] { z-index: 2; transform: translateY(16px) scale(0.95); opacity: 0.6; }
.swipe-card[data-index="2"] { z-index: 1; transform: translateY(32px) scale(0.9); opacity: 0.3; }
.swipe-card.swiping-out { transform: translateX(-120%) rotate(-15deg) !important; opacity: 0 !important; }

/* =========================================
   8. FINAL CALL TO ACTION (Centered)
   ========================================= */
.final-cta { 
    text-align: center; 
    border-top: 1px solid var(--border-color); 
    background: var(--bg-surface); 
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}

.final-cta h2 { 
    max-width: 800px; 
    margin: 0 auto 24px; 
}

.final-cta p { 
    margin: 0 auto 48px; 
    max-width: 600px; 
}

.final-cta .section-label {
    text-align: center;
}

/* =========================================
   9. LUXURY FORM STYLES
   ========================================= */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.form-label { font-family: var(--font-sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); font-weight: 500; }
.form-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border-color); color: var(--text-primary); font-family: var(--font-sans); font-size: 1rem; font-weight: 300; padding: 12px 0; outline: none; transition: border-color 0.4s var(--ease-out-expo); }
.form-input:focus { border-bottom-color: var(--text-primary); }
.form-input::placeholder { color: var(--text-muted); font-weight: 300; }

select.form-input { appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--text-secondary); background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23F5F2EB%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 10px; padding-right: 24px; }
select.form-input:focus { color: var(--text-primary); }
select.form-input option { background-color: var(--bg-surface); color: var(--text-primary); padding: 12px; }

textarea.form-input { resize: none; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* =========================================
   10. ANIMATIONS
   ========================================= */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 1.5s var(--ease-out-expo), transform 1.5s var(--ease-out-expo); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.2s; }
.stagger-2 { transition-delay: 0.4s; }
.stagger-3 { transition-delay: 0.6s; }

/* =========================================
   11. FOOTER (Fixed CLS)
   ========================================= */
.footer { 
    background: #080808; 
    padding: 80px var(--padding-x) 40px; 
    border-top: 1px solid var(--border-color); 
    /* Removed content-visibility to fix the 1.00 CLS score */
}
.footer-container { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; margin-bottom: 60px; }
.footer-brand p { margin: 20px 0 40px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }
.footer-social h5 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 16px; }
.social-icons { display: flex; gap: 16px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); color: var(--text-secondary); transition: all 0.3s; }
.social-icons a:hover { color: var(--text-primary); border-color: var(--text-primary); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-column h5 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 24px; }
.footer-column a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; margin-bottom: 14px; transition: color 0.3s; }
.footer-column a:hover { color: var(--text-primary); }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding-top: 30px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.08em; }

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .nav-links, .nav-btn { display: none; }
    .nav-mobile-toggle { display: flex; }
    .hero-overlay { background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.95) 100%); }
    .hero-content { text-align: center; padding-top: 100px; }
    .hero-subtitle { margin: 0 auto 40px auto; }
    .hero-actions { justify-content: center; flex-direction: column; width: 100%; }
    .hero-cta, .hero-cta-outline { width: 100%; }
    .pillar-row, .pillar-row.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; padding: 60px 0; }
    .pillar-text { padding-right: 0; }
    .footer-container { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    :root { --padding-x: 24px; }
    .section-container { padding: 80px var(--padding-x); }
    .swipe-container { height: 280px; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .form-grid { grid-template-columns: 1fr; gap: 20px; }
    .trust-container { flex-direction: column; gap: 20px; }
    .trust-divider { display: none; }
}