/* HAYATI website. Night-sky navy, aurora teal and violet, gold accents:
   the same palette and typefaces as the app (Playfair Display, Readex Pro,
   Noto Sans Arabic). Layout uses logical properties so Arabic and Kurdish
   mirror without a second stylesheet. */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("fonts/readex.woff2") format("woff2"); font-weight: 160 700; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("fonts/noto-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F; }

:root {
  --night: #070b1e;
  --navy: #0d1433;
  --navy-rise: #141d47;
  --gold: #f2c14e;
  --gold-bright: #ffe29a;
  --gold-ink: #2a1c02;
  --teal: #35e0c3;
  --violet: #8a5cff;
  --ivory: #f3ecd9;
  --mist: #b7bedb;
  --rule: rgba(242, 193, 78, 0.24);
  --body: "Readex Pro", "Noto Sans Arabic", system-ui, sans-serif;
  --display: "Playfair Display", "Noto Sans Arabic", Georgia, serif;
  --wrap: 72rem;
}
:root:lang(ar), :root:lang(ckb) {
  --body: "Noto Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --display: "Noto Sans Arabic", "Playfair Display", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 350;
  overflow-x: hidden;
}
:lang(ar) body, :lang(ckb) body { line-height: 1.9; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; font-weight: 700; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ckb) h1, :lang(ckb) h2, :lang(ckb) h3 { line-height: 1.45; }
p { margin: 0; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--gold); color: var(--gold-ink); padding: 0.5rem 1rem; border-radius: 0.5rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---- top bar ---- */
.top { position: relative; z-index: 2; }
.top-row { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--gold); font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; }
.brand img { width: 40px; height: 38px; }
.top-nav { display: none; gap: 1.6rem; margin-inline-start: auto; }
.top-nav a { color: var(--ivory); text-decoration: none; font-size: 0.98rem; }
.top-nav a:hover { color: var(--gold-bright); }
.langs { display: flex; gap: 0.15rem; margin-inline-start: auto; border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem; }
.langs a { color: var(--mist); text-decoration: none; font-size: 0.86rem; padding: 0.3rem 0.7rem; border-radius: 999px; line-height: 1.5; font-family: "Noto Sans Arabic", "Readex Pro", sans-serif; }
.langs a[aria-current] { background: var(--gold); color: var(--gold-ink); font-weight: 600; }
@media (min-width: 60rem) {
  .top-nav { display: flex; }
  .langs { margin-inline-start: 1rem; }
}

/* ---- buttons ---- */
.downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.75rem; }
.btn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 3.6rem; padding: 0.55rem 1.4rem; border-radius: 0.9rem; text-decoration: none; line-height: 1.3; border: 1px solid var(--rule); color: var(--ivory); text-align: start; }
.btn-main { font-weight: 600; font-size: 1.02rem; }
.btn-sub { font-size: 0.8rem; opacity: 0.85; }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #d99a1f); color: var(--gold-ink); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(242, 193, 78, 0.7); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.07); }
.btn-store { background: rgba(255, 255, 255, 0.04); }
.btn-store.is-soon { color: var(--mist); border-style: dashed; cursor: default; }
.age { color: var(--mist); font-size: 0.9rem; margin-block-start: 1.1rem; }
.note { color: var(--mist); font-size: 0.9rem; margin-block-start: 1.25rem; max-width: 34rem; }

/* ---- hero ---- */
.home .top { position: absolute; inset-inline: 0; top: 0; }
.hero { position: relative; padding-block: 6.5rem 3.5rem; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20% -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 30% at 68% 30%, rgba(53, 224, 195, 0.42), transparent 70%),
    radial-gradient(38% 46% at 86% 62%, rgba(138, 92, 255, 0.5), transparent 72%),
    radial-gradient(50% 34% at 22% 8%, rgba(138, 92, 255, 0.28), transparent 70%),
    radial-gradient(30% 24% at 50% 96%, rgba(53, 224, 195, 0.16), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate; }
[dir="rtl"] .aurora { transform: scaleX(-1); animation-name: drift-rtl; }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) rotate(-3deg); } to { transform: translate3d(3%, 2%, 0) rotate(4deg); } }
@keyframes drift-rtl { from { transform: scaleX(-1) translate3d(-2%, -1%, 0) rotate(-3deg); } to { transform: scaleX(-1) translate3d(3%, 2%, 0) rotate(4deg); } }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 9rem; background: linear-gradient(transparent, var(--night)); z-index: -1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); letter-spacing: -0.01em; color: var(--gold-bright);
  background: linear-gradient(180deg, #fff3cf 10%, var(--gold) 60%, #c98a1a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-block-end: 0.12em; }
:lang(ar) .hero h1, :lang(ckb) .hero h1 { font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 800; letter-spacing: 0; }
.lead { color: var(--ivory); font-size: 1.14rem; max-width: 36rem; margin-block-start: 1.1rem; opacity: 0.92; }
.hero-phones { position: relative; width: min(100%, 22rem); margin-inline: auto; padding-inline-start: 22%; }
.phone { border-radius: 8.4% / 3.9%; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(242, 193, 78, 0.35); background: var(--navy); }
.phone-front { position: relative; width: 100%; }
.phone-back { position: absolute; inset-inline-start: 0; top: 9%; width: 62%; transform: rotate(-7deg); opacity: 0.9; }
[dir="rtl"] .phone-back { transform: rotate(7deg); }
@media (min-width: 60rem) {
  .hero { padding-block: 8.5rem 5rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
  .hero-phones { width: 26rem; margin-inline: auto 0; }
}

/* ---- sections ---- */
.band { padding-block: 4rem; }
.band h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); color: var(--gold-bright); }
.points { display: grid; gap: 1.6rem 2.5rem; margin: 2.2rem 0 0; }
.points div { border-block-start: 1px solid var(--rule); padding-block-start: 1rem; }
.points dt { font-weight: 600; color: var(--ivory); font-size: 1.08rem; }
.points dd { margin: 0.3rem 0 0; color: var(--mist); max-width: 34rem; }
@media (min-width: 44rem) { #rooms .points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) {
  .band { padding-block: 6rem; }
  #rooms .points { grid-template-columns: repeat(4, 1fr); }
}

