/* 
  Theme Variables 
  Off-White Luxury System
*/
:root {
    --bg-primary: #101010;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-mist: #1a1a1a;
    --bg-stone: #222222;

    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-accent: #9ca3af;
    --text-gold: #D4A674;

    --font-family: 'Didact Gothic', sans-serif;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 30px 60px -12px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
    opacity: 0;
    /* JS will fade in */
    transition: opacity 0.8s ease-out;
}

body.loaded {
    opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(100px);
    /* Removed mix-blend-mode to preserve gold color */
    color: var(--text-primary);
    transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.nav-scrolled {
    padding: 0.4rem 5%;
    background: rgba(16, 16, 16, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    /* Adjust height to fit navbar */
    width: auto;
    object-fit: contain;
}


.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    margin: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-gold);
}

.nav-cta {
    border: 1px solid var(--text-gold);
    color: var(--text-gold);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--text-gold);
    color: white !important;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001; /* Stay above the menu */
    margin-left: auto;
}

/* Base styles for desktop explicitly */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        align-items: center;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 4% 0 2%;
    position: relative;
    overflow: hidden;
    gap: 2rem;
}

.hero-content {
    text-align: left;
    z-index: 2;
    position: relative;
    max-width: 900px;
    margin: 0;
}

.hero-fullcenter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    padding-left: 2%;
    padding-top: 8rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4.5rem, 9vw, 10rem);
    line-height: 0.95;
    margin-bottom: 0;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #D4A674;
    opacity: 1;
    transform: none;
    text-align: left;
    white-space: normal;
    position: relative;
    min-height: 3em;
}

.hero-line {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    will-change: transform, opacity;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Hero Card (right side) */
.hero-card-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    z-index: 2;
    position: relative;
}

.hero-card-tilt {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 0.1s ease;
    animation: cardFloat 4s ease-in-out infinite alternate;
    border-radius: 20px;
    cursor: pointer;
}

@keyframes cardFloat {
    0% {
        transform: translateY(0px) rotateX(2deg) rotateY(-4deg);
    }

    100% {
        transform: translateY(-22px) rotateX(-2deg) rotateY(4deg);
    }
}

.hero-card-img {
    width: clamp(300px, 34vw, 520px);
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.18)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.10));
}

/* Ambient glow beneath card */
.card-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(198, 167, 94, 0.35) 0%, transparent 70%);
    filter: blur(12px);
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }

    100% {
        opacity: 0.25;
        transform: translateX(-50%) scaleX(0.8);
    }
}

/* Specular reflection shimmer */
.card-reflection {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.18) 0%,
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.06) 100%);
    pointer-events: none;
    z-index: 3;
    transition: background 0.15s ease;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        padding: 8rem 5% 4rem;
        gap: 3rem;
    }

    .hero-fullcenter {
        padding-left: 0;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        text-align: center;
        font-size: clamp(3rem, 15vw, 7.5rem);
        line-height: 0.85;
        width: 100%;
    }

    .hero-line {
        right: 0;
        left: 0;
        margin: 0;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        line-height: 0.85;
        gap: 0.15em;
    }

    .hero-line:not(:first-child) {
        margin-top: -0.5rem;
    }

    .hero-card-img {
        width: clamp(220px, 70vw, 340px);
        transform: translateX(15%);
    }
}

.ambient-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 25px 25px;
    animation: particleFloat 20s infinite linear;
    z-index: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50px);
    }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: #000;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-secondary);
    /* Corrected from transparent to visible border */
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Performance Section */
.performance {
    padding: 10rem 5%;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Performance split layout */
.perf-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.perf-text .section-title {
    text-align: left;
    margin-bottom: 3rem;
}

.perf-text .stats-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
}

/* Floating particles background */
.perf-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.perf-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 166, 116, 0.3), transparent);
    animation: particleDrift var(--dur, 8s) ease-in-out infinite alternate;
}

@keyframes particleDrift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translate(var(--tx, 30px), var(--ty, -40px)) scale(1.3);
        opacity: 0.1;
    }
}

/* ── Laptop Scene ── */
.perf-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    padding-top: 15rem;
}

.laptop-scene {
    perspective: 1200px;
    width: 420px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.4);
    transform-origin: center center;
}

