:root {
  --black: #07090d;
  --ink: #111318;
  --ink-soft: #444a55;
  --white: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f5;
  --line: #e2e5ea;
  --blue: #1769ff;
  --blue-dark: #0b4dc4;
  --green: #00a779;
  --green-soft: #e6f8f2;
  --red: #e34e4e;
  --gold: #ad8650;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow-sm: 0 12px 30px rgba(17, 24, 39, .08);
  --shadow-lg: 0 28px 80px rgba(7, 9, 13, .18);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
}

.skip-link:focus {
  top: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(226, 229, 234, .82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  flex-shrink: 0;
}

.brand-logo {
  width: 190px;
  height: auto;
}

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

.desktop-nav a {
  position: relative;
  color: #454a54;
  transition: color .2s ease;
}

.desktop-nav a:hover {
  color: var(--black);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -10px;
  height: 2px;
  background: var(--black);
  transition: left .2s ease, right .2s ease;
}

.desktop-nav a:hover::after {
  left: 0;
  right: 0;
}

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

.language-button,
.mobile-menu-button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.language-button {
  padding: 0 14px;
  font-weight: 700;
}

.language-button img,
.mobile-menu-button img {
  width: 20px;
  height: 20px;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  padding: 0;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav>a {
  padding: 13px 0;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 750;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button img {
  width: 18px;
  height: 18px;
}

.button-dark {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(7, 9, 13, .16);
}

.button-dark img,
.button-primary img,
.button-outline-light img {
  filter: brightness(0) invert(1);
}

.button-white img,
.button-light img {
  filter: none;
}

.button-ghost {
  border-color: var(--line);
  background: var(--white);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 15px 32px rgba(23, 105, 255, .26);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-light {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .16);
  color: var(--black);
}

.button-white {
  background: var(--white);
  color: var(--black);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, .3);
  background: transparent;
}

.button-large {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 15px;
  font-size: 15px;
}

.hero {
  min-height: 760px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(23, 105, 255, .2), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(0, 167, 121, .14), transparent 30%),
    linear-gradient(135deg, #05070b 0%, #101520 54%, #06080d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .11;
  background-image: linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  opacity: .35;
  z-index: -1;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  background: var(--blue);
  top: 20%;
  left: 5%;
}

.hero-glow-two {
  width: 300px;
  height: 300px;
  background: var(--green);
  right: 6%;
  bottom: 2%;
  opacity: .16;
}

.hero-grid {
  min-height: 760px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 68px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  color: #d9e1ee;
  font-size: 13px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(0, 167, 121, .15);
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(48px, 6.3vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 780px;
}


.hero h1 span {
  display: block;
  line-height: normal;
}

.headline-accent {
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #8fb7ff 50%, #77e3c5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 630px;
  margin: 0;
  color: #c1c8d5;
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-proof {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 34px;
  color: #aeb7c5;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: var(--white);
  font-size: 14px;
}

.hero-proof span {
  font-size: 12px;
}

.proof-avatars {
  display: flex;
  padding-left: 8px;
}

html[dir="rtl"] .proof-avatars {
  padding-left: 0;
  padding-right: 8px;
}

.proof-avatars span {
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #222938;
  border: 2px solid #0b0e15;
  font-size: 10px;
  font-weight: 800;
}

html[dir="rtl"] .proof-avatars span {
  margin-left: 0;
  margin-right: -8px;
}

.proof-avatars span:nth-child(2) {
  background: var(--blue);
}

.proof-avatars span:nth-child(3) {
  background: var(--green);
}

.proof-avatars span:nth-child(4) {
  background: #444b58;
}

.hero-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

html[dir="rtl"] .visual-frame {
  transform: perspective(1200px) rotateY(4deg) rotateX(2deg);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: inherit;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 208px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
}

.floating-card div {
  flex: 1;
}

.floating-card span {
  display: block;
  color: #777e8b;
  font-size: 11px;
}

.floating-card strong {
  display: block;
  font-size: 14px;
}

.floating-card b {
  font-size: 13px;
}

.card-ksa {
  left: -34px;
  bottom: 76px;
}

.card-uae {
  right: -28px;
  top: 70px;
}

.flag {
  width: 32px;
  height: 22px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  flex: 0 0 auto;
}

.flag-ksa {
  background: linear-gradient(#0c8a43, #0c8a43);
  position: relative;
}

.flag-ksa::after {
  content: "◆";
  color: white;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.flag-uae {
  background: linear-gradient(90deg, #e22635 0 24%, #fff 24% 49%, #108a4d 49% 74%, #101010 74%);
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.market-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ticker-track {
  width: max-content;
  display: flex;
  animation: ticker 28s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.ticker-item span {
  font-weight: 800;
}

.ticker-item strong {
  font-weight: 650;
  color: #3c424d;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

html[dir="rtl"] .ticker-track {
  animation-direction: reverse;
}

.section {
  padding: 110px 0;
}

.section-intro {
  background: var(--surface);
}

.section-heading {
  max-width: 810px;
  margin-bottom: 50px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

.section-kicker {
  display: inline-flex;
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-kicker.light {
  color: #8fb7ff;
}

.section-heading h2,
.market-copy h2,
.community-copy h2,
.bilingual-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.section-heading p,
.market-copy>p,
.community-copy>p,
.bilingual-copy>p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 20px 0 0;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 70px;
}

.split-heading p {
  margin: 0;
}

.platform-showcase {
  position: relative;
}

.browser-shell {
  border: 1px solid #d8dce3;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.browser-top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.browser-top>span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9dde4;
}

.browser-top>span:first-child {
  background: #ff6b64;
}

.browser-top>span:nth-child(2) {
  background: #ffbf48;
}

.browser-top>span:nth-child(3) {
  background: #38c86b;
}

.browser-address {
  width: min(420px, 60%);
  min-height: 30px;
  margin-inline: auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf0f4;
  color: #747b87;
  font-size: 11px;
}

.screen-stage {
  aspect-ratio: 16 / 9;
  background: #e9edf3;
  overflow: hidden;
}

.screen-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity .2s ease, transform .35s ease;
}

.screen-stage img.switching {
  opacity: .2;
  transform: scale(.985);
}

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px auto 0;
  max-width: 810px;
}

.showcase-tab {
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 58px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
  color: #575e69;
}

.showcase-tab img {
  width: 22px;
  height: 22px;
}

.showcase-tab.active {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
  box-shadow: var(--shadow-sm);
}

.showcase-tab.active img {
  filter: brightness(0) invert(1);
}

.section-dark {
  color: var(--white);
  background: #090c12;
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle at 20% 20%, var(--blue), transparent 22%), radial-gradient(circle at 80% 80%, var(--green), transparent 24%);
}

.section-dark .container {
  position: relative;
}

.section-dark .section-heading p {
  color: #aab3c1;
}

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

.feature-card {
  min-height: 340px;
  padding: 30px;
  border: 1px solid #252a35;
  border-radius: 24px;
  background: #10141c;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #3e4656;
}

.feature-card.featured {
  background: linear-gradient(145deg, #132039, #10141c 64%);
  border-color: rgba(76, 137, 255, .4);
}

.feature-card.featured::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(23, 105, 255, .18);
  right: -60px;
  top: -60px;
  filter: blur(30px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  color: #8fb7ff;
}

.feature-icon img {
  width: 29px;
  height: 29px;
  filter: brightness(0) invert(72%) sepia(44%) saturate(2214%) hue-rotate(185deg) brightness(103%) contrast(103%);
}

.feature-card h3 {
  margin: 24px 0 12px;
  font-size: 23px;
  letter-spacing: -.02em;
}

.feature-card p {
  margin: 0;
  color: #aeb7c5;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 9px;
}

.feature-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #d5dbe5;
}

.feature-card li img {
  width: 17px;
  height: 17px;
  filter: brightness(0) saturate(100%) invert(54%) sepia(66%) saturate(1130%) hue-rotate(121deg) brightness(87%) contrast(102%);
}

.market-grid,
.community-grid,
.bilingual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.market-copy .market-points {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.market-points div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.market-points img {
  width: 20px;
  color: var(--green);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
  color: var(--blue);
}

.text-link img {
  width: 18px;
}

.market-cards {
  position: relative;
  min-height: 570px;
}

.exchange-card {
  position: absolute;
  width: 68%;
  min-height: 360px;
  padding: 30px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.exchange-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .3) 1px, transparent 1px);
  background-size: 42px 42px;
}

.exchange-card>* {
  position: relative;
}

.exchange-card-ksa {
  left: 0;
  top: 0;
  background: linear-gradient(145deg, #0d7a43, #053822);
  transform: rotate(-4deg);
}

.exchange-card-uae {
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, #172b52, #070e1f);
  transform: rotate(4deg);
}

.exchange-flag {
  display: block;
  margin-bottom: 32px;
}

.exchange-card>span:not(.exchange-flag) {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  font-weight: 700;
}

.exchange-card h3 {
  margin: 6px 0 20px;
  font-size: 30px;
}

.exchange-symbol {
  font-size: 74px;
  font-weight: 900;
  letter-spacing: -.07em;
  opacity: .95;
}

.mini-chart {
  height: 80px;
  margin-top: 28px;
  clip-path: polygon(0 78%, 10% 60%, 20% 69%, 31% 35%, 43% 51%, 54% 25%, 65% 45%, 79% 18%, 88% 32%, 100% 0, 100% 100%, 0 100%);
}

.green-chart {
  background: linear-gradient(rgba(119, 227, 197, .9), rgba(119, 227, 197, .08));
}

.blue-chart {
  background: linear-gradient(rgba(89, 144, 255, .95), rgba(89, 144, 255, .08));
}

.community-section {
  background: var(--surface);
}

.community-visual {
  min-height: 550px;
  position: relative;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.post-card-main {
  position: absolute;
  top: 20px;
  left: 0;
  width: 84%;
  z-index: 2;
}

.post-card-secondary {
  position: absolute;
  right: 0;
  bottom: 50px;
  width: 78%;
  transform: rotate(3deg);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 850;
}

.avatar-one {
  background: var(--blue);
}

.avatar-two {
  background: var(--green);
}

.post-head div {
  flex: 1;
}

.post-head strong,
.post-head small {
  display: block;
}

.post-head small {
  color: #89909b;
  font-size: 11px;
}

.sentiment {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.bullish {
  color: var(--green);
  background: var(--green-soft);
}

.bearish {
  color: var(--red);
  background: #fdecec;
}

.post-card p {
  margin: 25px 0;
  font-size: 17px;
  line-height: 1.65;
}

.post-actions {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  gap: 24px;
  color: #7b828d;
  font-size: 12px;
}

.community-badge {
  position: absolute;
  left: 20px;
  bottom: 0;
  z-index: 3;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border-radius: 16px;
  color: var(--white);
  background: var(--black);
  box-shadow: var(--shadow-lg);
}

.community-badge img {
  width: 28px;
  filter: brightness(0) invert(72%) sepia(44%) saturate(2214%) hue-rotate(185deg) brightness(103%) contrast(103%);
}

.community-badge strong {
  font-size: 13px;
}

.community-copy blockquote {
  margin: 30px 0;
  padding: 26px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.community-copy blockquote img {
  width: 34px;
  color: var(--blue);
  opacity: .9;
}

.community-copy blockquote p {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
}

.news-feature {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
}

.news-image {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
}

.news-image-dark {
  color: var(--white);
  background: radial-gradient(circle at 65% 30%, rgba(23, 105, 255, .34), transparent 32%), linear-gradient(145deg, #111827, #030712);
}

.news-image img {
  width: 70px;
  filter: brightness(0) invert(1);
}

.news-image span {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.news-content {
  padding: 30px;
}

.news-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.news-content h3 {
  margin: 16px 0 12px;
  font-size: 28px;
  line-height: 1.18;
}

.news-content p {
  color: var(--ink-soft);
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list article {
  min-height: 150px;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.news-list article>span {
  color: #c3c8d0;
  font-size: 34px;
  font-weight: 900;
}

.news-list small {
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.news-list h3 {
  margin: 7px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.bilingual-section {
  background: #f0f2f5;
}

.signin-preview {
  border-radius: 28px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.signin-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border-radius: 14px;
  margin-bottom: 12px;
}

.signin-tab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: #69717d;
}

.signin-tab.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 5px 15px rgba(17, 24, 39, .08);
}

.signin-image-wrap {
  aspect-ratio: 16 / 10;
  border-radius: 17px;
  overflow: hidden;
  background: #eef0f3;
}

.signin-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity .2s ease;
}

.language-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.language-pills span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #cfd4dc;
  background: var(--white);
  font-weight: 800;
}

.final-cta {
  padding: 90px 0px;
  background: var(--white);
}

.cta-panel {
  padding: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  color: var(--white);
  border-radius: 30px;
  background: radial-gradient(circle at 20% 20%, rgba(23, 105, 255, .4), transparent 32%), linear-gradient(145deg, #101722, #05070b);
  overflow: hidden;
  position: relative;
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  right: -90px;
  top: -120px;
}

.cta-panel>* {
  position: relative;
  z-index: 1;
}

.cta-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.cta-logo img {
  width: 48px;
  filter: brightness(0) invert(1);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.cta-panel p {
  margin: 14px 0 0;
  color: #b8c0cc;
  max-width: 700px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer {
  padding: 76px 0 30px;
  color: #b5bdca;
  background: #080a0f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, .7fr);
  gap: 56px;
}

.footer-brand>img {
  width: 190px;
  color: var(--white);
  filter: invert(1);
}

.footer-brand p {
  max-width: 380px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #292e38;
  border-radius: 12px;
}

.social-links img {
  width: 20px;
  filter: brightness(0) invert(1);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-column h3 {
  color: var(--white);
  font-size: 14px;
  margin: 0 0 10px;
}

.footer-column a {
  font-size: 13px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid #252a33;
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
  max-width: 690px;
  text-align: right;
}

html[dir="rtl"] .footer-bottom p {
  text-align: left;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .22s;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-visual {
    max-width: 780px;
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .market-grid,
  .community-grid,
  .bilingual-grid {
    gap: 50px;
  }

  .cta-panel {
    grid-template-columns: auto 1fr;
  }

  .cta-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 820px) {
  .desktop-only {
    display: none;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    width: 160px;
  }

  .language-button {
    min-width: 44px;
    padding: 0 10px;
  }

  .language-button span {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    gap: 55px;
    padding-top: 76px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: clamp(46px, 12vw, 72px);
  }

  .floating-card {
    transform: scale(.88);
  }

  .card-ksa {
    left: -16px;
    bottom: 32px;
  }

  .card-uae {
    right: -12px;
    top: 35px;
  }

  .section {
    padding: 82px 0;
  }

  .showcase-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .market-grid,
  .community-grid,
  .bilingual-grid,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .market-copy,
  .community-copy,
  .bilingual-copy {
    max-width: 700px;
  }

  .market-cards {
    max-width: 650px;
    width: 100%;
    margin-inline: auto;
  }

  .community-visual {
    order: 2;
  }

  .community-copy {
    order: 1;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 38px;
    grid-template-columns: 1fr;
  }

  .cta-logo {
    width: 64px;
    height: 64px;
  }

  .cta-actions {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom p,
  html[dir="rtl"] .footer-bottom p {
    text-align: start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-actions {
    gap: 7px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    align-items: flex-start;
  }

  .visual-frame {
    transform: none !important;
    border-radius: 22px;
  }

  .floating-card {
    display: none;
  }

  .section-heading h2,
  .market-copy h2,
  .community-copy h2,
  .bilingual-copy h2 {
    font-size: 38px;
  }

  .screen-stage {
    aspect-ratio: 4 / 3;
  }

  .screen-stage img {
    object-position: top left;
  }

  html[dir="rtl"] .screen-stage img {
    object-position: top right;
  }

  .showcase-tab {
    min-height: 54px;
    font-size: 13px;
  }

  .market-cards {
    min-height: 460px;
  }

  .exchange-card {
    width: 82%;
    min-height: 300px;
    padding: 22px;
  }

  .exchange-symbol {
    font-size: 58px;
  }

  .community-visual {
    min-height: 520px;
  }

  .post-card-main {
    width: 94%;
  }

  .post-card-secondary {
    width: 88%;
  }

  .community-badge {
    left: 6px;
    right: 6px;
    max-width: none;
  }

  .news-content h3 {
    font-size: 24px;
  }

  .signin-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .signin-image-wrap img {
    object-position: 50% 0;
  }

  .cta-panel {
    padding: 30px 22px;
  }

  .cta-actions {
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


.mobile-app-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  overflow: hidden;
}

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

.store-badge {
  min-width: 205px;
  min-height: 64px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.store-badge img {
  width: 28px;
  height: 28px;
}

.store-badge img[src*="apple-store"] {
  filter: brightness(0) invert(1);
}


.store-badge small,
.store-badge strong {
  display: block;
  line-height: 1.1;
}

.store-badge small {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

.store-badge strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.app-canvas {
  position: relative;
  margin-top: 30px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(23, 105, 255, .16), transparent 20%),
    radial-gradient(circle at 84% 80%, rgba(0, 167, 121, .12), transparent 23%),
    linear-gradient(145deg, #0a0e16, #111827 62%, #07090d);
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}

.app-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image: linear-gradient(rgba(255, 255, 255, .24) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .24) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.app-phone-card {
  position: relative;
  z-index: 1;
}

.card-large {
  transform: translateY(-22px);
}

.card-offset {
  transform: translateY(18px);
}

.phone-shell {
  position: relative;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(180deg, #1c2230, #07090d);
  box-shadow: 0 26px 45px rgba(0, 0, 0, .28);
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: #05070b;
  z-index: 2;
}

.phone-shell img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #ffffff;
}

.phone-shell.mini {
  max-width: 230px;
  margin-inline: auto;
}

.app-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

html[dir="rtl"] .app-canvas {
  direction: ltr;
}

html[dir="rtl"] .store-actions {
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .app-canvas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .store-actions {
    justify-content: flex-start;
  }

  .store-badge {
    flex: 1 1 220px;
  }

  .app-canvas {
    padding: 22px;
    border-radius: 26px;
    gap: 14px;
  }

  .app-gallery {
    grid-template-columns: 1fr;
  }

  .card-large,
  .card-offset {
    transform: none;
  }
}

@media (max-width: 560px) {
  .app-canvas {
    grid-template-columns: 1fr;
  }

  .store-badge {
    width: 100%;
  }
}

/* Legal pages */
.legal-body {
  background: var(--surface);
}

.legal-main {
  padding: 48px 0 80px;
  min-height: 70vh;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
}

.legal-sidebar-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a8190;
}

.legal-nav {
  display: grid;
  gap: 6px;
}

.legal-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5260;
  transition: background .2s ease, color .2s ease;
}

.legal-nav a:hover,
.legal-nav a.active {
  background: var(--black);
  color: var(--white);
}

.legal-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 40px 48px;
}

.legal-updated {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #7a8190;
}

.legal-article h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--black);
}

.legal-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.legal-article h2 {
  margin: 34px 0 12px;
  font-size: 1.2rem;
  color: var(--black);
}

.legal-article h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
  color: var(--black);
}

.legal-article p,
.legal-article li {
  color: #3d4450;
  font-size: 15px;
}

.legal-article p {
  margin: 0 0 14px;
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 16px;
  padding-inline-start: 1.25rem;
}

.legal-article li {
  margin-bottom: 8px;
}

.legal-article a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer {
  padding-top: 0;
}

.legal-footer-bottom {
  margin-top: 0;
  border-top-color: #252a33;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-nav {
    grid-template-columns: 1fr 1fr;
  }

  .legal-panel {
    padding: 28px 22px 36px;
  }
}

@media (max-width: 560px) {
  .legal-nav {
    grid-template-columns: 1fr;
  }

  .legal-main {
    padding: 28px 0 56px;
  }
}