.band-games { background: linear-gradient(180deg, transparent, var(--navy) 18%, var(--navy) 82%, transparent); }
.game-names { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.8rem 0 0; }
.game-names li { border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 1rem; color: var(--gold-bright); background: rgba(242, 193, 78, 0.06); }
.game-names .more { border-color: transparent; background: none; color: var(--mist); padding-inline: 0.4rem; }
.shots { list-style: none; display: flex; gap: 1rem; margin: 2.5rem 0 0; padding: 0.5rem 1rem 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.shots li { flex: 0 0 62%; max-width: 15rem; scroll-snap-align: center; }
.shots figure { margin: 0; }
.shots figcaption { text-align: center; margin-block-start: 0.8rem; color: var(--ivory); font-family: var(--display); font-size: 1.1rem; }
@media (min-width: 60rem) {
  .shots { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; padding-inline: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; overflow: visible; }
  .shots li { max-width: none; }
  .shots li:nth-child(even) { margin-block-start: 2.5rem; }
}

.split { display: grid; gap: 2.5rem; align-items: center; }
.split .points { margin-block-start: 2rem; }
.phone-solo { width: min(70%, 17rem); margin-inline: auto; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1.25fr 0.75fr; gap: 4rem; }
  .split-flip > :first-child { order: 2; }
  .phone-solo { width: 19rem; }
}

.band-get { text-align: center; background: radial-gradient(60% 70% at 50% 100%, rgba(138, 92, 255, 0.3), transparent 70%), radial-gradient(40% 50% at 30% 100%, rgba(53, 224, 195, 0.18), transparent 70%); border-block-start: 1px solid var(--rule); }
.band-get .lead, .band-get .note { margin-inline: auto; }
.band-get .downloads { justify-content: center; }
.get-logo { width: 9.5rem; margin: 0 auto 1.2rem; }

/* ---- footer ---- */
.foot { border-block-start: 1px solid var(--rule); background: #050817; padding-block: 3rem 2rem; font-size: 0.95rem; }
.foot-grid { display: grid; gap: 2rem; }
.foot-brand img { width: 7.5rem; }
.foot-brand p { color: var(--mist); margin-block-start: 0.8rem; }
.foot h2 { font-family: var(--body); font-size: 0.95rem; font-weight: 600; color: var(--gold); }
.foot ul { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; gap: 0.45rem; }
.foot a { color: var(--ivory); text-decoration: none; }
.foot a:hover { color: var(--gold-bright); text-decoration: underline; }
.foot-end { margin-block-start: 2.5rem; padding-block-start: 1.2rem; border-block-start: 1px solid rgba(255, 255, 255, 0.08); color: var(--mist); font-size: 0.86rem; display: grid; gap: 0.3rem; }
@media (min-width: 44rem) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-end { display: flex; justify-content: space-between; gap: 2rem; }
}

/* ---- rule and help pages ---- */
.doc .top { border-block-end: 1px solid var(--rule); background: linear-gradient(90deg, rgba(138, 92, 255, 0.16), rgba(53, 224, 195, 0.1)); }
.doc-main { max-width: 50rem; padding-block: 2.5rem 4rem; }
.doc-main h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--gold-bright); }
.prose { margin-block-start: 1.5rem; overflow-wrap: break-word; }
.prose > * + *, .prose .en-text > * + *, .prose div > * + * { margin-block-start: 1rem; }
.prose h2 { font-size: 1.45rem; color: var(--gold-bright); margin-block-start: 2.4rem; padding-block-start: 1.4rem; border-block-start: 1px solid var(--rule); }
.prose h3 { font-family: var(--body); font-size: 1.1rem; font-weight: 600; margin-block-start: 1.8rem; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin-block-end: 0; }
.prose li + li { margin-block-start: 0.45rem; }
.prose strong { font-weight: 600; color: #fff; }
.prose .meta { color: var(--mist); font-size: 0.9rem; }
.prose code, .prose pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: rgba(255, 255, 255, 0.07); border-radius: 0.35rem; padding: 0.1em 0.4em; }
.prose pre { padding: 0.9rem 1rem; overflow-x: auto; line-height: 1.5; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 0.7rem; }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.93rem; line-height: 1.5; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 0.7rem 0.9rem; border-block-end: 1px solid rgba(255, 255, 255, 0.08); }
.prose th { background: var(--navy-rise); color: var(--gold-bright); font-weight: 600; }
.prose tr:last-child td { border-block-end: 0; }
.info-box, .option, .notice, .royal { border: 1px solid var(--rule); border-radius: 0.8rem; padding: 1rem 1.2rem; background: var(--navy); }
.option h3 { margin-block-start: 0; }
.notice { border-inline-start: 4px solid var(--teal); color: var(--ivory); font-size: 0.97rem; }
.royal { border-color: var(--gold); background: rgba(242, 193, 78, 0.09); }
.royal h2 { border: 0; margin: 0; padding: 0; }
.missing { text-align: center; }
.missing div + div { margin-block-start: 3rem; padding-block-start: 2.5rem; border-block-start: 1px solid var(--rule); }
.missing h1 { font-size: 1.8rem; }
.missing p { margin-block-start: 0.8rem; }

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