/* Aurora SRO landing page - tokens from SRO/Logs/ui_redesign/DESIGN.md (ink / bronze / gold), mobile first.
   Logical properties everywhere so dir="rtl" works without a second stylesheet. */

:root {
  --ink-950: #060504; --ink-900: #0c0a07; --ink-800: #15110c; --ink-700: #1f1912; --ink-600: #2a2219;
  --bronze-800: #3a2a14; --bronze-700: #5a4320; --bronze-500: #8a6a32;
  --gold-500: #c9a24c; --gold-300: #f0d58a; --gold-100: #fff1c8;
  --text: #f3e9d2; --text-dim: #b9a98a; --text-mute: #7d7059;
  --ok: #4fbf6a; --warn: #e0a030; --danger: #a8302a; --info: #6fc3ff;
  --shadow: 0 6px 24px rgba(0,0,0,.65);
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --pad: clamp(16px, 4vw, 32px);
  --radius: 6px;
  /* gold rope line (the title bars' braided hairline) */
  --rope: repeating-linear-gradient(90deg, #8a6a32 0 3px, #f0d58a 3px 5px, #c9a24c 5px 8px, #5a4320 8px 10px);
}
html[lang="ar"] { --body: "Noto Naskh Arabic", "Noto Sans", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink-950); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-300); text-decoration: none; }
a:hover { color: var(--gold-100); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; margin: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--body); letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }

/* ---------------------------------------------------------------- rope + ornament */
.rope { height: 4px; background: var(--rope); box-shadow: 0 1px 0 #000, 0 -1px 0 #000; opacity: .85; }
.h2 { font-size: clamp(26px, 4vw, 38px); color: var(--gold-300); text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.h2.orn { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-block-end: 12px; }
.h2.orn::before, .h2.orn::after {
  content: ""; height: 3px; background: var(--rope); opacity: .7;
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%, #000); mask: linear-gradient(90deg, transparent, #000 40%, #000);
}
.h2.orn::after { -webkit-mask: linear-gradient(270deg, transparent, #000 40%, #000); mask: linear-gradient(270deg, transparent, #000 40%, #000); }
.h2.orn > span { position: relative; padding-inline: 8px; }
.h2.orn > span::before, .h2.orn > span::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-500)); box-shadow: 0 0 0 1px var(--bronze-800);
}
.h2.orn > span::before { inset-inline-start: -14px; }
.h2.orn > span::after { inset-inline-end: -14px; }
.lead { color: var(--text-dim); text-align: center; max-width: 720px; margin-inline: auto; margin-block-end: 28px; font-size: 17px; }
.lead b { color: var(--gold-300); font-weight: 600; }

/* ---------------------------------------------------------------- buttons, pills, badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--radius); border: 1.5px solid var(--bronze-700);
  font: 600 16px/1.2 var(--body); cursor: pointer; transition: filter .15s, transform .1s, box-shadow .15s;
  text-align: center;
}
.btn.big { min-height: 56px; padding-inline: 32px; font-size: 18px; min-width: 200px; }
.btn.wide { width: 100%; min-height: 56px; font-size: 17px; }
.btn small { font-weight: 400; opacity: .8; font-size: .85em; }
.btn.primary {
  color: #2a1a06; border-color: #6a4a12;
  background: linear-gradient(180deg, #e4c77a 0%, #b8903c 55%, #d6b55c 100%);
  box-shadow: inset 0 1px 0 #fff3cf, inset 0 -2px 0 #8a6a32, 0 4px 14px rgba(201,162,76,.25);
  text-shadow: 0 1px 0 rgba(255,241,200,.5);
}
.btn.primary:hover { filter: brightness(1.12); box-shadow: inset 0 1px 0 #fff3cf, inset 0 -2px 0 #8a6a32, 0 0 0 2px rgba(240,213,138,.5), 0 6px 18px rgba(201,162,76,.35); color: #2a1a06; }
.btn.primary:active { filter: brightness(.9); transform: translateY(1px); }
.btn.ghost { background: rgba(21,17,12,.6); color: var(--gold-300); border-color: var(--bronze-700); backdrop-filter: blur(4px); }
.btn.ghost:hover { background: var(--ink-700); color: var(--gold-100); box-shadow: 0 0 0 2px rgba(240,213,138,.3); }
.btn.soon {
  background: repeating-linear-gradient(135deg, var(--ink-700) 0 6px, var(--ink-800) 6px 12px);
  color: var(--text-mute); border-style: dashed; border-color: var(--bronze-800); cursor: not-allowed;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px; border-radius: 18px;
  background: var(--ink-800); border: 1px solid var(--bronze-700); color: var(--text-dim); font-size: 14px; white-space: nowrap;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-mute); box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--bronze-700); color: var(--text-dim); background: var(--ink-800); white-space: nowrap;
}
.badge.ok { color: #0d2a15; background: var(--ok); border-color: #2d8a46; }
.badge.soon { color: var(--gold-300); background: var(--ink-700); border-color: var(--bronze-500); }
.badge.small { font-size: 11px; vertical-align: middle; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 6px var(--pad); min-height: 60px;
  background: linear-gradient(180deg, rgba(6,5,4,.97), rgba(6,5,4,.88)); backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--bronze-800); box-shadow: 0 1px 0 rgba(201,162,76,.18);
}
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 4px; margin-inline-start: 8px; }
.nav a { padding: 8px 12px; border-radius: 4px; color: var(--text-dim); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--gold-100); background: var(--ink-800); }
.top-right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang { background: none; border: 1px solid var(--bronze-700); color: var(--text-dim); border-radius: 4px; min-height: 36px; padding: 4px 10px; font: 600 14px var(--body); cursor: pointer; }
.lang:hover { color: var(--gold-100); border-color: var(--bronze-500); }
.status-pill[data-state="online"] .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-pill[data-state="offline"] .dot { background: #d14b45; }
.status-pill[data-state="maintenance"] .dot { background: var(--warn); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; text-align: center; }
.hero-bg {
  position: absolute; inset: 0; background: #1a120a url("img/hero.webp") center 35% / cover no-repeat;
  filter: saturate(.9);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(60,30,8,.25), rgba(6,5,4,.78) 70%, var(--ink-950)),
    linear-gradient(180deg, rgba(6,5,4,.55), rgba(6,5,4,.1) 30%, rgba(6,5,4,.9));
}
.hero-in { position: relative; padding: 24px var(--pad) 40px; max-width: 980px; margin-inline: auto; }
.hero-logo { width: min(100%, 760px); margin-inline: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.tagline { font-size: clamp(17px, 2.4vw, 21px); color: var(--gold-100); max-width: 640px; margin: 4px auto 24px; text-shadow: 0 2px 8px #000, 0 0 20px rgba(0,0,0,.8); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-block-start: 28px;
}
.hero-facts li {
  display: flex; flex-direction: column; align-items: center; padding: 10px 8px; border-radius: var(--radius);
  background: rgba(12,10,7,.72); border: 1px solid var(--bronze-800); box-shadow: inset 0 0 0 1px rgba(240,213,138,.08);
}
.hero-facts b { font-family: var(--display); color: var(--gold-300); font-size: 18px; }
html[lang="ar"] .hero-facts b { font-family: var(--body); }
.hero-facts span { color: var(--text-dim); font-size: 13px; }

/* ---------------------------------------------------------------- status */
.status { padding: 24px 0 8px; }
.status-card {
  display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--ink-900); border: 3px solid var(--bronze-700); outline: 1px solid var(--ink-950);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(240,213,138,.18);
}
.status-main { display: flex; align-items: center; gap: 14px; }
.status-dot { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-mute); box-shadow: 0 0 0 3px var(--ink-700); }
.status-card[data-state="online"] .status-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ink-700), 0 0 14px var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.status-card[data-state="offline"] .status-dot { background: #d14b45; }
.status-card[data-state="maintenance"] .status-dot { background: var(--warn); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px var(--ink-700), 0 0 10px var(--ok); } 50% { box-shadow: 0 0 0 3px var(--ink-700), 0 0 22px var(--ok); } }
.status-title { font-size: 20px; color: var(--text); }
.status-name { color: var(--gold-300); }
.status-card[data-state="online"] .status-word { color: var(--ok); }
.status-card[data-state="offline"] .status-word { color: #ff8a84; }
.status-card[data-state="maintenance"] .status-word { color: var(--warn); }
.status-card[data-state="unknown"] .status-word, .status-card[data-state="checking"] .status-word { color: var(--text-dim); }
.status-sub { color: var(--text-dim); font-size: 14px; }
.status-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.status-stats div { text-align: center; padding: 8px 4px; background: var(--ink-800); border: 1px solid var(--bronze-800); border-radius: 4px; }
.status-stats dt { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; }
.status-stats dd { margin: 0; font-family: var(--display); font-size: 22px; color: var(--gold-300); }
html[lang="ar"] .status-stats dd { font-family: var(--body); font-weight: 600; }

/* ---------------------------------------------------------------- download */
.download { padding: 40px 0 24px; }
.cards { display: grid; gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius);
  background: var(--ink-900); border: 3px solid var(--bronze-700); outline: 1px solid var(--ink-950);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(240,213,138,.18);
}
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head > div { flex: 1; min-width: 0; }
.card-head h3 { font-size: 22px; color: var(--gold-300); }
.card-sub { color: var(--text-dim); font-size: 13px; }
.plat-ico { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-300);
  background: radial-gradient(circle at 50% 35%, var(--ink-600), var(--ink-900)); box-shadow: inset 0 0 0 2px var(--bronze-700), inset 0 0 0 3px var(--ink-950), 0 0 0 1px var(--bronze-800); }
