:root {
  --primary: #133159;
  --primary-2: #1e4a7a;
  --primary-3: #0c233f;
  --gold: #c49a4a;
  --gold-soft: #efe2c5;
  --teal: #20a6a1;
  --teal-soft: #dff6f3;
  --ink: #14243a;
  --muted: #64748b;
  --line: #dbe5ef;
  --soft: #f5f8fb;
  --paper: #ffffff;
  --paper-warm: #fbf8f2;
  --danger: #b94747;
  --success: #157f69;
  --shadow: 0 24px 70px rgba(19, 49, 89, 0.13);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 248, 251, 0.95), rgba(255, 255, 255, 1) 28rem),
    var(--paper);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] body {
  font-family:
    "Tajawal", "Noto Kufi Arabic", "Segoe UI", Arial, sans-serif;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  transition: top 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(219, 229, 239, 0.76);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 40px rgba(19, 49, 89, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand img {
  width: 190px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  color: #334761;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
  background: rgba(19, 49, 89, 0.07);
}

.nav-has-dropdown > .nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline-start: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown {
  position: absolute;
  inset-inline-start: 50%;
  top: calc(100% + 12px);
  z-index: 40;
  width: 240px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

[dir="rtl"] .nav-dropdown {
  transform: translate(50%, 8px);
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

[dir="rtl"] .nav-has-dropdown:hover .nav-dropdown,
[dir="rtl"] .nav-has-dropdown:focus-within .nav-dropdown {
  transform: translate(50%, 0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #334761;
  font-weight: 800;
}

.nav-dropdown a:hover {
  color: var(--primary);
  background: rgba(19, 49, 89, 0.07);
}

.nav-dropdown span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--primary);
  background: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.header-actions,
.hero-actions,
.footer-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.language-switch {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--primary);
  font-weight: 800;
  background: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(19, 49, 89, 0.2);
}

.btn-primary:hover {
  background: var(--primary-2);
}

.btn-secondary {
  color: var(--primary);
  background: #fff;
  border-color: rgba(19, 49, 89, 0.18);
}

.btn-secondary:hover {
  border-color: rgba(19, 49, 89, 0.36);
  box-shadow: 0 12px 28px rgba(19, 49, 89, 0.09);
}

.btn-ghost {
  color: var(--primary);
  background: rgba(19, 49, 89, 0.06);
}

.btn-large {
  min-height: 50px;
  padding: 14px 21px;
}

.btn-light {
  color: var(--primary);
  background: #fff;
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.76) 42%, rgba(255, 255, 255, 0.2) 100%),
    url("../assets/images/hero-pattern.png") center / cover no-repeat;
}

[dir="rtl"] .hero-bg {
  transform: scaleX(-1);
}

.hero::after,
.sub-hero::after,
.section-muted::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 154, 74, 0.6), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 54px;
  align-items: center;
  padding-block: 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

[dir="rtl"] .eyebrow {
  text-transform: none;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--primary-3);
}

.sub-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

h2 {
  color: var(--primary-3);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  color: var(--primary);
  font-size: 1.18rem;
  line-height: 1.28;
}

