/* ================================================================
   CV Foundry — Landing Page Production Styles
   Premium editorial: navy + electric blue + gold accent
   Light / Dark / Auto theme · RTL support · Mobile responsive
================================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --brand-navy: #0a1430;
  --brand-navy-2: #0f1e3f;
  --brand-navy-3: #14264f;
  --brand-blue: #2d6cdf;
  --brand-blue-soft: #4f8bff;
  --brand-gold: #f5b72e;
  --brand-gold-soft: #fcd575;
  --brand-cream: #fbfaf7;
  --brand-cream-2: #f3eee2;

  /* Density */
  --density-section: 120px;
  --density-block: 28px;

  /* Type pair */
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Accent shape (star | sparkle | dot | diamond) */
  --accent-style: "star";

  color-scheme: light dark;
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg: var(--brand-cream);
  --bg-2: #ffffff;
  --bg-elev: #ffffff;
  --bg-section-alt: var(--brand-cream-2);
  --ink: #0a1430;
  --ink-2: #2d3554;
  --ink-3: #5a6280;
  --ink-rule: rgba(10, 20, 48, 0.12);
  --ink-faint: rgba(10, 20, 48, 0.06);
  --primary: var(--brand-blue);
  --primary-ink: #ffffff;
  --accent: var(--brand-gold);
  --hero-bg: var(--brand-navy);
  --hero-ink: #ffffff;
  --hero-ink-2: rgba(255, 255, 255, 0.72);
  color-scheme: light;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --bg: #07112a;
  --bg-2: var(--brand-navy);
  --bg-elev: var(--brand-navy-2);
  --bg-section-alt: #0c1a3a;
  --ink: #f6f3ea;
  --ink-2: #d6dbeb;
  --ink-3: #a3aac4;
  --ink-rule: rgba(255, 255, 255, 0.12);
  --ink-faint: rgba(255, 255, 255, 0.04);
  --primary: var(--brand-blue-soft);
  --primary-ink: #06122e;
  --accent: var(--brand-gold);
  --hero-bg: #050b1f;
  --hero-ink: #ffffff;
  --hero-ink-2: rgba(255, 255, 255, 0.7);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--primary); color: var(--primary-ink);
  padding: 8px 18px; border-radius: 0 0 8px 8px;
  font-size: 14px; font-weight: 600;
  z-index: 200; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 940px; margin: 0 auto; padding: 0 32px; }
section { padding-block: var(--density-section); position: relative; }
.section-alt { background: var(--bg-section-alt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6;
}
[dir="rtl"] .eyebrow::before { display: none; }
[dir="rtl"] .eyebrow::after {
  content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); }
h2 .em { color: var(--accent); font-style: italic; }
h2 .em-primary { color: var(--primary); font-style: italic; }
h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 600; }
h4 { font-size: 19px; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.005em; }

p { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 60ch; line-height: 1.6; padding-top: 14px; }

.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.header.scrolled { border-bottom-color: var(--ink-rule); }
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background-image: url("assets/logo.png");
  background-size: cover; background-position: center;
  box-shadow: 0 4px 14px rgba(45, 108, 223, 0.25);
}
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-name .em { color: var(--accent); font-style: italic; }

