/* ============================================
   SHARP SEO — Global Stylesheet
   Shared across all pages. Page-specific styles
   go in a <style> tag within each page.
   ============================================ */

/* --- VARIABLES --- */
:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.12);
    --cyan: #06b6d4;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-alt: #1a1a2e;
    --border: #1e1e2e;
    --text: #e4e4e7;
    --text-muted: #c4c4cc;
    --text-dim: #9a9aa6;
    --bg-footer: #080810;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 0.88rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { line-height: 1.15; color: #fff; }
h1 { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 700; }
.label { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-light); }
.gradient-text { background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-muted { color: var(--text-muted); }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 8px; font-weight: 700;
    cursor: pointer; transition: 0.3s var(--transition);
    text-decoration: none; gap: 8px; font-size: 0.88rem;
}
.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary-light); background: transparent; }
.btn-outline:hover { background: var(--primary-glow); }

/* --- HEADER --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: 64px;
    background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); z-index: 1000;
    display: flex; align-items: center; overflow: visible;
}
header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; }
.logo { font-weight: 900; color: var(--primary-light); text-decoration: none; font-size: 1.25rem; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: center; }
.logo-img { height: 31px; }
.logo-footer { height: 34px; }
nav { display: flex; gap: 32px; }
nav a { text-decoration: none; color: #fff; font-weight: 500; font-size: 0.88rem; transition: 0.2s; opacity: 0.8; }
nav a:hover { opacity: 1; }
.header-cta { padding: 8px 16px; }

/* --- MOBILE NAV --- */
.menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text); }
.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
    position: fixed; top: 0; left: -80%; width: 80%; max-width: 320px; height: 100%;
    background: var(--bg); z-index: 2000; transition: left 0.3s ease;
    padding: 80px 24px 24px; display: flex; flex-direction: column; gap: 24px;
    border-right: 1px solid var(--border); overflow-y: auto; overflow-x: hidden;
}
.mobile-drawer.open { left: 0; }
.mobile-drawer a { color: var(--text); text-decoration: none; font-size: 1.1rem; font-weight: 600; display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
.close-drawer { position: absolute; top: 20px; right: 16px; background: none; border: none; color: var(--text); cursor: pointer; }

/* --- CURRENCY SELECTOR --- */
.currency-wrap { position: relative; }
.currency-btn {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 8px;
    color: #fff; font-size: 0.78rem; font-weight: 600; padding: 6px 12px;
    cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s;
    letter-spacing: 0.02em;
}
.currency-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); }
.currency-btn svg { width: 12px; height: 12px; transition: transform 0.2s; }
.currency-wrap.open .currency-btn svg { transform: rotate(180deg); }
.currency-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all 0.2s ease; z-index: 1001;
}
.dropdown-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim); padding: 8px 12px 4px; display: block;
}
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.currency-wrap.open .currency-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.currency-option {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px;
    cursor: pointer; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); transition: 0.15s;
    border: none; background: none; width: 100%; text-align: left;
}
.currency-option:hover { background: rgba(255,255,255,0.06); color: #fff; }
.currency-option.active { color: var(--primary-light); font-weight: 600; }
.currency-option .cur-symbol { font-weight: 700; color: inherit; min-width: 18px; }

/* --- PRICING CARDS (shared homepage + pricing page) --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 40px 32px; transition: 0.3s;
    display: flex; flex-direction: column;
}
.price-card.featured {
    background: var(--bg-card-alt);
    border: 1px solid var(--primary);
    transform: scale(1.05);
    position: relative; z-index: 2;
}
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white;
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    padding: 4px 12px; border-radius: 100px; white-space: nowrap;
}
.price-card h3 { font-size: 1.4rem; font-weight: 800; }
.price-val { font-size: 2.5rem; font-weight: 900; margin: 20px 0 8px; }
.price-val span { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.price-desc { color: var(--text-muted); margin-bottom: 24px; }
.price-features { list-style: none; margin: 0 0 30px; display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; color: var(--text); flex: 1; }
.price-features li { display: flex; align-items: center; gap: 10px; }
.price-features li svg { color: var(--green); flex-shrink: 0; }
.pricing-note { text-align: center; margin-top: 40px; color: var(--text-muted); font-size: 0.9rem; }
.pricing-note a { color: var(--primary-light); text-decoration: none; border-bottom: 1px solid var(--primary-light); }

/* --- FAQ (shared) --- */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0; cursor: pointer; transition: 0.2s;
}
.faq-q h3 { font-size: 1rem; font-weight: 600; color: var(--text-muted); transition: 0.2s; }
.faq-q:hover h3 { color: #fff; }
.faq-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0; cursor: pointer; transition: 0.2s;
}
.faq-header h3 { font-size: 1rem; font-weight: 600; color: var(--text-muted); transition: 0.2s; }
.faq-header:hover h3 { color: #fff; }
.faq-chevron {
    width: 20px; height: 20px; color: var(--text-dim);
    transition: transform 0.3s ease; flex-shrink: 0;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-item.active .faq-q h3 { color: var(--primary-light); }
.faq-item.active .faq-header h3 { color: var(--primary-light); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.active .faq-a { max-height: 300px; }
.faq-item.active .faq-content { max-height: 200px; }
.faq-a p { color: var(--text-muted); padding-bottom: 24px; line-height: 1.8; }
.faq-content p { color: var(--text-muted); padding-bottom: 24px; line-height: 1.8; }

/* --- CTA SECTION (shared) --- */
.cta-section {
    background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 24px; padding: 80px 60px; overflow: hidden;
}
.cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.cta-grid h2 { margin-bottom: 16px; }
.cta-grid p { margin-bottom: 24px; }
.abstract-shapes { position: relative; width: 100%; height: 200px; }
.shape { position: absolute; border: 2px solid; border-radius: 50%; opacity: 0.15; }
.shape-1 { width: 200px; height: 200px; border-color: var(--primary); top: 0; left: 20%; }
.shape-2 { width: 120px; height: 120px; border-color: var(--cyan); bottom: 10px; right: 10%; }
.shape-3 { width: 80px; height: 80px; border-color: var(--primary-light); top: 30px; right: 30%; }

/* --- FOOTER --- */
footer { background: var(--bg-footer); padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { margin-bottom: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-col a:hover { color: white; }
.footer-col .logo { margin-bottom: 12px; }
.footer-tagline { font-size: 0.9rem; color: var(--text-dim); max-width: 240px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; color: var(--text-dim); font-size: 0.75rem; }

/* --- UTILITIES --- */
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* --- RESPONSIVE (shared elements only) --- */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: scale(1); }
    .cta-grid { grid-template-columns: 1fr; }
    .cta-section { padding: 60px 32px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    nav { display: none; }
    .menu-btn { display: flex; }
    .header-cta { display: none; }
    .logo { flex: 1; text-align: center; }
    .logo-img { height: 28px; }
    .logo-footer { height: 31px; }
    .desktop-only-lang { display: none; }
    section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-tagline { margin: 16px auto 0; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .abstract-shapes { display: none; }
    .cta-grid { text-align: center; }
    .cta-grid .btn { display: inline-block; }
    .cta-section { padding: 40px 24px; }
}
