/* ============================================
   MDN Plagiarism System — COMPONENTS V3
   Cards, Buttons, Badges — WHITE NACRÉ
   ============================================ */

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fz-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

.btn--primary {
  background: var(--g-btn);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(231, 0, 19, 0.25);
}

.btn--primary:hover {
  background: var(--g-btn-hover);
  box-shadow: 0 6px 30px rgba(231, 0, 19, 0.5);
  transform: translateY(-2px);
}

/* Shimmer overlay */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.btn--secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn--secondary:hover {
  background: #F8FAFB;
  border-color: rgba(231, 0, 19, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fz-base);
}

.btn--full {
  width: 100%;
}

/* ─── Cards — WHITE WITH SOFT SHADOWS ─── */
.card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Subtle gradient glow on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(231, 0, 19, 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(231, 0, 19, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: inline-block;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fz-xl);
  font-weight: var(--fw-semi);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.card__desc {
  font-size: var(--fz-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Feature Cards (Ecosystem) ─── */
.card--feature {
  padding: var(--space-8);
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.card--feature .card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(231, 0, 19,0.12) 0%, rgba(23,23,27,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  box-shadow: none;
}

/* ─── Detection Attack Cards ─── */
.attack-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.attack-card:hover {
  border-color: rgba(231, 0, 19, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.attack-card__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 0, 19, 0.08);
  border-radius: var(--radius-sm);
}

.attack-card__content h4 {
  font-size: var(--fz-base);
  font-weight: var(--fw-semi);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.attack-card__content p {
  font-size: var(--fz-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Module Cards ─── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.module-card {
  padding: var(--space-6);
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  border-color: rgba(231, 0, 19, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.module-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.module-card__icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 0, 19, 0.06);
  border-radius: var(--radius-sm);
}

.module-card__name {
  font-family: var(--font-mono);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semi);
  color: var(--cyan-500);
  letter-spacing: var(--tracking-wide);
}

.module-card__desc {
  font-size: var(--fz-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fz-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-wide);
}

.badge--cyan {
  background: rgba(231, 0, 19, 0.08);
  color: var(--cyan-600);
  border: 1px solid rgba(231, 0, 19, 0.15);
}

.badge--emerald {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-600);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge--amber {
  background: rgba(245, 158, 11, 0.08);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

/* ─── Stat Cards (Ecosystem) ─── */
.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: #FFFFFF;
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  border-color: rgba(231, 0, 19, 0.15);
  box-shadow: var(--shadow-md);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--fz-3xl);
  font-weight: var(--fw-bold);
  color: var(--cyan-500);
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: var(--fz-sm);
  color: var(--text-muted);
}

.stat-card__desc {
  font-size: var(--fz-xs);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

/* ─── Detection Grid (5-column bento) ─── */
.detection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (max-width: 1024px) { .detection-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .detection-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .detection-grid { grid-template-columns: 1fr; } }

.card--detection {
  padding: var(--space-5);
  text-align: center;
}
.card--detection .card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 0, 19, 0.06);
  border-radius: var(--radius-md);
}
.card--detection .card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan-500);
}
.card--detection .card__title {
  font-size: var(--fz-base);
}
.card--detection .card__text {
  font-size: var(--fz-xs);
  color: var(--text-secondary);
}

/* Card icon color variants */
.card__icon--alert { background: rgba(239, 68, 68, 0.06) !important; }
.card__icon--alert svg { stroke: var(--alert-red) !important; }
.card__icon--amber { background: rgba(245, 158, 11, 0.06) !important; }
.card__icon--amber svg { stroke: #B45309 !important; }

/* ─── Grid Variants (HTML uses grid--3, grid--4) ─── */
.grid--2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,0.06), rgba(15,23,42,0.06), transparent);
  margin: var(--space-9) 0;
}

/* ─── Source Card Volume ─── */
.source-card__volume {
  font-family: var(--font-display);
  font-size: var(--fz-2xl);
  font-weight: var(--fw-bold);
  color: var(--cyan-500);
  line-height: 1;
  margin-bottom: var(--space-1);
}

/* ─── Badge --new ─── */
.badge--new {
  display: inline-block;
  font-size: var(--fz-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-600);
  font-weight: var(--fw-semi);
  vertical-align: middle;
  margin-left: var(--space-2);
}

/* ─── Hero CTA (distinct from hero__actions) ─── */
.hero__cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-9);
}
@media (max-width: 768px) {
  .hero__cta { flex-direction: column; align-items: center; }
}

/* ─── Ghost Button Variant ─── */
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(231, 0, 19, 0.3);
  transform: translateY(-2px);
}
.btn--ghost::after { display: none; }

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fz-base);
}

