/*
 * Aladdin Homepage — marketing front page styles.
 * Ported from docs/Marketing/HTML/aladdin_agri_ai_unified_ecosystem_ver3.html,
 * scoped under .aladdin_homepage so it is safe in both standalone (shell) and
 * embedded (shortcode) modes. [PILLAR II]
 */

/* Standalone shell: kill the default body margin/white gap above the page. */
html, body.aladdin-homepage-shell { margin: 0; padding: 0; }
/* overflow-x:hidden on <body> forces overflow-y to compute to `auto`, turning
 * <body> into a second scroll container alongside <html> — two full-height
 * scrollbars. `clip` clips horizontal overflow WITHOUT creating a scroll
 * container, so only the window scrolls. */
body.aladdin-homepage-shell { background: #060d06; overflow-x: clip; }

.aladdin_homepage {
  --ah-bg:        #091708;
  --ah-bg-card:   rgba(255,255,255,0.03);
  --ah-bg-card-h: rgba(201,162,39,0.08);
  --ah-gold:      #c9a227;
  --ah-gold-d:    rgba(201,162,39,0.32);
  --ah-green:     #4d9130;
  --ah-green-d:   rgba(77,145,48,0.16);
  --ah-text:      #f0e8d0;
  --ah-text-muted:rgba(240,232,208,0.75);
  --ah-border:    rgba(201,162,39,0.15);
  --ah-r:         12px;

  position: relative;
  overflow: hidden;
  background: var(--ah-bg);
  color: var(--ah-text);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.aladdin_homepage *, .aladdin_homepage *::before, .aladdin_homepage *::after { box-sizing: border-box; margin: 0; padding: 0; }

.aladdin_homepage[dir="rtl"] { font-family: 'Cairo', 'Vazirmatn', sans-serif; }
.aladdin_homepage[lang="zh"] { font-family: 'Montserrat', 'Microsoft YaHei', 'PingFang SC', sans-serif; }
.aladdin_homepage[lang="fa"] { font-family: 'Vazirmatn', 'Cairo', sans-serif; }
/* Urdu: proper Nastaliq script with generous line-height. */
.aladdin_homepage[lang="ur"] { font-family: 'Noto Nastaliq Urdu', 'Cairo', serif; line-height: 2.15; }
.aladdin_homepage[lang="ur"] .ah-s-title,
.aladdin_homepage[lang="ur"] .ah-s-sub,
.aladdin_homepage[lang="ur"] .ah-s-desc,
.aladdin_homepage[lang="ur"] .ah-hero-quote,
.aladdin_homepage[lang="ur"] .ah-hero-portal,
.aladdin_homepage[lang="ur"] .ah-sl-cta,
.aladdin_homepage[lang="ur"] .ah-card-title,
.aladdin_homepage[lang="ur"] .ah-card-desc,
.aladdin_homepage[lang="ur"] .ah-price-title,
.aladdin_homepage[lang="ur"] .ah-road-title,
.aladdin_homepage[lang="ur"] .ah-section-head h2 { font-family: 'Noto Nastaliq Urdu', 'Cairo', serif; line-height: 2; }
/* Nastaliq descenders need extra vertical room or they clip at the bottom. */
.aladdin_homepage[lang="ur"] .ah-hero-quote { line-height: 2; padding-bottom: .35em; }
.aladdin_homepage[lang="ur"] .ah-s-title { padding-bottom: .25em; }

/* Ambient glow */
.aladdin_homepage::before, .aladdin_homepage::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(120px);
}
.aladdin_homepage::before { width: 600px; height: 420px; top: -100px; inset-inline-end: -150px; background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 60%); }
.aladdin_homepage::after  { width: 500px; height: 600px; bottom: -100px; inset-inline-start: -100px; background: radial-gradient(circle, rgba(77,145,48,0.08) 0%, transparent 60%); }

.ah-wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 20px 20px 80px; }

