:root {
  --bg: #071016;
  --panel: rgba(8, 20, 28, 0.78);
  --panel-strong: rgba(5, 14, 20, 0.92);
  --line: rgba(137, 202, 230, 0.34);
  --line-strong: rgba(65, 177, 255, 0.74);
  --text: #eef7fb;
  --muted: #aab9c3;
  --cyan: #2db8ff;
  --gold: #d7b45f;
  --green: #65d49b;
  --danger: #ff6e7f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --latin-font: Aptos, Inter, "Segoe UI", Arial, sans-serif;
  --arabic-font: "Saudi", Tahoma, "Segoe UI", Arial, sans-serif;
}

@font-face {
  font-family: "Saudi";
  src: url("assets/fonts/Saudi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saudi";
  src: url("assets/fonts/Saudi-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saudi";
  src: url("assets/fonts/Saudi-SemiBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saudi";
  src: url("assets/fonts/Saudi-Bold.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--latin-font);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(45, 184, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(215, 180, 95, 0.13), transparent 22rem),
    linear-gradient(145deg, #061018 0%, #08161f 42%, #0c1015 100%);
}

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

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

.scene canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(4, 11, 16, 0.74);
  border-bottom: 1px solid rgba(137, 202, 230, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(45, 184, 255, 0.22), rgba(215, 180, 95, 0.15));
  box-shadow: 0 0 28px rgba(45, 184, 255, 0.14);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #dcecf4;
  font-size: 14px;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  border-color: rgba(45, 184, 255, 0.36);
  background: rgba(45, 184, 255, 0.1);
}

.language-link {
  border-color: rgba(215, 180, 95, 0.4) !important;
  color: #ffe3a4 !important;
}

html[dir="rtl"] body {
  font-family: var(--arabic-font);
}

html[dir="rtl"] .brand-mark,
html[dir="rtl"] .metric,
html[dir="rtl"] .coin-amount,
html[dir="rtl"] .price,
html[dir="rtl"] .flow-node,
html[dir="rtl"] .bp-node,
html[dir="rtl"] .widget-title,
html[dir="rtl"] .ui-field,
html[dir="rtl"] .ui-button,
html[dir="rtl"] .ui-row,
html[dir="rtl"] .step b,
html[dir="rtl"] .card h3,
html[dir="rtl"] .coin-pack h3,
html[dir="rtl"] .language-link {
  font-family: var(--latin-font);
}

html[dir="rtl"] .nav,
html[dir="rtl"] .section-head {
  direction: rtl;
}

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

html[dir="rtl"] .eyebrow::before {
  order: 2;
}

.page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 76px;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  padding-bottom: 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #b6e9ff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
  font-weight: 950;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

h3 {
  font-size: 18px;
}

.lead {
  margin: 22px 0 0;
  max-width: 680px;
  color: #c7d6dd;
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(180deg, #23a9f4, #0a67bc);
  border-color: rgba(116, 215, 255, 0.65);
  box-shadow: 0 12px 36px rgba(45, 184, 255, 0.22);
}

.showcase {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(137, 202, 230, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 26, 36, 0.82), rgba(4, 12, 18, 0.92)),
    radial-gradient(circle at 50% 10%, rgba(45, 184, 255, 0.18), transparent 15rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(45, 184, 255, 0.18);
  border-radius: 8px;
}

.mock-login {
  position: absolute;
  inset: 52px 48px;
  padding: 34px;
  border: 1px solid rgba(145, 207, 232, 0.38);
  border-radius: 8px;
  background: rgba(5, 14, 22, 0.72);
  backdrop-filter: blur(12px);
}

.mock-login h2 {
  text-align: center;
  font-size: 42px;
}

.mock-line {
  height: 46px;
  margin-top: 18px;
  border: 1px solid rgba(176, 215, 232, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.mock-button {
  height: 48px;
  margin-top: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #23a9f4, #0a67bc);
  border: 1px solid rgba(116, 215, 255, 0.65);
}

.widget-preview {
  border: 1px solid rgba(137, 202, 230, 0.3);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 184, 255, 0.18), transparent 18rem),
    rgba(5, 14, 22, 0.74);
  box-shadow: var(--shadow);
}

.widget-panel {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(145, 207, 232, 0.42);
  border-radius: 8px;
  background: rgba(5, 14, 22, 0.78);
  backdrop-filter: blur(12px);
}

.widget-panel.compact {
  width: min(430px, 100%);
}

.widget-title {
  margin-bottom: 20px;
  text-align: center;
  font-size: 32px;
  font-weight: 950;
}

.ui-field,
.ui-button,
.ui-row {
  min-height: 46px;
  border-radius: 8px;
}

.ui-field {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(176, 215, 232, 0.26);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.ui-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border: 1px solid rgba(176, 215, 232, 0.22);
  color: #f4fbff;
  font-weight: 900;
}

.ui-button.primary {
  background: linear-gradient(180deg, #23a9f4, #0a67bc);
  border-color: rgba(116, 215, 255, 0.65);
}

.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #dcecf4;
}

.coin-packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.coin-pack {
  padding: 20px;
  border: 1px solid rgba(215, 180, 95, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 180, 95, 0.16), transparent 10rem),
    rgba(8, 20, 28, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.coin-amount {
  color: var(--gold);
  font-size: 34px;
  font-weight: 950;
}

.price {
  margin-top: 10px;
  color: #f5efe0;
  font-weight: 800;
}

.note {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 58px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.card,
.feature,
.step,
.contact-box {
  border: 1px solid rgba(137, 202, 230, 0.22);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.card {
  min-height: 226px;
  padding: 20px;
  overflow: hidden;
}

.card-visual {
  height: 112px;
  margin: -20px -20px 18px;
  background:
    linear-gradient(135deg, rgba(45, 184, 255, 0.22), transparent),
    linear-gradient(45deg, rgba(215, 180, 95, 0.13), rgba(101, 212, 155, 0.08)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 32px);
}

.card p,
.feature p,
.step p,
.contact-box p {
  color: var(--muted);
  line-height: 1.65;
}

.feature {
  padding: 22px;
}

.metric {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 32px;
  font-weight: 950;
}

.flow {
  display: grid;
  gap: 12px;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(137, 202, 230, 0.24);
  border-radius: 8px;
  background: rgba(8, 20, 28, 0.72);
}

.flow-node span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}

.blueprint {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(45, 184, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(rgba(45, 184, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 184, 255, 0.05) 1px, transparent 1px),
    rgba(4, 12, 20, 0.86);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bp-node {
  position: absolute;
  min-width: 170px;
  padding: 14px;
  border: 1px solid rgba(137, 202, 230, 0.34);
  border-radius: 8px;
  background: rgba(8, 20, 28, 0.94);
  box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}

.bp-node strong {
  display: block;
  margin-bottom: 6px;
  color: #f2fbff;
}

.bp-node small {
  color: var(--muted);
}

.bp-node.one { left: 6%; top: 18%; }
.bp-node.two { left: 36%; top: 42%; }
.bp-node.three { right: 8%; top: 20%; }
.bp-node.four { right: 20%; bottom: 14%; }

.bp-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(45,184,255,0.12));
  box-shadow: 0 0 18px rgba(45,184,255,0.4);
  transform-origin: left center;
}

.line-a { left: 23%; top: 33%; width: 190px; transform: rotate(18deg); }
.line-b { left: 52%; top: 45%; width: 225px; transform: rotate(-18deg); }
.line-c { right: 22%; top: 43%; width: 170px; transform: rotate(72deg); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 18px;
}

.step b {
  display: block;
  color: var(--cyan);
  margin-bottom: 10px;
}

.contact-box {
  padding: 24px;
}

.form {
  display: grid;
  gap: 12px;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(137, 202, 230, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

textarea.input {
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
}

.footer {
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid rgba(137, 202, 230, 0.14);
  background: rgba(4, 11, 16, 0.62);
}

@media (max-width: 860px) {
  .hero-inner,
  .grid,
  .grid.two,
  .steps,
  .coin-packs {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .showcase {
    min-height: 420px;
  }

  .mock-login {
    inset: 28px 22px;
    padding: 24px;
  }

  .mock-login h2 {
    font-size: 32px;
  }
}
