/* ============================================================
   BLFFD — Landing site styles
   Matches the in-game style: Chunky buttons (3D bevel), Chunky
   cards (hard shadow, white-15 border), Cairo font, neon-on-dark
   palette taken from blffd_app/lib/config/app_theme.dart.
   ============================================================ */

:root {
  /* App palette (from app_theme.dart) */
  --scaffold: #0B0914;
  --surface: #130D26;
  --surface-mid: #2D1B4E;
  --card: #1C1438;
  --card-soft: #241845;
  --buff-deep: #1C1438;
  --buff-mid: #7E22CE;
  --buff-light: #C084FC;
  --primary: #A855F7;
  --primary-dark: #7E22CE;
  --green: #58CC02;
  --green-dark: #3B8A02;
  --blue: #1CB0F6;
  --blue-dark: #0E7BAD;
  --gold: #FFC800;
  --gold-dark: #B68E00;
  --pink: #FF4B4B;
  --pink-dark: #B33333;
  --orange: #FF9600;
  --orange-dark: #B36800;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.90);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-54: rgba(255, 255, 255, 0.54);
  --white-15: rgba(255, 255, 255, 0.15);
  --black-60: rgba(0, 0, 0, 0.60);

  --radius-card: 24px;
  --radius-btn: 16px;
  --bevel: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Anchor targets need offset so the sticky header doesn't cover them */
:target,
#download { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--white);
  background-color: var(--scaffold);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== Background layer stack (back → front) =====
   body::before  z=-3  doodle photo (very dim)
   body::after   z=-2  dark overlay
   .bg-props     z=-1  floating prop illustrations (blurred + animated)
   content       z=0+
   ================================================ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  filter: brightness(0.55) saturate(1.0);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 20, 0.55) 0%, rgba(11, 9, 20, 0.42) 50%, rgba(11, 9, 20, 0.72) 100%);
  z-index: -2;
  pointer-events: none;
}

/* Floating prop illustrations — blurred & animated */
.bg-props {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-props img {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  filter: blur(5px);
  opacity: 0.55;
}
.bg-props .prop-trophy {
  width: 360px;
  right: -50px;
  top: 6%;
  transform: rotate(8deg);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: propDrift1 14s ease-in-out infinite;
}
.bg-props .prop-korsy {
  width: 300px;
  left: -50px;
  top: 32%;
  transform: rotate(-14deg);
  animation: propDrift2 11s ease-in-out infinite;
}
.bg-props .prop-mashabak {
  width: 320px;
  right: 4%;
  bottom: -50px;
  transform: rotate(-22deg);
  animation: propDrift3 13s ease-in-out infinite;
}
.bg-props .prop-shibshib {
  width: 280px;
  left: 8%;
  bottom: -60px;
  transform: rotate(18deg);
  animation: propDrift4 12s ease-in-out infinite;
}

@keyframes propDrift1 {
  0%, 100% { transform: rotate(8deg)  translate3d(0, 0, 0); }
  50%      { transform: rotate(12deg) translate3d(-20px, 30px, 0); }
}
@keyframes propDrift2 {
  0%, 100% { transform: rotate(-14deg) translate3d(0, 0, 0); }
  50%      { transform: rotate(-10deg) translate3d(25px, -25px, 0); }
}
@keyframes propDrift3 {
  0%, 100% { transform: rotate(-22deg) translate3d(0, 0, 0); }
  50%      { transform: rotate(-18deg) translate3d(-20px, -30px, 0); }
}
@keyframes propDrift4 {
  0%, 100% { transform: rotate(18deg) translate3d(0, 0, 0); }
  50%      { transform: rotate(22deg) translate3d(20px, -25px, 0); }
}

@media (max-width: 760px) {
  .bg-props .prop-trophy { width: 220px; right: -60px; }
  .bg-props .prop-korsy { width: 200px; left: -60px; top: 50%; }
  .bg-props .prop-mashabak { width: 220px; right: -40px; }
  .bg-props .prop-shibshib { width: 180px; left: -30px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-props img { animation: none; }
}

/* ---------- Layout primitives ---------- */
.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); margin: 0 auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 20, 0.92);
  border-bottom: 2px solid var(--white-15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand img { height: 36px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--white-70);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
}
[dir="rtl"] .nav-links a { letter-spacing: 0; text-transform: none; font-size: 15px; }
.nav-links a:hover { color: var(--white); background: var(--white-15); }
.nav-links a.active { color: var(--white); background: rgba(168, 85, 247, 0.22); }

