/* =============================================
   FACEID – DESKTOP CSS
   Dark Futuristic – Onion AI Style
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Serif+Display&display=swap');

:root {
    --bg: #050507;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.055);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #ffffff;
    --text-secondary: rgba(255,255,255,0.6);
    --text-muted: rgba(255,255,255,0.35);
    --accent: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== PARTICLES ========== */
.particles-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* ========== MARQUEE ========== */
.marquee-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 36px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; overflow: hidden;
}
.marquee-track { display: flex; white-space: nowrap; animation: marquee 24s linear infinite; }
.marquee-track span { font-size: 0.68rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 2.5px; text-transform: uppercase; padding: 0 20px; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ========== HERO ========== */
.hero-header {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 36px 0 0; overflow: hidden;
    background: var(--bg);
}

.hero-glow {
    position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 600px; background: rgba(255,255,255,0.03); top: -10%; left: 30%; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(255,255,255,0.02); bottom: 5%; right: 10%; }

.hero-waves { position: absolute; bottom: 0; left: 0; right: 0; height: 400px; pointer-events: none; z-index: 1; }
.wave { position: absolute; bottom: 0; width: 100%; height: 100%; }
.wave-1 { opacity: 0.6; }
.wave-2 { opacity: 0.4; }

.hero-beam {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%);
    width: 2px; height: 300px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none; z-index: 1;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 800px;
    display: flex; flex-direction: column; align-items: center; gap: 28px;
    padding: 40px 24px 80px;
}

/* Badge pill */
.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}
.badge-pill svg { opacity: 0.5; }

/* Hero title */
.hero-title {
    font-family: var(--font-serif);
    font-size: 3.8rem; font-weight: 400;
    line-height: 1.15; color: var(--text);
    letter-spacing: -0.5px;
}
.hero-title-light {
    color: var(--text-secondary);
}
.hero-subtitle {
    font-size: 0.95rem; font-weight: 400;
    color: var(--text-muted);
    max-width: 480px; line-height: 1.7;
}

/* Phone */
.phone-3d-container { perspective: 1000px; width: 180px; height: 360px; margin: 10px 0; }
.phone-float {
    width: 100%; height: 100%; position: relative;
    animation: phoneFloat 7s ease-in-out infinite;
    transform-style: preserve-3d;
}
@keyframes phoneFloat {
    0%{transform:translateY(0) rotateY(0deg)} 25%{transform:translateY(-12px) rotateY(90deg)}
    50%{transform:translateY(-16px) rotateY(180deg)} 75%{transform:translateY(-12px) rotateY(270deg)}
    100%{transform:translateY(0) rotateY(360deg)}
}
.phone-glow {
    position: absolute; inset: -30px; border-radius: 50px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08), transparent);
    filter: blur(40px); z-index: 0;
}
.phone-body {
    position: relative; width: 160px; height: 340px; margin: 0 auto;
    background: linear-gradient(160deg, #1a1a1e, #0e0e10, #1a1a1e);
    border-radius: 30px;
    border: 1.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden; z-index: 1;
}
.phone-screen {
    position: absolute; top: 6px; left: 6px; right: 6px; bottom: 6px;
    background: linear-gradient(180deg, #111, #0a0a0c);
    border-radius: 25px; overflow: hidden;
}
.phone-notch { width: 80px; height: 24px; background: #050507; border-radius: 0 0 13px 13px; margin: 0 auto; }
.phone-screen-content { display: flex; flex-direction: column; align-items: center; justify-content: center; height: calc(100% - 24px); gap: 6px; }
.screen-time { font-family: var(--font-sans); font-size: 2.4rem; font-weight: 200; color: #fff; letter-spacing: 1px; }
.screen-date { font-size: 0.55rem; font-weight: 500; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; }

/* Hero CTA */
.hero-cta-row { display: flex; align-items: center; gap: 20px; }

.btn-primary-hero {
    display: inline-flex; align-items: center;
    padding: 14px 32px;
    background: #fff; color: #000;
    font-size: 0.82rem; font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all 0.35s var(--ease);
    letter-spacing: 0.5px;
}
.btn-primary-hero:hover { box-shadow: 0 0 30px rgba(255,255,255,0.15); transform: translateY(-2px); }

.hero-socials { display: flex; gap: 10px; }
.social-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: var(--border-hover); }

/* ========== CATALOG ========== */
.catalog-section {
    position: relative; z-index: 1;
    padding: 100px 60px 60px;
    text-align: center;
}
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.62rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-secondary);
}
.section-badge svg { opacity: 0.4; }

.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem; font-weight: 400;
    margin-bottom: 14px;
}
.section-desc {
    font-size: 0.9rem; color: var(--text-muted);
    max-width: 500px; margin: 0 auto 50px;
    line-height: 1.7;
}

/* ========== PRODUCT CARDS ========== */
.products-container {
    display: flex; flex-direction: column; gap: 20px;
    max-width: 900px; margin: 0 auto;
    text-align: left;
}

.product-card {
    display: flex; align-items: center; gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.45s var(--ease);
    position: relative; overflow: visible;
    min-height: 160px;
}
.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