.laptop {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-20deg);
    animation: laptopFloat 4s ease-in-out infinite alternate,
        laptopRotate 12s ease-in-out infinite alternate;
    filter: drop-shadow(0 60px 40px rgba(0, 0, 0, 0.18));
}

@keyframes laptopFloat {
    0% {
        transform: rotateX(10deg) rotateY(-20deg) translateY(0px);
    }

    100% {
        transform: rotateX(8deg) rotateY(-18deg) translateY(-18px);
    }
}

@keyframes laptopRotate {
    0% {
        transform: rotateX(10deg) rotateY(-25deg) translateY(-9px);
    }

    100% {
        transform: rotateX(8deg) rotateY(-10deg) translateY(-9px);
    }
}

/* Lid */
.laptop-lid {
    width: 340px;
    height: 220px;
    position: relative;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    transform: rotateX(-105deg);
    transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.laptop-lid.open {
    transform: rotateX(-10deg);
}

.laptop-screen {
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    border: 2px solid #2a2a2a;
    backface-visibility: hidden;
}

/* Glowing screen */
.screen-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%,
            rgba(100, 160, 255, 0.15) 0%,
            rgba(60, 120, 220, 0.08) 40%,
            transparent 70%);
    opacity: 0;
    transition: opacity 1.5s ease 0.8s;
}

.laptop-lid.open .screen-glow {
    opacity: 1;
}

/* Screen UI content */
.screen-content {
    position: absolute;
    inset: 12px;
    opacity: 0;
    transition: opacity 1s ease 1.5s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.laptop-lid.open .screen-content {
    opacity: 1;
}

.screen-bar {
    height: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 6px;
}

.screen-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.screen-line.short {
    width: 60%;
    background: rgba(212, 166, 116, 0.25);
}

.screen-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-top: auto;
    padding-top: 8px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(212, 166, 116, 0.7), rgba(212, 166, 116, 0.2));
    border-radius: 3px 3px 0 0;
    animation: chartGrow 1s ease forwards;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.8s ease var(--delay, 1.8s);
}

.laptop-lid.open .chart-bar {
    transform: scaleY(1);
}

.chart-bar:nth-child(1) {
    --delay: 1.8s;
}

.chart-bar:nth-child(2) {
    --delay: 1.95s;
}

.chart-bar:nth-child(3) {
    --delay: 2.1s;
}

.chart-bar:nth-child(4) {
    --delay: 2.25s;
}

.chart-bar:nth-child(5) {
    --delay: 2.4s;
}

