/* ============================================================
   Mok3com TimeGuard — product website
   Light, calm design system. Blue + mint pulled from the logo.
   Logical properties throughout so Arabic RTL and English LTR
   share one stylesheet.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* palette */
  --bg:            #F7FAFF;
  --bg-alt:        #F3F8FF;
  --surface:       #FFFFFF;
  --surface-soft:  #F8FBFF;

  --ink:           #0C1B33;
  --ink-2:         #24354F;
  --body:          #45566F;
  --muted:         #5C6E88;

  --line:          #E1EAF7;
  --line-2:        #EDF3FB;

  --brand:         #1D5AE0;
  --brand-deep:    #1747B4;
  --brand-soft:    #E9F1FF;
  --brand-ring:    rgba(29, 90, 224, 0.28);

  --mint:          #0B9E77;
  --mint-soft:     #E4F8F1;

  --danger:        #D64545;

  /* type */
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Manrope", "Cairo", "Segoe UI", Tahoma, sans-serif;

  --fs-h1: clamp(1.85rem, 1.05rem + 2.1vw, 3rem);
  --fs-h2: clamp(1.45rem, 1.12rem + 1.15vw, 2.15rem);
  --fs-h3: clamp(1.02rem, 0.96rem + 0.28vw, 1.16rem);
  --fs-body: clamp(0.99rem, 0.96rem + 0.13vw, 1.06rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.79rem;

  --lh-h1: 1.34;
  --lh-h2: 1.38;
  --lh-body: 1.85;

  /* geometry */
  --wrap: 1240px;
  --pad-x: clamp(18px, 4vw, 28px);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* header / logo scroll choreography (--logo-p is written by JS, 0 → 1) */
  --logo-p: 0;
  --logo-max: 94px;
  --logo-min: 46px;
  --hdr-max: 108px;
  --hdr-min: 72px;
  --logo: calc(var(--logo-max) - (var(--logo-max) - var(--logo-min)) * var(--logo-p));
  --hdr-h: calc(var(--hdr-max) - (var(--hdr-max) - var(--hdr-min)) * var(--logo-p));

  /* elevation */
  --sh-xs: 0 1px 2px rgba(12, 32, 74, 0.05);
  --sh-sm: 0 6px 18px -12px rgba(12, 32, 74, 0.28);
  --sh-md: 0 22px 45px -32px rgba(12, 32, 74, 0.42);
  --sh-lg: 0 46px 90px -46px rgba(12, 32, 74, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Arabic reads better with a touch more air and no negative tracking */
html[lang="ar"] {
  --fs-h1: clamp(1.8rem, 1rem + 1.85vw, 2.7rem);
  --lh-h1: 1.4;
  --lh-h2: 1.45;
  --lh-body: 1.92;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-min) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-ar);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[lang="en"] body { font-family: var(--font-en); }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
  line-height: var(--lh-h2);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.5; }

html[lang="en"] h1,
html[lang="en"] h2 { letter-spacing: -0.022em; }

p { margin: 0; }

::selection { background: rgba(29, 90, 224, 0.16); }

:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- 3. Header ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 16px 34px -30px rgba(12, 32, 74, 0.55);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
  height: var(--hdr-h);
}

/* brand + logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: var(--logo);
  height: var(--logo);
  flex: 0 0 auto;
  will-change: width, height;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
}

.brand-text strong {
  font-family: var(--font-en);
  font-size: calc(1.14rem - 0.13rem * var(--logo-p));
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-text span {
  font-size: calc(0.82rem - 0.05rem * var(--logo-p));
  color: var(--muted);
  white-space: nowrap;
}

/* nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 9px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}

.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.btn::after { display: none; }
.nav-links a.is-active { color: var(--brand); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.btn-lang { padding: 9px 18px; font-size: 0.86rem; }

/* burger */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  place-items: center;
  gap: 4px;
  grid-auto-flow: row;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.28s var(--ease), opacity 0.2s ease;
}

body.nav-open .nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* thin scroll progress under the header */
.nav-progress {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
}