/* Gold metallic text */
.ah-gold {
  background: linear-gradient(180deg, #fff8d2 0%, #e8c65d 25%, #b58622 50%, #fadb74 75%, #8c6411 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.85)) drop-shadow(0 0 15px rgba(201,162,39,0.25));
}

/* Top nav / view toggle + language switcher */
.ah-topnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; position: relative; z-index: 100; }
.ah-topnav-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ah-home-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-family: inherit; font-weight: 600; background: rgba(0,0,0,0.4); border: 1px solid var(--ah-border); color: var(--ah-gold); padding: 10px 18px; border-radius: 30px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: all 0.3s ease; }
.ah-home-link:hover { background: var(--ah-bg-card-h); border-color: var(--ah-gold); transform: translateY(-1px); }
.ah-home-ico { font-size: 1.1em; line-height: 1; }
.ah-view-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; font-weight: 600; background: var(--ah-green-d); color: #fff; border: 1px solid var(--ah-gold-d); padding: 10px 20px; border-radius: 30px; transition: all 0.3s ease; }
.ah-view-toggle:hover { background: rgba(77,145,48,0.3); border-color: var(--ah-gold); transform: translateY(-1px); }
.ah-view-toggle .ah-arrow { transition: transform 0.3s ease; }
.ah-view-toggle:hover .ah-arrow { transform: translateX(3px); }
.aladdin_homepage[dir="rtl"] .ah-view-toggle .ah-arrow { transform: scaleX(-1); }
.aladdin_homepage[dir="rtl"] .ah-view-toggle:hover .ah-arrow { transform: scaleX(-1) translateX(3px); }
.ah-lang { position: relative; }
.ah-lang-btn {
  display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; font-weight: 600;
  background: rgba(0,0,0,0.4); border: 1px solid var(--ah-border); color: var(--ah-gold);
  padding: 10px 20px; border-radius: 30px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.ah-lang-btn:hover { background: var(--ah-bg-card-h); border-color: var(--ah-gold); transform: translateY(-1px); }
.ah-chev { font-size: 0.7em; transition: transform 0.3s; }
.ah-lang.is-open .ah-chev { transform: rotate(180deg); }
.ah-lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px;
  background: #061105; border: 1px solid var(--ah-border); border-radius: var(--ah-r);
  display: none; flex-direction: column; box-shadow: 0 8px 25px rgba(0,0,0,0.9); overflow: hidden; z-index: 40;
  max-height: 70vh; overflow-y: auto;
}
.ah-lang.is-open .ah-lang-menu { display: flex; }
.ah-lang-item {
  background: none; border: none; padding: 12px 18px; color: var(--ah-text); text-align: start; cursor: pointer;
  font-family: inherit; font-size: 0.9em; border-bottom: 1px solid rgba(255,255,255,0.03); transition: all 0.2s;
}
.ah-lang-item:hover { background: var(--ah-bg-card-h); color: var(--ah-gold); padding-inline-start: 22px; }
.ah-lang-item.is-active { background: rgba(201,162,39,0.16); color: var(--ah-gold); }

/* ════════════ ORNAMENTED MAIN MENU (collapses the nav to one line) ════════════
 * One gold, geometrically-ornamented button opens a glass dropdown holding every
 * nav link + the language switcher. Replaces the multi-pill row that wrapped on
 * mobile and pushed the slider down. Gold · green · silver in harmony. [PILLAR II] */
:root { --ah-silver: #dfe5ea; --ah-silver-d: rgba(223,229,234,.55); }
.ah-topnav--menu { justify-content: flex-start; }
.ah-menu { position: relative; z-index: 120; }

.ah-menu-btn {
  display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
  font-family: inherit; font-weight: 700; letter-spacing: .04em; font-size: .92rem;
  color: var(--ah-gold);
  padding: 11px 20px; border-radius: 40px;
  border: 1px solid var(--ah-gold-d);
  background:
    linear-gradient(180deg, rgba(201,162,39,.16), rgba(0,0,0,.45)),
    radial-gradient(120% 160% at 0% 0%, rgba(77,145,48,.18), transparent 60%);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 26px rgba(0,0,0,.4);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.ah-menu-btn:hover, .ah-menu.is-open .ah-menu-btn {
  border-color: var(--ah-gold); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(201,162,39,.18), 0 14px 32px rgba(201,162,39,.18);
}
/* Geometric gold "mark" — three offset filaments that align on open/hover. */
.ah-menu-mark { display: inline-flex; flex-direction: column; gap: 3px; width: 19px; }
.ah-menu-mark i { display: block; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ah-gold), #fadb74);
  transition: width .35s cubic-bezier(.22,.61,.36,1), margin .35s; }
.ah-menu-mark i:nth-child(1) { width: 19px; }
.ah-menu-mark i:nth-child(2) { width: 12px; margin-inline-start: 4px; }
.ah-menu-mark i:nth-child(3) { width: 16px; }
.ah-menu-btn:hover .ah-menu-mark i, .ah-menu.is-open .ah-menu-mark i { width: 19px; margin-inline-start: 0; }
.ah-menu-chev { font-size: .68em; transition: transform .3s; opacity: .85; }
.ah-menu.is-open .ah-menu-chev { transform: rotate(180deg); }

/* Glass dropdown panel */
.ah-menu-panel {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 0; z-index: 50;
  min-width: 268px; max-width: min(92vw, 340px);
  display: none; flex-direction: column; padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(201,162,39,.34);
  background:
    linear-gradient(180deg, rgba(12,24,12,.96), rgba(6,14,7,.97));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px rgba(0,0,0,.62), inset 0 0 0 1px rgba(255,255,255,.04);
}
.ah-menu.is-open .ah-menu-panel { display: flex; animation: ah-menu-in .22s ease both; }
@keyframes ah-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Green→gold filament with a silver diamond — the geometric ornament. */
.ah-menu-deco { position: relative; height: 14px; flex: 0 0 auto; }
.ah-menu-deco::before { content: ''; position: absolute; inset-inline: 12px; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ah-green), var(--ah-gold) 50%, var(--ah-green), transparent); opacity: .7; }
.ah-menu-deco::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  transform: translate(-50%,-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--ah-silver), var(--ah-silver-d));
  box-shadow: 0 0 0 1px rgba(201,162,39,.5), 0 0 10px rgba(223,229,234,.35); }