/* ── Financial Chart Screen ── */
.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sc-ticker {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sc-live {
    font-size: 7px;
    color: #6DBF8A;
    font-weight: 700;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

.sc-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 6px;
}

.sc-val {
    font-size: 15px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.03em;
}

.sc-change {
    font-size: 9px;
    color: #6DBF8A;
    font-weight: 700;
}

.sc-chart-wrap {
    flex: 1;
    min-height: 0;
    margin-bottom: 6px;
}

.sc-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sc-area {
    fill: url(#chartGrad);
}

.sc-line {
    fill: none;
    stroke: #D4A674;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2.2s ease 1.8s;
}

.laptop-lid.open .sc-line {
    stroke-dashoffset: 0;
}

.sc-dot {
    fill: #D4A674;
    opacity: 0;
    transition: opacity 0.4s ease 4s;
}

.laptop-lid.open .sc-dot {
    opacity: 1;
}

.sc-dot-ring {
    fill: none;
    stroke: #D4A674;
    stroke-width: 1.2;
    opacity: 0;
    transition: opacity 0.4s ease 4s;
    animation: dotRing 1.8s ease-in-out infinite;
}

.laptop-lid.open .sc-dot-ring {
    opacity: 0.5;
}

@keyframes dotRing {
    0% {
        r: 5;
        opacity: 0.5;
    }

    100% {
        r: 10;
        opacity: 0;
    }
}

.sc-stats {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 5px;
    gap: 0;
}

.sc-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sc-stat:first-child {
    padding-left: 0;
}

.sc-stat:last-child {
    border-right: none;
}

.sc-stat-l {
    font-size: 6.5px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sc-stat-v {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.sc-low {
    color: #6DBF8A !important;
}

/* Screen reflection */
.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Lid back */
.lid-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d0d0d0 0%, #b8b8b8 50%, #c8c8c8 100%);
    border-radius: 12px 12px 0 0;
    transform: rotateY(180deg) translateZ(3px);
    backface-visibility: hidden;
}

/* Base */
.laptop-base {
    width: 340px;
    height: 14px;
    background: linear-gradient(180deg, #c8c8c8 0%, #b0b0b0 100%);
    border-radius: 0 0 8px 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.keyboard-area {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.keyboard-row {
    height: 5px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

.trackpad {
    width: 80px;
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    margin-top: 3px;
}

/* Ground shadow */
.laptop-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.18) 0%, transparent 70%);
    animation: shadowPulse 4s ease-in-out infinite alternate;
}

@keyframes shadowPulse {
    0% {
        transform: translateX(-50%) scaleX(1);
        opacity: 0.7;
    }

    100% {
        transform: translateX(-50%) scaleX(0.85);
        opacity: 0.3;
    }
}

@media (max-width: 900px) {
    .perf-layout {
        grid-template-columns: 1fr;
    }

    .perf-text .section-title {
        text-align: center;
    }

    .perf-text .stats-grid {
        max-width: 100%;
    }

    .laptop-scene {
        width: 100%;
        height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: scale(1);
        transform-origin: center center;
    }

    .laptop-lid,
    .laptop-base {
        width: 340px;
    }
}



.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 13vw, 12rem);
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 5rem;
    opacity: 0;
    /* handled by GSAP */
}

.title-dark {
    color: #2A2A2A;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0.9;
}

.title-muted {
    color: #6B6B6B;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-accent);
}

/* Offerings Section */
.offerings {
    padding: 10rem 5%;
    background: var(--bg-mist);
    overflow: hidden;
    position: relative;
}

/* Offerings Grid */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 4rem auto 6rem auto;
    padding: 0 5%;
}

.offering-slide {
    width: 100%;
    height: 420px;
    position: relative;
    border-radius: var(--radius-lg);
    background: #111;
    border: 1px solid rgba(212, 166, 116, 0.2);
    box-shadow: -15px 0 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s, border-color 0.4s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.offering-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 166, 116, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: var(--radius-lg);
}

.offering-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border-color: rgba(212, 166, 116, 0.6);
    z-index: 10;
}

.offering-slide:hover::before {
    opacity: 1;
}

.offering-content {
    padding: 2rem 1.8rem;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0.85) 60%, transparent 100%);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.offering-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.offering-content .offering-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.offering-content .offering-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.offering-content .offering-list li::before {
    content: '—';
    color: var(--text-gold);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.offering-slide:hover .offering-content .offering-list {
    max-height: 350px;
    opacity: 1;
    margin-top: 1rem;
}

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

@media (max-width: 768px) {
    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .offering-slide {
        height: auto;
        min-height: 320px;
    }
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.float-ui-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    min-height: 200px;
}

.ui-header {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.ui-body {
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
}

/* Architecture Section */
.architecture {
    padding: 10rem 5%;
    position: relative;
    background: var(--bg-tertiary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 15vw, 18rem);
    font-weight: 800;
    color: rgba(167, 118, 65, 0.18);
    /* Premium gold watermark */
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.feature-panel {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    max-width: 600px;
    box-shadow: var(--shadow-float);
    position: relative;
    z-index: 1;
}

/* Horizontal Scroll */
.horizontal-scroll {
    height: 100vh;
    /* Changed from 400vh to 100vh, JS handles pinning */
    background: var(--bg-primary);
    overflow: hidden;
    /* Ensure track doesn't overflow */
}

.scroll-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    height: 100vh;
    align-items: center;
    padding: 0 10vw;
    /* Removed sticky positioning as GSAP will handle pinning */
}

.scroll-panel {
    flex: 0 0 60vw;
    height: 60vh;
    perspective: 1500px;
    background: transparent;
    border-radius: var(--radius-lg);
}

.panel-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.scroll-panel.flipped .panel-flipper {
    transform: rotateY(180deg);
}

.panel-front,
.panel-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-front {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.panel-back {
    background: var(--bg-mist);
    color: var(--text-secondary);
    transform: rotateY(180deg);
    justify-content: flex-start;
    padding: 4rem 3rem;
    overflow-y: auto;
}

.panel-back h3 {
    font-size: 1.8rem;
    color: var(--text-gold);
    margin-bottom: 2rem;
    font-style: italic;
}

.panel-back .cs-detail-list {
    list-style: none;
    text-align: left;
    width: 100%;
}

.panel-back .cs-detail-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.panel-back .cs-detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-gold);
}

.flip-hint {
    margin-top: 2rem;
    color: var(--text-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Mockup Placeholder */
.floating-mockup {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
    /* Center it */
    position: relative;
    perspective: 1000px;
}

.mockup-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdfdfd 0%, #e8e8e8 100%);
    border-radius: 20px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    overflow: hidden;
}

.mockup-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Section Label */
.section-label {
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-gold);
    margin-bottom: 1.2rem;
    opacity: 0.85;
}

.section-label.light {
    color: rgba(255, 255, 255, 0.5);
}

/* Feature List (Intelligence) */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.feat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-gold);
    flex-shrink: 0;
}

