/* ================================================
   MESAQEEL — mesaqeel-styles.css
   ================================================ */

/* === 1. TOKENS === */
:root {
  /* Whites and warm-sand accents */
  --bg: #ffffff;
  --c1: #faf6ef;
  --c2: #f3ebda;
  --c3: #e8d9bc;
  --c4: #d4b886;
  --c5: #a87f47;
  --ca: oklch(55% 0.095 62);   /* accent */
  --cb: oklch(38% 0.070 58);   /* medium brown — body */
  --cc: oklch(22% 0.045 55);   /* dark brown — heads */
  --cd: oklch(14% 0.030 52);
  --ce: oklch(10% 0.020 50);

  /* Hero gradient accents (under each section's hero image) */
  --glow-warm:   radial-gradient(ellipse 70% 55% at 50% 60%, oklch(85% 0.13 70 / 0.62) 0%, oklch(85% 0.13 70 / 0) 70%);
  --glow-amber:  radial-gradient(ellipse 70% 55% at 50% 60%, oklch(78% 0.16 60 / 0.55) 0%, oklch(78% 0.16 60 / 0) 70%);
  --glow-rose:   radial-gradient(ellipse 70% 55% at 50% 60%, oklch(80% 0.12 45 / 0.55) 0%, oklch(80% 0.12 45 / 0) 70%);

  /* Light text (on dark) */
  --cl0: #fbf6ec;
  --cl1: #d8c9a8;
  --cl2: #998466;

  /* Fonts */
  --fd: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --fh: 'Cinzel', Georgia, serif;
  --fb: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --fa: 'IBM Plex Arabic', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --nav-h: 70px;
  --mw: 1240px;
  --ph: clamp(1.25rem, 5vw, 4rem);
  --spy: clamp(80px, 10vw, 150px);
  --gap: clamp(2.5rem, 5vw, 5.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* Theme variants — affect the gradient glow color under hero images */
body.theme-amber {
  --glow-warm: var(--glow-amber);
}
body.theme-cool {
  --glow-warm: radial-gradient(ellipse 70% 55% at 50% 60%, oklch(82% 0.08 200 / 0.55) 0%, oklch(82% 0.08 200 / 0) 70%);
}

/* Spacing variants */
body.spacing-compact { --spy: clamp(52px, 7vw, 90px); }
body.spacing-airy    { --spy: clamp(110px, 13vw, 190px); }

/* Animations off */
body.no-anim * {
  animation: none !important;
  transition-duration: 0.01ms !important;
}
body.no-anim .reveal-up,
body.no-anim .reveal-fade {
  opacity: 1 !important;
  transform: none !important;
}

/* === 2. RESET + BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  color: var(--cc);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { font-family: var(--fa); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

/* Placeholders (video frame inner) */
.ph {
  background: oklch(20% 0.025 55);
  border-radius: 14px;
}
.ph-vid {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
}

/* === 3. NAVIGATION === */
.nav {
  position: fixed;
  inset-block-start: clamp(0.6rem, 1.4vw, 1.2rem);
  inset-inline-start: clamp(0.6rem, 2vw, 1.5rem);
  inset-inline-end: clamp(0.6rem, 2vw, 1.5rem);
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(80, 50, 20, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 36px rgba(80, 50, 20, 0.16);
}
.nav-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 50px;
  width: auto;
  display: block;
  transition: height 0.3s;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.5vw, 2.8rem);
}
.nav-link {
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cc);
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
}
.nav-link:hover { opacity: 1; }
[dir="rtl"] .nav-link { font-family: var(--fa); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.nav-login {
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.3rem;
  border: 1.5px solid var(--cc);
  border-radius: 999px;
  color: var(--cc);
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.nav-login:hover { background: var(--cc); color: var(--cl0); }
[dir="rtl"] .nav-login { font-family: var(--fa); }

.lang-btn {
  font-family: var(--fb);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: transparent;
  border: none;
  color: var(--cc);
  padding: 0.3rem 0.4rem;
  transition: opacity 0.2s;
}
.lang-btn:hover { opacity: 0.65; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cc);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  position: absolute;
  inset-block-start: calc(var(--nav-h) + 0.5rem);
  inset-inline: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 12px 36px rgba(80, 50, 20, 0.15);
}
.nav-drawer a {
  font-family: var(--fb);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cb);
  display: block;
  text-transform: uppercase;
}
[dir="rtl"] .nav-drawer a { font-family: var(--fa); }
.nav-drawer.open { display: flex; }

