/* ==========================================================================
   Regay Haji — Landing Page
   Design tokens pulled directly from the app's own brand palette
   (mobile/lib/core/theme/app_colors.dart) — olive / black-forest / cornsilk.
   ========================================================================== */

:root {
  --olive: #606c38;
  --olive-bright: #8ca363;
  --olive-rgb: 96, 108, 56;
  --forest: #283618;
  --forest-rgb: 40, 54, 24;
  --cornsilk: #fefae0;
  --cornsilk-rgb: 254, 250, 224;

  --success: #4c7a3d;
  --warning: #bf6a02;
  --danger: #b3261e;

  --bg: var(--cornsilk);
  --bg-rgb: var(--cornsilk-rgb);
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --text-primary: var(--forest);
  --text-secondary: #6b6b54;
  --border: #e3dcc0;
  --accent: var(--olive);

  --font-latin: 'Outfit', 'Poppins', system-ui, sans-serif;
  --font-arabic: 'Noto Kufi Arabic', 'Noto Sans Arabic', system-ui, sans-serif;

  --shadow-soft: 0 8px 30px rgba(var(--forest-rgb), 0.08);
  --shadow-lift: 0 20px 60px rgba(var(--forest-rgb), 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

/* Light is always the default, regardless of OS setting — dark only ever
   applies when the visitor explicitly picks it via the navbar toggle (see
   js/main.js initThemeToggle), which stamps data-theme="dark" on <html>
   and remembers the choice in localStorage. */
:root[data-theme='dark'] {
  --bg: #161f0d;
  --bg-rgb: 22, 31, 13;
  --surface: #232e15;
  --surface-rgb: 35, 46, 21;
  --text-primary: var(--cornsilk);
  --text-secondary: #c8c4a8;
  --border: #3b4a28;
  --accent: var(--olive-bright);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

/* No `scroll-behavior: smooth` here on purpose — GSAP's own docs flag it as
   a known source of jumps/stutters right at a ScrollTrigger pin boundary,
   since the browser's native scroll easing and GSAP's scrub fight over the
   same scroll position. In-page anchor links get their smooth-scroll from
   GSAP's ScrollToPlugin instead (js/main.js initAnchorSmoothScroll), which
   shares the same engine ScrollTrigger uses and doesn't conflict with it. */
html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-latin);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body[data-lang='ckb'],
body[data-lang='ar'] {
  font-family: var(--font-arabic);
}

img { max-width: 100%; display: block; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
body[data-lang='ckb'] .eyebrow, body[data-lang='ar'] .eyebrow { letter-spacing: 0; text-transform: none; }

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; color: var(--text-primary); }

section { padding-block: 110px; position: relative; }
@media (max-width: 720px) { section { padding-block: 72px; } }

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--olive), var(--forest));
  color: var(--cornsilk);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn-secondary {
  background: rgba(var(--forest-rgb), 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(var(--forest-rgb), 0.1); transform: translateY(-3px); }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Navbar — floating glass bar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1240px;
  z-index: 1000;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--surface-rgb), 0.65);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(var(--forest-rgb), 0.08);
  box-shadow: 0 10px 40px rgba(var(--forest-rgb), 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 14px 46px rgba(var(--forest-rgb), 0.16); }

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; padding-inline-start: 8px; }
.nav-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }

.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(var(--olive-rgb), 0.12); color: var(--text-primary); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switcher { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(var(--olive-rgb), 0.12);
  font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
}
.lang-toggle svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 6px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text-primary); text-align: start;
}
.lang-option:hover { background: rgba(var(--olive-rgb), 0.1); }
.lang-option.active { color: var(--accent); font-weight: 700; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--olive-rgb), 0.12);
  color: var(--text-primary);
  flex-shrink: 0;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(var(--olive-rgb), 0.12);
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-cta { display: inline-flex; }