/* Intelligence card internals */
.ui-meta {
    font-size: 0.75rem;
    color: var(--text-accent);
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
}

.ui-bar-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ui-bar-row>span:first-child {
    width: 60px;
    flex-shrink: 0;
}

.ui-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.ui-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #C6A75E, #e8d5a3);
    border-radius: 3px;
    transition: width 1.2s ease;
}

/* Risk gauge */
.ui-risk {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.risk-gauge {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.risk-fill {
    width: 62%;
    height: 100%;
    background: linear-gradient(90deg, #6DBF8A, #C6A75E, #E07070);
    border-radius: 4px;
}

.risk-label {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Architecture grid */
.arch-header {
    text-align: left;
    margin-bottom: 5rem;
}

.arch-title {
    text-align: left !important;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.panel-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    display: block;
}

/* Challenge & Solution Section */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.challenge-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.challenge-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--text-gold);
    transform: translateY(-8px);
}

.challenge-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-gold);
}

.challenge-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    font-style: italic;
}

.challenge-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.risk-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 1.2rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem auto;
    transition: all 0.3s ease;
}

.risk-banner h4 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.solution-header-wrap {
    text-align: left;
    margin-bottom: 3rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.solution-arc-wrap {
    position: absolute;
    top: 35px;
    /* Centers behind the 70px icon wraps */
    left: 10%;
    width: 80%;
    height: 100px;
    z-index: 0;
    pointer-events: none;
}


.solution-card {
    background: rgba(212, 166, 116, 0.02);
    border: 1px solid rgba(212, 166, 116, 0.1);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution-card:hover {
    background: rgba(212, 166, 116, 0.05);
    border-color: var(--text-gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.sol-icon-wrap {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(212, 166, 116, 0.2), transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-gold);
}

.solution-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    font-style: italic;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.solution-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 1.2rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 3rem auto 0;
}

.solution-banner h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .challenge-grid {
        grid-template-columns: 1fr;
    }

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

    .solution-arc-wrap {
        display: none;
    }

    .solution-card[style] {
        /* Override inline negative margins on mobile */
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}


/* Horizontal scroll panel numbers */
.panel-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-gold);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.scroll-panel p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

/* Final Section */
.final {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-stone);
    text-align: center;
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

.final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(198, 167, 94, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.final-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.0;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.final-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.final-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.35);
}

/* Final stats */
.final-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.fstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.fstat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.fstat-label {
    font-size: 0.8rem;
    color: var(--text-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fstat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.12);
}

.large-btn {
    padding: 1.2rem 2.8rem;
    font-size: 1.05rem;
}

/* Utilities */
.offset-card {
    margin-left: 4rem;
}

/* ── Custom Footer Layout ── */
.site-footer {
    background-color: var(--bg-primary);
    /* Off-white theme */
    color: var(--text-secondary);
    padding: 6rem 5% 3rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    padding: 0;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.05));
}

.footer-about p {
    margin-bottom: 2rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff; /* Default color: White */
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: rgba(212, 166, 116, 0.1);
    border-color: var(--text-gold);
    color: var(--text-gold); /* Hover color: Gold */
    box-shadow: 0 5px 15px rgba(212, 166, 116, 0.2);
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-gold);
}