/* ─── CTA Section Form ─── */
.cta-section {
  text-align: center;
  background: var(--bg-soft) !important;
  position: relative;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(231, 0, 19,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cta-section .container { position: relative; z-index: 1; }

.cta-section__form {
  max-width: 480px;
  margin: var(--space-8) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cta-section__input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fz-base);
  font-family: var(--font-body);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-section__input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(231, 0, 19, 0.1);
  outline: none;
}
.cta-section__input::placeholder { color: var(--text-muted); }

/* ─── SVGs inside nav and trust items ─── */
.nav__links svg,
.lang-switcher__btn svg,
.hero__trust-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.lang-switcher__btn svg.chev {
  width: 12px;
  height: 12px;
}
.hero__trust-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan-500);
}

/* ─── Card SVGs ─── */
.card__icon svg,
.card--feature .card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan-500);
  fill: none;
}

/* ─── Nav toggle (HTML uses nav__toggle class) ─── */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--text-primary);
}
.nav__toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
@media (max-width: 1220px) {
  .nav__toggle { display: block; }
}

/* ─── Nav mobile (HTML uses nav__mobile class) ─── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  backdrop-filter: blur(30px);
  z-index: var(--z-overlay);
  padding: var(--space-8) var(--space-6);
  flex-direction: column;
  gap: var(--space-5);
}
.nav__mobile.is-open {
  display: flex;
}
.nav__mobile a {
  font-size: var(--fz-xl);
  color: var(--text-primary);
  font-weight: var(--fw-semi);
}

/* ─── KPI Row ─── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-row { grid-template-columns: 1fr; } }

/* ─── Footer bottom ─── */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border-subtle);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
}
.footer__copy {
  font-size: var(--fz-xs);
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer__bottom { flex-direction: column; gap: var(--space-2); }
}

/* ─── Cursor ─── */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(231, 0, 19, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  will-change: transform;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background 0.25s, box-shadow 0.25s,
              opacity 0.25s;
}

#cursor.is-hover {
  width: 44px;
  height: 44px;
  border-color: rgba(231, 0, 19, 0.7);
  background: rgba(231, 0, 19, 0.04);
  box-shadow: 0 0 15px rgba(231, 0, 19, 0.1);
}

#cursor.is-laser {
  width: 32px;
  height: 32px;
  border-color: rgba(231, 0, 19, 0.6);
  box-shadow: 0 0 20px rgba(231, 0, 19, 0.2);
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--cyan-500);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  will-change: transform;
  box-shadow: 0 0 10px rgba(231, 0, 19, 0.6);
}

/* ─── Loading bar ─── */
#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--g-hero);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(231, 0, 19, 0.5);
}

/* ─── Intro overlay ─── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: #F7F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-skip {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  font-size: var(--fz-sm);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.intro-skip:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* ─── Three.js Canvas ─── */
#three-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  pointer-events: none;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .module-grid { grid-template-columns: 1fr; }
  .card { padding: var(--space-5); }
  .card--feature { padding: var(--space-6); }
}

/* ─── Profile Cards ─── */
.card--profile {
  border-top: 4px solid var(--cyan-400);
}

.card__checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fz-sm);
  color: var(--fg-muted);
}

.card__checklist li {
  padding-left: 0;
}

/* ─── Comparison Table ─── */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fz-sm);
}

.compare-table th,
.compare-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table th {
  background: var(--bg-surface);
  font-weight: var(--fw-semi);
  font-family: var(--font-display);
  font-size: var(--fz-sm);
  color: var(--fg-primary);
  position: sticky;
  top: 0;
}

.compare-table__brand {
  color: var(--cyan-600) !important;
  font-weight: var(--fw-bold) !important;
}

.compare-table tbody tr:hover {
  background: rgba(231, 0, 19, 0.03);
}

.compare-table__yes {
  color: var(--emerald-600);
  font-weight: var(--fw-medium);
}

.compare-table__no {
  color: var(--fg-muted);
  opacity: 0.6;
}

.compare-table__partial {
  color: #D97706;
  font-weight: var(--fw-medium);
}

/* ─── Matrice comparative détaillée (12 catégories) ─── */
.compare-table__group td {
  background: var(--bg-surface);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fz-sm);
  color: var(--cyan-600);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-top: var(--space-4) !important;
  padding-bottom: var(--space-2) !important;
}
.compare-table tbody tr.compare-table__group:hover { background: var(--bg-surface); }
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td.compare-table__yes,
.compare-table td.compare-table__no,
.compare-table td.compare-table__partial { text-align: center; font-size: var(--fz-lg); }
.compare-table th:first-child, .compare-table td:first-child { width: 60%; }
.compare-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center;
  margin-bottom: var(--space-5); font-size: var(--fz-sm); color: var(--fg-muted);
}
.compare-legend span { display: inline-flex; align-items: center; gap: 6px; }
.compare-legend b { font-size: var(--fz-lg); line-height: 1; }