.ah-menu-deco--top { margin-bottom: 4px; }
.ah-menu-deco--bottom { margin-top: 4px; }

.ah-menu-divider { height: 1px; margin: 6px 10px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.32), transparent); }

/* Menu rows (links, the view toggle, the language toggle) */
.ah-menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 13px;
  font-family: inherit; font-weight: 600; font-size: .94rem; text-align: start;
  color: var(--ah-text); text-decoration: none; cursor: pointer;
  background: none; border: 1px solid transparent;
  transition: background .22s ease, border-color .22s ease, color .22s ease, padding-inline-start .22s ease;
}
.ah-menu-item:hover, .ah-menu-item:focus-visible {
  background: linear-gradient(90deg, rgba(201,162,39,.14), rgba(77,145,48,.10));
  border-color: rgba(201,162,39,.3); color: #fff8d2; outline: none;
  padding-inline-start: 18px;
}
.ah-menu-ico {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 9px; font-size: .95rem; color: var(--ah-gold);
  background: radial-gradient(circle at 30% 25%, rgba(201,162,39,.22), rgba(77,145,48,.12));
  border: 1px solid rgba(201,162,39,.28);
}
.ah-menu-text { flex: 1 1 auto; line-height: 1.25; }
.ah-menu-item .ah-arrow { color: var(--ah-gold); transition: transform .3s ease; }
.ah-menu-item:hover .ah-arrow { transform: translateX(3px); }
.aladdin_homepage[dir="rtl"] .ah-menu-item .ah-arrow { transform: scaleX(-1); }
.aladdin_homepage[dir="rtl"] .ah-menu-item:hover .ah-arrow { transform: scaleX(-1) translateX(3px); }

/* Language sub-control INSIDE the panel: the flyout expands inline (not absolute)
 * so it never escapes the panel or the viewport on mobile. */
.ah-menu-lang { position: static; width: 100%; }
.ah-menu-lang .ah-lang-btn { gap: 12px; }
.ah-menu-lang .ah-chev { margin-inline-start: auto; font-size: .7em; transition: transform .3s; }
.ah-menu-lang.is-open .ah-chev { transform: rotate(180deg); }
.ah-menu-panel .ah-lang-menu {
  position: static; inset: auto; min-width: 0; max-height: 46vh; overflow-y: auto;
  margin: 4px 6px 2px; padding: 6px; display: none;
  background: rgba(0,0,0,.34); border: 1px solid rgba(201,162,39,.16); border-radius: 12px;
  box-shadow: none;
}
.ah-menu-panel .ah-lang.is-open .ah-lang-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ah-menu-panel .ah-lang-item { border-radius: 9px; border-bottom: 0; padding: 9px 12px; }
.ah-menu-panel .ah-lang-item:hover { padding-inline-start: 14px; }

/* Mobile: shrink the menu band so the slider gets more of the first screen. */
@media (max-width: 720px) {
  .aladdin_homepage .ah-wrap { padding-top: 8px; }
  .ah-topnav--menu { margin-bottom: 8px; }
  .ah-menu-btn { padding: 9px 16px; font-size: .85rem; gap: 9px; }
  .ah-menu-mark { width: 17px; }
  .ah-menu-mark i:nth-child(1) { width: 17px; }
  .ah-menu-mark i:nth-child(3) { width: 14px; }
}

@media (max-width: 480px) {
  .ah-menu-panel { min-width: 0; width: min(86vw, 320px); }
  .ah-menu-panel .ah-lang.is-open .ah-lang-menu { grid-template-columns: 1fr; }
}

