:root {
  --bg: #f4f1ea;
  --paper: rgba(255, 255, 255, 0.78);
  --card: rgba(255, 255, 255, 0.9);
  --ink: #0c1222;
  --ink-soft: #4d576d;
  --line: rgba(12, 18, 34, 0.1);
  --blue: #2f6dff;
  --blue-2: #79a2ff;
  --orange: #ff7a29;
  --orange-2: #ffb16a;
  --green: #11b88f;
  --shadow-lg: 0 28px 60px rgba(12, 18, 34, 0.14);
  --shadow-md: 0 14px 28px rgba(12, 18, 34, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --maxw: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 109, 255, 0.12), transparent 40%),
    radial-gradient(circle at 92% 18%, rgba(255, 122, 41, 0.14), transparent 44%),
    radial-gradient(circle at 66% 72%, rgba(17, 184, 143, 0.08), transparent 46%),
    var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Noto Sans SC", "Noto Sans Arabic", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body.rtl {
  font-family: "Noto Sans Arabic", "Manrope", "Noto Sans SC", sans-serif;
}

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

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

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -40px;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

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

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(14px);
}

.ambient-a {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(47, 109, 255, 0.28), rgba(47, 109, 255, 0));
  top: 50px;
  left: -120px;
}

.ambient-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 122, 41, 0.24), rgba(255, 122, 41, 0));
  right: -160px;
  top: 180px;
}

.ambient-c {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(17, 184, 143, 0.12), rgba(17, 184, 143, 0));
  left: 42%;
  bottom: 80px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 14px 14px 0;
}

.header-shell {
  max-width: calc(var(--maxw) + 28px);
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.header-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.header-nav a:hover {
  background: rgba(47, 109, 255, 0.08);
  color: var(--blue);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
  padding: 8px 9px;
  min-width: 38px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
}

.lang-switch button:hover {
  border-color: rgba(47, 109, 255, 0.25);
  color: var(--blue);
}

.lang-switch button.is-active {
  background: linear-gradient(135deg, rgba(47, 109, 255, 0.12), rgba(255, 122, 41, 0.12));
  border-color: rgba(47, 109, 255, 0.25);
  color: var(--ink);
}

.header-cta {
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  box-shadow: 0 10px 20px rgba(47, 109, 255, 0.2);
}

.header-cta:hover {
  filter: saturate(1.08);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(47, 109, 255, 0.45);
  outline-offset: 3px;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 14px 72px;
}

.section {
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.hero-copy {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.hero-copy h1 {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body:not(.rtl) .hero-copy h1 {
  max-width: 11ch;
}

.hero-summary {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange) 0%, var(--blue) 100%);
  box-shadow: 0 12px 24px rgba(47, 109, 255, 0.16);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-color: var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags li {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12, 18, 34, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.visual-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.visual-lg {
  grid-row: span 2;
  min-height: 520px;
}

.visual-lg img {
  aspect-ratio: 16 / 10;
}

.visual-sm {
  min-height: 252px;
}

.tilt-a {
  transform: rotate(-1.1deg);
}

.tilt-b {
  transform: rotate(1.1deg);
}

.accent-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 41, 0.36), rgba(255, 122, 41, 0));
  pointer-events: none;
}

figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.86rem;
  box-shadow: 0 8px 20px rgba(12, 18, 34, 0.08);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.image-wall .section-head h2,
.flow-section .section-head h2,
.seo-section .section-head h2 {
  max-width: 18ch;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.mosaic-card {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-card figcaption {
  display: grid;
  gap: 4px;
}

.mosaic-card figcaption strong {
  font-size: 0.95rem;
}

.mosaic-card figcaption span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.span-12 {
  grid-column: span 12;
  min-height: 360px;
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

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

.flow-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 14px;
  min-height: 168px;
  position: relative;
  overflow: hidden;
}

.flow-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue);
  background: rgba(47, 109, 255, 0.1);
  margin-bottom: 10px;
}

.flow-label {
  font-weight: 800;
  color: var(--ink);
}

.flow-text {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.locale-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: stretch;
}

.locale-copy,
.locale-image {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
}

.locale-copy {
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.locale-copy h2 {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.18;
}

.bullet-list {
  display: grid;
  gap: 8px;
}

.bullet-list li {
  position: relative;
  padding-inline-start: 16px;
  color: var(--ink-soft);
  font-weight: 600;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}

body.rtl .bullet-list li::before {
  left: auto;
  right: 0;
}

.locale-image {
  overflow: hidden;
  position: relative;
}

.locale-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.locale-image figcaption {
  right: 14px;
  left: 14px;
}

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

.seo-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  box-shadow: var(--shadow-md);
  padding: 16px;
  min-height: 138px;
}

.seo-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.seo-card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.final-cta .cta-shell {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 14% 12%, rgba(47, 109, 255, 0.13), transparent 48%),
    radial-gradient(circle at 88% 20%, rgba(255, 122, 41, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: center;
}

.cta-visual {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 18, 34, 0.06);
}

.cta-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cta-copy {
  display: grid;
  gap: 12px;
}

.cta-copy h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.18;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
}

.cta-copy p:last-of-type {
  color: var(--ink-soft);
  max-width: 58ch;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  padding: 10px 14px 32px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.noscript-box {
  max-width: var(--maxw);
  margin: 10px auto 26px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms ease, transform 320ms ease;
}

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

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

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

  .btn,
  .lang-switch button,
  .header-nav a {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  .tilt-a,
  .tilt-b {
    transform: none;
  }
}

@media (max-width: 1160px) {
  .header-shell {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .header-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-tools {
    justify-content: space-between;
    flex-wrap: wrap;
  }

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

  .image-wall .section-head h2,
  .flow-section .section-head h2,
  .seo-section .section-head h2 {
    max-width: none;
  }

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

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

  .locale-wrap {
    grid-template-columns: 1fr;
  }

  .final-cta .cta-shell {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .visual-lg {
    grid-row: auto;
    min-height: 320px;
  }

  .visual-sm {
    min-height: 220px;
  }

  .mosaic-card,
  .span-12,
  .span-7,
  .span-5 {
    grid-column: span 12;
    min-height: 260px;
  }

  .final-cta .cta-shell {
    grid-template-columns: 1fr;
  }

  .cta-visual img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 8px;
    padding: 8px 8px 0;
  }

  main {
    padding: 14px 8px 54px;
  }

  .header-shell {
    border-radius: 14px;
    padding: 10px;
  }

  .brand-sub {
    display: none;
  }

  .lang-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .header-tools {
    align-items: stretch;
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .hero-copy {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(1.6rem, 9vw, 2.15rem);
  }

  .hero-summary {
    font-size: 0.95rem;
  }

  .visual-card,
  .locale-copy,
  .locale-image {
    border-radius: 16px;
  }

  .flow-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .seo-card {
    min-height: auto;
  }

  .tilt-a,
  .tilt-b {
    transform: none;
  }
}

body.rtl {
  direction: rtl;
}

body.rtl .header-nav {
  justify-content: flex-start;
}

body.rtl .hero-actions,
body.rtl .hero-tags,
body.rtl .cta-buttons {
  justify-content: flex-start;
}

body.rtl .eyebrow::before {
  order: 2;
}

body.rtl .bullet-list li {
  padding-inline-start: 0;
  padding-inline-end: 16px;
}