/* === 4. HERO (header) === */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  inset: -8% 0 0 0;
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 35%;
  will-change: transform;
}
/* white fade at bottom — same idea as worldmap */
.hero-bg-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.85) 70%,
    #ffffff 100%
  );
  z-index: 2;
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
  z-index: 3;
}
.hero-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  align-items: center;
  max-width: var(--mw);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) var(--ph) 4rem;
  width: 100%;
}
.hero-text {
  max-width: 600px;
}
.hero-card {
  background: rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow:
    0 24px 60px rgba(60, 35, 10, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.hero-logo {
  max-width: clamp(280px, 38vw, 480px);
  height: auto;
  margin-block-end: 1.6rem;
  filter: drop-shadow(0 6px 16px rgba(60, 30, 10, 0.25));
}
.hero-coming {
  font-family: var(--fb);
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cc);
  line-height: 1.65;
  text-transform: uppercase;
  margin-block-end: 1.5rem;
}
[dir="rtl"] .hero-coming { font-family: var(--fa); letter-spacing: 0.04em; }

.hero-follow-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-block-end: 1.8rem;
}
.hero-follow {
  font-family: var(--fb);
  font-size: 0.95rem;
  color: var(--cb);
  margin: 0;
}
[dir="rtl"] .hero-follow { font-family: var(--fa); }
.hero-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cc);
  color: var(--cl0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.hero-social:hover { transform: translateY(-2px); background: #000; }
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hbtn {
  font-family: var(--fb);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.hbtn:active { transform: scale(0.97); }
[dir="rtl"] .hbtn { font-family: var(--fa); letter-spacing: 0.04em; }
.hbtn-out {
  border: 1.5px solid var(--cc);
  color: var(--cc);
  background: rgba(255,255,255,0.35);
}
.hbtn-out:hover { background: rgba(255,255,255,0.7); }
.hbtn-fill {
  background: var(--cc);
  color: var(--cl0);
  border: 1.5px solid var(--cc);
}
.hbtn-fill:hover { background: #000; }

.hero-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--fb);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cb);
}
[dir="rtl"] .hero-scroll-hint { font-family: var(--fa); transform: translateX(50%); }
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--cb);
  transform-origin: left center;
  animation: scrollLineGrow 2s ease-in-out infinite;
}
[dir="rtl"] .scroll-line { transform-origin: right center; }
@keyframes scrollLineGrow {
  0%, 100% { transform: scaleX(1); opacity: 0.6; }
  50% { transform: scaleX(1.6); opacity: 1; }
}

/* === 5. FEATURE SECTIONS === */
.feat-sec {
  padding-block: var(--spy);
  background: var(--bg);
  position: relative;
}
.feat-wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding-inline: var(--ph);
  display: flex;
  align-items: center;
  gap: var(--gap);
}
.feat-text {
  flex: 0 0 42%;
  max-width: 480px;
}
.feat-art {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Icons row above title */
.feat-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-block-end: 1.6rem;
}
.feat-icon {
  width: clamp(40px, 4.5vw, 56px);
  height: clamp(40px, 4.5vw, 56px);
  object-fit: contain;
  transition: transform 0.3s var(--ease-out);
}
.feat-text:hover .feat-icon { transform: translateY(-3px); }