/* Header / hero */
.ah-header { text-align: center; padding: 28px 20px 8px; }
.ah-logo-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.ah-logo { font-family: 'Alex Brush', cursive; font-size: clamp(4.5rem, 12vw, 8.5rem); font-weight: 400; line-height: 0.9; letter-spacing: 2px; direction: ltr; }
.ah-sub { font-family: 'Cinzel Decorative', serif; font-size: clamp(1rem, 3.2vw, 1.7rem); font-weight: 700; letter-spacing: 6px; text-transform: uppercase; }
.aladdin_homepage[dir="rtl"] .ah-sub { letter-spacing: 0; }
.ah-tagline { font-family: 'Amiri', serif; font-style: italic; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.aladdin_homepage[lang="zh"] .ah-tagline { font-family: 'Montserrat', sans-serif; font-style: normal; }
.ah-tagline-2 { font-size: clamp(0.75rem, 2vw, 0.95rem); font-weight: 800; letter-spacing: 4px; text-transform: uppercase; opacity: 0.9; }
.aladdin_homepage[dir="rtl"] .ah-tagline-2 { letter-spacing: 0; }
.ah-divider { width: 180px; height: 1px; margin: 30px auto 0; background: linear-gradient(to right, transparent, var(--ah-gold), transparent); }

/* Banner */
.ah-banner { background: linear-gradient(90deg, transparent, rgba(201,162,39,0.05), transparent); border-top: 1px solid var(--ah-border); border-bottom: 1px solid var(--ah-border); padding: 24px 15px; margin: 30px 0 50px; text-align: center; }
.ah-banner-text { font-size: 1.15em; font-weight: 600; color: var(--ah-gold); line-height: 1.6; max-width: 800px; margin: 0 auto; }

/* Section headers */
.ah-section-head { display: flex; align-items: center; gap: 15px; margin: 50px 0 25px; }
.ah-section-head h2 { font-size: 1.2em; font-weight: 700; color: var(--ah-text); text-transform: uppercase; letter-spacing: 1px; }
.aladdin_homepage[dir="rtl"] .ah-section-head h2 { letter-spacing: 0; }
.ah-line { flex-grow: 1; height: 1px; background: linear-gradient(to right, var(--ah-border), transparent); }
.aladdin_homepage[dir="rtl"] .ah-line { background: linear-gradient(to left, var(--ah-border), transparent); }

/* Grids */
.ah-grid { display: grid; gap: 20px; margin-bottom: 40px; }
.ah-grid-core { grid-template-columns: 1fr; gap: 15px; }
.ah-grid-products { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ah-grid-modules { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }

/* Cards */
.ah-card { background: var(--ah-bg-card); border: 1px solid var(--ah-border); border-radius: var(--ah-r); padding: 24px; transition: all 0.3s ease; }
.ah-card:hover { background: var(--ah-bg-card-h); border-color: var(--ah-gold-d); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.ah-card-tech { border-inline-start: 4px solid var(--ah-gold); }
.ah-card-product { border-top: 3px solid var(--ah-green); background: linear-gradient(180deg, rgba(77,145,48,0.05) 0%, transparent 100%); }
.ah-card-title { font-size: 1.1em; font-weight: 700; color: var(--ah-gold); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ah-card-desc { font-size: 0.95em; color: var(--ah-text-muted); line-height: 1.7; }
.ah-tag { font-size: 0.7em; background: var(--ah-green-d); color: var(--ah-green); padding: 3px 10px; border-radius: 12px; font-weight: 700; }

/* CTA */
.ah-cta { text-align: center; padding: 50px 30px; margin-top: 60px; border-radius: var(--ah-r); background: linear-gradient(135deg, rgba(77,145,48,0.1), rgba(201,162,39,0.1)); border: 1px solid var(--ah-gold-d); }
.ah-cta-title { font-size: 1.5em; color: var(--ah-gold); font-weight: 700; margin-bottom: 15px; }
.ah-cta-desc { color: var(--ah-text-muted); margin-bottom: 30px; }
.ah-cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.ah-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.4); border: 1px solid var(--ah-border); color: var(--ah-gold); padding: 12px 24px; border-radius: 30px; cursor: pointer; font-family: inherit; font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.ah-btn:hover { background: var(--ah-bg-card-h); border-color: var(--ah-gold); transform: translateY(-1px); }
.ah-btn-primary { background: var(--ah-green-d); color: #fff; border-color: var(--ah-gold-d); }
.ah-btn-primary:hover { background: rgba(77,145,48,0.3); }

/* ── Footer — UNIFIED with the Front Office (al-site-footer) ──
   Ported verbatim from assets/front-office/css/public-preview-default1.css
   (rules + --sf-* tokens), scoped under .aladdin_homepage so it renders
   identically to the FO guest-page footer. [identity unity] */
.aladdin_homepage .al-site-footer {
  --sf-bg-1: #3D2900; --sf-bg-2: #7A5C1E; --sf-bg-3: #C9A84C; --sf-bg-4: #F5E9C4;
  --sf-border: #C9A84C; --sf-accent: #FFB930; --sf-edge-hi: rgba(255,245,180,0.55);
  --al-bg: #091708; /* page background above the footer, for the arched wave */
  position: relative; margin-top: 80px; padding: 80px 24px 28px; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0,0,0,0.25) 0%, transparent 55%),
    linear-gradient(165deg, var(--sf-bg-1) 0%, var(--sf-bg-2) 35%, var(--sf-bg-3) 78%, var(--sf-bg-4) 100%);
}
.aladdin_homepage .al-site-footer::before { content: ''; position: absolute; top: -1px; inset-inline-start: 0; inset-inline-end: 0; height: 60px; background: var(--al-bg, #FDFCF7); clip-path: path('M0,0 L0,55 Q700,-25 1400,55 L1400,0 Z'); pointer-events: none; }
.aladdin_homepage .al-site-footer::after { content: ''; position: absolute; inset-block-start: 56px; inset-inline-start: 0; inset-inline-end: 0; height: 2px; background: linear-gradient(to bottom, var(--sf-edge-hi) 0%, transparent 100%); pointer-events: none; }
.aladdin_homepage .al-site-footer__inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.aladdin_homepage .al-site-footer__ornament { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 520px; color: var(--sf-bg-4); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
.aladdin_homepage .al-site-footer__ornament::before, .aladdin_homepage .al-site-footer__ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--sf-border) 50%, transparent); }
.aladdin_homepage .al-site-footer__ornament-mark { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, var(--sf-accent) 0%, var(--sf-bg-3) 70%); box-shadow: 0 0 0 1.5px var(--sf-border), 0 0 18px var(--sf-accent); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--sf-bg-1); font-weight: 900; }
.aladdin_homepage .al-site-footer__social { display: grid; grid-template-columns: repeat(9, minmax(40px, 1fr)); gap: 10px; width: 100%; max-width: 660px; }
.aladdin_homepage .al-social-link { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--sf-bg-4); text-decoration: none; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), background 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease; }
.aladdin_homepage .al-social-link svg { width: 52%; height: 52%; fill: currentColor; display: block; }
.aladdin_homepage .al-social-link:hover, .aladdin_homepage .al-social-link:focus-visible { background: var(--sf-accent); border-color: var(--sf-accent); color: var(--sf-bg-1); transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 3px rgba(255,255,255,0.10), 0 8px 22px rgba(0,0,0,0.30), 0 0 24px var(--sf-accent); outline: none; }
.aladdin_homepage .al-social-link::after { content: attr(data-label); position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%) translateY(4px); background: var(--sf-bg-1); color: var(--sf-bg-4); border: 1px solid var(--sf-border); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.aladdin_homepage[dir="rtl"] .al-social-link::after { transform: translateX(50%) translateY(4px); }
.aladdin_homepage .al-social-link:hover::after, .aladdin_homepage .al-social-link:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.aladdin_homepage[dir="rtl"] .al-social-link:hover::after, .aladdin_homepage[dir="rtl"] .al-social-link:focus-visible::after { transform: translateX(50%) translateY(0); }
.aladdin_homepage .al-site-footer__copyright { width: 100%; border-top: 1px solid rgba(255,255,255,0.10); padding-top: 18px; text-align: center; font-size: 12.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.78); font-weight: 500; }
.aladdin_homepage .al-site-footer__copyright strong { color: var(--sf-bg-4); font-weight: 700; letter-spacing: 0.06em; }
.aladdin_homepage .al-site-footer__copyright .al-site-footer__year { color: var(--sf-accent); font-weight: 700; margin: 0 4px; }
@media (max-width: 720px) { .aladdin_homepage .al-site-footer__social { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 380px) { .aladdin_homepage .al-site-footer__social { grid-template-columns: repeat(4, 1fr); } }

/* ════════════ CINEMATIC HERO SLIDER (adapted from source, audio removed) ════════════ */
.aladdin_homepage .ah-hero-slider {
  position: relative; width: 100%; margin-bottom: 30px;
  height: clamp(520px, 78vh, 820px); overflow: hidden; background: #060d06; isolation: isolate;
  --ah-px: 0; --ah-py: 0;
}
/* Full-bleed ONLY on the standalone shell. Embedded (shortcode/block inside a
   theme page) stays within the content width — no viewport-wide breakout. */
.aladdin_homepage[data-mode="standalone"] .ah-hero-slider { width: 100vw; margin-inline: calc(50% - 50vw); }
.ah-sl-defs { position: absolute; width: 0; height: 0; }

/* Background layers */
.ah-sl-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ah-sl-halo { position: absolute; top: 50%; left: 50%; width: 1100px; height: 1100px; transform: translate(-50%,-50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(201,162,39,.07) 40deg, transparent 90deg, transparent 200deg, rgba(77,145,48,.06) 250deg, transparent 320deg);
  border-radius: 50%; animation: ah-spin 60s linear infinite; opacity: .7; }
@keyframes ah-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.ah-sl-glow-a, .ah-sl-glow-b { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55; }
.ah-sl-glow-a { width: 540px; height: 420px; top: -120px; inset-inline-end: -100px; background: radial-gradient(circle, rgba(201,162,39,.14), transparent 66%); transform: translate3d(calc(var(--ah-px)*40px), calc(var(--ah-py)*30px), 0); }
.ah-sl-glow-b { width: 480px; height: 520px; bottom: -160px; inset-inline-start: -120px; background: radial-gradient(circle, rgba(77,145,48,.16), transparent 66%); transform: translate3d(calc(var(--ah-px)*-44px), calc(var(--ah-py)*-34px), 0); }
.ah-sl-vignette { position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,.6) 100%); }