/* Chunky nav CTA — small chunky button */
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 0 var(--primary-dark);
  text-transform: uppercase;
  position: relative;
  top: 0;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, filter 0.15s;
}
.nav-cta:hover { background: var(--primary) !important; filter: brightness(1.07); }
.nav-cta:active { transform: translateY(4px); box-shadow: 0 0 0 var(--primary-dark); }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--white-15);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch a {
  font-size: 12px;
  font-weight: 900;
  color: var(--white-70);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  transition: all 0.15s ease;
  line-height: 1;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a.is-active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 0 var(--primary-dark);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 2px solid var(--white-15);
  color: var(--white);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 4px 0 var(--black-60);
}
.nav-toggle:active { transform: translateY(4px); box-shadow: 0 0 0 var(--black-60); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 2px solid rgba(168, 85, 247, 0.45);
  color: var(--buff-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
[dir="rtl"] .hero-eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }

.hero-logo {
  display: block;
  width: min(380px, 78%);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.5));
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 60%;
}
.hero-logo.logo-twitch {
  animation: logoTwitch 420ms cubic-bezier(0.36, 1.5, 0.5, 1);
}
@keyframes logoTwitch {
  0%   { transform: scale(1) rotate(0deg); }
  18%  { transform: scale(1.07) rotate(-3.5deg); }
  38%  { transform: scale(0.95) rotate(3deg); }
  58%  { transform: scale(1.03) rotate(-1.5deg); }
  78%  { transform: scale(0.99) rotate(0.8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Floating emoji burst (TikTok-heart style) — spawned per click of .hero-logo */
.logo-emoji-float {
  position: fixed;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 40;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
  will-change: transform, opacity;
  transform: translate(-50%, -50%) scale(0);
  animation: emojiFloat 2400ms cubic-bezier(0.2, 0.55, 0.25, 1) forwards;
}
@keyframes emojiFloat {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
  14% {
    transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(0deg);
    opacity: 1;
  }
  72% { opacity: 1; }
  100% {
    transform:
      translate(calc(-50% + var(--x, 0px)), calc(-50% - 340px))
      scale(calc(var(--scale, 1) * 0.55))
      rotate(var(--rot, 0deg));
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .logo-emoji-float { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo.logo-twitch { animation-duration: 1ms; }
  .logo-emoji-float { display: none; }
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 auto 20px;
  color: var(--white);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  max-width: 18ch;
}
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.4; max-width: 22ch; }

.hero p.lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--white-90);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.55;
  font-weight: 500;
}
[dir="rtl"] .hero p.lead { line-height: 1.8; }

/* ---------- Chunky buttons ---------- */
.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--white);
  position: relative;
  top: 0;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, filter 0.15s;
  white-space: nowrap;
}
[dir="rtl"] .btn { letter-spacing: 0; text-transform: none; font-size: 17px; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(var(--bevel)); }

.btn-primary { background: var(--primary); box-shadow: 0 var(--bevel) 0 var(--primary-dark); }
.btn-primary:active { box-shadow: 0 0 0 var(--primary-dark); }

.btn-green { background: var(--green); box-shadow: 0 var(--bevel) 0 var(--green-dark); }
.btn-green:active { box-shadow: 0 0 0 var(--green-dark); }

.btn-blue { background: var(--blue); box-shadow: 0 var(--bevel) 0 var(--blue-dark); }
.btn-blue:active { box-shadow: 0 0 0 var(--blue-dark); }