.feat-sec h2 {
  font-family: var(--fh);
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cc);
  margin-block-end: 1.2rem;
  letter-spacing: -0.005em;
}
.feat-sec p {
  font-family: var(--fb);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  line-height: 1.8;
  color: var(--cb);
  margin-block-end: 1.9rem;
}
[dir="rtl"] .feat-sec h2,
[dir="rtl"] .feat-sec p { font-family: var(--fa); }

.readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fb);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cb);
  border: 1.5px solid var(--cb);
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.readmore:hover { background: var(--cb); color: var(--cl0); }
[dir="rtl"] .readmore { font-family: var(--fa); letter-spacing: 0.04em; }

/* Hero-image wrapper with glow underneath */
.feat-hero-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 5/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-hero-glow {
  position: absolute;
  inset: 0;
  background: var(--glow-warm);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.feat-hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(120, 70, 20, 0.18));
}
/* Layered hero (classes): layer1 is the base, layer2 sits on top */
.feat-hero-layer1 {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.feat-hero-layer2 {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* === 6. VIDEO SECTION === */
.vid-sec {
  padding-block: var(--spy);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.vid-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.vf {
  position: absolute;
  width: clamp(75px, 9vw, 150px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(80,40,10,0.22));
}
.vf-1 { inset-inline-start: 3%; top: 14%; width: clamp(80px,9vw,150px); }
.vf-2 { inset-inline-end: 3%; bottom: 14%; width: clamp(95px,11vw,170px); }
.vf-3 { inset-inline-end: 16%; top: 10%; width: clamp(70px,7.5vw,120px); }
.vf-4 { inset-inline-start: 13%; bottom: 12%; width: clamp(70px,8vw,135px); }

.vid-title {
  font-family: var(--fh);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--cc);
  margin-block-end: 2.5rem;
  position: relative;
  z-index: 3;
}
[dir="rtl"] .vid-title { font-family: var(--fa); }
.vid-wrap {
  max-width: min(900px, 90%);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}
.vid-glow {
  position: absolute;
  inset: -10% -6% -10% -6%;
  background: var(--glow-warm);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}
.vid-frame {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(60, 35, 10, 0.18);
  aspect-ratio: 16/9;
}
.vid-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  transition: transform 0.2s var(--ease-out);
}
.play-btn:hover { transform: scale(1.07); }
.play-btn:active { transform: scale(0.97); }

/* === 7. WORLD MAP === */
.map-sec {
    position: relative;
    padding-block: clamp(120px, 34vw, 500px) var(--spy);
    overflow: hidden;
    background: var(--bg);
}
.map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.map-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.map-bg-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.75) 65%,
    #ffffff 100%
  );
  pointer-events: none;
}
.map-bg-fade2 {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 80%;
    background: linear-gradient( to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.75) 65%, #ffffff 100% );
    pointer-events: none;
}
.map-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--ph);
  text-align: center;
}
.map-wrap h2 {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--cc);
  margin-block-end: 1.2rem;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(255,255,255,0.6);
}
.map-wrap p {
  font-family: var(--fb);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.85;
  color: var(--cb);
  margin-block-end: 2rem;
  max-width: 580px;
  margin-inline: auto;
}
[dir="rtl"] .map-wrap h2,
[dir="rtl"] .map-wrap p { font-family: var(--fa); }

/* === 8. END SECTION (CTA + Footer shared bg) === */
.end-sec {
    position: relative;
    background: oklch(1 0 0);
    overflow: hidden;
}
.end-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.end-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.end-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-sec {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: clamp(85px, 41vw, 792px);
}
.cta-body {
  text-align: center;
  padding-inline: var(--ph);
  max-width: 600px;
}
.cta-body h2 {
  font-family: var(--fd);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--cl0);
  margin-block-end: 0.8rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