.nav-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--scroll-p, 0));
  transform-origin: var(--prog-origin, left);
  background: linear-gradient(90deg, var(--brand), var(--mint));
  opacity: 0.9;
}

html[dir="rtl"] .nav-progress i { --prog-origin: right; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.28s ease,
              background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2A6BF0 0%, var(--brand) 52%, var(--brand-deep) 100%);
  box-shadow: 0 14px 26px -14px rgba(29, 90, 224, 0.62);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(29, 90, 224, 0.7);
}

.btn-ok {
  color: #fff;
  background: linear-gradient(135deg, #12B589 0%, var(--mint) 60%, #087F60 100%);
  box-shadow: 0 14px 26px -14px rgba(11, 158, 119, 0.58);
}

.btn-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(11, 158, 119, 0.66);
}

.btn-outline {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--sh-xs);
}

.btn-outline:hover {
  border-color: #CBDCF7;
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(18px, 2.6vw, 40px) clamp(26px, 3.4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(29, 90, 224, 0.13) 0%, rgba(29, 90, 224, 0) 62%);
  top: -34vw;
  inset-inline-end: -18vw;
}

.hero-glow--mint {
  top: auto;
  bottom: -46vw;
  inset-inline-end: auto;
  inset-inline-start: -22vw;
  background: radial-gradient(circle, rgba(11, 158, 119, 0.12) 0%, rgba(11, 158, 119, 0) 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 3.6vw, 52px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.6;
}

.hero h1 { margin-bottom: 14px; }

.hero-sub {
  color: var(--body);
  font-size: var(--fs-body);
  max-width: 54ch;
  margin-bottom: 22px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  max-width: 520px;
}

.hero-stats > div {
  padding-inline-start: clamp(10px, 1.6vw, 18px);
  border-inline-start: 1px solid var(--line);
}

.hero-stats > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.hero-stats b {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.hero-stats > div:nth-child(2) b { color: var(--mint); }

.hero-stats span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.6;
}

/* product shot */
.shot {
  position: relative;
  padding: 6px;
  border-radius: var(--r-lg);
  background: #0B1626;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--sh-lg), 0 10px 24px -18px rgba(12, 32, 74, 0.5);
}

.shot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-lg) + 1px);
  padding: 1px;
  background: linear-gradient(140deg, rgba(42, 107, 240, 0.55), rgba(11, 158, 119, 0.35) 55%, rgba(42, 107, 240, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-lg) - 7px);
}

/* ---------- 6. Animated product banner ---------- */
.banner-wrap {
  padding-block: 4px clamp(8px, 1.4vw, 16px);
}

.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 34px);
  min-height: clamp(108px, 13vw, 138px);
  padding: clamp(16px, 2.1vw, 26px) clamp(18px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(118deg, #EFF5FF 0%, #FFFFFF 42%, #F0FBF6 100%);
  box-shadow: var(--sh-md);
  overflow: hidden;
  isolation: isolate;
}

/* slow sheen sweeping across the banner */
.promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(102deg, transparent 34%, rgba(255, 255, 255, 0.85) 50%, transparent 66%);
  transform: translateX(-130%);
  animation: banner-sheen 11s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

/* soft breathing glow at the inline-end corner */
.promo-banner::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 320px;
  height: 320px;
  inset-inline-end: -90px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 158, 119, 0.18), rgba(11, 158, 119, 0) 68%);
  animation: banner-breathe 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes banner-sheen {
  0%, 62% { transform: translateX(-130%); }
  100%    { transform: translateX(130%); }
}

@keyframes banner-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.16); opacity: 1; }
}

.promo-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
  min-width: 0;
  flex: 1 1 0;
}

.promo-mark {
  display: grid;
  place-items: center;
  width: clamp(46px, 5.2vw, 62px);
  height: clamp(46px, 5.2vw, 62px);
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}

.promo-mark img { width: 100%; height: 100%; object-fit: contain; }

