/* ==========================================================================
   CSS Variables, Typography & Global Resets
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=Outfit:wght@300;500;700;900&display=swap');

:root {
    --bg-onyx: #050505;
    --bg-carbon: #0f0f0f;
    --bg-elevated: #1a1a1a;

    --gold-light: #F9DF9F;
    --gold-base: #D4AF37;
    --gold-dark: #997A15;

    --text-main: #F4F4F5;
    --text-muted: #A1A1AA;

    --border-subtle: rgba(212, 175, 55, 0.15);
    --border-glow: rgba(212, 175, 55, 0.4);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --ease-cinematic: cubic-bezier(0.25, 1, 0.25, 1);
    --transition-slow: all 0.7s var(--ease-cinematic);
    --transition-fast: all 0.3s var(--ease-cinematic);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Luxury Custom Cursor */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-onyx);
}

body {
    background-color: var(--bg-onyx);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Elegant Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-onyx);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 10px;
}

/* Custom Luxury Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--gold-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 10px var(--gold-base);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-base);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    transition: 0.15s ease-out;
    mix-blend-mode: screen;
}

body.hover-state .cursor-dot {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-base);
}

body.hover-state .cursor-outline {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-base), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-hero {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.title-section {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.py-section {
    padding: 150px 0;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Global Header (Strict Consistency)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-slow);
    border-bottom: 1px solid transparent;
    background: transparent;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 5%;
}

.logo img {
    height: 50px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold-base);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--gold-base), var(--gold-dark));
    color: var(--bg-onyx);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
    transition: var(--transition-fast);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-base));
    z-index: -1;
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-gold:hover::before {
    opacity: 1;
}

.btn-gold:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--gold-base);
    border: 1px solid var(--gold-base);
}

.btn-outline::before {
    background: var(--gold-base);
}

.btn-outline:hover {
    color: var(--bg-onyx);
}

/* ==========================================================================
   Hero Section & Cinematic Ambient Glow
   ========================================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    transition: left 0.5s ease-out, top 0.5s ease-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-base);
    margin-bottom: 20px;
    border-left: 2px solid var(--gold-base);
    padding-left: 15px;
}

.hero-p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* ==========================================================================
   Infinite Marquee
   ========================================================================== */
.marquee-sec {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-carbon);
    overflow: hidden;
    padding: 30px 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.marquee-text span {
    color: var(--gold-base);
    font-weight: 700;
}

.marquee-text i {
    font-size: 1rem;
    color: var(--border-glow);
}

/* ==========================================================================
   Manifesto / Intro
   ========================================================================== */
.manifesto-sec {
    background: var(--bg-onyx);
    text-align: center;
}

.manifesto-text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.3;
    max-width: 1000px;
    margin: 0 auto;
}

.manifesto-text span {
    font-weight: 700;
}

/* ==========================================================================
   Services (Luxury Bento Box)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 20px;
    margin-top: 60px;
}

.bento-item {
    background: var(--bg-carbon);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: var(--transition-slow);
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold-base);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-icon {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2.5rem;
    color: var(--gold-dark);
    transition: var(--transition-fast);
}

.bento-item:hover .bento-icon {
    color: var(--gold-base);
    transform: scale(1.1);
}

.bento-item h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.bento-item p {
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* Span classes for Bento Layout */
.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

/* ==========================================================================
   Analytics (Pure CSS Funnel & Bars)
   ========================================================================== */
.report-sec {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-frame {
    background: var(--bg-carbon);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* CSS Staggered Bar Chart */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bar-label {
    width: 120px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-muted);
}

.bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    position: relative;
}

.bar-fill {
    position: absolute;
    top: -10px;
    left: 0;
    height: 24px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-base));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    width: 0;
    transition: width 1.5s var(--ease-cinematic);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.bar-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bg-onyx);
}

/* ==========================================================================
   ROI Calculator
   ========================================================================== */