[dir="rtl"] .cta-body h2 { font-family: var(--fa); }
.cta-sub {
  font-family: var(--fb);
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cl1);
  margin-block-end: 1rem;
}
[dir="rtl"] .cta-sub { font-family: var(--fa); letter-spacing: 0.04em; }
.cta-desc {
  font-family: var(--fb);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cl1);
  opacity: 0.85;
  margin-block-end: 2rem;
}
[dir="rtl"] .cta-desc { font-family: var(--fa); }
.cta-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  border: 1.5px solid rgba(216, 201, 168, 0.45);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.2s;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cta-form:focus-within { border-color: var(--cl1); }
.cta-input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.15rem;
  background: transparent;
  border: none;
  color: var(--cl0);
  font-family: var(--fb);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  outline: none;
}
[dir="rtl"] .cta-input { font-family: var(--fa); }
.cta-input::placeholder { color: var(--cl2); }
.cta-btn {
  background: var(--cl0);
  color: var(--cc);
  border: none;
  padding: 0.9rem 1.7rem;
  font-family: var(--fb);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cta-btn:hover { background: white; }
[dir="rtl"] .cta-btn { font-family: var(--fa); }
.cta-thanks {
  margin-block-start: 1.2rem;
  font-family: var(--fb);
  font-size: 0.95rem;
  color: var(--cl0);
  animation: fadePop 0.4s var(--ease-out) both;
}
[dir="rtl"] .cta-thanks { font-family: var(--fa); }
.cta-error {
  margin-block-start: 1.2rem;
  font-family: var(--fb);
  font-size: 0.95rem;
  color: #c8553d;
  animation: fadePop 0.4s var(--ease-out) both;
}
[dir="rtl"] .cta-error { font-family: var(--fa); }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
@keyframes fadePop {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* === 9. FOOTER === */
.footer {
    position: relative;
    z-index: 1;
    padding-block-start: clamp(3rem, 14vw, 18rem);
    color: var(--cl0);
    border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-grid {
  max-width: var(--mw);
  margin: 0 auto;
  padding-inline: var(--ph);
  padding-block-end: 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-logo {
  height: 44px;
  width: auto;
  margin-block-end: 1.1rem;
  filter: brightness(1.05);
}
.footer-brand p {
    font-family: var(--fb);
    font-size: 0.88rem;
    line-height: 1.75;
    color: #050505;
    opacity: 0.7;
    max-width: 360px;
}
[dir="rtl"] .footer-brand p { font-family: var(--fa); }
.footer-col h4 {
    font-family: var(--fh);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0f0f0f;
    margin-block-end: 1.4rem;
}
[dir="rtl"] .footer-col h4 { font-family: var(--fa); letter-spacing: 0.04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.85rem; }
    .footer-col ul a {
        font-family: var(--fb);
        font-size: 0.88rem;
        color: #050505;
        opacity: 0.75;
        transition: opacity 0.2s, color 0.2s;
    }
.footer-col ul a:hover { opacity: 1; color: var(--cl0); }
[dir="rtl"] .footer-col ul a { font-family: var(--fa); }
.footer-bar {
  max-width: var(--mw);
  margin: 0 auto;
  padding-inline: var(--ph);
  padding-block: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-mark {
    font-family: var(--fh);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #0f0f0f;
    opacity: 0.85;
}
.footer-rights {
    font-family: var(--fb);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: #0f0f0f;
    opacity: 0.55;
}
[dir="rtl"] .footer-rights { font-family: var(--fa); }

/* === 10. ANIMATIONS === */
@keyframes floatA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  45%      { transform: translateY(-18px) rotate(-1.2deg); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  30%      { transform: translateY(-10px) rotate(1.2deg); }
  70%      { transform: translateY(-16px) rotate(-1deg); }
}
.float-a { animation: floatA 5.5s ease-in-out infinite; }
.float-b { animation: floatB 7s ease-in-out infinite; }
.float-c { animation: floatC 8.5s ease-in-out infinite; }

/* Scroll reveals */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-up.d1 { transition-delay: 0.08s; }
.reveal-up.d2 { transition-delay: 0.16s; }
.reveal-up.d3 { transition-delay: 0.24s; }
.reveal-up.d4 { transition-delay: 0.32s; }
.reveal-up.d5 { transition-delay: 0.48s; }

.reveal-fade {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
  transition-delay: 0.15s;
}
.reveal-up.in-view   { opacity: 1; transform: translateY(0); }
.reveal-fade.in-view { opacity: 1; transform: translateY(0) scale(1); }

/* === 11. TWEAKS PANEL === */
.tweaks-panel {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  z-index: 1000;
  width: 240px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  font-family: var(--fb);
  animation: fadeUp 0.3s var(--ease-out) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.tp-header span {
  font-family: var(--fh);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cc);
  text-transform: uppercase;
}
#tweaks-close {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--cb);
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.2rem;
}
.tp-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 1.1rem; }
.tp-group { display: flex; flex-direction: column; gap: 0.5rem; }
.tp-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cb);
}
.tp-swatches { display: flex; gap: 0.5rem; }
.tp-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.tp-swatch:hover { transform: scale(1.1); }
.tp-swatch.active { border-color: var(--cc); }

.tp-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.tp-toggle-wrap input { display: none; }
.tp-toggle-track {
  width: 36px;
  height: 20px;
  background: var(--c4);
  border-radius: 10px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}
.tp-toggle-wrap input:checked ~ .tp-toggle-track { background: var(--ca); }
.tp-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tp-toggle-wrap input:checked ~ .tp-toggle-track .tp-toggle-thumb {
  transform: translateX(16px);
}
.tp-toggle-label { font-size: 0.78rem; color: var(--cb); }

.tp-radio { display: flex; gap: 0.35rem; }
.tpr {
  flex: 1;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.3rem;
  border: 1.5px solid var(--c4);
  border-radius: 4px;
  background: transparent;
  color: var(--cb);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tpr.active { background: var(--cb); border-color: var(--cb); color: var(--cl0); }
.tpr:hover:not(.active) { border-color: var(--cb); }

/* === 12. RESPONSIVE === */
@media (max-width: 960px) {
  .hero-text { max-width: 100%; }
  .hero-content { padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero-bg-fade { height: 28%; }

  .feat-wrap { flex-direction: column; gap: 2.5rem; }
  .feat-text { flex: none; max-width: 100%; }
  .feat-alt .feat-wrap { flex-direction: column-reverse; }
  .feat-art { width: 100%; }
  .feat-hero-wrap { max-width: 540px; aspect-ratio: 5/4; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-login { display: none; }
  .burger { display: flex; }
  .brand-logo { height: 40px; }
  .nav { border-radius: 28px; inset-block-start: 0.5rem; }

  .hero-card { padding: 1.25rem 1.1rem; border-radius: 22px; }
  .hero-logo { max-width: 72vw; }
  .hbtn { padding: 0.75rem 1.4rem; font-size: 0.68rem; }
  .hero-follow-row { flex-wrap: wrap; gap: 0.6rem; }

  .feat-icon { width: 38px; height: 38px; }
  .feat-icons { gap: 0.45rem; }
  .feat-hero-wrap { max-width: 100%; }

  .vf-3, .vf-4 { display: none; }
  .vf-1 { width: 64px; top: 6%; inset-inline-start: 2%; }
  .vf-2 { width: 76px; bottom: 6%; inset-inline-end: 2%; }

  .cta-form { flex-direction: column; }
  .cta-btn { width: 100%; padding: 0.95rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bar { flex-direction: column; text-align: center; padding-block: 1.6rem; }
  .tweaks-panel { inset-inline-end: 1rem; bottom: 1rem; width: 210px; }
}

/* === 13. RTL overrides === */
[dir="rtl"] .feat-alt .feat-wrap { flex-direction: row; }
[dir="rtl"] .hero-scroll-hint { transform: translateX(50%); }

@media (max-width: 960px) {
  [dir="rtl"] .feat-alt .feat-wrap { flex-direction: column-reverse; }
}
