:root {
  --ink: #071422;
  --navy: #10283d;
  --panel: #17324c;
  --gold: #e0b14a;
  --gold-ink: #1a1408;
  --paper: #f4efe4;
  --paper-ink: #1b2830;
  --muted: #c5d0dc;
  --paper-muted: #5d6c74;
  --line: rgba(224, 177, 74, 0.35);
  --ok: #45c77a;
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --display: "Amiri", "Noto Naskh Arabic", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--ink);
  color: #f7f3ea;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
}

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

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--gold-ink);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 6%;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  margin-inline-end: auto;
}

.brand img,
.cta img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.desk {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.desk a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.gold {
  background: var(--gold);
  color: var(--gold-ink);
}

.button.ghost {
  border-color: var(--line);
  color: #f7f3ea;
}

.button.compact {
  min-height: 42px;
  font-size: 14px;
}

.menu {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #f7f3ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.menu-lines {
  width: 16px;
  height: 10px;
  border-block: 2px solid currentColor;
}

.nav-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6% 18px;
  background: var(--navy);
}

.nav-panel a {
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-panel.is-open {
  display: flex;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 6% 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 6% auto;
  height: 100%;
  background:
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(224, 177, 74, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 90%, rgba(27, 92, 148, 0.35), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow.light {
  color: #a67c24;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1.25;
}

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

h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.35;
  color: var(--paper-ink);
}

.lead,
.section-head p,
.device-story p,
.timeline p,
.rows p,
.faq p,
.cta p,
.locks span {
  color: var(--muted);
}

.lead {
  max-width: 38rem;
  margin: 18px 0 0;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions.center {
  justify-content: center;
}

.switcher {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.switcher button {
  background: transparent;
  color: #f7f3ea;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.switcher button.is-on {
  background: #f7f3ea;
  color: var(--ink);
  border-color: #f7f3ea;
}

.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.notes li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.device-wrap {
  margin: 0;
}

.device {
  width: min(340px, 100%);
  margin-inline: auto;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a2112, #0b1826 40%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(224, 177, 74, 0.45);
}

.device-screen {
  background: #061421;
  border-radius: 26px;
  min-height: 560px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
}

.status,
.screen-head,
.feed div,
.lines div,
.total,
.dock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.status {
  color: #8ea0b3;
  font-size: 12px;
  padding: 2px 6px 10px;
}

.screen-head {
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.screen-head img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.screen-head strong,
.feed b,
.lines b,
.total b,
.stats b {
  display: block;
  font-weight: 700;
}

.screen-head span,
.stats span,
.stats small,
.feed span,
.lines span {
  color: #9eb0c2;
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stats.single {
  grid-template-columns: 1fr;
}

.stats div,
.lines,
.feed,
.total,
.chip {
  background: #10283d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.stats div {
  padding: 12px;
}

.stats b {
  margin-top: 4px;
  font-size: 22px;
  color: #f7f3ea;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.tiles span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 12px;
  background: #17324c;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.feed,
.lines {
  display: grid;
}

.feed div,
.lines div,
.total {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed div:last-child,
.lines div:last-child {
  border-bottom: 0;
}

.feed b,
.lines b,
.total b {
  color: var(--gold);
  font-size: 13px;
}

.feed.tall {
  margin-top: 12px;
}

.lines {
  margin-bottom: 10px;
}

.total {
  margin-bottom: 10px;
}

.chip {
  margin: 0;
  padding: 10px 12px;
  color: var(--ok);
  font-size: 13px;
}

.dock {
  margin-top: auto;
  padding-top: 12px;
  color: #8ea0b3;
  font-size: 11px;
  justify-content: space-between;
}

.dock .on {
  color: var(--gold);
  font-weight: 700;
}

figcaption {
  margin-top: 14px;
  text-align: center;
  color: #8ea0b3;
  font-size: 13px;
}

.band {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 36px;
  padding: 22px 6%;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 15px;
}

.ledger,
.faq {
  background: var(--paper);
  color: var(--paper-ink);
}

.ledger,
.day,
.device-story,
.faq,
.cta {
  padding: 84px 6%;
}

.section-head,
.cta {
  max-width: 760px;
}

.section-head.ink h2,
.day h2,
.device-story h2,
.cta h2 {
  color: #f7f3ea;
}

.ledger .section-head,
.faq .section-head,
.ledger,
.faq {
  margin-inline: auto;
}

.ledger,
.day,
.device-story,
.faq {
  max-width: none;
}

.section-head,
.rows,
.timeline,
.questions,
.cta {
  width: min(920px, 100%);
  margin-inline: auto;
}

.device-story {
  width: 100%;
  max-width: none;
}

.rows {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  width: min(920px, 100%);
}

.rows li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(27, 40, 48, 0.12);
}

.rows span {
  font-family: var(--display);
  font-size: 28px;
  color: #a67c24;
}

.rows h3,
.timeline b,
.locks strong {
  margin: 0;
  font-size: 20px;
}

.rows p,
.timeline p,
.locks span,
.faq p,
.device-story p,
.cta p {
  margin: 6px 0 0;
}

.ledger p,
.faq p {
  color: var(--paper-muted);
}

.day {
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(224, 177, 74, 0.08), transparent 50%),
    var(--ink);
}

.timeline {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  padding: 8px 0 28px 0;
  padding-inline-start: 28px;
  border-inline-start: 1px solid var(--line);
}

.timeline b {
  color: var(--gold);
}

.device-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 48px;
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: start;
  background: var(--navy);
  padding: 84px max(24px, calc((100% - 1040px) / 2));
}

.device-story h2 {
  margin-bottom: 12px;
}

.locks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.locks li {
  padding: 18px;
  border-radius: 16px;
  background: rgba(6, 20, 33, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.questions {
  margin-top: 12px;
}

details {
  border-bottom: 1px solid rgba(27, 40, 48, 0.12);
  padding: 8px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}

.faq a {
  color: #8a5d10;
}

.cta {
  text-align: center;
  width: min(760px, calc(100% - 12%));
  margin: 28px auto 64px;
  padding: 48px 24px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(224, 177, 74, 0.18), transparent 55%),
    #0c2238;
}

.cta img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 8px 6% 36px;
  color: #8ea0b3;
  font-size: 14px;
}

.footer-brand {
  color: #f7f3ea;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .desk,
  .button.compact {
    display: none;
  }

  .menu {
    display: inline-flex;
  }

  .hero,
  .device-story {
    grid-template-columns: 1fr;
  }

  .device {
    margin-top: 12px;
  }

  h1 {
    font-size: 46px;
  }
}

@media (max-width: 520px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats b {
    font-size: 18px;
  }

  .rows li {
    grid-template-columns: 46px 1fr;
  }

  .ledger,
  .day,
  .device-story,
  .faq {
    padding: 56px 6%;
  }
}

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

/* LTR and Multilingual Enhancements */
html[dir="ltr"],
body[dir="ltr"] {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Georgia", serif;
}

.lang-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
}

.lang-picker a {
  color: var(--muted);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.lang-picker a.active,
.lang-picker a:hover {
  background: var(--gold);
  color: var(--gold-ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 14px 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}