@media (max-width: 1140px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile slide-out menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(var(--forest-rgb), 0.55);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-panel {
  position: absolute; top: 0; inset-inline-end: 0;
  width: min(320px, 85vw); height: 100%;
  background: var(--surface);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1);
}
[dir='rtl'] .mobile-menu-panel { transform: translateX(-100%); }
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--olive-rgb), 0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.mobile-menu-panel a {
  padding: 14px 10px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--border);
}
.mobile-menu-panel .btn { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Hero — cinematic Kaaba scene
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* var(--bg), not var(--forest) — this shows for an instant before the
     first frame paints, but it's also what was peeking through as a thin
     dark line right below .hero-video-wrap::after: that guard strip (and
     the canvas/scrim it sits above) can land a sub-pixel short of the
     hero's own true bottom edge, and whatever color sits here is what
     fills that gap. Matching the page background makes the gap invisible
     instead of a visible seam. */
  background: var(--bg);
  /* The pinned hero's own box lands on a fractional sub-pixel height
     (GSAP ScrollTrigger math), and its canvas is on its own GPU
     compositing layer (the scroll-driven scale tween). Two separately
     composited layers meeting on a fractional boundary can leave a
     hairline seam that no amount of background color can paint over —
     pulling the next section up by 1px so it overlaps instead of
     butting against the edge removes the gap the seam needs to exist in. */
  margin-bottom: -1px;
}
/* Seam guard, anchored directly to .hero's own box (not to
   .hero-video-wrap, a nested absolutely-positioned child whose computed
   bottom edge can round to a sub-pixel short of hero's true edge) — a
   thin solid strip, above everything in the hero, pinned to hero's
   actual rendered bottom so the handoff to the next section is always
   flat var(--bg), never a sliver of whatever's underneath. */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 10px;
  background: var(--bg);
  z-index: 5;
}

/* Full-bleed on desktop — fills the whole hero behind the text, not a
   boxed-in card. A smaller bottom-anchored band on mobile instead (see the
   max-width: 720px block near the end of this section) so a tall narrow
   viewport doesn't crop most of the landscape footage away just to cover
   full height. */
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.88) contrast(1.04) brightness(0.8);
}
/* This is the "blended with the background" treatment: a top-to-bottom
   scrim so the video fades into the navbar area and into the next section
   at the bottom, instead of ending in a hard edge, while staying dark
   enough in the middle for the overlaid text to read clearly. */
.hero-video-scrim {
  position: absolute; inset: 0; z-index: 1;
  /* Neutral black, not rgba(var(--forest-rgb), ...) — forest is a dark
     green, which tinted the whole video green the same way the removed
     .hero-video-tint did. Black gives the same darken-for-readability +
     fade-to-background effect with no color cast. */
  /* The last stop reaches a fully-opaque var(--bg) at 92%, not 100% — a
     stop landing exactly at the box edge interpolates through a
     partially-transparent dark color right up to the last pixel, which
     over the (often dark) final video frame reads as a thin dark seam
     right where the hero meets the next section. Holding solid bg for
     the last 8% guarantees the canvas is fully covered before the edge. */
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.25) 22%,
      rgba(0, 0, 0, 0.35) 70%,
      var(--bg) 92%,
      var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-text { max-width: 720px; text-align: center; }
.hero-text .eyebrow { color: var(--olive-bright); justify-content: center; }
.hero-text .eyebrow::before { background: var(--olive-bright); }
.hero-title { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.12; margin-bottom: 22px; color: var(--cornsilk); }
.hero-subtitle { font-size: 1.1rem; color: rgba(254, 250, 224, 0.82); max-width: 560px; margin-inline: auto; margin-bottom: 36px; }

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
/* The hero sits on a dark video regardless of the light/dark toggle, so its
   secondary button needs its own light-on-dark styling rather than the
   theme-dependent default (which assumes a light surface behind it). */
