/* ═══════════════════════════════════════════
   Fairlytics — Marketing Site Styles
   Color-rich, clean, modern
   ═══════════════════════════════════════════ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; color: #0f172a; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: #7c3aed; text-decoration: none; }
a:hover { text-decoration: underline; color: #4f46e5; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Selection & scrollbar ─────────────── */
::selection { background: rgba(124,58,237,0.15); color: #312e81; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #a78bfa; }

/* ── Buttons ─────────────────────────────── */
.btn { display: inline-block; padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 0.95em; border: none; cursor: pointer; text-decoration: none; transition: all 0.25s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,0.4); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-outline { background: transparent; border: 2px solid #ddd6fe; color: #6d28d9; }
.btn-outline:hover { border-color: #a78bfa; color: #7c3aed; background: rgba(124,58,237,0.04); transform: translateY(-2px); }
.btn-lg { padding: 14px 34px; font-size: 1.05em; }
.btn-sm { padding: 6px 14px; font-size: 0.85em; }
.btn-white { background: #fff; color: #4f46e5; font-weight: 700; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ── Nav — frosted glass ─────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(229,231,235,0.6); padding: 14px 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 1.25em; font-weight: 800; background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #475569; font-size: 0.92em; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #7c3aed; text-decoration: none; }
.lang-toggle { border: 1px solid #c4b5fd; padding: 2px 10px; border-radius: 6px; font-weight: 700; font-size: 0.78em !important; color: #7c3aed !important; transition: background 0.2s; }
.lang-toggle:hover { background: #f5f3ff; }

/* ── Hero — vivid gradient background ────── */
.hero { text-align: center; padding: 100px 20px 80px; position: relative; overflow: hidden; background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4f46e5 100%); color: #fff; }
/* floating color orbs */
.hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 65%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 65%); pointer-events: none; }
.hero h1 { font-size: 3.4em; font-weight: 800; line-height: 1.08; margin-bottom: 20px; letter-spacing: -0.03em; position: relative; }
.hero h1 span { background: linear-gradient(135deg, #a5b4fc 0%, #67e8f9 50%, #c4b5fd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15em; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 36px; position: relative; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero .btn-primary { background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%); border: 1px solid rgba(255,255,255,0.15); }
.hero .btn-primary:hover { box-shadow: 0 6px 24px rgba(99,102,241,0.5); }
.hero .btn-outline { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.9); }
.hero .btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); color: #fff; }

/* snippet preview inside hero */
.snippet-preview { background: rgba(0,0,0,0.4); color: #e2e8f0; padding: 20px 24px; border-radius: 12px; font-family: monospace; font-size: 0.85em; max-width: 600px; margin: 40px auto 0; text-align: left; white-space: pre-wrap; word-break: break-all; position: relative; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px); }

/* ── Features — colorful icon containers ─── */
.features { padding: 80px 0; background: #fff; }
.features h2 { text-align: center; font-size: 2.1em; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.features .section-subtitle { text-align: center; color: #64748b; font-size: 1.05em; margin-bottom: 52px; max-width: 520px; margin-left: auto; margin-right: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 28px; background: #fff; border: 1px solid rgba(199,210,254,0.3); border-radius: 16px; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(79,70,229,0.08); }
.feature-card h3 { font-size: 1.05em; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: #64748b; font-size: 0.9em; line-height: 1.5; }
.feature-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 1.4em; margin-bottom: 16px; }
/* Each feature gets its own color — visual variety */
.feature-card:nth-child(1) .feature-icon { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.feature-card:nth-child(2) .feature-icon { background: linear-gradient(135deg, #fce7f3, #fdf2f8); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, #fef3c7, #fffbeb); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, #d1fae5, #ecfdf5); }
.feature-card:nth-child(5) .feature-icon { background: linear-gradient(135deg, #cffafe, #ecfeff); }
.feature-card:nth-child(6) .feature-icon { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }
/* colored hover accents per card */
.feature-card:nth-child(1):hover { border-color: #c7d2fe; }
.feature-card:nth-child(2):hover { border-color: #fbcfe8; }
.feature-card:nth-child(3):hover { border-color: #fde68a; }
.feature-card:nth-child(4):hover { border-color: #a7f3d0; }
.feature-card:nth-child(5):hover { border-color: #a5f3fc; }
.feature-card:nth-child(6):hover { border-color: #c4b5fd; }

/* ── How it works ────────────────────────── */
.how-it-works { padding: 80px 0; background: linear-gradient(180deg, #faf9ff 0%, #f5f3ff 100%); }
.how-it-works h2 { text-align: center; font-size: 2.1em; font-weight: 800; margin-bottom: 52px; letter-spacing: -0.02em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: #fff; border-radius: 14px; font-weight: 800; font-size: 1.2em; margin-bottom: 18px; }
/* each step gets a different gradient */
.steps > div:nth-child(1) .step-num { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 4px 14px rgba(79,70,229,0.35); }
.steps > div:nth-child(2) .step-num { background: linear-gradient(135deg, #ec4899, #f43f5e); box-shadow: 0 4px 14px rgba(236,72,153,0.35); }
.steps > div:nth-child(3) .step-num { background: linear-gradient(135deg, #06b6d4, #0ea5e9); box-shadow: 0 4px 14px rgba(6,182,212,0.35); }
.steps h3 { margin-bottom: 8px; font-weight: 700; }
.steps p { color: #64748b; font-size: 0.92em; }

/* ── CTA Banner — indigo → rose gradient ─── */
.cta-banner { padding: 72px 0; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #ec4899 100%); text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 500px; background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 65%); pointer-events: none; }
.cta-banner h2 { font-size: 2em; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-banner p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05em; position: relative; }
.cta-banner .btn { position: relative; }

/* ── Pricing — colorful featured card ─────── */
.pricing { padding: 80px 0; }
.pricing h1, .pricing h2 { text-align: center; margin-bottom: 12px; font-weight: 800; letter-spacing: -0.02em; }
.pricing .subtitle { text-align: center; color: #64748b; margin-bottom: 48px; font-size: 1.05em; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 940px; margin: 0 auto; }
.price-card { border: 1px solid rgba(199,210,254,0.3); border-radius: 16px; padding: 36px 24px; text-align: center; transition: all 0.3s ease; background: #fff; }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(79,70,229,0.08); }
/* featured card — gradient border + tinted bg */
.price-card.featured { position: relative; border: 2px solid transparent; background-origin: border-box; background-clip: padding-box, border-box; background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899); }
.price-card.featured:hover { box-shadow: 0 12px 32px rgba(79,70,229,0.18); }
.price-card.featured::after { content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; padding: 3px 18px; border-radius: 20px; font-size: 0.78em; font-weight: 600; white-space: nowrap; }
.price-card h3 { font-size: 1.15em; font-weight: 700; margin-bottom: 8px; }
.price-amount { font-size: 3em; font-weight: 800; background: linear-gradient(135deg, #0f172a, #334155); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-card.featured .price-amount { background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-amount span { font-size: 0.38em; font-weight: 400; -webkit-text-fill-color: #64748b; }
.price-card ul { list-style: none; margin: 20px 0; text-align: left; }
.price-card li { padding: 7px 0; font-size: 0.9em; color: #475569; border-bottom: 1px solid #f5f3ff; }
.price-card li::before { content: "✓ "; color: #10b981; font-weight: 700; }
.price-card .btn { width: 100%; margin-top: 16px; }

/* ── Page content ────────────────────────── */
.page-header { padding: 52px 0; background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 40%, #f5f3ff 100%); border-bottom: 1px solid rgba(199,210,254,0.3); text-align: center; }
.page-header h1 { font-size: 2em; font-weight: 800; margin-bottom: 8px; background: linear-gradient(135deg, #312e81, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-header p { color: #64748b; }
.page-content { padding: 48px 0; max-width: 720px; margin: 0 auto; }
.page-content h2 { font-size: 1.3em; margin: 28px 0 12px; color: #312e81; font-weight: 700; }
.page-content p, .page-content li { margin-bottom: 12px; color: #475569; }
.page-content ul { padding-left: 24px; }

/* ── Contact form ────────────────────────── */
.contact-form { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9em; font-weight: 500; color: #334155; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1.5px solid #e9e5f5; border-radius: 10px; font-size: 0.95em; font-family: inherit; transition: all 0.2s; background: #faf9ff; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 4px rgba(129,140,248,0.15); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 0.9em; }
.form-msg.success { background: linear-gradient(135deg, #ecfdf5, #f0fdf4); color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.error { background: linear-gradient(135deg, #fef2f2, #fff1f2); color: #991b1b; border: 1px solid #fecaca; }

/* ── Blog ────────────────────────────────── */
.blog-list { list-style: none; }
.blog-list li { padding: 20px; border-bottom: none; margin-bottom: 12px; border-radius: 12px; border: 1px solid #f1f5f9; transition: all 0.25s ease; }
.blog-list li:hover { border-color: #c7d2fe; box-shadow: 0 4px 16px rgba(79,70,229,0.06); transform: translateY(-2px); }
.blog-list h3 { margin-bottom: 4px; }
.blog-list h3 a { color: #0f172a; text-decoration: none; }
.blog-list h3 a:hover { color: #7c3aed; text-decoration: none; }
.blog-list .date { font-size: 0.82em; color: #a5b4fc; font-weight: 500; }
.blog-list p { color: #64748b; font-size: 0.92em; margin-top: 6px; }

/* ── Footer — deep with gradient hint ────── */
.footer { padding: 52px 0 24px; background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%); color: #94a3b8; }
.footer h4 { color: #e2e8f0; margin-bottom: 12px; font-size: 0.82em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.footer a { color: #94a3b8; display: block; font-size: 0.88em; margin-bottom: 8px; transition: color 0.2s; }
.footer a:hover { color: #c4b5fd; text-decoration: none; }
.footer-desc { font-size: 0.88em; line-height: 1.5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 0.82em; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 2.2em; }
  .feature-grid, .steps, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn) { display: none; }
  .price-card.featured { margin-top: 16px; }
}
