/* XO ROYALTY - LUXURY MODERN PRODUCT SYSTEM */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #000000;
    --bg-card: rgba(15, 15, 15, 0.75);
    --bg-card-hover: rgba(30, 30, 30, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 255, 255, 0.3);
    
    --accent-primary: #ffffff;
    --accent-light: #e5e5e5;
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
    --silver-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #64748b 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    
    --font-heading: 'Geist', -apple-system, sans-serif;
    --font-body: 'Manrope', -apple-system, sans-serif;
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .hud-title {
    text-wrap: balance;
}

p, .feature-desc, .hero-subtitle {
    text-wrap: pretty;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* 3D Canvas Background Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
}

/* Global Navigation Header */
header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.9) 0%, rgba(7, 9, 14, 0) 100%);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

header.navbar * {
    pointer-events: auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.brand-titles h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-titles p {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-light);
}

.btn-cta {
    background: var(--accent-gradient);
    color: #07090e;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

/* Floating HUD Controls Overlay */
.hud-overlay {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 330px;
    z-index: 90;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hud-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.hud-control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hud-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.hud-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.hud-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 12px var(--accent-primary);
    transition: transform 0.15s ease;
}

.hud-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.hud-btn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.hud-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.hud-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.hud-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-light);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Page Overlay Content Sections */
.main-content {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.section-wrapper {
    pointer-events: none;
    padding: 120px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-tag, .hero-title, .hero-subtitle, .hero-stats-row, .section-header, .feature-card, .specs-table-container, .btn-cta, .footer-brand, .footer-copy {
    pointer-events: auto;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-accent);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    width: fit-content;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 750px;
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-stats-row {
    display: flex;
    gap: 48px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-primary);
}

.hero-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Section Titles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 36px;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
    background: var(--bg-card-hover);
}

.feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-primary);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Specification Comparison Table */
.specs-table-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.specs-table th, .specs-table td {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-glass);
}

.specs-table th {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.specs-table td {
    font-size: 15px;
    color: var(--text-secondary);
}

.specs-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.highlight-accent {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Footer */
footer.footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 40px;
    text-align: center;
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(12px);
    z-index: 10;
    position: relative;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hud-overlay {
        position: fixed;
        bottom: 20px;
        top: auto;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 360px;
        padding: 16px;
        gap: 12px;
        z-index: 100;
    }
    
    #hud-content {
        max-height: 40vh;
        overflow-y: auto;
    }

    .hero-title {
        font-size: 36px;
        margin-top: 40px;
    }
    
    header.navbar {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        background: rgba(7, 9, 14, 0.95);
    }
    
    .nav-brand {
        justify-content: center;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stats-row {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .section-wrapper {
        padding: 60px 20px;
    }
    
    .specs-table th, .specs-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}
