/* Variables & Reset */
:root {
    --primary-color: #007aff;
    --primary-dark: #005ecb;
    --accent-purple: #833ab4;
    --accent-red: #fd1d1d;
    --accent-orange: #fcb045;
    --dark-bg: #0a0c10;
    --dark-surface: #161b22;
    --dark-surface-2: #1f2531;
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --border-color: rgba(240, 246, 252, 0.1);
    --gradient-faceapp: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --gradient-text: linear-gradient(90deg, #3399ff, #833ab4);
    --font-main: 'Inter', sans-serif;
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.btn--sm:hover { background: rgba(255,255,255,0.2); }

.btn--lg {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 50px;
}

.btn--glow {
    background: var(--gradient-faceapp);
    color: white;
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.4);
}
.btn--glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 114, 255, 0.6);
}

.btn--white {
    background: white;
    color: var(--primary-color);
    padding: 12px 28px;
}
.btn--white:hover { opacity: 0.9; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.navbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.logo__icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-faceapp);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.logo__text span { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}
.nav-link:hover { color: var(--text-main); }

.nav-link--support { color: #2AABEE; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-link { font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.mobile-link.highlight { color: #2AABEE; border: none; }

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 198, 255, 0.1);
    color: #00c6ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 198, 255, 0.2);
}
.badge__dot { width: 6px; height: 6px; background: #00c6ff; border-radius: 50%; box-shadow: 0 0 5px #00c6ff; }

.hero__title {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero__desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

/* Promo Widget */
.promo-widget {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 20px;
    display: inline-block;
    margin-bottom: 40px;
    min-width: 300px;
}
.promo-widget__label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.promo-widget__box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px dashed #444;
    transition: 0.3s;
    position: relative;
}
.promo-widget__box:hover { border-color: var(--primary-color); background: rgba(0, 114, 255, 0.1); }
.code-text { font-family: monospace; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--primary-color); }
.copy-icon { color: var(--text-muted); }
.tooltip {
    position: absolute;
    top: -30px;
    right: 0;
    background: #00ff88;
    color: #000;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    pointer-events: none;
}
.tooltip.show { opacity: 1; transform: translateY(0); }

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.trust-badges {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}
.trust-item { display: flex; align-items: center; gap: 6px; }

/* Visual Mockup */
.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #2a2a2a;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 2;
}
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background: #2a2a2a; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 10; }

.phone-screen {
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1544005313-94ddf0286df2?ixlib=rb-4.0.3&auto=format&fit=crop&w=688&q=80') center/cover;
    position: relative;
}
.phone-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
}

.app-header { position: absolute; top: 40px; left: 20px; display: flex; align-items: center; gap: 10px; }
.app-avatar { width: 30px; height: 30px; background: var(--gradient-faceapp); border-radius: 50%; }
.app-name { font-weight: 700; font-size: 14px; }

.app-preview {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    animation: scan 3s infinite ease-in-out;
}
.before-after-label {
    position: absolute;
    top: -30px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.app-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.control-circle { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 50%; backdrop-filter: blur(5px); }
.control-circle.active { background: var(--primary-color); border: 2px solid white; }

.float-card {
    position: absolute;
    background: var(--dark-surface);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}
.float-card i { color: var(--primary-color); }
.float-card--1 { top: 100px; right: -20px; animation-delay: 0s; }
.float-card--2 { bottom: 100px; left: -40px; animation-delay: 2s; }

/* Features */
.features { padding: 100px 0; background: #0f1219; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 36px; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 18px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--dark-surface);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}
.color-1 { background: linear-gradient(135deg, #FF9966, #FF5E62); }
.color-2 { background: linear-gradient(135deg, #56CCF2, #2F80ED); }
.color-3 { background: linear-gradient(135deg, #D4FC79, #96E6A1); color: #333; }
.color-4 { background: linear-gradient(135deg, #F2994A, #F2C94C); }

/* Steps */
.steps-section { padding: 100px 0; }
.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
}

.step-card {
    position: relative;
    background: var(--dark-surface-2);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 20px;
}
.step-info h3 { font-size: 18px; margin-bottom: 10px; }
.step-info p { color: var(--text-muted); font-size: 14px; }
.code-highlight { color: var(--accent-purple); font-weight: 700; background: rgba(131, 58, 180, 0.1); padding: 2px 6px; border-radius: 4px; }

.cta-banner {
    background: var(--gradient-faceapp);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.cta-content h3 { font-size: 24px; margin-bottom: 8px; color: white; }
.cta-content p { color: rgba(255,255,255,0.9); }

/* FAQ */
.faq-section { padding: 80px 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    padding: 20px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    padding-bottom: 20px;
    color: var(--text-muted);
    display: none;
    font-size: 15px;
}
.faq-item.active .faq-answer { display: block; animation: slideDown 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); transition: 0.3s; }

/* Footer */
.footer { background: #050608; padding: 60px 0 30px; border-top: 1px solid var(--border-color); }
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; }
.footer-links { display: flex; gap: 30px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}
.footer-bottom p { color: #555; font-size: 13px; }
.disclaimer { margin-top: 10px; font-size: 11px; color: #444; }

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 114, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 114, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 114, 255, 0); }
}
.pulse { animation: pulse 2s infinite; }

@keyframes scan {
    0% { top: 10%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    .hero__container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero__title { font-size: 36px; }
    .hero__desc { margin-left: auto; margin-right: auto; }
    .hero__actions { align-items: center; }
    .promo-widget { margin: 0 auto 30px; display: inline-block; }
    .nav-links, .btn--sm { display: none; } /* Hide desktop nav */
    .mobile-toggle { display: flex; }
    
    .phone-frame { margin: 0 auto; width: 240px; height: 480px; }
    .float-card { display: none; } /* Hide float cards on mobile to clean up */
    
    .section-title { font-size: 28px; }
    .cta-banner { flex-direction: column; text-align: center; }
    .cta-banner .btn { width: 100%; }
    
    .footer-top { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 15px; }
}
