/* Storm Hoist landing page (static, no scripts). Shared by / (English) and /ar/ (Arabic, rtl). */
@font-face { font-family: 'Lalezar'; src: url('fonts/Lalezar-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('fonts/Cairo-Variable.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #0b1620;
  --panel: #0f202b;
  --panel-2: #132936;
  --ink: #eef3f6;
  --muted: #a7b8c1;
  --soft: #7f939d;
  --amber: #ffb800;
  --red: #d8242c;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* Top bar */
.top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 3;
  padding-block: 1rem;
}
.top .wrap { display: flex; justify-content: flex-end; }
.lang {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.3rem 0.95rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(6, 12, 20, 0.35);
  backdrop-filter: blur(6px);
}
.lang:hover, .lang:focus-visible { border-color: var(--amber); color: var(--amber); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero picture, .hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(6, 12, 20, 0.55) 0%, rgba(6, 12, 20, 0) 26%),
    linear-gradient(to top, var(--bg) 0%, rgba(11, 22, 32, 0.82) 22%, rgba(11, 22, 32, 0) 58%);
}
.hero .wrap { padding-block: 5rem 3.2rem; }
.logo { width: clamp(16rem, 44vw, 38rem); margin: 0 0 1.1rem; filter: drop-shadow(0 0.4rem 1.2rem rgba(0, 0, 0, 0.55)); }
[lang='ar'] .logo { width: clamp(13rem, 32vw, 27rem); }
.tagline {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.55;
  text-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.6);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 1.7rem; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem 0.85rem;
  border-radius: 999px;
  background: var(--amber);
  color: #13100a;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 0.6rem 1.6rem rgba(255, 184, 0, 0.22);
}
a.cta:hover, a.cta:focus-visible { background: #ffc933; }
.cta.soon {
  background: rgba(6, 12, 20, 0.55);
  color: var(--ink);
  border: 1px solid rgba(255, 184, 0, 0.65);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.cta .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0.7rem var(--amber); }
.meta { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Sections */
section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 1.1rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
[lang='ar'] h2, [lang='ar'] h3 { font-family: 'Lalezar', 'Cairo', sans-serif; font-weight: 400; letter-spacing: 0; }
[lang='ar'] h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.kicker { margin: 0 0 0.5rem; color: var(--amber); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
[lang='ar'] .kicker { letter-spacing: 0; font-size: 1rem; }
.lead { max-width: 46rem; margin: 0; color: #d5e0e6; }
.lead + .lead { margin-top: 1rem; }

/* Story: text beside one image */
.story { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1.05fr 1fr; } }
.story figure { margin: 0; }
.frame { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Worlds */
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 1.05rem 1.15rem 1.3rem; }
h3 { margin: 0 0 0.35rem; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
[lang='ar'] h3 { font-size: 1.5rem; }
.count { display: inline-block; margin-bottom: 0.45rem; color: var(--amber); font-weight: 700; font-size: 0.9rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.65; }

/* Features */
.features { display: grid; gap: 1rem 2.2rem; margin: 2rem 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.features li { padding-inline-start: 1.1rem; border-inline-start: 3px solid var(--red); }
.features strong { display: block; font-size: 1.08rem; }
.features span { color: var(--muted); font-size: 0.98rem; }

/* Gallery */
/* Four 16:9 shots: two by two from tablet width up (auto-fit left one shot alone on a second row), one column below. */
.gallery { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 0.5rem; color: var(--soft); font-size: 0.92rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 2.2rem 2.8rem; color: var(--soft); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
footer a { text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--amber); }

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