.hero-cta-row .btn-secondary {
  background: rgba(254, 250, 224, 0.1);
  color: var(--cornsilk);
  border: 1px solid rgba(254, 250, 224, 0.35);
}
.hero-cta-row .btn-secondary:hover { background: rgba(254, 250, 224, 0.18); }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(254, 250, 224, 0.75); letter-spacing: 0.05em;
  z-index: 2;
}
.scroll-hint .dot { width: 6px; height: 10px; border: 2px solid var(--olive-bright); border-radius: 4px; position: relative; }
.scroll-hint .dot::after {
  content: ''; position: absolute; top: 2px; left: 50%; width: 2px; height: 4px;
  background: var(--olive-bright); border-radius: 2px; transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 1; top: 2px; } 100% { opacity: 0; top: 8px; } }

/* Mobile uses this exact same full-bleed treatment as desktop — no boxed/
   masked variant — because it's fed its own portrait (9:16) frame sequence
   (assets/hero-frames-mobile/) instead of trying to crop the landscape one
   down, so object-fit: cover never has much to crop in the first place. See
   js/main.js initHeroScrollEffect for how the frame set + canvas size is
   picked per breakpoint; the scroll-pin logic itself is identical either
   way. */

/* --------------------------------------------------------------------------
   Glass card (shared)
   -------------------------------------------------------------------------- */
.glass-card {
  background: rgba(var(--surface-rgb), 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(var(--forest-rgb), 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
/* Second seam guard, from the About side: a solid strip that overlaps a
   few pixels up into the hero's bottom edge. The hero-side guard
   (.hero-video-wrap::after) already covers its own last pixels, but the
   pinned hero's box can land on a fractional sub-pixel boundary (GSAP
   ScrollTrigger math), which can leave a 1-device-pixel seam between the
   two elements' own edges even when both sides are individually solid.
   Overlapping from this side closes that gap regardless of which side's
   rounding is off. */
#about { position: relative; }
#about::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--bg);
  z-index: 1;
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.stat-card { padding: 22px; border-radius: var(--radius-md); background: rgba(var(--olive-rgb), 0.08); text-align: center; }
.stat-number { font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }

.about-visual {
  position: relative;
  aspect-ratio: 720 / 1280; /* matches the frame sequence's own portrait ratio */
  max-width: 420px;
  margin-inline: auto;
}
.about-video-bg { width: 100%; height: 100%; object-fit: contain; }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .features-layout { grid-template-columns: 1fr; } }

.feature-list { display: flex; flex-direction: column; gap: 18px; }
.feature-item {
  display: flex; gap: 18px; padding: 22px;
  border-radius: var(--radius-md);
  transition: background 0.25s ease, transform 0.25s ease;
}
.feature-item:hover { background: rgba(var(--olive-rgb), 0.08); transform: translateY(-2px); }
.feature-icon {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--olive), var(--forest));
  color: var(--cornsilk);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* Phone mockup */
.phone-mockup-wrap { display: flex; justify-content: center; }
.phone-mockup {
  position: relative;
  width: 280px;
  aspect-ratio: 9/19.2;
  border-radius: 46px;
  background: var(--forest);
  padding: 14px;
  box-shadow: var(--shadow-lift);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--cornsilk);
  position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: var(--forest); border-radius: 20px; z-index: 3;
}
.phone-screen-content {
  flex: 1; padding: 40px 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.phone-screen-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.phone-screen-header img { width: 26px; height: 26px; border-radius: 8px; }
.phone-screen-header span { font-size: 11px; font-weight: 700; color: var(--forest); }
.phone-card {
  background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 4px 14px rgba(40,54,24,0.08);
  display: flex; gap: 10px; align-items: center;
}
.phone-card .thumb { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--olive), var(--olive-bright)); flex-shrink: 0; }
.phone-card .lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.phone-card .line { height: 6px; border-radius: 4px; background: #e3dcc0; }
.phone-card .line.short { width: 55%; }
.phone-float-badge {
  position: absolute; top: -14px; inset-inline-end: -22px;
  background: var(--surface); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700;
}
.phone-float-badge svg { width: 18px; height: 18px; color: var(--success); }
.mockup-note {
  text-align: center; font-size: 0.75rem; color: var(--text-secondary);
  margin-top: 14px; opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */
.download-card {
  padding: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--olive-rgb), 0.14), rgba(var(--forest-rgb), 0.06));
  text-align: center;
}
@media (max-width: 860px) { .download-card { padding: 40px 28px; } }

