/* ===== Bootstrap Theme Overrides ===== */
[data-bs-theme="dark"] {
    --bs-body-bg: #0a0a0a;
    --bs-body-color: #f5f5f5;
    --bs-secondary-color: #999999;
    --bs-tertiary-color: #666666;
    --bs-border-color: rgba(255, 255, 255, 0.08);
    --bs-primary: #e8c547;
    --bs-primary-rgb: 232, 197, 71;
    --bs-link-color: #f5f5f5;
    --bs-link-hover-color: #e8c547;
    --bs-navbar-color: #999999;
    --bs-navbar-hover-color: #f5f5f5;
    --bs-navbar-active-color: #f5f5f5;
    --bs-card-bg: #161616;
    --bs-list-group-bg: transparent;
    --bs-list-group-border-color: rgba(255, 255, 255, 0.08);
}

:root {
    --accent: #e8c547;
    --accent-dim: rgba(232, 197, 71, 0.15);
    --accent-glow: rgba(232, 197, 71, 0.3);
    --nav-height: 72px;
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
}

/* ===== Navbar ===== */
.xz-navbar {
    height: var(--nav-height);
    transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

.xz-navbar.scrolled {
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xz-navbar .navbar-brand {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.xz-navbar .nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.site-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn-accent {
    --bs-btn-color: #0a0a0a;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #0a0a0a;
    --bs-btn-hover-bg: #f0d060;
    --bs-btn-hover-border-color: #f0d060;
    --bs-btn-active-color: #0a0a0a;
    --bs-btn-active-bg: #d4b33e;
    --bs-btn-active-border-color: #d4b33e;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.btn-accent:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

.text-accent {
    color: var(--accent) !important;
}

/* ===== Hero ===== */
.hero {
    margin-top: calc(-1 * var(--nav-height));
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(232, 197, 71, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 1.85rem;
    color: var(--bs-tertiary-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-title .text-accent {
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--bs-secondary-color);
    max-width: 420px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-image {
    max-width: 560px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--bs-tertiary-color);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--bs-tertiary-color), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sections ===== */
.section {
    scroll-margin-top: var(--nav-height);
}

.section-eyebrow {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--bs-secondary-color);
    max-width: 560px;
    line-height: 1.8;
}

.pb-lg-6 {
    padding-bottom: 10rem !important;
}

/* ===== Product Showcase ===== */
.product-showcase {
    min-height: 120vh;
}

.product-sticky {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

.product-frame {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    position: absolute;
    width: 90%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
}

.product-img.active {
    opacity: 1;
    transform: scale(1);
}

.product-details {
    padding-top: 20vh;
    padding-bottom: 20vh;
}

.product-detail {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s ease;
    padding: 2.5rem 0;
}

.product-detail.active {
    opacity: 1;
}

.detail-num {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-detail h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.product-detail p {
    font-size: 1rem;
    color: var(--bs-secondary-color);
    line-height: 1.8;
    max-width: 400px;
}

/* ===== Feature Cards ===== */
.xz-feature-grid {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
}

.xz-card {
    background: #111111;
    transition: background var(--transition);
}

.xz-card:hover {
    background: #1c1c1c;
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.highlight-image {
    max-width: 500px;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
}

.highlight-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.highlight-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
}

.highlight-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== Solutions ===== */
.xz-solution-item {
    background: transparent;
    border-left: 0;
    border-right: 0;
    padding: 3rem 0;
    transition: padding-left var(--transition);
}

.xz-solution-item:hover {
    padding-left: 1rem;
}

.solution-num {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* ===== About ===== */
.stat-num {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.about-visual {
    position: relative;
}

.about-visual img {
    max-width: 480px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
}

.about-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* ===== Contact ===== */
.contact-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

/* ===== Footer ===== */
.xz-footer {
    background: #111111;
}

.footer-link {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--bs-body-color);
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .product-showcase {
        min-height: auto;
    }

    .product-sticky {
        position: relative;
        top: 0;
    }

    .product-details {
        padding-top: 0;
        padding-bottom: 0;
    }

    .product-detail {
        min-height: auto;
        opacity: 1;
        padding: 1.5rem 0;
    }

    .hero-image {
        max-width: 360px;
    }
}

@media (max-width: 767.98px) {
    .pb-lg-6 {
        padding-bottom: 5rem !important;
    }
}