.promo-copy {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-copy strong {
  font-family: var(--font-en);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}

/* marquee */
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 5%,
    rgba(0, 0, 0, 0.35) 11%,
    rgba(0, 0, 0, 0.75) 17%,
    #000 23%,
    #000 77%,
    rgba(0, 0, 0, 0.75) 83%,
    rgba(0, 0, 0, 0.35) 89%,
    rgba(0, 0, 0, 0.1) 95%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 5%,
    rgba(0, 0, 0, 0.35) 11%,
    rgba(0, 0, 0, 0.75) 17%,
    #000 23%,
    #000 77%,
    rgba(0, 0, 0, 0.75) 83%,
    rgba(0, 0, 0, 0.35) 89%,
    rgba(0, 0, 0, 0.1) 95%,
    rgba(0, 0, 0, 0) 100%
  );
}

.mq-copy {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 46s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.mq-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.9;
}

.mq-dot {
  margin-inline: 14px;
  color: #A9C2E6;
  font-size: 0.8rem;
  line-height: 1;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Arabic reads right to left, so the ticker travels the other way */
@keyframes marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(50%, 0, 0); }
}

html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }

.promo-cta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 12px 22px;
  font-size: 0.9rem;
}

/* ---------- 7. Sections ---------- */
.section {
  padding-block: clamp(52px, 6.6vw, 100px);
}

.section.alt {
  background: linear-gradient(180deg, #F2F7FF 0%, #FAFCFF 100%);
  border-block: 1px solid var(--line-2);
}

.sec-head {
  max-width: 780px;
  margin: 0 auto clamp(26px, 3.6vw, 46px);
  text-align: center;
}

.sec-head::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
}

.sec-head h2 { margin-bottom: 12px; }

.sec-head p {
  color: var(--muted);
  font-size: var(--fs-body);
  max-width: 64ch;
  margin-inline: auto;
}

/* ---------- 8. Feature / step cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform 0.32s var(--ease), box-shadow 0.32s ease, border-color 0.32s ease;
  overflow: hidden;
}

.fcard::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transform: scaleX(0);
  transform-origin: var(--accent-origin, left);
  transition: transform 0.4s var(--ease);
}

html[dir="rtl"] .fcard::after { --accent-origin: right; }

.fcard:hover {
  transform: translateY(-5px);
  border-color: #D2E2FA;
  box-shadow: 0 30px 54px -38px rgba(12, 32, 74, 0.55);
}

.fcard:hover::after { transform: scaleX(1); }

.fcard .ic {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--brand-soft);
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(29, 90, 224, 0.08);
}

/* the step numbers are already boxed glyphs, so drop the tile behind them */
.step-card .ic {
  width: auto;
  height: auto;
  margin-bottom: 10px;
  background: none;
  box-shadow: none;
  font-size: 2rem;
}

.fcard:nth-child(3n + 2) .ic {
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px rgba(11, 158, 119, 0.1);
}

.fcard:nth-child(3n + 3) .ic {
  background: #FFF5E8;
  box-shadow: inset 0 0 0 1px rgba(196, 132, 32, 0.12);
}

.fcard h3 { margin-bottom: 8px; }

