@font-face {
  font-family: "El Messiri";
  src: url("../fonts/el-messiri.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070b09;
  --bg-2: #101612;
  --ink: #f3f6ef;
  --muted: #c5d1be;
  --green: #2f5231;
  --olive: #758c42;
  --bronze: #b37e30;
  --gold: #e0aa44;
  --ember: #b94017;
  --orange: #f18533;
  --coral: #d14144;
  --line: rgba(224, 170, 68, 0.22);
  --font: "El Messiri", "Noto Naskh Arabic", "Segoe UI", tahoma, sans-serif;
  --header: 4.75rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html[lang="ar"] body { line-height: 1.9; }
html[lang="en"] body { line-height: 1.65; }

html[lang="ar"] .t-en { display: none; }
html[lang="en"] .t-ar { display: none; }

img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: #1a1408; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--gold);
  color: #1a1408;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 0.8rem; }

.ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh;
  overflow: clip;
  z-index: -1;
  pointer-events: none;
  contain: strict;
  will-change: transform;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(47, 82, 49, 0.55), transparent 52%),
    radial-gradient(ellipse at 100% 85%, rgba(185, 64, 23, 0.28), transparent 46%),
    radial-gradient(ellipse at 70% 30%, rgba(224, 170, 68, 0.07), transparent 42%);
  animation: drift 22s var(--ease) infinite alternate;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 9, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224, 170, 68, 0.12);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--olive), var(--bronze), var(--gold), var(--orange), var(--ember), var(--coral));
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.brand img {
  width: 42px;
  height: 52px;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--olive);
}

.brand-ar {
  font-size: 1.45rem;
  font-weight: 700;
}

.brand-en {
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-inline-start: auto;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.35rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] { color: var(--gold); }

.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 11, 9, 0.45);
  flex: 0 0 auto;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 2.8rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

html[lang="ar"] .lang [data-set-lang="ar"],
html[lang="en"] .lang [data-set-lang="en"] {
  background: var(--gold);
  color: #1a1408;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

.nav-toggle:checked ~ .bar .burger { background: transparent; }
.nav-toggle:checked ~ .bar .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .bar .burger::after { transform: translateY(-6px) rotate(-45deg); }

.hero { padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

html[lang="en"] .badge { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(241, 133, 51, 0.65);
  animation: pulse 2.2s ease-out infinite;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 0; }

h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: 0;
  max-width: 14em;
  line-height: 1.28;
}

html[lang="en"] h1 { line-height: 1.12; }

.lead {
  margin: 1.1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { background: #e8b75d; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(224, 170, 68, 0.45);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
html[dir="ltr"] .arrow::before { content: "→"; }
html[dir="rtl"] .arrow::before { content: "←"; }
html[dir="ltr"] .btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }

.mark-wrap {
  position: relative;
  width: min(100%, 340px);
  margin-inline: auto;
}

.halo {
  position: absolute;
  inset: 6% 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--green), var(--olive), var(--gold), var(--bronze), var(--orange), var(--ember), var(--coral), var(--green));
  filter: blur(26px);
  opacity: 0.48;
  animation: spin 32s linear infinite;
}

.mark-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  animation: float 7s ease-in-out infinite;
}

.outcomes {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
}

.outcomes li {
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: rgba(16, 22, 18, 0.86);
  border: 1px solid rgba(117, 140, 66, 0.35);
  font-weight: 600;
  text-wrap: balance;
}

.enter { animation: enter 0.9s var(--ease) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.23s; }
.d4 { animation-delay: 0.32s; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section[id] { scroll-margin-top: calc(var(--header) + 0.5rem); }

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.98rem;
}

html[lang="en"] .eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.sec-lead {
  margin: 0.8rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.about-grid,
.launch-grid {
  display: grid;
  gap: 1.5rem;
}

.prose p { margin: 0; color: var(--muted); }

.manifesto {
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(179, 126, 48, 0.2), transparent 55%),
    var(--bg-2);
}

.manifesto p {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.manifesto p::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--bronze);
  border-radius: 999px;
}

.band {
  background: linear-gradient(180deg, rgba(16, 22, 18, 0.92), rgba(16, 22, 18, 0.55));
  border-block: 1px solid rgba(224, 170, 68, 0.1);
}

.cards,
.steps,
.contact-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.card,
.contact-card {
  position: relative;
  overflow: hidden;
  background: #121a15;
  border: 1px solid rgba(243, 246, 239, 0.06);
  border-radius: 1.25rem;
  padding: 1.35rem 1.3rem 1.45rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}

.card:nth-child(1)::before { background: var(--olive); }
.card:nth-child(2)::before { background: var(--bronze); }
.card:nth-child(3)::before { background: var(--gold); }
.card:nth-child(4)::before { background: var(--orange); }

.card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 170, 68, 0.45);
}

.icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.card h3 { font-size: 1.35rem; margin-bottom: 0.45rem; }
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; }

.steps li {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(224, 170, 68, 0.35);
}

.idx {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--bronze);
  font-weight: 700;
}

.steps h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); }

.launch-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(224, 170, 68, 0.18), transparent 46%),
    linear-gradient(155deg, #2f5231 0%, #1a2a1c 46%, #14100d 100%);
  border: 1px solid rgba(224, 170, 68, 0.2);
}

.place {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
}

.when {
  margin: 0.2rem 0 0;
  color: var(--gold);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
}

.launch-note { margin: 1rem 0 0; color: var(--muted); }

.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.clock div {
  text-align: center;
  padding: 0.85rem 0.35rem 0.75rem;
  border-radius: 1rem;
  background: rgba(7, 11, 9, 0.38);
  border: 1px solid rgba(224, 170, 68, 0.2);
}

.clock strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.clock .unit { color: var(--muted); font-size: 0.92rem; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.contact-card .k {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-card .v {
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-card:nth-child(1) { box-shadow: inset 3px 0 0 var(--olive); }
html[dir="rtl"] .contact-card:nth-child(1) { box-shadow: inset -3px 0 0 var(--olive); }
.contact-card:nth-child(2) { box-shadow: inset 3px 0 0 var(--gold); }
html[dir="rtl"] .contact-card:nth-child(2) { box-shadow: inset -3px 0 0 var(--gold); }
.contact-card:nth-child(3) { box-shadow: inset 3px 0 0 var(--coral); }
html[dir="rtl"] .contact-card:nth-child(3) { box-shadow: inset -3px 0 0 var(--coral); }

.site-footer {
  padding-block: 2rem 2.4rem;
  border-top: 1px solid rgba(224, 170, 68, 0.12);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: end;
  justify-content: space-between;
}

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

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--gold); }

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

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

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

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

@keyframes spin { to { transform: rotate(1turn); } }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(241, 133, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 133, 51, 0); }
}

.cards.cols-3 { margin-top: 1.8rem; }

.brand-feature {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.6rem;
  align-items: center;
}

.store {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(241, 133, 51, 0.4);
}

.ss-logo {
  width: min(100%, 280px);
  height: auto;
  margin-bottom: 0.85rem;
}

.ss-line {
  margin: 0.7rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.facts,
.path {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.facts li,
.path li {
  background: rgba(7, 11, 9, 0.4);
  border: 1px solid rgba(241, 133, 51, 0.32);
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
}

.facts b,
.path .k {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.92rem;
}

.path { display: grid; gap: 0.65rem; }
.path p { margin: 0; color: var(--muted); }

html[lang="en"] .facts b,
html[lang="en"] .path .k {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.note {
  margin: 1rem 0 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(224, 170, 68, 0.28);
  background: #0b100d;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 2.4rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 9, 0.92));
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gallery figcaption b {
  color: var(--gold);
  font-size: 1.05rem;
}

.band .note { font-size: 0.9rem; }

.process {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 1rem;
}

.process li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #121a15;
  border: 1px solid rgba(224, 170, 68, 0.28);
  border-radius: 1.25rem;
}

.process img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #fff;
  border-bottom: 3px solid var(--bronze);
}

.process .body { padding: 1.1rem 1.3rem 1.4rem; }
.process .idx { margin-bottom: 0.35rem; }
.process h3 { font-size: 1.35rem; margin-bottom: 0.45rem; }
.process p { margin: 0; color: var(--muted); }

.sub {
  margin-top: 3rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.cards.cols-4 { margin-top: 1.2rem; }

@media (max-width: 1100px) {
  .menu-btn { display: grid; }

  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(7, 11, 9, 0.98);
  }

  /* Scroll-driven reveals and heavy looping effects cause jank on phones */
  .reveal { animation: none !important; }
  .ambient { animation: none; }
  .halo { animation: none; }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.25rem 1.1rem;
    background: rgba(7, 11, 9, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav a {
    padding: 0.9rem 0;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(224, 170, 68, 0.12);
  }

  .nav-toggle:checked ~ .bar .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  html:has(.nav-toggle:checked) { overflow: hidden; }

  .lang { margin-inline-start: auto; }
}

@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .outcomes { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1101px) {
  .nav-toggle { display: none; }
  .wrap { width: min(1120px, calc(100% - 3rem)); }
  .brand img { width: 48px; height: 60px; }
  .brand-ar { font-size: 1.7rem; }
  .brand-en { font-size: 1.08rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: end; }
  .launch-grid { grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .cards { gap: 1rem; }
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .brand-feature { grid-template-columns: 1.08fr 0.92fr; gap: 2rem; }
}

@media (max-width: 420px) {
  .clock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-en { font-size: 0.88rem; }
  .brand-ar { font-size: 1.28rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