.footer-contact .contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.footer-contact .contact-item strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-contact .contact-item span,
.footer-contact .contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
    color: var(--text-gold);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding-top: 2rem;
    color: var(--text-accent);
    font-size: 0.85rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .dev-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom .dev-link i {
    font-size: 1.1rem;
    color: var(--text-gold);
}

.footer-bottom .dev-link:hover {
    color: var(--text-gold);
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 5%;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 100vw;
        height: 100vh;
        background: rgba(16, 16, 16, 0.98); /* var(--bg-primary) with high opacity */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        display: block; /* Make sure they are visible */
        font-size: 1.5rem;
        margin: 0;
    }
    
    .nav-links a.nav-cta {
        margin-top: 1rem;
        font-size: 1.2rem;
        border-width: 2px;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 7.5rem);
        line-height: 0.85;
        text-align: center !important;
    }

    .hero-line {
        right: 0;
        left: 0;
        margin: 0;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        line-height: 0.85;
        gap: 0.15em;
    }

    .hero-line:not(:first-child) {
        margin-top: -0.5rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .offset-card {
        margin-left: 0;
    }

    .float-ui-card {
        padding: 1.5rem;
    }

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

    .feature-panel {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .scroll-track {
        gap: 1.5rem;
        padding: 0 5vw;
    }

    .scroll-panel {
        flex: 0 0 85vw;
        height: 60vh;
    }

    .panel-front, 
    .panel-back {
        padding: 1.5rem;
    }

    .scroll-panel h3 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }

    .scroll-panel p {
        font-size: 0.95rem !important;
        max-width: 100%;
    }

    .final-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .final-stats {
        gap: 2rem;
        flex-direction: column;
    }

    .fstat-divider {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }

    /* Additional Mobile Centering & Alignment Fixes */
    .hero,
    .performance,
    .offerings,
    .architecture {
        padding: 5rem 5%;
        overflow-x: hidden;
    }

    .hero {
        padding-bottom: 0;
    }

    .hero-card-tilt {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-card-img {
        transform: translateX(0) scale(0.9);
        width: 100%;
        max-width: 280px;
    }

    .laptop-scene {
        transform: scale(0.95);
    }

    .laptop-lid,
    .laptop-base {
        width: 100%;
        max-width: 340px;
    }

    .arch-header {
        text-align: left;
    }
}

/* Scroll Stack CSS */
.scroll-stack-scroller {
    position: relative;
    width: clamp(600px, 85vw, 1400px);
    height: 90vh;
    overflow-y: auto;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    /* Managed by local Lenis if we wish, or 6native */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: scroll-position;
    z-index: 2;
    margin-top: -25vh;
    scrollbar-width: none;
}

.scroll-stack-scroller::-webkit-scrollbar {
    display: none;
}

.scroll-stack-inner {
    padding: 5vh 2rem 10vh;
    min-height: auto;
    /* reduced room to scroll to remove unwanted space */
}

.scroll-stack-card-wrapper {
    position: relative;
}

.scroll-stack-card {
    transform-origin: top center;
    will-change: transform, filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    aspect-ratio: 1.586;
    height: auto;
    width: 100%;
    margin: 30px 0;
    box-sizing: border-box;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.scroll-stack-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.scroll-stack-end {
    width: 100%;
    height: 1px;
}

@media (max-width: 900px) {
    .scroll-stack-scroller {
        width: 100%;
        height: 40vh;
        margin-top: 1rem;
        /* Enable smoother bubbling */
        overscroll-behavior-y: auto;
    }

    .scroll-stack-inner {
        padding-bottom: 5vh;
        min-height: auto;
    }
}

/* ---- HERO REF CSS ---- */
.hero-ref {
    min-height: 100vh;
    padding: 180px 5% 50px;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background: url('assets/hero_bg_ref_custom.jpg') center/cover no-repeat;
}

.hero-left-ref {
    width: 45%;
    position: relative;
    z-index: 10;
}

.hero-right-ref {
    width: 50%;
    position: relative;
    z-index: 10;
}

.hero-title-ref {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 25px;
}

.hero-desc-ref {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons-ref {
    display: flex;
    gap: 20px;
    margin-bottom: 80px;
}

.btn-ref {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-gold-ref {
    background: #D4A674;
    color: #111;
}

.btn-gold-ref:hover {
    background: #e6b986;
}

.btn-outline-ref {
    border: 1px solid #D4A674;
    color: #D4A674;
    background: transparent;
}

.btn-outline-ref:hover {
    background: rgba(212, 166, 116, 0.1);
}

.hero-bottom-left-ref {
    display: flex;
    gap: 40px;
}

.stat-item-ref {
    display: flex;
    flex-direction: column;
}

.stat-num-ref {
    font-size: 1rem;
    color: #D4A674;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-title-ref {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-desc-ref {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.cards-3d-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.ref-card {
    position: absolute;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.ref-card-gold {
    left: 5%;
    top: 25%;
    transform: rotateY(15deg) rotateX(10deg) rotateZ(-5deg);
    z-index: 2;
}

.ref-card-black {
    left: 35%;
    top: 5%;
    transform: rotateY(-10deg) rotateX(5deg) scale(1.1);
    z-index: 3;
}

.hero-bottom-right-ref {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    padding-right: 5%;
}

.stat-badge-ref {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.badge-icon {
    position: absolute;
    background: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.stat-users-ref {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.users-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.user-count-ref {
    font-size: 2rem;
    font-weight: 700;
    color: #D4A674;
}

.faces-stack {
    display: flex;
}

.face-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #111;
    margin-left: -10px;
}

.face-circle:first-child {
    margin-left: 0;
}

.f-plus {
    background: #D4A674;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
}

.user-desc-ref {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.star-group {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    color: #D4A674;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    animation: twinkle 4s ease-in-out infinite alternate;
}

.star.s1 {
    top: 20%;
    left: 40%;
    font-size: 2.2rem;
}

.star.s2 {
    top: 25%;
    right: 15%;
    font-size: 1.2rem;
}

.star.s3 {
    bottom: 25%;
    left: 35%;
    font-size: 1rem;
}

.star.s4 {
    bottom: 30%;
    right: 25%;
    font-size: 1.8rem;
}

@keyframes twinkle {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Mobile Hero Fixes */
@media (max-width: 768px) {
    .hero-ref {
        flex-direction: column;
        padding: 120px 5% 50px;
        align-items: center;
        text-align: center;
        min-height: auto;
    }

    .hero-left-ref {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }

    .hero-title-ref {
        text-align: center !important;
        font-size: clamp(3rem, 12vw, 4.5rem) !important;
        height: 2.8em !important;
        width: 100%;
    }

    .hero-line-ref {
        width: 100%;
        text-align: center;
    }

    .hero-right-ref {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .cards-3d-wrap {
        transform: none !important;
        height: auto;
        min-height: 350px;
        width: 100%;
    }

    .ref-card {
        width: 90% !important;
        max-width: 320px;
        left: 5% !important;
        transform: none !important;
        position: relative !important;
        margin: 0 auto;
    }

    .hero-bottom-right-ref {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-right: 0;
        margin-top: 30px;
        width: 100%;
    }

    .stat-users-ref {
        align-items: center;
    }
}

/* Offerings Topics */
.offering-topic {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.offering-topic .topic-arrow {
    color: var(--text-gold);
    font-size: 1.2rem;
}

.offering-topic .topic-m {
    color: var(--text-gold);
    font-weight: 800;
}

/* Contact Form Section */
.contact-section {
    position: relative;
    z-index: 10;
}

.contact-form-wrapper {
    border: 1px solid var(--text-gold);
    border-radius: 20px;
    padding: 4rem 3rem;
    background: rgba(0, 0, 0, 0.2);
}

.custom-contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
}

.custom-contact-form .form-row {
    display: flex;
    gap: 3rem;
}

.custom-contact-form .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.custom-contact-form label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-contact-form input,
.custom-contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-gold);
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.5rem 0;
    font-family: inherit;
    resize: none;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    outline: none;
    border-bottom-width: 2px;
}

.custom-contact-form .message-group {
    margin-top: 2.5rem;
    margin-bottom: 4rem;
}

.custom-contact-form .submit-btn {
    background: var(--text-gold);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 1rem 4rem;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.custom-contact-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 166, 116, 0.3);
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .custom-contact-form .form-row {
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b858;
    color: #FFF;
    transform: scale(1.1);
}