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

:root {
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-dark: #0E2D1F;
  --accent: #4ADE80;
  --accent-light: #86EFAC;
  --gold: #C5A55A;
  --bg: #FAFBFA;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F2;
  --text: #1A1A2E;
  --text-muted: #5F6B6A;
  --border: #E5E7EB;
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 8px 28px rgba(27, 67, 50, 0.1);
  --shadow-lg: 0 20px 60px rgba(27, 67, 50, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 250, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.lang-toggle {
  display: flex;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn.active {
  background: var(--primary);
  color: white;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 20px 90px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: white;
  margin-bottom: 20px;
}

.accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: white;
  color: var(--primary);
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: not-allowed;
  border: none;
  font-family: inherit;
  opacity: 0.95;
  transition: all 0.25s;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-btn-small {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 500;
}

.store-btn-large {
  font-size: 15px;
  font-weight: 800;
}

/* ============ FEATURE BLOCK ============ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-block.reverse .feature-text { order: 2; }
.feature-block.reverse .feature-widget { order: 1; }

.feature-text .feature-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--primary);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.feature-text h3 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-text ul {
  list-style: none;
}

.feature-text li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
  font-size: 14px;
}

.feature-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ WIDGETS ============ */
.widget {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.widget-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.widget-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0.05); }
}

/* ============ JOB CARD WIDGET ============ */
.job-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  animation: slideIn 0.5s ease-out backwards;
}

.job-card:nth-child(2) { animation-delay: 0.1s; }
.job-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge-88 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(74, 222, 128, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.badge-88-conf {
  font-size: 9px;
  opacity: 0.7;
  padding-left: 6px;
  border-left: 1px solid rgba(27, 67, 50, 0.2);
}

.job-time {
  font-size: 11px;
  color: var(--text-muted);
}

.job-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.job-company {
  font-size: 12px;
  color: var(--primary-light);
  margin-bottom: 6px;
}

.job-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.job-rate {
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
}

/* ============ FILTER WIDGET ============ */
.filter-row-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  margin-top: 12px;
}

.filter-row-label:first-child { margin-top: 0; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  padding: 7px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============ PAYSLIP WIDGET ============ */
.payslip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  animation: slideIn 0.4s ease-out backwards;
}

.payslip-row:nth-child(2) { animation-delay: 0.1s; }
.payslip-row:nth-child(3) { animation-delay: 0.2s; }

.payslip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.payslip-info {
  flex: 1;
  min-width: 0;
}

.payslip-employer {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.payslip-date {
  font-size: 11px;
  color: var(--text-muted);
}

.payslip-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* ============ COUNTER 88J WIDGET ============ */
.counter-88 {
  text-align: center;
  padding: 8px 0 16px;
}

.counter-big {
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 6px;
}

.counter-big .counter-current {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.counter-progress {
  height: 10px;
  background: var(--surface-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.counter-progress-fill {
  height: 100%;
  width: 67%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 999px;
  position: relative;
}

.counter-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.counter-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ SCANNER STATS ============ */
.scanner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.scanner-stat {
  text-align: center;
  padding: 14px 8px;
  background: var(--surface-soft);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.scanner-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.scanner-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scanner-sources {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  justify-content: center;
}

.source-tag {
  padding: 4px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

/* ============ SECTION ALT ============ */
.section-alt {
  background: var(--surface-soft);
}

/* ============ CTA FINAL ============ */
.cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-container {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 1;
}

.cta-section h2 {
  color: white;
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 16px;
  letter-spacing: -1px;
  font-weight: 800;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 36px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 20px 24px;
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

/* ============ LEGAL PAGES ============ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.legal-page h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.6px;
}

.legal-page .last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-page strong {
  color: var(--primary);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

/* ============ CONTACT PAGE ============ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 28px;
  margin-top: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: 22px;
  margin-bottom: 14px;
  margin-top: 0;
  color: var(--primary);
}

.contact-card p {
  margin-bottom: 22px;
  color: var(--text-muted);
}

.contact-email {
  display: inline-block;
  padding: 13px 28px;
  background: var(--primary);
  color: white !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.25s;
}

.contact-email:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ============ RESPONSIVE MOBILE ============ */
@media (max-width: 768px) {
  .hero { padding: 50px 16px 60px; }
  .hero h1 { letter-spacing: -1px; }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 16px;
  }

  .feature-block.reverse .feature-text { order: 1; }
  .feature-block.reverse .feature-widget { order: 2; }

  .widget {
    padding: 20px;
    border-radius: 20px;
  }

  .counter-big { font-size: 52px; }

  .cta-section { padding: 60px 16px; }

  .footer-links { gap: 16px; }

  .legal-page { padding: 40px 16px 60px; }
}

@media (max-width: 480px) {
  .nav-container { padding: 12px 16px; }
  .logo { font-size: 16px; }
  .lang-btn { padding: 5px 12px; font-size: 12px; }
  .store-btn { padding: 11px 20px; }
  .store-btn-large { font-size: 14px; }
}

/* ============ TRANSLATION SYSTEM ============ */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="fr"] { display: none; }
body.lang-en [data-lang="en"] { display: block; }
body.lang-en .nav .lang-btn,
.lang-btn { display: inline-flex !important; }