.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.store-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  background: var(--forest); color: var(--cornsilk);
  font-weight: 600; transition: transform 0.25s ease;
}
.store-btn:hover { transform: translateY(-3px); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn .store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-btn .store-text small { font-size: 0.65rem; opacity: 0.8; }
.store-btn .store-text strong { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Partner form
   -------------------------------------------------------------------------- */
.partner-card { padding: 56px; }
@media (max-width: 720px) { .partner-card { padding: 30px 22px; } }

.partner-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(var(--olive-rgb), 0.1);
  border: 1px solid rgba(var(--olive-rgb), 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.88rem; color: var(--text-primary);
  margin-bottom: 40px;
}
.partner-notice svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.form-section-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.form-section-title .num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--cornsilk);
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 44px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid.full { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--olive-rgb), 0.14);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 0.78rem; color: var(--danger); display: none; }
.field.has-error .field-error { display: block; }

.password-field { position: relative; }
.password-toggle {
  position: absolute; inset-inline-end: 14px; top: 38px;
  color: var(--text-secondary); display: flex; align-items: center;
}
.password-toggle svg { width: 19px; height: 19px; }

.form-success {
  display: none;
  text-align: center;
  padding: 50px 20px;
}
.form-success.show { display: block; }
.form-success .icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(76, 122, 61, 0.14);
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; margin-bottom: 20px;
}
.form-success .icon-wrap svg { width: 36px; height: 36px; color: var(--success); }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); }
.partner-form.hide, .contact-form.hide { display: none; }

/* --------------------------------------------------------------------------
   HM Studio
   -------------------------------------------------------------------------- */
.studio-section { text-align: center; }
.studio-card { max-width: 820px; margin-inline: auto; padding: 64px 48px; }
@media (max-width: 720px) { .studio-card { padding: 42px 24px; } }
.studio-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(var(--forest-rgb), 0.9); color: var(--cornsilk); font-weight: 700; font-size: 0.85rem;
  margin-bottom: 24px;
}
.studio-badge svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-md);
}
.contact-info-card .icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: rgba(var(--olive-rgb), 0.14); display: flex; align-items: center; justify-content: center;
}
.contact-info-card .icon svg { width: 22px; height: 22px; color: var(--accent); }
.contact-info-card strong { display: block; font-size: 0.95rem; }
.contact-info-card span, .contact-info-card a { font-size: 0.85rem; color: var(--text-secondary); }
.contact-info-card a:hover { color: var(--accent); }
.social-row { display: flex; gap: 10px; margin-top: 10px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(var(--olive-rgb), 0.12);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.social-row a:hover { background: rgba(var(--olive-rgb), 0.22); }
.social-row a svg { width: 19px; height: 19px; color: var(--accent); }

.contact-form-card { padding: 42px; }
@media (max-width: 720px) { .contact-form-card { padding: 28px 22px; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { background: var(--forest); color: var(--cornsilk); padding-block: 56px 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand div strong { font-size: 1.1rem; }
.footer-brand div p { font-size: 0.85rem; color: rgba(254,250,224,0.65); margin-top: 2px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-col h4 { color: var(--cornsilk); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; opacity: 0.85; }
body[data-lang='ckb'] .footer-col h4, body[data-lang='ar'] .footer-col h4 { letter-spacing: 0; text-transform: none; }
.footer-col a { display: block; font-size: 0.9rem; color: rgba(254,250,224,0.75); margin-bottom: 10px; }
.footer-col a:hover { color: var(--cornsilk); }
.footer-bottom {
  border-top: 1px solid rgba(254,250,224,0.14); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: rgba(254,250,224,0.6);
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll utility (JS toggles .is-visible)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-stars span { animation: none; }
}
