/* FaceShield Website - Main Stylesheet */

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

:root {
    --bg-start: #5867E8;
    --bg-mid: #8757E0;
    --bg-end: #A05DEC;
    --text-primary: rgba(255,255,255,0.96);
    --text-secondary: rgba(255,255,255,0.78);
    --text-tertiary: rgba(255,255,255,0.55);
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.16);
    --accent: #A78BFA;
    --accent-bright: #fff;
    --shadow: rgba(0,0,0,0.25);
    --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL support for Arabic */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav-links, html[dir="rtl"] .footer-links { flex-direction: row-reverse; }

/* Decorative glow */
body::before {
    content: '';
    position: fixed;
    top: -200px; left: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* HEADER */
.site-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(70, 85, 200, 0.35);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: inherit;
}
.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: 0 4px 12px var(--shadow);
}
.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* Language switcher */
.lang-switcher {
    position: relative;
}
.lang-btn {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.18); }
.lang-btn .arrow { font-size: 10px; opacity: 0.7; }
.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(50, 50, 80, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 11px;
    padding: 5px;
    list-style: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    min-width: 170px;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}
.lang-menu.open { display: block; }
.lang-menu li button {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
}
.lang-menu li button:hover { background: rgba(255,255,255,0.10); }
.lang-menu li button.active { background: rgba(255,255,255,0.16); font-weight: 600; }
.lang-flag { font-size: 16px; }

/* HERO */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}
.hero-logo {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    margin: 0 auto 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    display: block;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #fff 0%, #E0E0FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-tagline {
    font-size: clamp(16px, 2.4vw, 21px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.5;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: #4530a0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255,255,255,0.10);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
}
.hero-cta-secondary:hover { background: rgba(255,255,255,0.15); }

/* SECTIONS */
section.content-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
}
.section-eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}
.section-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.8px;
    text-align: center;
    margin-bottom: 14px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    text-align: center;
    max-width: 620px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 30px;
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s, background 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}
.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 30px;
}
.step {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
}
.step-number {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: white;
    color: #4530a0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 14px;
}
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-desc { color: var(--text-secondary); font-size: 13.5px; }

/* Privacy banner */
.privacy-banner {
    background: linear-gradient(135deg, rgba(80,210,140,0.16), rgba(120,160,250,0.16));
    border: 1px solid rgba(120,250,180,0.30);
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    margin-top: 30px;
}
.privacy-banner-icon { font-size: 38px; margin-bottom: 12px; }
.privacy-banner h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.privacy-banner p { color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 24px 30px;
    margin-top: 60px;
    background: rgba(40,40,80,0.25);
    backdrop-filter: blur(10px);
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links {
    display: flex;
    gap: 22px;
    list-style: none;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.copyright {
    color: var(--text-tertiary);
    font-size: 12px;
    text-align: center;
    width: 100%;
    margin-top: 18px;
}

/* CONTENT PAGES (privacy, support) */
.doc-page {
    max-width: 780px;
    margin: 60px auto;
    padding: 0 24px;
}
.doc-page h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.doc-meta {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-bottom: 36px;
}
.doc-page h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--text-primary);
}
.doc-page h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 22px 0 8px;
}
.doc-page p, .doc-page li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}
.doc-page ul {
    padding-left: 24px;
    margin-bottom: 14px;
}
.doc-page strong { color: var(--text-primary); font-weight: 700; }
.doc-page a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(167,139,250,0.4);
}
.doc-page a:hover { color: var(--text-primary); border-bottom-color: white; }

.doc-callout {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 22px 0;
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-q::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    transition: max-height 0.3s, padding 0.3s;
}
.faq-item.open .faq-a {
    padding: 0 20px 18px;
    max-height: 500px;
}

/* RESPONSIVE */
@media (max-width: 720px) {
    .nav-links { display: none; }
    .hero { padding: 56px 20px 40px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .header-inner { padding: 12px 18px; gap: 10px; }
    .hero-cta-secondary { margin-left: 0; margin-top: 10px; display: inline-flex; }
}