.nav { display: flex; align-items: center; gap: 28px; margin-inline-start: 24px; }
.nav a {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  position: relative; padding: 6px 0;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-tools {
  display: flex; align-items: center; gap: 8px;
  margin-inline-start: auto;
}
.tool-btn {
  height: 38px; padding: 0 12px; min-width: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 99px; border: 1px solid var(--ink-rule);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  background: transparent;
  transition: all 0.18s ease;
}
.tool-btn:hover { color: var(--ink); border-color: var(--ink); background: var(--ink-faint); }
.tool-btn svg { width: 16px; height: 16px; }
.lang-current { font-variant: small-caps; letter-spacing: 0.05em; }

.btn-cta {
  height: 40px; padding: 0 18px;
  background: var(--ink); color: var(--bg);
  border-radius: 99px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }

/* ---------- Mobile hamburger ---------- */
.hamburger {
  display: none; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 8px; padding: 0;
  color: var(--ink);
}
.hamburger svg { width: 22px; height: 22px; }
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,20,48,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadein 0.18s ease;
}
.mobile-nav.show { display: flex; }
.mobile-nav-card {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-elev);
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.2);
  animation: slidein-right 0.25s ease;
}
[dir="rtl"] .mobile-nav-card {
  right: auto; left: 0;
  box-shadow: 8px 0 40px rgba(0,0,0,0.2);
  animation: slidein-left 0.25s ease;
}
@keyframes slidein-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slidein-left { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mobile-nav-close {
  align-self: flex-end; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; margin-bottom: 8px;
}
.mobile-nav-close:hover { background: var(--ink-faint); }
.mobile-nav-card a {
  display: block; padding: 14px 16px; border-radius: 12px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  transition: background 0.15s ease;
}
.mobile-nav-card a:hover { background: var(--ink-faint); }
.mobile-nav-card .btn-cta {
  margin-top: 12px; justify-content: center; height: 48px; font-size: 16px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg); color: var(--hero-ink);
  padding-top: 96px; padding-bottom: 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(45, 108, 223, 0.45), transparent 60%),
    radial-gradient(700px 500px at 10% 20%, rgba(245, 183, 46, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { color: var(--hero-ink); }
.hero h1 .em { color: var(--accent); font-style: italic; }

.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 99px;
  font-size: 13px; color: var(--hero-ink-2); font-weight: 500;
  margin-bottom: 36px;
}
.hero-chip-tag {
  background: var(--accent); color: #1a1300;
  padding: 3px 10px; border-radius: 99px; font-size: 11px;
  letter-spacing: 0.04em; font-weight: 700; text-transform: uppercase;
}
.hero-sub {
  margin: 28px auto 0; max-width: 640px;
  font-size: 20px; color: var(--hero-ink-2); line-height: 1.55;
}

.hero-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 44px;
}
.store-badge {
  height: 56px; padding: 0 22px; border-radius: 14px;
  background: #ffffff; color: #0a1430;
  display: inline-flex; align-items: center; gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store-badge .sb-small { font-size: 11px; opacity: 0.7; }
.store-badge .sb-big { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.hero-meta {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 14px;
  color: var(--hero-ink-2); font-size: 13px;
}
.hero-stars { color: var(--accent); letter-spacing: 2px; }

.hero-fan {
  position: relative;
  margin-top: 80px; padding-bottom: 40px;
  height: 620px;
}
.fan-phone {
  position: absolute; left: 50%; top: 30px;
  width: 280px; height: 580px;
  border-radius: 38px;
  background: #000; padding: 8px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fan-phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 30px;
}
.fan-phone::after {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 18px; background: #000; z-index: 2;
}
.fan-phone-1 { transform: translateX(-50%) rotate(-12deg) translateX(-260px) translateY(40px); z-index: 1; }
.fan-phone-2 { transform: translateX(-50%) rotate(-5deg) translateX(-130px) translateY(15px); z-index: 2; }
.fan-phone-3 { transform: translateX(-50%) rotate(0deg);                                    z-index: 3; }
.fan-phone-4 { transform: translateX(-50%) rotate(5deg)  translateX(130px)  translateY(15px); z-index: 2; }
.fan-phone-5 { transform: translateX(-50%) rotate(12deg) translateX(260px)  translateY(40px); z-index: 1; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--hero-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  align-items: center;
}
.stat { text-align: center; color: var(--hero-ink-2); }
.stat-num {
  font-family: var(--font-serif); font-size: 56px; line-height: 1;
  color: var(--accent); font-weight: 500;
  display: block; margin-bottom: 6px;
}
.stat-label { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Templates preview ---------- */
.templates { background: var(--bg); }
.template-marquee {
  display: flex; gap: 28px; padding: 0 32px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: -32px;
}
.template-marquee::-webkit-scrollbar { display: none; }
.template-card {
  flex: 0 0 auto; width: 320px; aspect-ratio: 3 / 4;
  border-radius: 16px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--ink-rule);
  scroll-snap-align: center;
  position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.template-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10,20,48,0.18); }
.template-card-inner {
  padding: 24px; height: 100%;
  display: flex; flex-direction: column;
  font-family: var(--font-serif);
  position: relative;
}
.template-card-inner.cv-classic { color: #1a1a1a; background: #fdfcf8; }
.template-card-inner.cv-modern { color: #fff; background: linear-gradient(135deg, #0a1430, #14264f); }
.template-card-inner.cv-side {
  color: #1a1a1a; background: #fff;
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 0;
}
.template-card-inner.cv-side .side-col { background: #f3eee2; padding: 24px 14px; }
.template-card-inner.cv-side .main-col { padding: 24px 18px 24px 0; }
.template-card-inner.cv-mono { color: #0a1430; background: #fff; }
.template-card-inner.cv-bold { color: #fff; background: #0a1430; }
.template-card-inner.cv-bold .accent-bar { background: var(--accent); height: 6px; width: 60%; margin-bottom: 14px; }
.template-card-inner.cv-warm { color: #2a1a05; background: #fff8ee; }

.tpl-name { font-size: 22px; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.tpl-role { font-size: 11px; opacity: 0.7; font-family: var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.tpl-section-h {
  font-size: 9px; font-family: var(--font-sans); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6;
  margin: 12px 0 4px;
}
.tpl-line {
  height: 4px; background: currentColor; opacity: 0.18;
  border-radius: 2px; margin-bottom: 4px;
}
.tpl-line.short { width: 60%; }
.tpl-line.med { width: 82%; }
.cv-modern .tpl-line { background: rgba(255,255,255,0.4); }
.cv-bold .tpl-line { background: rgba(255,255,255,0.4); }
.tpl-photo {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2d6cdf, #0a1430);
  margin-bottom: 12px;
}
.cv-classic .tpl-photo { background: #d4c8a8; }

.template-label {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans); font-size: 12px; opacity: 0.65;
}
.cv-modern .template-label, .cv-bold .template-label { color: rgba(255,255,255,0.7); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-rule);
  border: 1px solid var(--ink-rule);
  border-radius: 18px; overflow: hidden;
}
.feature-card {
  padding: 36px 32px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.2s ease;
  position: relative;
}
.feature-card:hover { background: var(--bg-elev); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 19px; }
.feature-card p { color: var(--ink-3); font-size: 15px; margin: 0; }

/* ---------- Region showcase ---------- */
.regions { background: var(--bg-section-alt); }
.region-canvas {
  position: relative; min-height: 520px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.region-globe {
  width: 100%; aspect-ratio: 1; max-width: 540px;
  position: relative; margin-inline: auto;
  background: radial-gradient(circle at 35% 35%, var(--brand-blue), var(--brand-navy) 65%, #050b1f 100%);
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(10,20,48,0.4), 0 0 0 1px var(--ink-rule);
  overflow: hidden;
}
.region-globe::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, rgba(0,0,0,0.4), transparent 50%);
}
.region-globe::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.region-pin {
  position: absolute; width: 14px; height: 14px;
  border-radius: 50%; background: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(245,183,46,0.2);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,183,46,0.2); }
  50% { box-shadow: 0 0 0 12px rgba(245,183,46,0); }
}

.region-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  margin-top: 32px;
}
.region-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-rule);
  font-size: 14px;
}
.region-flag { font-size: 22px; line-height: 1; }
.region-name { font-weight: 600; color: var(--ink); }
.region-format { color: var(--ink-3); font-size: 12px; font-family: ui-monospace, "Menlo", monospace; }

.lang-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 32px;
}
.lang-pill {
  padding: 7px 14px; border-radius: 99px;
  background: var(--bg-elev); border: 1px solid var(--ink-rule);
  font-size: 13px; color: var(--ink-2);
  cursor: default; transition: all 0.18s ease;
}
.lang-pill .lp-native { color: var(--accent); margin-inline-start: 6px; font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); overflow: hidden; }
.gallery-track {
  display: flex; gap: 36px; padding: 12px 32px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: -32px;
}
.gallery-track::-webkit-scrollbar { display: none; }

.shot-frame {
  flex: 0 0 auto; width: 300px; height: 620px;
  border-radius: 42px; padding: 9px;
  background: linear-gradient(180deg, #1a2a52, #0a1430);
  box-shadow: 0 24px 50px rgba(10,20,48,0.3), 0 0 0 1px rgba(0,0,0,0.05);
  scroll-snap-align: center; position: relative;
}
.shot-frame::after {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; border-radius: 18px; background: #000;
}
.shot-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 34px;
}
.gallery-controls {
  display: flex; gap: 12px; justify-content: flex-end; margin-top: 32px;
}
.gallery-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--ink-rule);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s ease;
}
.gallery-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery-btn svg { width: 20px; height: 20px; }
[dir="rtl"] .gallery-btn svg { transform: scaleX(-1); }