.fcard p {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* steps get a connector line between the three cards */
.steps-grid { position: relative; }

/* ---------- 9. Tour: tabs + gallery ---------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 2.8vw, 34px);
}

.ftab {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease,
              box-shadow 0.22s ease, transform 0.22s var(--ease);
}

.ftab:hover {
  border-color: #CBDCF7;
  color: var(--brand);
  transform: translateY(-1px);
}

.ftab.active {
  color: #fff;
  background: linear-gradient(135deg, #2A6BF0, var(--brand-deep));
  border-color: transparent;
  box-shadow: 0 12px 24px -14px rgba(29, 90, 224, 0.7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

.gcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.32s var(--ease), box-shadow 0.32s ease, border-color 0.32s ease;
}

.gcard:hover {
  transform: translateY(-5px);
  border-color: #CBDCF7;
  box-shadow: 0 30px 54px -38px rgba(12, 32, 74, 0.55);
}

.gshot {
  position: relative;
  overflow: hidden;
  background: #0B1626;
  border-bottom: 1px solid var(--line);
}

.gshot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}

.gcard:hover .gshot img { transform: scale(1.045); }

.gbody {
  padding: 15px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gwhere {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.01em;
}

.gbody h3 { margin: 0; }

.gbody p {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.78;
}

/* ---------- 10. Plans ---------- */
.split-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.pcard {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform 0.32s var(--ease), box-shadow 0.32s ease;
}

.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.pcard.pro {
  background: linear-gradient(168deg, #F2FBF7 0%, #FFFFFF 58%);
  border-color: #BEE7D9;
  box-shadow: 0 30px 60px -44px rgba(11, 158, 119, 0.55);
}

.pcard h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
  margin-bottom: 6px;
}

.pcard ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.pcard li {
  padding-block: 10px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.pcard li:last-child { border-bottom: 0; }

/* ---------- 11. Guides banner ---------- */
.guide-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(29, 90, 224, 0.1) 0%, rgba(29, 90, 224, 0) 55%),
    linear-gradient(120deg, #F4F8FF 0%, #FFFFFF 55%, #F1FBF7 100%);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  overflow: hidden;
}

.guide-copy { flex: 1 1 420px; min-width: 0; }

.guide-banner h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  margin-bottom: 8px;
}

.guide-banner p {
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 62ch;
}