.hero-lede,
.sub-hero p,
.section-header p {
  max-width: 720px;
  color: #42556f;
  font-size: 1.12rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.hero-stats div,
.hero-market-panel,
.market-card,
.post-card,
.mini-account,
.content-panel,
.license-card,
.value-card,
.account-card,
.contact-card,
.contact-hub,
.legal-block,
.note-box,
.tv-widget,
.process-step,
.article-aside {
  border: 1px solid rgba(219, 229, 239, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 42px rgba(19, 49, 89, 0.08);
}

.hero-stats div {
  padding: 18px;
}

.hero-stats strong {
  display: block;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 700;
}

.hero-market-panel {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.hero-panel-head,
.hero-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-panel-head {
  margin-bottom: 18px;
}

.hero-panel-head span {
  color: var(--primary);
  font-weight: 900;
}

.hero-panel-head strong {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--success);
  background: var(--teal-soft);
  font-size: 0.78rem;
}

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

.hero-market-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(219, 229, 239, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
}

.hero-market-link .icon-badge {
  width: 44px;
  height: 44px;
  margin: 0;
}

.hero-market-link strong,
.hero-market-link em {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-market-link strong {
  color: var(--primary);
}

.hero-market-link em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.hero-market-link i {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 10px;
  width: min(var(--bar), 74%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0.72;
}

.hero-panel-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}

.ticker-band {
  padding-block: 16px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.ticker-band .container {
  width: min(1320px, calc(100% - 32px));
}

.tv-widget {
  overflow: hidden;
  min-height: var(--widget-height);
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.tv-widget .tradingview-widget-container,
.tv-widget .tradingview-widget-container__widget {
  width: 100%;
  height: var(--widget-height);
}

.tv-widget-ticker {
  min-height: 74px;
  padding: 0;
  box-shadow: none;
}

.tv-widget-ticker .tradingview-widget-container,
.tv-widget-ticker .tradingview-widget-container__widget {
  height: 74px;
}

.widget-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

.widget-fallback {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.post-meta,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trust-band {
  background: var(--primary);
  color: #fff;
}

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

.trust-items span {
  min-height: 84px;
  display: grid;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.section {
  position: relative;
  padding-block: 92px;
}

.section-muted {
  background:
    radial-gradient(circle at 85% 12%, rgba(32, 166, 161, 0.1), transparent 28%),
    linear-gradient(180deg, var(--soft), #fff);
}

[dir="rtl"] .section-muted {
  background:
    radial-gradient(circle at 15% 12%, rgba(32, 166, 161, 0.1), transparent 28%),
    linear-gradient(180deg, var(--soft), #fff);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.market-grid,
.blog-grid,
.value-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.market-card,
.post-card,
.value-card,
.contact-card,
.legal-block {
  padding: 26px;
}

.market-card {
  overflow: hidden;
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.market-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -58px;
  bottom: -62px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 74, 0.18), transparent 70%);
}

.icon-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(19, 49, 89, 0.1), rgba(32, 166, 161, 0.12));
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  margin-bottom: 22px;
}

.tag-row span,
.account-tag {
  padding: 6px 9px;
  border: 1px solid rgba(19, 49, 89, 0.1);
  border-radius: 999px;
  color: var(--primary);
  background: #f8fbfd;
  font-size: 0.82rem;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.account-stack {
  display: grid;
  gap: 14px;
}

.mini-account {
  padding: 22px;
}

.mini-account span {
  color: var(--gold);
  font-weight: 900;
}

.post-card {
  min-height: 294px;
  display: flex;
  flex-direction: column;
}

.post-card p {
  color: var(--muted);
}

.post-meta {
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.text-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 900;
}

.text-link::after {
  content: " ->";
}

[dir="rtl"] .text-link::after {
  content: " ←";
}

.final-cta {
  padding-block: 70px;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 38px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(19, 49, 89, 0.98), rgba(12, 35, 63, 0.94)),
    url("../assets/images/hero-pattern.png") center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding-block: 100px 74px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    url("../assets/images/hero-pattern.png") center / cover no-repeat;
}

[dir="rtl"] .sub-hero {
  background:
    linear-gradient(-90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    url("../assets/images/hero-pattern.png") center / cover no-repeat;
}

.sub-hero-inner {
  max-width: 860px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}

.content-panel {
  padding: 34px;
}

.content-panel p {
  color: #40546e;
  font-size: 1rem;
}

.content-panel p:last-child,
.legal-block p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.license-card {
  position: sticky;
  top: 108px;
  padding: 28px;
  background: var(--primary);
  color: #fff;
}

.license-card h2,
.license-card dt,
.license-card dd {
  color: #fff;
}

.license-card dl {
  margin: 0;
}

.license-card div {
  padding-block: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.license-card div:last-child {
  border-bottom: 0;
}

.license-card dt {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.license-card dd {
  margin: 4px 0 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.value-card {
  background: linear-gradient(180deg, #fff, #f8fbfd);
}

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

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

.feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
}

.feature-list span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(32, 166, 161, 0.12);
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
}

.process-step > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--teal-soft);
  font-weight: 900;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.account-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-card.featured {
  border-color: rgba(196, 154, 74, 0.65);
  box-shadow: 0 26px 70px rgba(19, 49, 89, 0.15);
  transform: translateY(-12px);
}

.account-card p {
  color: var(--muted);
}

.account-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 8px;
  list-style: none;
}

.account-card li {
  position: relative;
  padding-inline-start: 26px;
  color: #334761;
  font-weight: 700;
}

.account-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.56em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.account-card .btn {
  margin-top: auto;
}

.note-box {
  margin-top: 22px;
  padding: 18px 20px;
  color: #42556f;
  background: var(--paper-warm);
}

.note-box h2,
.note-box p:last-child {
  margin-bottom: 0;
}

.market-detail-panel {
  max-width: 980px;
}

.market-detail-actions {
  margin-top: 26px;
}

.contact-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-card address,
.site-footer address {
  font-style: normal;
}

.contact-hub {
  padding: 34px;
}

.contact-hub p {
  color: var(--muted);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

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

.clean-list li {
  position: relative;
  padding-inline-start: 24px;
  color: #334761;
  font-weight: 700;
}

.clean-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding-block: 92px 66px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74)),
    url("../assets/images/hero-pattern.png") center / cover no-repeat;
}

[dir="rtl"] .article-hero {
  background:
    linear-gradient(-90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74)),
    url("../assets/images/hero-pattern.png") center / cover no-repeat;
}

.article-hero-inner {
  max-width: 900px;
}

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

.article-layout-single {
  grid-template-columns: minmax(0, 840px);
}

.article-body {
  max-width: 840px;
}

.article-layout-single .article-body {
  max-width: none;
}

.article-body section {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.article-body section:first-child {
  padding-top: 0;
}

.article-body p {
  color: #40546e;
}

.article-aside {
  position: sticky;
  top: 108px;
  padding: 26px;
  background: var(--paper-warm);
}

.legal-stack {
  display: grid;
  gap: 16px;
  max-width: 900px;
}

.legal-updated {
  background: var(--paper-warm);
}

.legal-block p {
  color: #40546e;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--primary-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 34px;
  padding-block: 58px 34px;
}

.footer-brand img {
  width: 210px;
  margin-bottom: 18px;
}

.site-footer h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.site-footer a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-links a:hover,
.site-footer a:hover {
  color: #fff;
}

.site-footer .btn-light,
.site-footer .btn-light:hover {
  color: var(--primary);
  background: #fff;
}

.site-footer .btn-outline-light,
.site-footer .btn-outline-light:hover {
  color: #fff;
}

.risk-strip {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.risk-strip strong {
  color: #fff;
}

.footer-bottom {
  padding-block: 18px 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.error-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}

.error-page img {
  width: 230px;
  margin-bottom: 20px;
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.68s ease,
    transform 0.68s ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav,
  .header-actions {
    position: fixed;
    left: 20px;
    right: 20px;
    display: none;
    justify-content: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav {
    top: 92px;
    flex-direction: column;
    padding: 12px;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
  }

  .header-actions {
    top: auto;
    bottom: 20px;
    padding: 12px;
    border-radius: var(--radius);
  }

  .nav-item,
  .nav-link {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(245, 248, 251, 0.9);
  }

  [dir="rtl"] .nav-dropdown,
  .nav-has-dropdown:hover .nav-dropdown,
  .nav-has-dropdown:focus-within .nav-dropdown,
  [dir="rtl"] .nav-has-dropdown:hover .nav-dropdown,
  [dir="rtl"] .nav-has-dropdown:focus-within .nav-dropdown {
    transform: none;
  }

  .site-nav.is-open,
  .header-actions.is-open {
    display: flex;
  }

  .hero-grid,
  .split-layout,
  .about-grid,
  .contact-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-market-panel {
    max-width: 620px;
  }

  .license-card,
  .article-aside {
    position: static;
  }

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

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

  .brand img {
    width: 158px;
  }

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

  .site-nav {
    top: 82px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 58px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
      url("../assets/images/hero-pattern.png") center / cover no-repeat;
  }

  .hero-stats,
  .trust-items,
  .market-grid,
  .market-grid.expanded,
  .blog-grid,
  .value-grid,
  .account-grid,
  .compact-grid,
  .widget-grid,
  .contact-actions,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 64px;
  }

  .sub-hero {
    padding-block: 70px 52px;
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .account-card.featured {
    transform: none;
  }

  .footer-bottom,
  .post-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn,
  .language-switch {
    width: auto;
  }

  .hero-actions .btn,
  .hero-panel-actions .btn,
  .cta-actions .btn,
  .footer-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .header-actions {
    align-items: stretch;
  }

  .header-actions .btn,
  .header-actions .language-switch {
    flex: 1 1 100%;
  }

  .market-card,
  .post-card,
  .content-panel,
  .license-card,
  .hero-market-panel,
  .contact-hub,
  .article-aside,
  .account-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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