/* ---------- How it works ---------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  counter-reset: step;
}
.step {
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.step-num {
  font-family: var(--font-serif); font-size: 64px; line-height: 1;
  color: var(--accent); font-weight: 500;
  font-style: italic;
}
.step h3 { font-family: var(--font-sans); font-size: 22px; font-weight: 600; }
.step p { color: var(--ink-3); }

/* ---------- ATS callout ---------- */
.ats {
  background: var(--brand-navy); color: #fff;
  border-radius: 28px;
  padding: 80px 64px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center;
  position: relative; overflow: hidden;
}
.ats::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,183,46,0.16), transparent 60%);
}
.ats h2 { color: #fff; }
.ats h2 .em { color: var(--accent); font-style: italic; }
.ats p { color: rgba(255,255,255,0.75); font-size: 18px; }
.ats-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ats-checks li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: rgba(255,255,255,0.92);
}
.ats-checks .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #1a1300;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  flex: none;
}

.ats-visual { position: relative; }
.ats-doc {
  background: #fff; color: #0a1430;
  border-radius: 12px; padding: 28px;
  font-family: var(--font-serif);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  position: relative;
  transform: rotate(2deg);
}
.ats-doc h4 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.ats-doc .subt { font-size: 12px; color: #5a6280; margin-bottom: 16px; font-family: var(--font-sans); }
.ats-doc .ln { height: 6px; background: rgba(10,20,48,0.12); border-radius: 3px; margin-bottom: 6px; }
.ats-doc .ln.s { width: 60%; }
.ats-doc .ln.m { width: 85%; }
.ats-scan {
  position: absolute; left: -8%; right: -8%; height: 36px;
  background: linear-gradient(180deg, transparent, rgba(245,183,46,0.5), transparent);
  border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
  animation: scan 3s ease-in-out infinite alternate;
  border-radius: 4px;
}
@keyframes scan {
  from { top: 10%; }
  to { top: 80%; }
}
.ats-stamp {
  position: absolute; top: -12px; right: -12px;
  background: var(--accent); color: #1a1300;
  padding: 6px 14px; border-radius: 99px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  transform: rotate(8deg);
}

/* ---------- Privacy section ---------- */
.privacy-card {
  background: var(--bg-elev);
  border: 1px solid var(--ink-rule);
  border-radius: 24px;
  padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.privacy-icon {
  width: 100%; aspect-ratio: 1; max-width: 280px; margin-inline: auto;
  border-radius: 50%; position: relative;
  background:
    radial-gradient(circle at center, var(--bg-elev) 30%, transparent 31%),
    conic-gradient(from 0deg, var(--brand-blue), var(--brand-gold), var(--brand-blue));
}
.privacy-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 110px; height: 130px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1l9 4v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5l9-4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1l9 4v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5l9-4z'/></svg>") center/contain no-repeat;
}

.privacy-list { list-style: none; padding: 0; margin: 24px 0 0; }
.privacy-list li {
  display: flex; gap: 16px; padding: 14px 0;
  border-top: 1px solid var(--ink-rule);
}
.privacy-list li:first-child { border-top: 0; padding-top: 0; }
.privacy-list .pi {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--ink-faint); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.privacy-list h4 { margin-bottom: 4px; font-size: 16px; }
.privacy-list p { margin: 0; font-size: 14px; color: var(--ink-3); }

/* ---------- Video ad placeholder ---------- */
.video-ad {
  background: var(--brand-navy); color: #fff;
  padding: 0;
}
.video-ad .container { padding-block: var(--density-section); }
.video-frame {
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 24px; overflow: hidden;
  background: #050b1f;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.3s ease;
}
.video-frame:hover { transform: scale(1.005); }
.video-frame::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(45,108,223,0.4), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(245,183,46,0.18), transparent 60%);
}
.play-btn {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--accent); color: #0a1430;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 12px 40px rgba(245,183,46,0.4);
  position: relative; z-index: 2;
  transition: transform 0.2s ease;
}
.video-frame:hover .play-btn { transform: scale(1.08); }
.play-btn svg { width: 32px; height: 32px; margin-inline-start: 4px; }
.video-cap {
  position: absolute; bottom: 20px; left: 24px; z-index: 2;
  font-size: 14px; color: rgba(255,255,255,0.6); letter-spacing: 0.05em;
  text-transform: uppercase;
}
.video-ad h2, .video-ad p { color: #fff; }
.video-ad p { color: rgba(255,255,255,0.7); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--ink-rule); border-radius: 14px;
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--ink); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-weight: 600; font-size: 17px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; color: var(--ink-3); font-weight: 300;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-content {
  padding: 0 24px 22px;
  color: var(--ink-3); font-size: 15px; line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-navy); color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}
