/* FARAH — marketing homepage. Loaded only on "/" (R-WEB-041).
   Cinematic dark canvas, oversized asymmetric type, off-grid composition —
   deliberately not a centered card grid. */

.home {
  --home-bg: #0e0c0a;
  --home-bg-2: #14110c;
  --home-bg-3: #17140f;
  --home-ink: #f4eee4;
  --home-muted: #9c917e;
  --home-gold: #d6923a;
  --home-gold-ink: #1b140a;
  --home-emerald: #1f4b43;
  --home-border: rgba(244, 238, 228, 0.12);
  --home-gold-border: rgba(214, 146, 58, 0.35);

  background: var(--home-bg);
  color: var(--home-ink);
}

.home a {
  text-decoration: none;
  color: inherit;
}

.btn-dark,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 15px 30px;
  font-weight: 800;
  font-size: 15.5px;
  cursor: pointer;
}
.btn-dark {
  background: var(--home-gold);
  color: var(--home-gold-ink);
  border: 1.5px solid transparent;
}
.btn-dark:hover {
  background: #c7842f;
}
.btn-outline {
  background: transparent;
  color: var(--home-ink);
  border: 1.5px solid var(--home-border);
}
.btn-outline:hover {
  border-color: var(--home-gold-border);
  color: var(--home-gold);
}

/* header */
.home-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 6vw, 88px) 0;
}
.home-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-header__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--home-gold);
  color: var(--home-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.home-header__name {
  font-size: 19px;
  font-weight: 800;
}
.home-header__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--home-muted);
}
.home-header__links a:hover {
  color: var(--home-ink);
}
.home-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.home-header__login {
  font-size: 15px;
  font-weight: 600;
  color: var(--home-muted);
  white-space: nowrap;
}
.home-header__login:hover {
  color: var(--home-ink);
}

/* hero — off-center headline, tilted scene, scattered fragments */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding-block: 56px 80px;
  padding-inline: clamp(20px, 6vw, 88px);
  background: var(--home-bg);
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero-venue.jpg");
  background-size: cover;
  background-position: center;
}
/* Photo has its dark negative space on the right; flip it for LTR so
   that dark side stays under the headline, which starts on the left
   in LTR and the right in RTL. */
[dir="ltr"] .hero__photo {
  transform: scaleX(-1);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(180deg, rgba(14, 12, 10, 0.25) 0%, rgba(14, 12, 10, 0.55) 100%),
    radial-gradient(620px 620px at 6% 96%, rgba(31, 75, 67, 0.45), transparent 65%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--home-border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--home-muted);
}
.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-gold);
  flex-shrink: 0;
}
.hero__title {
  margin: 0;
  font-size: clamp(44px, 7vw, 118px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.02em;
}
/* Arabic is cursive: negative tracking breaks joining and 0.98 line-height
   collides the two title lines. Keep the tight Latin look for :lang(en) only. */
.hero__title:lang(ar) {
  line-height: 1.3;
  letter-spacing: 0;
}
.hero__title-accent {
  color: var(--home-gold);
}
.hero__subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
  color: var(--home-muted);
  max-width: 30em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-block-start: 4px;
}

.hero__scene {
  position: absolute;
  z-index: 2;
  inset-block-start: 190px;
  inset-inline-end: clamp(20px, 5vw, 90px);
  width: 300px;
  height: 420px;
}
.hero__card {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 280px;
  background: var(--home-bg-3);
  border: 1px solid var(--home-gold-border);
  border-radius: 20px;
  padding: 22px;
  transform: rotate(-7deg);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 8px;
}
.hero__card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--home-gold);
}
.hero__card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fae7c;
}
.hero__card-title {
  font-size: 17px;
  font-weight: 800;
}
.hero__card-meta {
  font-size: 13px;
  color: var(--home-muted);
  margin-block-end: 8px;
}
.hero__card-chip {
  background: var(--home-gold);
  color: var(--home-gold-ink);
  font-weight: 800;
  font-size: 13px;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.hero__fragment {
  position: absolute;
  background: var(--home-bg-3);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.hero__fragment--qr {
  inset-block-start: -40px;
  inset-inline-start: -70px;
  transform: rotate(5deg);
}
.hero__fragment--plusone {
  inset-block-end: 60px;
  inset-inline-start: -30px;
  background: var(--home-emerald);
  border-color: transparent;
  transform: rotate(4deg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__fragment-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-gold);
  flex-shrink: 0;
}
.hero__fragment--tracking {
  inset-block-end: -10px;
  inset-inline-start: 40px;
  color: var(--home-muted);
  font-weight: 700;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: rotate(-2deg);
}

/* section heading — start-aligned, editorial, not centered */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 640px;
}
.section-heading__eyebrow {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--home-gold);
  letter-spacing: 0.04em;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
}
.section-heading h2:lang(ar) {
  line-height: 1.3;
}