/* ─── Preuve en pratique — badge résultat ─── */
.proof-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; padding: 6px 15px; margin-bottom: var(--space-3);
  border-radius: var(--radius-full);
  background: var(--g-hero); color: #fff;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fz-lg); line-height: 1; letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

/* ─── Aperçu produit — cadre navigateur ─── */
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.shot__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.shot__dot { width: 10px; height: 10px; border-radius: 50%; background: #d5d9dd; }
.shot__dot--r { background: #f0a5a5; }
.shot__dot--y { background: #f2ce8a; }
.shot__dot--g { background: #a8d8b0; }
.shot img { display: block; width: 100%; height: auto; }
.shot__cap { font-size: var(--fz-sm); color: var(--fg-muted); text-align: center; margin-top: var(--space-3); }
.showcase-hero { max-width: 960px; margin: 0 auto var(--space-9); }

/* ─── Sections moteurs (slides reproduites) ─── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8);
  align-items: center; margin-bottom: var(--space-9);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--rev .feature-row__media { order: -1; }
.feature-row__eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: var(--fz-xs);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan-600);
  margin-bottom: var(--space-3);
}
.feature-row__title { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin-bottom: var(--space-3); }
.feature-row__text { color: var(--text-secondary); margin-bottom: var(--space-4); line-height: 1.7; }
.feature-row__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); padding: 0; margin: 0; }
.feature-row__list li { padding-left: 1.7em; position: relative; color: var(--text-secondary); line-height: 1.5; }
.feature-row__list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--emerald-600); font-weight: 700; }
.feature-row__list strong { color: var(--fg-primary); font-weight: var(--fw-semi); }
[dir="rtl"] .feature-row__list li { padding-left: 0; padding-right: 1.7em; }
[dir="rtl"] .feature-row__list li::before { left: auto; right: 0; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--space-5); margin-bottom: var(--space-8); }
  .feature-row--rev .feature-row__media { order: 0; }
}

/* ─── Partenaires & white-label (partenariat technologique) ─── */
.section--alt { background: linear-gradient(180deg, #FAFAF7 0%, #F3F2EC 100%); }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-bottom: var(--space-8); }
.partner-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid rgba(15,23,42,0.07); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s; }
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--cyan-400); }
.partner-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #EEEDE7; border-bottom: 1px solid rgba(15,23,42,0.06); }
.partner-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s var(--ease-out); }
.partner-card:hover .partner-card__thumb img { transform: scale(1.05); }
.partner-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 5px; flex: 1; }
.partner-card__country { font-family: var(--font-display); font-size: var(--fz-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--cyan-600); }
.partner-card__name { font-size: var(--fz-lg); line-height: 1.25; margin: 0; }
.partner-card__role { font-size: var(--fz-sm); color: var(--text-secondary); flex: 1; }
.partner-card__visit { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-3); font-size: var(--fz-sm); font-weight: var(--fw-semi); color: var(--cyan-600); }
.partner-card__visit svg { width: 15px; height: 15px; transition: transform .2s; }
.partner-card:hover .partner-card__visit svg { transform: translate(2px, -2px); }
.partner-cta { max-width: 720px; margin: 0 auto; background: #FFFFFF; border: 1px solid rgba(15,23,42,0.08); border-radius: var(--radius-lg); padding: var(--space-7); text-align: center; box-shadow: var(--shadow-sm); }
.partner-cta h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: var(--space-2); }
.partner-cta > p { color: var(--text-secondary); max-width: 560px; margin: 0 auto var(--space-5); line-height: 1.6; }
.partner-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); text-align: left; }
.partner-form input, .partner-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(15,23,42,0.14); border-radius: var(--radius-md); background: #FFFFFF; color: var(--fg-primary); font: inherit; transition: border-color .2s; }
.partner-form input:focus, .partner-form textarea:focus { outline: none; border-color: var(--cyan-500); }
.partner-form textarea { grid-column: 1 / -1; min-height: 92px; resize: vertical; }
.partner-form .btn { grid-column: 1 / -1; justify-content: center; }
[dir="rtl"] .partner-form { text-align: right; }
[dir="rtl"] .partner-card__country { letter-spacing: 0; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .partner-grid { grid-template-columns: 1fr; } .partner-form { grid-template-columns: 1fr; } }

