/* ===========================================================================
   LY360 landing page
   Aqarat Libya's virtual viewing platform.

   Brand: gold #F5B800 (the mark), deep blue #084D9C, near-black #0B1217.
   The page is one file of CSS shared by the English and Arabic pages; the
   Arabic page flips direction and the layout mirrors itself.
   =========================================================================== */

:root {
  --gold: #f5b800;
  --gold-bright: #ffc61a;
  --gold-deep: #e0a400;
  --blue: #084d9c;
  --blue-light: #145dcf;
  --ink: #0b1217;
  --ink-soft: #111a20;
  --ink-card: #16212a;
  --line: rgba(245, 184, 0, 0.22);
  --text: #eef2f4;
  --muted: #9aa8b0;
  --muted-dim: #6f7d85;
  --radius: 16px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }

h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  margin: 22px 0 0;
}

.section-lede {
  font-size: 17px;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 62ch;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: #1a1400;
}
.btn-primary:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 23, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand-lockup img { height: 44px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(8, 77, 156, 0.42), transparent 62%),
    radial-gradient(700px 460px at 12% 92%, rgba(245, 184, 0, 0.13), transparent 60%),
    var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted-dim);
}

/* The hero visual: a 360 frame with the mark inside it. Pure CSS, so it costs
   nothing and never shows a broken image. */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(22, 33, 42, 0.9), rgba(11, 18, 23, 0.95)),
    var(--ink-card);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(245, 184, 0, 0.16) 60deg,
    transparent 130deg,
    rgba(8, 77, 156, 0.3) 220deg,
    transparent 300deg
  );
  animation: sweep 22s linear infinite;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

.hero-visual img {
  position: relative;
  width: 34%;
  max-width: 190px;
  filter: drop-shadow(0 18px 40px rgba(245, 184, 0, 0.32));
}

.hero-badge {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11, 18, 23, 0.82);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Stats strip --------------------------------------------------------- */

.stats {
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--ink-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}

.stat-value {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* --- Sections ------------------------------------------------------------ */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--ink-soft); }

.section-head { max-width: 720px; margin-bottom: 46px; }

/* --- Feature cards ------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink-card);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(245, 184, 0, 0.12);
  border: 1px solid var(--line);
  color: var(--gold);
}

.card-icon svg { width: 21px; height: 21px; }

.card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Steps --------------------------------------------------------------- */

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink-card);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1400;
  font-size: 14px;
  font-weight: 800;
}

.step-item p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Demo band ----------------------------------------------------------- */

.demo-band {
  padding: clamp(56px, 7vw, 88px) 0;
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(8, 77, 156, 0.4), transparent 65%),
    var(--ink);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.demo-band .wrap { max-width: 760px; }

.demo-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.demo-meta {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--muted-dim);
}

/* --- About / company ----------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-grid p { color: var(--muted); margin: 0 0 16px; }

.facts {
  margin: 0;
  padding: 26px 26px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-card);
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.facts > div:last-child { border-bottom: 0; }

.facts dt { color: var(--muted-dim); }
.facts dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq { max-width: 820px; }

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  color: var(--gold);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after { content: '−'; }

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  padding: 56px 0 40px;
  background: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-grid img { height: 40px; width: auto; margin-bottom: 16px; }

.footer-grid p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted-dim);
  max-width: 40ch;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* --- Arabic --------------------------------------------------------------
   The Arabic page is the same markup with dir="rtl". Only the type needs a
   different stack: the Latin stack has no Arabic glyphs and falls back badly.
   ------------------------------------------------------------------------- */

html[lang='ar'] body {
  font-family: 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Geeza Pro', Arial, sans-serif;
  line-height: 1.85;
}

html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

html[lang='ar'] .eyebrow,
html[lang='ar'] .hero-badge,
html[lang='ar'] .footer-col h4 {
  letter-spacing: 0.06em;
}

html[lang='ar'] .stat-value { font-variant-numeric: normal; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid,
  .about-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16 / 10; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .cards,
  .steps-list,
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; }
  .brand-lockup img { height: 32px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 10px 16px; font-size: 13px; }
  .lang-switch { padding: 6px 11px; font-size: 12px; }
  .btn { padding: 13px 22px; font-size: 14.5px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .facts > div { flex-direction: column; gap: 4px; }
  .facts dd { text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual::before { animation: none; }
  .btn:hover,
  .card:hover { transform: none; }
}