.footer .container { color: rgba(255,255,255,0.7); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h5 {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: rgba(255,255,255,0.85); transition: color 0.18s ease; }
.footer ul a:hover { color: var(--accent); }
.footer-tag {
  font-family: var(--font-serif); font-size: 22px; line-height: 1.3;
  color: #fff; margin-top: 20px; max-width: 360px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}

/* ---------- Lang menu ---------- */
.lang-menu {
  position: fixed; inset: 0;
  background: rgba(10,20,48,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 100; padding: 80px 24px;
  animation: fadein 0.18s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lang-menu.show { display: flex; }
.lang-menu-card {
  width: 100%; max-width: 720px;
  background: var(--bg-elev); border-radius: 22px;
  padding: 28px;
  max-height: 80vh; overflow-y: auto;
  border: 1px solid var(--ink-rule);
}
.lang-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.lang-menu-head h4 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; }
.lang-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.lang-grid button {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  text-align: start;
  transition: background 0.15s ease;
  color: var(--ink);
}
.lang-grid button:hover { background: var(--ink-faint); }
.lang-grid button.active { background: var(--ink); color: var(--bg); }
.lang-grid .flag { font-size: 18px; }
.lang-grid .name { font-size: 14px; font-weight: 600; }
.lang-grid .native { font-size: 12px; color: var(--ink-3); display: block; }
.lang-grid button.active .native { color: rgba(255,255,255,0.7); }

/* ---------- Accent shape variants ---------- */
.accent-mark {
  display: inline-block; width: 0.8em; height: 0.8em;
  margin-inline-start: 0.12em;
  background: var(--accent);
  -webkit-mask: var(--accent-mask); mask: var(--accent-mask);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  vertical-align: 0.05em;
}
[data-accent="star"]    { --accent-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.39 7.36H22l-6.18 4.49L18.21 22 12 17.27 5.79 22l2.39-8.15L2 9.36h7.61z'/></svg>"); }
[data-accent="sparkle"] { --accent-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l1.6 6.4L20 10l-6.4 1.6L12 18l-1.6-6.4L4 10l6.4-1.6z'/></svg>"); }
[data-accent="dot"]     { --accent-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='6'/></svg>"); }
[data-accent="diamond"] { --accent-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 22 12 12 22 2 12z'/></svg>"); }

/* ---------- Tweaks panel ---------- */
.tweaks-fab {
  position: fixed; bottom: 24px; inset-inline-end: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  z-index: 60; display: none;
  align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.tweaks-fab.show { display: inline-flex; }
.tweaks-fab:hover { transform: scale(1.05) rotate(45deg); }
.tweaks-fab svg { width: 22px; height: 22px; }

.tweaks {
  position: fixed; bottom: 24px; inset-inline-end: 24px;
  width: 320px;
  background: var(--bg-elev); color: var(--ink);
  border: 1px solid var(--ink-rule);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  padding: 20px;
  z-index: 61; display: none;
  font-family: var(--font-sans);
  max-height: 80vh; overflow-y: auto;
}
.tweaks.show { display: block; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.tweaks-head h4 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tweaks-close {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.tweaks-close:hover { background: var(--ink-faint); color: var(--ink); }

.tweak-section { padding: 14px 0; border-top: 1px solid var(--ink-rule); }
.tweak-section:first-of-type { border-top: 0; padding-top: 0; }
.tweak-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 10px; display: block;
}
.tweak-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak-pill {
  padding: 7px 12px; border-radius: 99px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--ink-rule); color: var(--ink-2); background: transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.tweak-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tweak-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }

/* ---------- Density variants ---------- */
[data-density="compact"] {
  --density-section: 80px;
  --density-block: 20px;
}
[data-density="airy"] {
  --density-section: 160px;
  --density-block: 36px;
}

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0; max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 8px; }
.legal .meta { color: var(--ink-3); margin-bottom: 40px; font-size: 14px; }
.legal h2 { font-size: 22px; font-family: var(--font-sans); font-weight: 700; margin: 32px 0 12px; }
.legal h3 { font-size: 18px; font-family: var(--font-sans); font-weight: 600; margin: 24px 0 8px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.legal ul, .legal ol { margin: 8px 0 16px; padding-left: 24px; }
.legal ul ul { margin: 4px 0 4px; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--ink-rule); vertical-align: top; }
.legal th { font-family: var(--font-sans); font-weight: 700; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .region-canvas { grid-template-columns: 1fr; }
  .ats { grid-template-columns: 1fr; padding: 48px 28px; }
  .privacy-card { grid-template-columns: 1fr; padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-fan { transform: scale(0.7); margin-top: 40px; height: 480px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  body { font-size: 16px; }
  .hero { padding-top: 64px; }
  .hero-fan { transform: scale(0.55); height: 380px; margin-top: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-num { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ats { padding: 36px 20px; }
  .region-list { grid-template-columns: 1fr; }
}

/* ---------- RTL ---------- */
[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Cairo", var(--font-sans); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "Cairo", var(--font-serif); }
[dir="rtl"] .gallery-track { direction: ltr; }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