.card-text { color: var(--text-dim); font-size: 15px; }
.howto-link { font-size: 14px; color: var(--text-dim); text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.howto-link:hover { color: var(--gold-300); }
/* state switch: data-state="active" shows .when-active, "soon" shows .when-soon */
.dl-card .when-active, .dl-card .when-soon { display: none; }
.dl-card[data-state="active"] .when-active { display: inline-flex; }
.dl-card[data-state="active"] p.when-active, .dl-card[data-state="active"] span.when-active { display: inline; }
.dl-card[data-state="soon"] .when-soon { display: inline-flex; }
.dl-card[data-state="soon"] span.when-soon { display: inline; }
.dl-card[data-state="soon"] { border-color: var(--bronze-800); box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.dl-card[data-state="soon"] .card-head h3 { color: var(--text-dim); }
.dl-card[data-state="soon"] .plat-ico { color: var(--text-mute); filter: grayscale(1); }
.dl-card[data-state="soon"] .card-text { color: var(--text-mute); }
.dl-card[data-state="active"] { border-color: var(--gold-500); }
.dl-card[data-state="active"]::before {
  content: ""; position: absolute; inset: -3px; border-radius: var(--radius); pointer-events: none;
  box-shadow: 0 0 24px rgba(201,162,76,.18);
}

/* ---------------------------------------------------------------- install */
.install { padding: 24px 0 40px; }
.cols { display: grid; gap: 16px; }
.steps { padding: 18px 20px; border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--bronze-800); }
.steps h3 { font-size: 19px; color: var(--gold-300); display: flex; align-items: center; gap: 10px; margin-block-end: 10px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; color: #2a1a06;
  background: linear-gradient(180deg, #e4c77a, #b8903c); box-shadow: inset 0 1px 0 #fff3cf; }
.steps ol { padding-inline-start: 22px; display: grid; gap: 8px; color: var(--text); font-size: 15px; }
.steps li::marker { color: var(--gold-500); font-weight: 600; }
.steps b { color: var(--gold-100); font-weight: 600; }
.note { margin-block-start: 12px; color: var(--text-mute); font-size: 13px; border-inline-start: 3px solid var(--bronze-700); padding-inline-start: 10px; }

/* ---------------------------------------------------------------- features */
.features { position: relative; padding: 40px 0; overflow: hidden; border-block: 1px solid var(--bronze-800); }
.caravan { position: absolute; inset: 0; background: url("img/caravan.webp") center / cover no-repeat; opacity: .28; }
.caravan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink-950) 0%, rgba(6,5,4,.55) 30%, rgba(6,5,4,.55) 70%, var(--ink-950) 100%); }
.features .wrap { position: relative; }
.grid { display: grid; gap: 12px; }
.f { padding: 16px 18px; border-radius: var(--radius); background: rgba(12,10,7,.9); border: 1px solid var(--bronze-800); box-shadow: inset 0 0 0 1px rgba(240,213,138,.06); }
.f-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-block-end: 8px; font-size: 20px;
  background: radial-gradient(circle at 50% 35%, var(--ink-600), var(--ink-900)); box-shadow: inset 0 0 0 2px var(--bronze-700), inset 0 0 0 3px var(--ink-950); }
.f h3 { font-size: 17px; color: var(--gold-300); margin-block-end: 4px; }
.f p { color: var(--text-dim); font-size: 14px; }
.small-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 20px; }
.small-facts li { padding: 6px 12px; border-radius: 16px; border: 1px solid var(--bronze-700); background: var(--ink-800); color: var(--text-dim); font-size: 13px; }

/* ---------------------------------------------------------------- gallery */
.gallery { padding: 40px 0 24px; }
.shots { display: grid; gap: 14px; }
.shots figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-900); border: 2px solid var(--bronze-700); box-shadow: var(--shadow), inset 0 0 0 1px rgba(240,213,138,.15); }
.shots img { width: 100%; aspect-ratio: 688 / 292; object-fit: cover; }
.shots figcaption { display: flex; flex-direction: column; padding: 10px 14px; border-block-start: 1px solid var(--bronze-800); }
.shots figcaption b { font-family: var(--display); color: var(--gold-300); font-size: 16px; }
html[lang="ar"] .shots figcaption b { font-family: var(--body); }
.shots figcaption span { color: var(--text-mute); font-size: 13px; }

/* ---------------------------------------------------------------- bottom cta */
.bottom-cta { padding: 24px 0 48px; text-align: center; }
.bottom-cta img { width: min(100%, 420px); margin: 0 auto 8px; }
.bottom-cta .wrap { display: flex; flex-direction: column; align-items: center; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink-900); }
.foot-in { padding-block: 24px 32px; text-align: center; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-block-end: 14px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--text-dim); font-weight: 600; font-size: 14px; }
.foot-links a:hover { color: var(--gold-300); }
.foot-note { color: var(--text-mute); font-size: 13px; max-width: 640px; margin-inline: auto; }
.foot-copy { color: var(--text-mute); font-size: 12px; margin-block-start: 10px; }

/* ---------------------------------------------------------------- tablet / desktop */
@media (min-width: 640px) {
  .cards, .cols { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .status-card { flex-direction: row; align-items: center; justify-content: space-between; }
  .status-main { flex: 1; }
  .status-stats { flex: 0 0 auto; min-width: 360px; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .brand img { height: 52px; }
  .hero-in { padding-block: 36px 56px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .download { padding-block-start: 56px; }
  .features, .gallery { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-card[data-state="online"] .status-dot { animation: none; }
}