/* Cinematic iframe layer */
.ah-sl-cinematic { position: absolute; z-index: 1; inset-block-start: 50%; inset-inline-end: clamp(10px,4vw,70px); transform: translateY(-50%);
  inline-size: clamp(260px,32vw,520px); aspect-ratio: 16/9; opacity: .55; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse at center,#000 46%,rgba(0,0,0,.86) 62%,transparent 82%);
  mask-image: radial-gradient(ellipse at center,#000 46%,rgba(0,0,0,.86) 62%,transparent 82%);
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.62)) saturate(1.08); }
.ah-sl-cinematic iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transform: scale(1.04); animation: ah-kenburns 26s ease-in-out infinite alternate; }
@keyframes ah-kenburns { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.15) translate(-2.6%,-2.2%); } }
/* Hero: cinematic becomes a FULL-COVER backdrop (no positioned box, no mask) so
   the logo can never be clipped in any language/viewport. Text sits at the
   bottom over the vignette. */
.ah-hero-slider.ah-logo-hero .ah-sl-cinematic { position: absolute; inset: 0; inset-block-start: 0; inset-inline: 0; left: auto; right: auto; top: auto;
  inline-size: auto; width: 100%; height: 100%; aspect-ratio: auto; transform: none; opacity: .3;
  -webkit-mask-image: none; mask-image: none; }