.calc-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.slider-group {
    margin-bottom: 40px;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.slider-info span {
    color: var(--gold-base);
    font-weight: 700;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: var(--border-subtle);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gold-base);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-base);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.calc-total {
    background: var(--bg-carbon);
    border: 1px solid var(--border-subtle);
    padding: 50px;
    text-align: center;
    border-radius: 20px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.calc-total::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: var(--gold-base);
    filter: blur(80px);
    opacity: 0.2;
}

.calc-total h4 {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.calc-total .total-rev {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Industries (Image Mask Reveal)
   ========================================================================== */
.ind-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-subtle);
}

.ind-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ind-item h3 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.ind-item i {
    font-size: 2rem;
    color: var(--border-subtle);
    transform: rotate(-45deg);
    transition: var(--transition-fast);
}

.ind-item:hover {
    padding-left: 30px;
    padding-right: 30px;
    background: rgba(212, 175, 55, 0.02);
}

.ind-item:hover h3 {
    color: var(--text-main);
}

.ind-item:hover i {
    color: var(--gold-base);
    transform: rotate(0);
}

/* ==========================================================================
   Testimonials (Masonry Style)
   ========================================================================== */
.test-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.test-card {
    background: var(--bg-carbon);
    padding: 50px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    position: relative;
}

.test-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    color: rgba(212, 175, 55, 0.1);
}

.test-card p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 300;
}

.client-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-base);
    font-size: 1.2rem;
}

.client-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Contact CTA Forms (Neomorphic Luxury)
   ========================================================================== */
.contact-sec {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info-list {
    margin-top: 40px;
}

.c-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.c-info-item i {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold-base);
}

.luxury-form {
    background: var(--bg-onyx);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.form-line {
    position: relative;
    margin-bottom: 40px;
}

.form-line input,
.form-line textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    padding: 15px 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-line label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-line input:focus,
.form-line textarea:focus {
    border-bottom-color: var(--gold-base);
}

.form-line input:focus~label,
.form-line input:valid~label,
.form-line textarea:focus~label,
.form-line textarea:valid~label {
    top: -15px;
    font-size: 0.75rem;
    color: var(--gold-base);
}

/* ==========================================================================
   Live Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--gold-base);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-onyx);
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-carbon);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.chat-widget.active .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-top {
    background: var(--bg-elevated);
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-base);
}

.chat-mid {
    height: 250px;
    padding: 20px;
    overflow-y: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.chat-bot {
    display: flex;
    border-top: 1px solid var(--border-subtle);
    padding: 10px;
    background: var(--bg-onyx);
}

.chat-bot input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 5px 10px;
    font-family: var(--font-body);
}

.chat-bot button {
    background: transparent;
    border: none;
    color: var(--gold-base);
    font-size: 1.2rem;
    padding: 0 10px;
}

/* ==========================================================================
   Footer (Strictly Consistent Site-Wide)
   ========================================================================== */
footer {
    background: var(--bg-onyx);
    border-top: 1px solid var(--border-subtle);
    padding: 100px 5% 40px;
}

.foot-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.foot-brand img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 30px;
}

.foot-brand p {
    color: var(--text-muted);
    max-width: 350px;
    font-weight: 300;
}

.foot-col h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.foot-col ul {
    list-style: none;
}

.foot-col ul li {
    margin-bottom: 15px;
}

.foot-col ul li a,
.foot-col ul li span {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.foot-col ul li a:hover {
    color: var(--gold-base);
}

.news-box {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    margin-top: 20px;
}

.news-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
}

.news-box button {
    background: transparent;
    border: none;
    color: var(--gold-base);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.foot-legal {
    border-top: 1px solid var(--border-subtle);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--gold-base);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s var(--ease-cinematic);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .dash-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .foot-layout {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-row-2 {
        grid-row: span 1;
    }

    .nav-links,
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    * {
        cursor: auto !important;
    }

    .foot-layout {
        grid-template-columns: 1fr;
    }

    .foot-legal {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Legal Pages Wrapper Override */
.legal-wrapper {
    max-width: 900px;
    margin: 180px auto 100px;
    background: var(--bg-carbon);
    padding: 80px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
}

.legal-wrapper h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--gold-base);
}

.legal-wrapper h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.legal-wrapper p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}