/* ─── FAQ Accordion ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
  border-color: var(--cyan-200);
  box-shadow: 0 2px 12px rgba(231, 0, 19, 0.06);
}

.faq-item summary {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: var(--fw-semi);
  font-family: var(--font-display);
  color: var(--fg-primary);
  font-size: var(--fz-base);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: color 0.2s;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cyan-500);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item[open] summary {
  color: var(--cyan-600);
}

.faq-item__body {
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--fz-sm);
  color: var(--fg-secondary);
  line-height: var(--leading-relaxed);
  animation: faqFadeIn 0.3s ease;
}

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

/* ─── Section backgrounds ─── */
.section--profiles {
  background: var(--bg-surface);
}

.section--compare {
  background: var(--bg-card);
}

.section--sources {
  background: var(--bg-surface);
}

/* ─── Forum Card ─── */
.card--forum {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  background: linear-gradient(135deg, #9B0F18 0%, #17171B 100%);
  color: #fff;
  border: none;
}

.card--forum h2 { color: #fff; font-size: var(--fz-2xl); margin-bottom: var(--space-4); }
.card--forum p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-5); }

.btn--outline {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
  background: transparent;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: var(--fw-semi);
  font-size: var(--fz-sm);
  transition: background 0.2s, border-color 0.2s;
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.forum__visual { display: flex; justify-content: center; }

.forum__avatars {
  display: flex;
  gap: -8px;
}

.forum__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  margin-left: -12px;
}
.forum__avatar:first-child { margin-left: 0; }

.forum__avatar--count {
  background: rgba(255,255,255,0.15) !important;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fz-sm);
}

@media (max-width: 768px) {
  .card--forum { grid-template-columns: 1fr; text-align: center; padding: var(--space-6); }
  .forum__visual { justify-content: center; margin-top: var(--space-4); }
}

/* ─── Social Proof / Trust ─── */
.section--trust { padding: var(--space-8) 0; }

.trust__label {
  text-align: center;
  font-size: var(--fz-sm);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}

.trust__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust__logo {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: var(--fz-base);
  color: var(--fg-muted);
  opacity: 0.6;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.trust__logo:hover { opacity: 1; }

/* ─── Source Cards ─── */
.card--source {
  text-align: center;
  padding: var(--space-5) var(--space-4);
}

.source-logo {
  height: 48px;
  max-width: 140px;
  display: block;
  margin: 0 auto var(--space-4);
  object-fit: contain;
}

.source-logo-text {
  display: inline-flex;
  height: 48px;
  padding: 0 var(--space-4);
  align-items: center;
  justify-content: center;
  background: var(--fg-primary);
  color: var(--bg-primary);
  border-radius: var(--radius);
  margin: 0 auto var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fz-sm);
  letter-spacing: 0.12em;
}

.source-volume {
  color: var(--cyan-600);
  font-size: var(--fz-xl);
  font-weight: var(--fw-bold);
  display: block;
  font-family: var(--font-display);
}

.source-label {
  font-size: var(--fz-sm);
  color: var(--fg-muted);
  margin-bottom: var(--space-3);
}

.source-desc {
  font-size: var(--fz-xs);
  color: var(--fg-secondary);
  min-height: 2.5em;
  line-height: var(--leading-relaxed);
}

.source-link {
  font-size: var(--fz-xs);
  margin-top: var(--space-3);
  display: inline-block;
  color: var(--cyan-500);
  text-decoration: none;
  transition: color 0.2s;
}

.source-link:hover {
  color: var(--cyan-600);
  text-decoration: underline;
}

/* ─── Internal Corpus Card ─── */
.card--corpus {
  text-align: center;
  padding: var(--space-6);
  border: 2px solid var(--cyan-200);
  background: linear-gradient(135deg, rgba(231, 0, 19,0.04), rgba(23,23,27,0.03));
}

/* ─── Responsive extras ─── */
@media (max-width: 768px) {
  .compare-table { font-size: var(--fz-xs); }
  .compare-table th,
  .compare-table td { padding: var(--space-2) var(--space-3); }

  .faq-item summary { font-size: var(--fz-sm); padding: var(--space-3) var(--space-4); }
  .faq-item__body { padding: 0 var(--space-4) var(--space-3); font-size: var(--fz-xs); }
}

@media (pointer: coarse) {
  #cursor, #cursor-dot { display: none !important; }
  body { cursor: auto !important; }
  .btn, .card, .attack-card, .module-card, a, button, input, textarea {
    cursor: pointer !important;
  }
}

/* ─── Mobile polish ─── */
/* Expanded burger menu must scroll on short screens */
.nav__mobile { overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* Long gradient/headings wrap instead of being clipped by body overflow-x:hidden */
h1, h2, h3, h4,
.hero__title, .text-gradient,
.section__head h2, .section__head h3 { overflow-wrap: break-word; }
@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.1rem, 8.5vw, 3.2rem); }
  .nav__mega-title, .nav__dd-item { white-space: normal; }
}