/* No zoom / Ken Burns on the hero backdrop: the cinematic SVG uses
   preserveAspectRatio="meet" (whole scene shown), so any scale+pan would crop
   the top of the logo. Keep it static and fully visible. */
.ah-hero-slider.ah-logo-hero .ah-sl-cinematic iframe { width: 100%; height: 100%; transform: none; animation: none; }
.ah-hero-slider.ah-logo-hero .ah-slide { align-items: flex-end; }
.ah-hero-slider.ah-logo-hero .ah-hero-center { padding-bottom: clamp(20px,5vh,56px); }

/* Slides */
.ah-sl-slides { position: absolute; inset: 0; z-index: 2; transform: translate3d(calc(var(--ah-px)*-14px), calc(var(--ah-py)*-10px), 0); transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.ah-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: scale(1.04); filter: blur(7px);
  transition: opacity .85s ease, visibility .85s, transform 1s ease, filter .9s ease; padding: clamp(28px,5vh,60px) clamp(20px,7vw,110px); }
.ah-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); filter: blur(0); }
.ah-slide-inner { position: relative; width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: flex-start; text-align: start; gap: clamp(10px,1.8vh,20px); }
.ah-hero-slider:not(.ah-logo-hero) .ah-slide-inner { padding-inline-end: clamp(120px,28vw,360px); }
.ah-hero-center { align-items: center; text-align: center; }
.ah-hero-center .ah-divider { margin-inline: auto; }

.ah-kicker { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: 3px; }
.ah-num { font-family: 'Cinzel Decorative', serif; font-size: clamp(1rem,2vw,1.5rem); }
.ah-kline { width: clamp(36px,6vw,80px); height: 2px; background: linear-gradient(90deg, var(--ah-gold), transparent); }
.aladdin_homepage[dir="rtl"] .ah-kline { background: linear-gradient(270deg, var(--ah-gold), transparent); }
.ah-ktag { font-size: .68rem; letter-spacing: 4px; color: var(--ah-green); text-transform: uppercase; font-weight: 700; }

.ah-s-title { font-family: 'Cairo', sans-serif; font-weight: 900; line-height: 1.1; font-size: clamp(1.5rem,3.6vw,2.8rem); max-width: 18ch; }
.ah-s-sub { font-weight: 700; font-size: clamp(.95rem,1.6vw,1.25rem); color: var(--ah-green); }
.ah-s-desc { font-weight: 400; font-size: clamp(.92rem,1.4vw,1.12rem); line-height: 1.8; color: rgba(240,232,208,.78); max-width: 58ch; }