.guide-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 12. FAQ ---------- */
.faq-list {
  max-width: 880px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

.faq-item.open {
  border-color: #C9DDFB;
  box-shadow: 0 24px 46px -36px rgba(12, 32, 74, 0.5);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.99rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: start;
  cursor: pointer;
}

.faq-q > span:last-child {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8rem;
  transition: transform 0.32s var(--ease), background 0.28s ease, color 0.28s ease;
}

.faq-item.open .faq-q > span:last-child {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}

.faq-a {
  display: none;
  padding: 0 22px 20px;
  color: var(--body);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

.faq-item.open .faq-a {
  display: block;
  animation: faq-in 0.34s var(--ease);
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 13. Footer ---------- */
.footer {
  padding-block: clamp(26px, 3.4vw, 40px);
  background: #F1F6FF;
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-brand { gap: 12px; }

.foot-brand .brand-logo {
  width: 46px;
  height: 46px;
}

.foot-text {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.foot-text #foot-desc { color: var(--ink-2); }

.foot-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.foot-links a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.foot-links a:hover {
  color: var(--brand);
  border-color: #CBDCF7;
  transform: translateY(-1px);
}

/* ---------- 14. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 30px);
  background: rgba(8, 18, 34, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: lb-fade 0.24s ease;
}

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.hidden { display: none !important; }

.lb-card {
  position: relative;
  width: 100%;
  max-width: 1120px;
  max-height: 94vh;
  overflow: auto;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.7);
  animation: lb-rise 0.32s var(--ease);
}

@keyframes lb-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.lb-stage {
  position: relative;
  overflow: hidden;
  background: #0B1626;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.lb-stage img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.45s var(--ease);
  transform-origin: center center;
}

.lb-stage img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

.lb-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.7);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lb-close:hover { background: var(--danger); color: #fff; transform: scale(1.06); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lb-nav:hover { background: #fff; }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }

.lb-count {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.lb-meta { padding: 16px clamp(18px, 2.6vw, 26px) 24px; }

.lb-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lb-where {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--mint);
}

.lb-meta h3 { margin: 6px 0 8px; }

.lb-where { margin: 0; }

.lb-meta p {
  margin: 0;
  color: var(--body);
  font-size: var(--fs-sm);
  line-height: 1.85;
}

/* ---------- 15. Scroll reveal (AOS drives .aos-animate) ---------- */
html.aos-on [data-aos] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  transition-delay: var(--d, 0ms);
}

html.aos-on [data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 7px; font-size: 0.87rem; }
  .brand-text span { display: none; }
}

@media (max-width: 980px) {
  :root {
    --logo-max: 74px;
    --logo-min: 42px;
    --hdr-max: 88px;
    --hdr-min: 66px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(26px, 5vw, 40px);
  }

  .hero-sub { max-width: none; }
  .hero-stats { max-width: none; }

  .nav-toggle { display: grid; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: var(--pad-x);
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: 0 34px 64px -34px rgba(12, 32, 74, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.28s var(--ease), visibility 0.24s;
  }

  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .nav-links a::after { display: none; }
  .nav-links a:hover { background: var(--surface-soft); }

  .brand-text span { display: block; }
}

@media (max-width: 760px) {
  .promo-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
  }

  .promo-cta { width: 100%; }

  .marquee { max-width: none; }

  .guide-banner { flex-direction: column; align-items: flex-start; }

  .guide-btns { width: 100%; }
  .guide-btns .btn { flex: 1 1 200px; }

  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root {
    --logo-max: 64px;
    --logo-min: 40px;
  }

  .nav-inner { gap: 10px; }
  .brand-text strong { font-size: 0.95rem; }
  .btn-lang { padding: 8px 12px; font-size: 0.8rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero-stats { gap: 10px; }
  .hero-stats b { font-size: 1.4rem; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .lb-nav { width: 38px; height: 38px; font-size: 22px; }
}

/* ---------- 17. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track { animation: none; }
  .promo-banner::after,
  .promo-banner::before { animation: none; }
  html.aos-on [data-aos] { opacity: 1; transform: none; }
}

/* ---------- 18. Print ---------- */
@media print {
  .navbar, .banner-wrap, .lightbox, .hero-glow { display: none !important; }
  body { background: #fff; }
}

/* ============================================================
   16. Download bars, contact block, motion layer, legal page
   ============================================================ */

/* ---------- fixed top download bar ---------- */
:root { --dlbar-h: 46px; }

body { padding-block-start: var(--dlbar-h); }

.navbar { top: var(--dlbar-h); }

.dlbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--dlbar-h);
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(96deg, #10357F 0%, #1D5AE0 46%, #0B9E77 100%);
  box-shadow: 0 12px 26px -20px rgba(12, 32, 74, 0.75);
}

.dlbar-inner {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  height: 100%;
  min-width: 0;
}

.dlbar-tag {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dlbar-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0.96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dlbar-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: #fff;
  color: #123A87;
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px -12px rgba(4, 18, 48, 0.8);
  transition: transform 0.24s var(--ease), box-shadow 0.24s ease;
}

.dlbar-btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 12px 22px -12px rgba(4, 18, 48, 0.85); }
.dlbar-btn:active { transform: translateY(0) scale(0.99); }

.dlbar-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.dlbar-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

body.dlbar-off { --dlbar-h: 0px; }
body.dlbar-off .dlbar { display: none; }

/* ---------- in-flow download banner ---------- */
.dlband-wrap { padding-block: clamp(6px, 1.4vw, 18px) 0; }

.dlband {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(14px, 1.9vw, 22px) clamp(16px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(112deg, #E9F1FF 0%, #FFFFFF 48%, #E7FAF2 100%);
  box-shadow: var(--sh-md);
  overflow: hidden;
  isolation: isolate;
  animation: dlband-float 7s ease-in-out infinite;
}

.dlband-glow {
  position: absolute;
  z-index: -1;
  inset-inline-end: -70px;
  top: -130px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 90, 224, 0.16), rgba(29, 90, 224, 0) 68%);
  pointer-events: none;
}

.dlband::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(102deg, transparent 36%, rgba(255, 255, 255, 0.9) 50%, transparent 64%);
  transform: translateX(-130%);
  animation: banner-sheen 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

.dlband-mark { flex: 0 0 auto; display: grid; place-items: center; }
.dlband-mark img { width: clamp(40px, 4.4vw, 52px); height: auto; filter: drop-shadow(0 8px 14px rgba(12, 32, 74, 0.16)); }

.dlband-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.dlband-copy strong { color: var(--ink); font-size: clamp(1rem, 0.94rem + 0.35vw, 1.2rem); font-weight: 800; line-height: 1.5; }
.dlband-copy span { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

.btn-dl {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #12B589 0%, var(--mint) 58%, #087F60 100%);
  box-shadow: 0 16px 30px -16px rgba(11, 158, 119, 0.66);
  text-decoration: none;
}

.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -18px rgba(11, 158, 119, 0.72); }

.dlband-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.85;
}

@keyframes dlband-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- contact ---------- */
.contact-sec { position: relative; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 1180px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(20px, 2.3vw, 28px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  transition: transform 0.32s var(--ease), box-shadow 0.32s ease, border-color 0.32s ease;
}

.contact-card:hover { transform: translateY(-4px); border-color: #D2E2FA; box-shadow: 0 30px 54px -38px rgba(12, 32, 74, 0.5); }

.contact-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--brand-soft);
  font-size: 1.4rem;
}

.contact-card h3 { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.contact-card p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.8; }
.contact-card .btn { margin-top: auto; }
.contact-mail { margin: 2px 0 12px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.2px; unicode-bidi: plaintext; }

/* nav contact pill */
.btn-contact {
  padding: 9px 18px;
  font-size: 0.88rem;
  text-decoration: none;
}

/* ---------- motion layer ---------- */
.dl-ico { font-size: 0.95em; line-height: 1; }

/* button ripple */
.btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: ripple-out 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.btn-outline .ripple, .dlbar-btn .ripple { background: rgba(29, 90, 224, 0.18); }

@keyframes ripple-out {
  to { transform: scale(2.6); opacity: 0; }
}

/* hero parallax + entrance */
.hero-visual { will-change: transform; }
.hero-visual .shot { transform: translate3d(0, var(--par, 0px), 0); transition: transform 0.1s linear; }

.hero-copy > * { animation: rise-in 0.85s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.24s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* pointer-follow tilt + spotlight on feature cards */
@media (hover: hover) and (pointer: fine) {
  .fcard { transform-style: preserve-3d; }

  .fcard::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(29, 90, 224, 0.1), rgba(29, 90, 224, 0) 70%);
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
  }

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

  .fcard:hover {
    transform: translateY(-5px) perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  }

  .fcard > * { position: relative; z-index: 1; }
}

/* springy lang toggle */
.btn-lang { transition: transform 0.24s var(--ease), border-color 0.24s ease, color 0.24s ease; }
.btn-lang:active { transform: scale(0.95); }

/* reduced motion: everything static */
@media (prefers-reduced-motion: reduce) {
  .dlband { animation: none; }
  .dlband::after, .promo-banner::after, .promo-banner::before { animation: none; }
  .hero-copy > * { animation: none; }
  .hero-visual .shot { transition: none; transform: none; }
  .ripple { display: none; }
  .fcard:hover { transform: translateY(-3px); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --dlbar-h: 42px; }
  .dlbar-text { font-size: 0.78rem; }
  .dlbar-tag { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .dlband { flex-wrap: wrap; }
  .dlband-copy { flex-basis: calc(100% - 70px); }
  .dlband .btn-dl { width: 100%; }
}

@media (max-width: 520px) {
  :root { --dlbar-h: 40px; }
  .dlbar-btn { padding: 6px 12px; font-size: 0.78rem; }
  .dlbar-text { font-size: 0.72rem; }
  .btn-contact { display: none; }
}

/* ---------- legal page ---------- */
.legal-body { padding-block-end: 40px; }

.legal-hero {
  padding-block: clamp(28px, 4vw, 54px) clamp(12px, 1.6vw, 20px);
  background: linear-gradient(180deg, #EFF5FF 0%, var(--bg) 100%);
  border-block-end: 1px solid var(--line-2);
}

.legal-hero h1 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: var(--fs-h2);
  line-height: 1.4;
}

.legal-hero p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.legal-wrap { padding-block: clamp(26px, 3.4vw, 46px); }

.legal-doc { max-width: 860px; margin-inline: auto; }

.legal-doc h2 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);
  line-height: 1.5;
}

.legal-doc h2:first-of-type { margin-top: 0; }

.legal-doc p { margin: 0 0 12px; color: var(--body); font-size: 0.97rem; line-height: 1.95; }

.legal-doc ul { margin: 0 0 14px; padding-inline-start: 22px; color: var(--body); }
.legal-doc li { margin-bottom: 8px; line-height: 1.9; }

.legal-doc .legal-note {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid #CFE3FF;
  background: #F2F8FF;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.85;
}

.legal-doc .legal-note strong { color: var(--ink); }

.legal-meta { color: var(--muted); font-size: 0.84rem; }

.legal-back { margin-top: 26px; }

/* contact cards: explicit start alignment for RTL and LTR */
.contact-card { align-items: stretch; text-align: start; }
.contact-card .contact-ico { align-self: flex-start; }
.contact-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- pending placeholder tag ---------- */
.ph-tag {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.38);
}
.btn-outline .ph-tag {
  background: #EEF3FB;
  border-color: #D6E2F4;
  color: var(--muted);
}
a[data-placeholder] { cursor: default; }