.btn-gold { background: var(--gold); color: #2A1B00; box-shadow: 0 var(--bevel) 0 var(--gold-dark); }
.btn-gold:active { box-shadow: 0 0 0 var(--gold-dark); }

.btn-pink { background: var(--pink); box-shadow: 0 var(--bevel) 0 var(--pink-dark); }
.btn-pink:active { box-shadow: 0 0 0 var(--pink-dark); }

.btn-ghost {
  background: var(--card);
  border: 2px solid var(--white-15);
  box-shadow: 0 var(--bevel) 0 var(--black-60);
  color: var(--white);
}
.btn-ghost:active { box-shadow: 0 0 0 var(--black-60); }

.btn-discord { background: #5865F2; color: var(--white); box-shadow: 0 var(--bevel) 0 #3a45c4; }
.btn-discord:active { box-shadow: 0 0 0 #3a45c4; }

/* App store buttons — chunky dark variant to match game palette */
.btn-store {
  background: #050308;
  color: var(--white);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  border: 2px solid var(--white-15);
  box-shadow: 0 var(--bevel) 0 var(--black-60);
}
.btn-store:active { box-shadow: 0 0 0 var(--black-60); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-store svg { width: 26px; height: 26px; }
.btn-store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.btn-store-text small { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.7; }
.btn-store-text strong { font-size: 15px; font-weight: 900; }
[dir="rtl"] .btn-store-text small { letter-spacing: 0; text-transform: none; font-size: 11px; }

/* Extra bottom-margin so press-down doesn't clip */
.btn { margin-bottom: var(--bevel); }
.nav-cta { margin-bottom: 4px !important; }
.nav-toggle { margin-bottom: 4px; }

/* ---------- Chunky card primitive ---------- */
.chunky-card,
.feature,
.how-card,
.step,
.faq-item,
.contact-info,
.contact-form,
.prose,
.stripe-item {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 2px solid var(--white-15);
  box-shadow: 0 var(--bevel) 0 var(--black-60);
  margin-bottom: var(--bevel);
}

/* ---------- Stat stripe (its own section, sits right below the hero) ---------- */
.stripe-section { padding: 30px 0 50px; }
.stripe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 0;
}
.stripe-item {
  text-align: center;
  padding: 22px 14px;
}
.stripe-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stripe-label {
  font-size: 12px;
  color: var(--white-70);
  margin-top: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
[dir="rtl"] .stripe-label { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ---------- Sections ---------- */
section { padding: 70px 0; position: relative; }
.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--buff-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
[dir="rtl"] .section-eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 auto 48px;
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  max-width: 22ch;
}
[dir="rtl"] .section-title { letter-spacing: 0; line-height: 1.4; }

/* ---------- How-it-works cards ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.how-card { padding: 28px 24px; }
.how-step {
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 14px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--primary-dark);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.how-grid .how-card:nth-child(2) .how-step { background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.how-grid .how-card:nth-child(3) .how-step { background: var(--gold); color: #2A1B00; box-shadow: 0 4px 0 var(--gold-dark); }
.how-card h3 {
  font-size: 19px;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--white);
}
.how-card p { color: var(--white-70); margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  font-size: 26px;
  box-shadow: 0 5px 0 var(--primary-dark);
}
.feature:nth-child(2) .feature-icon { background: var(--green); box-shadow: 0 5px 0 var(--green-dark); }
.feature:nth-child(3) .feature-icon { background: var(--blue); box-shadow: 0 5px 0 var(--blue-dark); }
.feature:nth-child(4) .feature-icon { background: var(--gold); box-shadow: 0 5px 0 var(--gold-dark); }
.feature:nth-child(5) .feature-icon { background: var(--pink); box-shadow: 0 5px 0 var(--pink-dark); }
.feature:nth-child(6) .feature-icon { background: var(--orange); box-shadow: 0 5px 0 var(--orange-dark); }

.feature h3 { margin: 0; font-size: 18px; font-weight: 900; color: var(--white); }
.feature p { margin: 0; color: var(--white-70); font-size: 15px; line-height: 1.6; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative;
  background: var(--card);
  border: 2px solid var(--white-15);
  box-shadow: 0 var(--bevel) 0 var(--black-60);
  border-radius: 28px;
  padding: 54px 36px;
  text-align: center;
  overflow: hidden;
  margin-bottom: var(--bevel);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(28, 176, 246, 0.12), transparent 50%);
  z-index: 0;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}
[dir="rtl"] .cta-panel h2 { letter-spacing: 0; line-height: 1.4; }
.cta-panel p { color: var(--white-90); max-width: 540px; margin: 0 auto 28px; font-size: 16px; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid var(--white-15);
  padding: 50px 0 36px;
  margin-top: 50px;
  background: rgba(11, 9, 20, 0.92);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .brand img { height: 32px; }
.footer-brand p {
  color: var(--white-70);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 320px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--buff-light);
  margin: 0 0 16px;
}
[dir="rtl"] .footer-col h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--white-70);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--white-15);
  color: var(--white-54);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  text-align: center;
  padding: 70px 0 30px;
}
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 16px auto 12px;
  color: var(--white);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}
[dir="rtl"] .page-hero h1 { letter-spacing: 0; line-height: 1.4; }
.page-hero p { color: var(--white-90); max-width: 600px; margin: 0 auto; font-size: 17px; line-height: 1.6; }

/* ---------- Prose (privacy policy) ---------- */
.prose {
  padding: 38px 38px 30px;
  margin: 30px auto 60px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 22px 0 6px;
  color: var(--buff-light);
}
.prose p, .prose li {
  color: var(--white-90);
  font-size: 16px;
  line-height: 1.75;
}
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--buff-light); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.prose a:hover { color: var(--white); }
.prose strong { color: var(--white); }
.prose hr { border: 0; border-top: 2px solid var(--white-15); margin: 28px 0; }

/* ---------- Steps (how-to-play) ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px auto 60px;
  max-width: 820px;
}
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 26px;
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary);
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 5px 0 var(--primary-dark);
}
.steps .step:nth-child(2) .step-num { background: var(--green); box-shadow: 0 5px 0 var(--green-dark); }
.steps .step:nth-child(3) .step-num { background: var(--blue); box-shadow: 0 5px 0 var(--blue-dark); }
.steps .step:nth-child(4) .step-num { background: var(--gold); color: #2A1B00; box-shadow: 0 5px 0 var(--gold-dark); }
.steps .step:nth-child(5) .step-num { background: var(--pink); box-shadow: 0 5px 0 var(--pink-dark); }
.steps .step:nth-child(6) .step-num { background: var(--orange); box-shadow: 0 5px 0 var(--orange-dark); }

.step h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; color: var(--white); }
.step p { margin: 0; color: var(--white-90); font-size: 15px; line-height: 1.65; }
[dir="rtl"] .step p { line-height: 1.85; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 30px auto 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item { overflow: hidden; transition: border-color 0.2s ease; }
.faq-item[open] { border-color: rgba(168, 85, 247, 0.55); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 900;
  color: var(--buff-light);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 26px 22px;
  color: var(--white-90);
  font-size: 15px;
  line-height: 1.7;
}
[dir="rtl"] .faq-body { line-height: 1.95; }
.faq-body p:first-child { margin-top: 0; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--buff-light); text-decoration: underline; font-weight: 700; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  margin: 30px auto 60px;
}
.contact-info { padding: 32px; }
.contact-info h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; color: var(--white); }
.contact-info p { color: var(--white-70); margin: 0 0 22px; font-size: 14px; line-height: 1.65; }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 2px solid var(--white-15);
}
.contact-info-item:first-of-type { border-top: 0; padding-top: 0; }
.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 3px 0 var(--primary-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--white);
}
.contact-info-item:nth-of-type(2) .contact-info-icon { background: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); }
.contact-info-item:nth-of-type(3) .contact-info-icon { background: var(--green); box-shadow: 0 3px 0 var(--green-dark); }
.contact-info-item strong { color: var(--white); display: block; font-size: 14px; margin-bottom: 2px; font-weight: 800; }
.contact-info-item span { color: var(--white-70); font-size: 14px; }
.contact-info-item a { color: var(--buff-light); text-decoration: none; font-size: 14px; font-weight: 700; }
.contact-info-item a:hover { color: var(--white); }

.contact-form { padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label {
  font-size: 12px;
  font-weight: 900;
  color: var(--white-70);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[dir="rtl"] .form-field label { letter-spacing: 0; text-transform: none; font-size: 14px; }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--scaffold);
  border: 2px solid var(--white-15);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--white-54); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c084fc'><path d='M7 10l5 5 5-5z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
[dir="rtl"] .form-field select { background-position: left 14px center; padding-right: 16px; padding-left: 44px; }
.form-submit { width: 100%; }
[dir="rtl"] .form-submit svg { transform: scaleX(-1); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .step-num { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
  .prose { padding: 30px 22px; }
  section { padding: 55px 0; }
  .cta-panel { padding: 44px 24px; }
}

@media (max-width: 640px) {
  body::before { background-attachment: scroll; }

  /* Header is just brand + burger on the opposite side. Lang switcher
     and links are hidden until the burger is tapped. */
  .nav-links,
  .lang-switch { display: none; }
  .nav-toggle { display: grid; place-items: center; }

  /* Lock body scroll & raise header above the overlay so the burger
     stays tappable (becomes the close button). */
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header {
    z-index: 250;
    background: transparent;
    border-bottom: 0;
  }
  body.menu-open .site-header .brand { opacity: 0; pointer-events: none; }
  body.menu-open .nav-toggle {
    position: relative;
    z-index: 300;
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 0 var(--primary-dark);
    font-size: 22px;
  }

  /* Full-screen overlay menu */
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--scaffold);
    z-index: 200;
    padding: 90px 24px 160px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
  }
  .nav-links.open li { width: 100%; max-width: 360px; }
  .nav-links.open a {
    display: block;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    padding: 18px;
    border-radius: 18px;
    background: var(--card);
    border: 2px solid var(--white-15);
    box-shadow: 0 4px 0 var(--black-60);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    margin-bottom: 4px;
  }
  [dir="rtl"] .nav-links.open a { letter-spacing: 0; text-transform: none; font-size: 20px; }
  .nav-links.open a.active {
    background: var(--surface-mid);
    color: var(--white);
    border-color: rgba(168, 85, 247, 0.45);
  }
  .nav-links.open a.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 0 var(--primary-dark) !important;
    border: 0 !important;
    font-size: 18px !important;
    padding: 18px !important;
    border-radius: 18px !important;
  }
  [dir="rtl"] .nav-links.open a.nav-cta { font-size: 20px !important; }

  /* Lang switcher pinned to bottom of the open overlay */
  .nav-links.open ~ .lang-switch {
    display: inline-flex;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 201;
    padding: 5px;
    background: var(--card);
    border: 2px solid var(--white-15);
    box-shadow: 0 4px 0 var(--black-60);
  }
  .nav-links.open ~ .lang-switch a {
    font-size: 14px;
    padding: 10px 22px;
  }

  /* Rest of mobile tweaks */
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero { padding: 50px 0 40px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