.ah-hero-descline { font-weight: 600; letter-spacing: 3px; font-size: clamp(.72rem,1.4vw,.95rem); color: #d9dde0; opacity: .85; text-transform: uppercase; }
.ah-hero-quote { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(1.6rem,3.6vw,2.9rem); line-height: 1.25; max-width: 22ch;
  background: linear-gradient(180deg,#fffbe4 0%,#f6dc78 36%,#d09a2c 68%,#fff0a4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ah-hero-portal { font-size: clamp(1rem,1.7vw,1.25rem); color: rgba(240,232,208,.7); font-weight: 600; }

/* Slide line icon */
.ah-slide-icon { width: clamp(42px,5vw,64px); height: clamp(42px,5vw,64px); }
.ah-slide-icon svg { width: 100%; height: 100%; fill: none; stroke: url(#ahIconGold); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.ah-slide-icon svg path, .ah-slide-icon svg circle, .ah-slide-icon svg ellipse, .ah-slide-icon svg rect { stroke-dasharray: 260; stroke-dashoffset: 260; }
.ah-slide.is-active .ah-slide-icon svg * { animation: ah-draw 1.2s ease .28s forwards; }
@keyframes ah-draw { to { stroke-dashoffset: 0; } }

/* Slider CTA */
.ah-sl-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; padding: 13px 30px; border-radius: 50px; cursor: pointer;
  border: 1px solid var(--ah-gold); background: linear-gradient(180deg, rgba(201,162,39,.22), rgba(201,162,39,.06)); color: #fff8d2;
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 1px; transition: transform .35s ease, box-shadow .35s; }
.ah-sl-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(201,162,39,.32); }
.ah-sl-cta .ah-arr { transition: transform .35s ease; }
.ah-sl-cta:hover .ah-arr { transform: translateX(5px); }
.aladdin_homepage[dir="rtl"] .ah-sl-cta .ah-arr { transform: scaleX(-1); }
.ah-sl-contact { font-size: .82rem; color: rgba(240,232,208,.55); margin-top: 4px; }
.ah-sl-contact a { color: var(--ah-gold); text-decoration: none; }

/* Stagger entrance */
.ah-slide.is-active .ah-anim { animation: ah-rise .8s ease both; }
.ah-slide.is-active .ah-anim:nth-child(1) { animation-delay: .05s; }
.ah-slide.is-active .ah-anim:nth-child(2) { animation-delay: .15s; }
.ah-slide.is-active .ah-anim:nth-child(3) { animation-delay: .25s; }
.ah-slide.is-active .ah-anim:nth-child(4) { animation-delay: .35s; }
.ah-slide.is-active .ah-anim:nth-child(5) { animation-delay: .45s; }
.ah-slide.is-active .ah-anim:nth-child(6) { animation-delay: .55s; }
@keyframes ah-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Chrome — dots, arrows, playpause, progress, veil */
.ah-sl-dots { position: absolute; z-index: 5; top: 50%; inset-inline-start: clamp(14px,3vw,40px); transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.ah-sl-dots button { width: 11px; height: 11px; border-radius: 50%; cursor: pointer; border: 0; background: rgba(240,232,208,.22); transition: background .3s, transform .3s; }
.ah-sl-dots button:hover { transform: scale(1.3); background: rgba(201,162,39,.5); }
.ah-sl-dots button.is-active { background: var(--ah-gold); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
.ah-sl-nav { position: absolute; z-index: 5; bottom: clamp(18px,4vh,40px); inset-inline-end: clamp(18px,4vw,48px); display: flex; gap: 12px; }
.ah-sl-arrow { width: 50px; height: 50px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(201,162,39,.16); background: rgba(255,255,255,.035); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ah-gold-l,#fadb74); font-size: 1.4rem; line-height: 1; display: grid; place-items: center; transition: transform .3s, border-color .3s, background .3s; }
.ah-sl-arrow:hover { transform: scale(1.08); border-color: var(--ah-gold); background: rgba(201,162,39,.12); }
.ah-sl-playpause { position: absolute; z-index: 5; bottom: clamp(18px,4vh,40px); left: 50%; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(201,162,39,.16); background: rgba(255,255,255,.035); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fadb74; font-size: .85rem; display: grid; place-items: center; transition: border-color .3s, background .3s; }
.ah-sl-playpause:hover { border-color: var(--ah-gold); background: rgba(201,162,39,.1); }
.ah-sl-playpause svg { width: 15px; height: 15px; fill: currentColor; }
.ah-sl-progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.ah-sl-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--ah-green), var(--ah-gold), #fadb74); }
.ah-sl-progress-fill.run { transition: width linear; }
.ah-sl-veil { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; overflow: hidden; }
.ah-sl-veil::before { content: ''; position: absolute; top: -25%; left: -65%; width: 55%; height: 150%; background: linear-gradient(105deg, transparent 0%, rgba(250,219,116,.30) 50%, rgba(255,248,210,.46) 56%, transparent 100%); filter: blur(7px); transform: translateX(0) skewX(-9deg); }
.ah-sl-veil.sweep { animation: ah-veil-fade .95s ease; }
.ah-sl-veil.sweep::before { animation: ah-veil-sweep .95s ease; }
@keyframes ah-veil-fade { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ah-veil-sweep { from { transform: translateX(0) skewX(-9deg); } to { transform: translateX(370%) skewX(-9deg); } }

@media (max-width: 720px) {
  .ah-hero-slider { height: clamp(560px, 86vh, 760px); }

  /* Mobile contrast: make the slider read as crisply as the rest of the page.
   * Match the section background colour and calm the ambient overlays that were
   * washing out the text, so gold/green/cream sit on the same flat dark base as
   * the cards below. [PILLAR II] */
  .ah-hero-slider { background: var(--ah-bg); }
  .ah-sl-halo { opacity: .4; }
  .ah-sl-glow-a, .ah-sl-glow-b { opacity: .3; }
  .ah-sl-vignette { background: radial-gradient(135% 135% at 50% 46%, transparent 62%, rgba(0,0,0,.42) 100%); }
  .ah-s-desc { color: rgba(240,232,208,.86); }
  .ah-hero-portal { color: rgba(240,232,208,.82); }

  .ah-hero-slider:not(.ah-logo-hero) .ah-sl-cinematic { display: none; }
  /* Content slides: start below the chrome and scroll if text is long (no overlap).
   * The slide is full-bleed and absolutely positioned, so a visible scrollbar here
   * lands right next to the window scrollbar — two scrollbars. Keep it scrollable
   * (touch) but hide the scrollbar chrome so only the window shows one. */
  .ah-hero-slider:not(.ah-logo-hero) .ah-slide {
    align-items: flex-start;
    overflow-y: auto;
    padding: clamp(64px,12vh,92px) 22px 84px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
  }
  .ah-hero-slider:not(.ah-logo-hero) .ah-slide::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .ah-hero-slider:not(.ah-logo-hero) .ah-slide-inner { padding-inline-end: 0; }
  /* Hero on mobile: center the text OVER the faint full-cover logo so the logo
   * and the text read as one centered unit (instead of the logo floating in the
   * middle with the text pinned far below). */
  .ah-hero-slider.ah-logo-hero .ah-sl-cinematic { opacity: .32; }
  .ah-hero-slider.ah-logo-hero .ah-slide { align-items: center; padding-bottom: 64px; }
  .ah-hero-slider.ah-logo-hero .ah-hero-center { padding-bottom: 0; }
  .ah-s-title { font-size: clamp(1.3rem, 6.2vw, 1.7rem); }
  .ah-s-desc { font-size: .9rem; line-height: 1.7; }
  .ah-hero-quote { font-size: clamp(1.4rem, 6.8vw, 2rem); }
  /* Compact bottom chrome — PHYSICAL centering so RTL is not distorted: dots row
     centered above, play+arrows below. */
  .ah-sl-dots { flex-direction: row; top: auto; bottom: 76px; left: 50%; right: auto; inset-inline: auto; transform: translateX(-50%); max-width: 78vw; flex-wrap: wrap; justify-content: center; }
  .ah-sl-arrow { width: 42px; height: 42px; }
  .ah-sl-nav { inset-inline: auto; right: 18px; }
  .aladdin_homepage[dir="rtl"] .ah-sl-nav { right: auto; left: 18px; }
  .ah-sl-nav, .ah-sl-playpause { bottom: 20px; }
  .ah-topnav { justify-content: center; }
  .ah-view-toggle, .ah-home-link, .ah-lang-btn { padding: 9px 14px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-sl-halo, .ah-sl-cinematic iframe, .ah-slide.is-active .ah-anim, .ah-slide.is-active .ah-slide-icon svg * { animation: none; }
  .ah-slide-icon svg path, .ah-slide-icon svg circle, .ah-slide-icon svg ellipse, .ah-slide-icon svg rect { stroke-dashoffset: 0; }
  .ah-sl-progress-fill.run { transition: none; }
}

/* ── Prospectus view (pricing / tracks / roadmap) ── */
.ah-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 40px; }
.ah-price-box { text-align: center; padding: 22px 18px; background: rgba(0,0,0,0.35); border: 1px dashed var(--ah-border); border-radius: var(--ah-r); }
.ah-price-free { border-style: solid; border-color: var(--ah-gold); background: rgba(201,162,39,0.08); }
.ah-price-title { font-size: 1.1em; font-weight: 700; color: var(--ah-gold); margin-bottom: 8px; }
.ah-price-val { font-size: 1.7em; color: var(--ah-gold); font-weight: 700; margin: 8px 0; direction: ltr; }
.ah-price-per { font-size: 0.45em; color: var(--ah-text-muted); }
.ah-price-free .ah-price-val { color: var(--ah-gold); }
.ah-price-desc { font-size: 0.9em; color: var(--ah-text-muted); }
.ah-price-free .ah-price-desc { color: var(--ah-gold); }

/* Roadmap */
.ah-roadmap { border-inline-start: 2px solid var(--ah-gold); padding-inline-start: 22px; display: flex; flex-direction: column; gap: 25px; margin-top: 6px; }
.ah-road-item { position: relative; }
.ah-road-item::before { content: ''; position: absolute; inset-inline-start: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ah-gold); box-shadow: 0 0 10px var(--ah-gold); }
.ah-road-title { font-weight: 700; color: #fff; margin-bottom: 5px; }

/* ── Promo video section (one YouTube video, language-bound, click-to-play) ── */
.ah-video-wrap { margin: 50px 0 10px; }
.ah-video-wrap[hidden] { display: none; }
.ah-video {
  position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; background: #000; cursor: pointer;
  border: 1px solid var(--ah-gold-d);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201,162,39,0.12);
}
.ah-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-video:not(.is-playing)::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.5)); pointer-events: none; }
.ah-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ah-video-play { position: absolute; inset: 0; margin: auto; width: 90px; height: 64px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.ah-video-play svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.55)); transition: transform 0.25s ease; }
.ah-video-play .ah-yt-bg { fill: var(--ah-gold); opacity: 0.92; transition: fill 0.25s ease, opacity 0.25s ease; }
.ah-video:hover .ah-video-play svg { transform: scale(1.08); }
.ah-video:hover .ah-video-play .ah-yt-bg { fill: #e8c65d; opacity: 1; }

/* Accessibility */
.aladdin_homepage :focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 2px; }

@media (max-width: 768px) {
  .ah-grid-products { grid-template-columns: 1fr; }
  .ah-topnav { justify-content: center; }
}