/* anchor offset so a #dlband jump clears the fixed bar + navbar */
#dlband { scroll-margin-top: calc(var(--dlbar-h) + 96px); }

/* ============================================================
   17. Shared visual identity — site and program page
   One palette, type scale, radius and shadow set for both.
   ============================================================ */
:root {
  --tg-blue: #1D5AE0;
  --tg-ink: #12306B;
  --tg-mint: #0B9E77;
  --tg-bg: #F4F8FF;
  --tg-bg-2: #DEECFF;
  --tg-card: #FFFFFF;
  --tg-border: #D6E2F7;
  --tg-muted: #54688C;
  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px rgba(18, 48, 107, 0.12);

  /* remap the working tokens onto the identity */
  --ink: var(--tg-ink);
  --ink-2: #1B3F80;
  --body: var(--tg-muted);
  --muted: var(--tg-muted);
  --line: var(--tg-border);
  --line-2: #E6EFFB;
  --bg: var(--tg-bg);
  --bg-alt: #EAF2FF;
  --brand: var(--tg-blue);
  --mint: var(--tg-mint);

  --font-ar: "Noto Sans Arabic", "Tajawal", sans-serif;
  --font-en: "Inter", "Noto Sans", sans-serif;

  --fs-h1: clamp(2rem, 1.12rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 1.16rem + 1.3vw, 2.25rem);
  --fs-h3: clamp(1.06rem, 0.96rem + 0.45vw, 1.5rem);
  --fs-body: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --lh-h1: 1.16;
  --lh-h2: 1.24;
  --lh-body: 1.7;
}