/* features — asymmetric grid, not a uniform 3x2 */
.features {
  background: var(--home-bg-2);
  padding: clamp(64px, 8vw, 104px) clamp(20px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--home-bg-3);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--home-gold-border);
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(214, 146, 58, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--home-muted);
}
.feature-card--a {
  grid-column: span 5;
  transform: rotate(-0.6deg);
}
.feature-card--a:hover {
  transform: rotate(0deg);
}
.feature-card--b {
  grid-column: span 7;
}
.feature-card--c {
  grid-column: span 4;
}
.feature-card--highlight {
  grid-column: span 8;
  background: var(--home-emerald);
  border-color: transparent;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  transform: rotate(0.5deg);
}
.feature-card--highlight:hover {
  transform: rotate(0deg);
}
.feature-card--highlight .feature-card__icon {
  background: rgba(244, 238, 228, 0.14);
  width: 52px;
  height: 52px;
  border-radius: 13px;
}
.feature-card--highlight p {
  color: #cfe3dc;
}
.feature-card--e {
  grid-column: span 6;
}
.feature-card--f {
  grid-column: span 6;
}
.feature-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feature-card__badge {
  background: var(--home-gold);
  color: var(--home-gold-ink);
  font-size: 12px;
  font-weight: 800;
  border-radius: 7px;
  padding: 4px 10px;
}

/* how it works — ghost numerals, editorial */
.how {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.how__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--home-border);
}
.how__ghost {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--home-gold-border);
  margin-block-end: -16px;
}
.how__step h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}
.how__step p {
  margin: 0;
  font-size: 15px;
  color: var(--home-muted);
  line-height: 1.8;
  max-width: 300px;
}

/* closing */
.closing {
  padding: clamp(72px, 11vw, 130px) clamp(20px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  background-image: radial-gradient(560px 420px at 12% 30%, rgba(214, 146, 58, 0.18), transparent 65%);
}
.closing h2 {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  max-width: 760px;
  letter-spacing: -0.01em;
}
.closing h2:lang(ar) {
  line-height: 1.3;
  letter-spacing: 0;
}

.site-footer {
  background: var(--home-bg);
  color: var(--home-muted);
  padding: 28px clamp(20px, 6vw, 88px) 36px;
  border-top: 1px solid var(--home-border);
}
.site-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* Phase 7: shared legal footer restyled to sit under the dark homepage. */
.home-legal {
  background: #0e0c0a;
}
.home-legal .legal-footer a {
  color: #9c917e;
}
.home-legal .legal-footer a:hover {
  color: #c7a050;
}

@media (max-width: 900px) {
  .home-header__links {
    display: none;
  }
  .hero {
    min-height: 0;
    padding-block-end: 420px;
  }
  .hero__scene {
    inset-block-start: auto;
    inset-block-end: 0;
    inset-inline-end: clamp(20px, 6vw, 88px);
    width: 260px;
    height: 380px;
  }
  .feature-card--a,
  .feature-card--b,
  .feature-card--c,
  .feature-card--highlight,
  .feature-card--e,
  .feature-card--f {
    grid-column: span 12;
    transform: none;
  }
  .how__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  /* the header (brand, log in, button) must fit a 390px phone in both languages */
  .home-header {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .home-header__actions {
    gap: 14px;
  }
  .home-header .btn-dark {
    padding: 11px 20px;
    font-size: 14.5px;
  }
  .hero__scene {
    width: calc(100% - 2 * clamp(20px, 6vw, 88px));
    inset-inline-end: clamp(20px, 6vw, 88px);
    inset-inline-start: clamp(20px, 6vw, 88px);
    height: 340px;
  }
  .hero__card {
    width: 100%;
  }
  .hero__actions .btn-dark,
  .hero__actions .btn-outline {
    width: 100%;
  }
}