/* Image overflows the card */
.product-card-image {
    width: 180px; height: 180px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    margin-left: -10px;
    z-index: 2;
}
.product-card-image img {
    max-width: 160px; max-height: 170px; object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
    animation: cardFloat 5s ease-in-out infinite;
    transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card-image img { transform: translateY(-6px) scale(1.03); }

@keyframes cardFloat {
    0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)}
}

.product-card-info { flex: 1; padding: 24px 20px 24px 16px; min-width: 0; }

.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem; font-weight: 400;
    margin-bottom: 6px; color: var(--text);
}
.product-card-desc {
    font-size: 0.8rem; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 12px;
}

.product-card-storage { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.storage-tag {
    font-size: 0.62rem; font-weight: 600;
    padding: 4px 12px; border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.product-card-colors { display: flex; gap: 6px; }
.color-dot-mini {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.color-dot-mini:hover, .color-dot-mini.active {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 8px rgba(255,255,255,0.15);
    transform: scale(1.2);
}

.product-card-actions { flex-shrink: 0; padding: 24px 28px 24px 0; }

.btn-view-product {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.5px;
    padding: 11px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent; color: var(--text);
    border-radius: var(--radius-pill);
    cursor: pointer; transition: all 0.35s var(--ease);
    white-space: nowrap;
}
.btn-view-product:hover {
    background: #fff; color: #000;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Loading */
.loading-state, .empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 0.85rem; }
.loader-ring {
    width: 36px; height: 36px; margin: 0 auto 16px;
    border: 2px solid rgba(255,255,255,0.06);
    border-top-color: rgba(255,255,255,0.4);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ========== FEATURES ========== */
.features-section {
    position: relative; z-index: 1;
    display: flex; gap: 20px;
    max-width: 900px; margin: 60px auto 0;
    padding: 0 60px;
}
.feature-card {
    flex: 1;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s;
}
.feature-card:hover { border-color: var(--border-hover); }
.feature-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s var(--ease);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
    position: relative; width: 90%; max-width: 860px; max-height: 85vh;
    background: #0c0c0f;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-container { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: rgba(255,255,255,0.05);
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: #fff; color: #000; border-color: #fff; }

.modal-content { display: flex; gap: 36px; padding: 40px; }
.modal-gallery { flex: 0 0 350px; display: flex; flex-direction: column; gap: 16px; }
.gallery-main {
    width: 100%; height: 350px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.gallery-main-img {
    max-width: 80%; max-height: 80%; object-fit: contain;
    animation: modalFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.4));
    transition: opacity 0.3s;
}
@keyframes modalFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.gallery-colors { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-bottom: 6px; }
.color-dot {
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    border: 3px solid rgba(255,255,255,0.08);
    transition: all 0.3s var(--ease); position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.color-dot:hover { transform: scale(1.12); border-color: rgba(255,255,255,0.25); }
.color-dot.active { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.2); }
.color-dot-label {
    position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
    font-size: 0.55rem; font-weight: 500; color: var(--text-muted); white-space: nowrap;
}

.modal-info { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.modal-title { font-family: var(--font-serif); font-size: 1.6rem; }
.modal-description { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

.modal-storage { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-storage-tag {
    font-size: 0.72rem; font-weight: 600; padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    color: var(--text-secondary);
}

.modal-notes {
    font-size: 0.8rem; color: var(--text-muted);
    padding: 14px 18px; background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(255,255,255,0.1);
    border-radius: 0 12px 12px 0; font-style: italic;
}

.btn-consult {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 0.8rem; font-weight: 700;
    padding: 15px 30px; border: none;
    border-radius: var(--radius-pill);
    background: #fff; color: #000;
    cursor: pointer; text-decoration: none; margin-top: auto;
    transition: all 0.35s var(--ease);
    box-shadow: 0 4px 16px rgba(255,255,255,0.08);
}
.btn-consult svg { width: 18px; height: 18px; }
.btn-consult:hover { box-shadow: 0 6px 24px rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ========== FOOTER ========== */
.site-footer {
    position: relative; z-index: 1;
    margin-top: 100px; padding: 50px 60px 24px;
    border-top: 1px solid var(--border);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
    max-width: 900px; margin: 0 auto;
    padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
.footer-brand .footer-logo { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 6px; }
.footer-brand .footer-tagline { font-size: 0.7rem; color: var(--text-muted); }

.footer-nav, .footer-links, .footer-location { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h4, .footer-links h4, .footer-location h4 {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px;
}
.footer-nav a { font-size: 0.78rem; color: var(--text-muted); transition: color 0.3s; }
.footer-nav a:hover { color: var(--text); }

.footer-socials { display: flex; flex-direction: column; gap: 8px; }
.footer-social-link {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--text-muted); transition: color 0.3s;
}
.footer-social-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-social-link:hover { color: var(--text); }

.footer-location p { font-size: 0.78rem; color: var(--text-muted); }

.footer-bottom { padding-top: 20px; text-align: center; max-width: 900px; margin: 0 auto; }
.footer-bottom p { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; }

/* Scrollbar */
.modal-container::-webkit-scrollbar { width: 4px; }
.modal-container::-webkit-scrollbar-track { background: transparent; }
.modal-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* Scroll animations */
.product-card { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.45s, border-color 0.45s, box-shadow 0.45s; }
.product-card.visible { opacity: 1; transform: translateY(0); }