html { background: var(--tg-bg); }

body {
  background: linear-gradient(90deg, var(--tg-bg), var(--tg-bg-2));
  color: var(--body);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.34; }

p, li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted); }

.section.alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(214, 226, 247, 0.75);
}

.btn {
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--tg-blue);
  box-shadow: 0 14px 26px -16px rgba(29, 90, 224, 0.62);
}

.btn-outline {
  background: #fff;
  color: var(--tg-blue);
  border: 1.5px solid var(--tg-blue);
  box-shadow: none;
}

.fcard,
.contact-card,
.pcard,
.gcard {
  border-radius: var(--radius-card);
  border-color: var(--tg-border);
  box-shadow: var(--shadow-card);
}

.gshot { border-bottom: 1px solid var(--tg-border); }
.shot { border-radius: var(--radius-card); }
/* gallery shots keep the card's own rounding; no inner radius */
.gshot img { border-radius: 0; }

/* 8 px mint strip above the footer */
.footer {
  position: relative;
  border-top: 0;
  background: rgba(255, 255, 255, 0.6);
}
.footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 8px;
  background: var(--tg-mint);
}

/* Arabic keeps a little more air than the Latin scale (it always has here) */
html[lang="ar"] {
  --fs-h1: clamp(1.95rem, 1.08rem + 2.45vw, 3.5rem);
  --lh-h1: 1.3;
  --lh-h2: 1.34;
  --lh-body: 1.8;
}

/* hero calls to action sit on one row in both languages */
.hero-btns .btn { padding-inline: 22px; }
