/* 024 · Halo USD (هالة الدولار) — 1:1 Reference-Faithful Bespoke Stylesheet */
:root {
  --hl-bg: #f5f5f5;
  --hl-ink: #0a0a0c;
  --hl-muted: #52525b;
  --hl-lavender: #dcd9f0;
  --hl-lavender-soft: #eae8f7;
  --hl-plum: #241c3a;
  --hl-line: rgba(10, 10, 12, 0.09);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--hl-bg);
  color: var(--hl-ink);
}

body {
  margin: 0;
  background: var(--hl-bg);
  color: var(--hl-ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.68;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, a, button, span {
  letter-spacing: 0;
}

[dir="ltr"] {
  font-family: 'JetBrains Mono', 'Readex Pro', monospace;
}

/* Fixed Clean Top Navigation */
.hl-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 45;
  height: 74px;
  padding: 0 clamp(18px, 3vw, 40px);
  background: rgba(245, 245, 245, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 10, 12, 0.06);
  display: flex;
  align-items: center;
}

.hl-nav {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hl-ink);
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.hl-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hl-links a {
  color: #27272a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hl-links a:hover {
  color: #000000;
}

/* Signature Black Pill CTA with White Inset Circle Arrow */
.hl-pill-black {
  height: 44px;
  padding: 0 8px 0 18px;
  padding-inline: 18px 8px;
  border-radius: 999px;
  border: 0;
  background: #000000;
  color: #ffffff;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.2s ease;
}

.hl-pill-black:hover {
  background: #1f2937;
}

.hl-pill-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  flex-shrink: 0;
}

.hl-pill-ghost {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 12, 0.16);
  background: #ffffff;
  color: var(--hl-ink);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hl-pill-ghost:hover {
  border-color: #000000;
}

/* Route View Toggle (#/wallet vs Main) */
.hl-wallet-view {
  display: none;
  min-height: 100dvh;
  padding: 112px 24px 64px;
}

body.is-wallet-open .hl-wallet-view {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.is-wallet-open .hl-main-view {
  display: none;
}

.hl-wallet-card {
  width: min(560px, 100%);
  background: #ffffff;
  border: 1px solid var(--hl-line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(36, 28, 58, 0.08);
}

.hl-wallet-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.hl-wallet-opt {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--hl-line);
  background: var(--hl-bg);
  color: var(--hl-ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hl-wallet-opt:hover {
  border-color: var(--hl-plum);
  background: var(--hl-lavender-soft);
}

.hl-wallet-status {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--hl-lavender-soft);
  color: var(--hl-plum);
  font-size: 0.86rem;
  font-weight: 600;
  display: none;
  margin-bottom: 16px;
}

.hl-wallet-status.is-visible {
  display: block;
}

/* Section 1: Inset Rounded-2xl Hero over #F5F5F5 */
.hl-hero-outer {
  padding: 86px 24px 24px;
  max-width: 1420px;
  margin: 0 auto;
}

.hl-hero-frame {
  position: relative;
  min-height: clamp(540px, 80vh, 760px);
  border-radius: 24px;
  overflow: hidden;
  background: var(--hl-lavender);
  display: flex;
  align-items: center;
  padding: clamp(32px, 5.5vw, 76px);
  border: 1px solid rgba(36, 28, 58, 0.08);
}

.hl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hl-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Flip horizontally in RTL so pale misty sky sits behind right-aligned Arabic headline and silver coins float cleanly on the left */
  transform: scaleX(-1);
}

.hl-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(238, 236, 249, 0.88) 0%, rgba(238, 236, 249, 0.62) 44%, rgba(238, 236, 249, 0.06) 76%);
}

.hl-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.hl-hero-tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 28, 58, 0.1);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--hl-plum);
  margin-bottom: 18px;
}

.hl-hero-copy h1 {
  margin: 0 0 16px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  font-weight: 700;
  line-height: 1.08;
  color: #000000;
}

.hl-hero-copy p {
  margin: 0 0 26px;
  font-size: 1.04rem;
  color: #27272a;
  max-width: 440px;
}

/* Embedded Hero Wordmark Marquee */
.hl-mini-marquee {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 10, 12, 0.1);
  max-width: 440px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hl-marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: hlSlide 24s linear infinite;
}

@keyframes hlSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hl-mini-marquee span {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(10, 10, 12, 0.62);
  white-space: nowrap;
}

/* Section 2: Intro Split + 4-Col Bento Grid */
.hl-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 24px;
}

.hl-intro-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-bottom: 44px;
}

.hl-intro-split h2 {
  margin: 0 0 20px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.14;
}

.hl-intro-lead {
  margin: 0;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  color: #27272a;
  line-height: 1.75;
}

.hl-bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}

.hl-bento-wide {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--hl-lavender);
  padding: 34px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(36, 28, 58, 0.08);
}

.hl-bento-wide img {
  position: absolute;
  inset-inline-end: -8%;
  bottom: -14%;
  width: 62%;
  height: 92%;
  object-fit: cover;
  opacity: 0.42;
  border-radius: 20px;
  pointer-events: none;
  transform: scaleX(-1);
}

.hl-bento-wide > div {
  position: relative;
  z-index: 2;
  max-width: 390px;
}

.hl-bento-wide h3 {
  margin: 8px 0 10px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.55rem;
  color: #000000;
}

.hl-bento-wide p {
  margin: 0;
  color: #27272a;
  font-size: 0.96rem;
}

.hl-apy-pill {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--hl-plum);
  font-weight: 700;
  font-size: 0.92rem;
}

.hl-bento-plum {
  border-radius: 24px;
  background: var(--hl-plum);
  color: #ffffff;
  padding: 32px 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hl-bento-plum .hl-plum-num {
  font-size: 0.78rem;
  color: #c4b5fd;
  letter-spacing: 0.14em;
}

.hl-bento-plum h3 {
  margin: 10px 0 12px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.32rem;
  line-height: 1.3;
}

.hl-bento-plum p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

/* Section 3: Institutional Backers Marquee */
.hl-backers {
  background: #ffffff;
  border-block: 1px solid var(--hl-line);
  padding: 52px 24px;
  text-align: center;
}

.hl-backers p {
  margin: 0 auto 26px;
  max-width: 580px;
  color: var(--hl-muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.hl-backers-strip {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hl-backer-chip {
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--hl-bg);
  border: 1px solid var(--hl-line);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hl-plum);
  white-space: nowrap;
}

/* Section 4: Use Cases / Commerce Showcase */
.hl-use-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.hl-use-tab {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--hl-line);
  background: #ffffff;
  color: var(--hl-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hl-use-tab.is-active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.hl-commerce-panel {
  border-radius: 26px;
  background: linear-gradient(135deg, var(--hl-lavender-soft) 0%, var(--hl-lavender) 100%);
  border: 1px solid rgba(36, 28, 58, 0.1);
  padding: clamp(28px, 4.5vw, 52px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hl-commerce-panel h3 {
  margin: 8px 0 12px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.hl-commerce-panel p {
  margin: 0 0 24px;
  color: #27272a;
}

.hl-commerce-kpi {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(36, 28, 58, 0.08);
}

.hl-commerce-kpi strong {
  display: block;
  font-size: 2.3rem;
  color: var(--hl-plum);
  line-height: 1.1;
  margin-bottom: 6px;
}

/* Footer */
.hl-footer {
  border-top: 1px solid var(--hl-line);
  background: #ffffff;
  padding: 32px 24px;
}

.hl-foot-row {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--hl-muted);
}

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

@media (max-width: 720px) {
  .hl-links {
    display: none;
  }
  .hl-intro-split,
  .hl-bento,
  .hl-commerce-panel {
    grid-template-columns: 1fr;
  }
}
