/* ============================================================
   365Cloud Organization — v11
   Fresh redesign. Identity kept: deep navy/indigo, Nunito,
   full-screen video hero, dark-first with a light theme.
   Self-contained theme + RTL-safe (logical properties).
   ============================================================ */

:root {
  --bg: #0a0d17;
  --bg-2: #10141f;
  --panel: #151a28;
  --navy: #171d2e;
  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --cyan: #22d3ee;
  --accent: var(--indigo-2);
  --accent-2: var(--cyan);
  --ice: #f1f3fb;
  --text: #e9ecf6;
  --muted: rgba(233, 236, 246, 0.7);
  --line: rgba(233, 236, 246, 0.13);
  --glass: rgba(13, 16, 27, 0.72);
  --hero-overlay-1: rgba(8, 10, 18, 0.82);
  --hero-overlay-2: rgba(10, 13, 23, 0.55);
  --btn-shadow: rgba(4, 6, 14, 0.45);
  --box-shadow: rgba(3, 5, 12, 0.55);
  --scroll-bg: rgba(13, 16, 27, 0.85);
  --card-grad: linear-gradient(160deg, rgba(129, 140, 248, 0.1), rgba(34, 211, 238, 0.04));
  --font-display: "Nunito-Black", "Segoe UI", "Tahoma", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Tahoma", Arial, sans-serif;
  --radius: 3px;
  --radius-lg: 10px;
  --container: 76rem;
  --pad: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] {
  --bg: #f4f6fc;
  --bg-2: #e9ecf6;
  --panel: #ffffff;
  --navy: #e2e6f4;
  --indigo: #4f46e5;
  --indigo-2: #6366f1;
  --cyan: #0891b2;
  --accent: #4f46e5;
  --accent-2: #0891b2;
  --ice: #151a2b;
  --text: #171c2e;
  --muted: rgba(23, 28, 46, 0.74);
  --line: rgba(23, 28, 46, 0.12);
  --glass: rgba(244, 246, 252, 0.78);
  --hero-overlay-1: rgba(244, 246, 252, 0.84);
  --hero-overlay-2: rgba(244, 246, 252, 0.68);
  --btn-shadow: rgba(23, 28, 46, 0.12);
  --box-shadow: rgba(23, 28, 46, 0.16);
  --scroll-bg: rgba(244, 246, 252, 0.9);
  --card-grad: linear-gradient(160deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.06));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

html[lang="de"] body {
  -webkit-hyphens: auto;
  hyphens: auto;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--indigo-2);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

a {
  color: var(--accent);
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  line-height: 1;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--indigo-2);
  border-radius: 999px;
  color: var(--ice);
  background: linear-gradient(120deg, var(--indigo), var(--cyan));
  background-size: 150% 150%;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px var(--btn-shadow);
  transition: background-position 0.35s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px var(--btn-shadow);
}

[data-theme="light"] .btn {
  color: #fff;
}

[data-theme="light"] .btn--ghost {
  color: var(--ice);
  border-color: var(--ice);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ice);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--ice);
  border-color: var(--ice);
  color: var(--bg);
  box-shadow: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease), padding 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ice);
}

.brand img {
  height: 2.35rem;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* ---------- Language dropdown ---------- */

.lang-dropdown {
  position: relative;
}

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-dropdown__toggle:hover {
  background: var(--ice);
  color: var(--bg);
}

.lang-dropdown__toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.lang-dropdown.is-open .lang-dropdown__toggle svg {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  inset-inline-end: 0;
  min-width: 10.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.45rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 20px 50px -20px var(--box-shadow);
  z-index: 100;
}

.lang-dropdown.is-open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-dropdown__item:hover {
  background: var(--bg-2);
}

.lang-dropdown__item[aria-current="true"] {
  color: var(--accent);
  font-weight: 600;
}

.lang-dropdown__item-code {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 1.9rem;
}

/* ---------- Theme toggle ---------- */

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ice);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.icon-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

/* Burger */

.menu-toggle {
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ice);
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle .ham {
  width: 38px;
  height: 38px;
  transition: transform 0.4s var(--ease);
}

.menu-toggle .line {
  fill: none;
  stroke: currentColor;
  stroke-width: 5.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s var(--ease), stroke-dashoffset 0.4s var(--ease);
}

.menu-toggle .ham7 .top {
  stroke-dasharray: 40 82;
}

.menu-toggle .ham7 .middle {
  stroke-dasharray: 40 111;
}

.menu-toggle .ham7 .bottom {
  stroke-dasharray: 40 161;
}

.menu-toggle.is-active .ham {
  transform: rotate(45deg);
}

.menu-toggle.is-active .top {
  stroke-dasharray: 17 82;
  stroke-dashoffset: -62px;
}

.menu-toggle.is-active .middle {
  stroke-dashoffset: 23px;
}

.menu-toggle.is-active .bottom {
  stroke-dashoffset: -83px;
}

/* ---------- Overlay menu ---------- */

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: 1fr auto;
  visibility: hidden;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.overlay-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.overlay-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.5rem clamp(1.5rem, 5vw, 4rem) 2rem;
  overflow-y: auto;
}

.overlay-menu__links {
  list-style: none;
  text-align: center;
}

.overlay-menu__item {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.overlay-menu.is-open .overlay-menu__item {
  opacity: 1;
  transform: translateY(0);
}

.overlay-menu.is-open .overlay-menu__item:nth-child(1) {
  transition-delay: 0.08s;
}
.overlay-menu.is-open .overlay-menu__item:nth-child(2) {
  transition-delay: 0.14s;
}
.overlay-menu.is-open .overlay-menu__item:nth-child(3) {
  transition-delay: 0.2s;
}
.overlay-menu.is-open .overlay-menu__item:nth-child(4) {
  transition-delay: 0.26s;
}
.overlay-menu.is-open .overlay-menu__item:nth-child(5) {
  transition-delay: 0.32s;
}
.overlay-menu.is-open .overlay-menu__item:nth-child(6) {
  transition-delay: 0.38s;
}
.overlay-menu.is-open .overlay-menu__item:nth-child(7) {
  transition-delay: 0.44s;
}
.overlay-menu.is-open .overlay-menu__item:nth-child(8) {
  transition-delay: 0.5s;
}

.overlay-menu__link {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--ice);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.15rem;
  transition: color 0.25s var(--ease);
}

.overlay-menu__link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-2), var(--cyan));
  transition: width 0.35s var(--ease);
}

.overlay-menu__link:hover,
.overlay-menu__link.is-active {
  color: var(--accent);
}

.overlay-menu__link:hover::after,
.overlay-menu__link.is-active::after {
  width: 100%;
}

.overlay-menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1.5rem 2.2rem;
}

.overlay-menu__lang {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.overlay-menu__lang:hover {
  color: var(--ice);
  border-color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--hero-overlay-1) 0%,
    var(--hero-overlay-2) 48%,
    var(--bg) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 66rem;
  margin-inline: auto;
  padding: 30vh 1.25rem 6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: var(--ice);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 2rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: dot-pulse 2.4s var(--ease) infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1.02;
  color: var(--ice);
  text-wrap: balance;
  background: linear-gradient(100deg, var(--ice) 30%, var(--indigo-2) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero__lead {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  color: var(--muted);
  margin-top: 1.4rem;
  max-width: 46rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero__divider {
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-2), var(--cyan));
  margin: 1.9rem auto 0;
}

[data-theme="light"] .hero__title {
  background: linear-gradient(100deg, #1e1b4b 30%, var(--indigo-2) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__scroll {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 1.6rem;
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--accent), transparent);
  display: block;
  translate: -50% 0;
  animation: scroll-pulse 2.4s var(--ease) infinite;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  inset: -0.75rem -1.4rem;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    opacity: 0.45;
    transform: scaleY(0.55);
    transform-origin: top;
  }
}

/* ---------- Hero stats band ---------- */

.hero-stats {
  position: relative;
  z-index: 3;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  margin: -4.5rem auto 0;
  max-width: min(100% - 3rem, 68rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.hero-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.2rem;
  text-align: center;
}

.hero-stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: var(--ice);
  background: linear-gradient(90deg, var(--indigo-2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--pad);
}

.section--alt {
  background: var(--bg-2);
}

.section--tint {
  background: var(--navy);
}

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

.section--center .section__text {
  margin-inline: auto;
  text-align: start;
}

.section--center .section__actions {
  justify-content: center;
}

.section--center .divider {
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 5rem;
}

.section__header {
  max-width: 48rem;
  margin-bottom: 2.6rem;
}

.section__eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section__eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-2), var(--cyan));
}

.section--center .section__eyebrow::before {
  content: none;
}

.section__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.16;
  color: var(--ice);
  text-wrap: balance;
}

.section__subtitle {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.section__text {
  color: var(--muted);
  max-width: 58rem;
}

.section__text p {
  margin-bottom: 1.35rem;
}

.section__text p:last-child {
  margin-bottom: 0;
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.divider {
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-2), var(--cyan));
  margin-top: 1.6rem;
}

/* Two-column prose (solution) */

.text-cols {
  column-count: 2;
  column-gap: 2.5rem;
}

.text-cols p {
  break-inside: avoid;
}

@media (max-width: 48rem) {
  .text-cols {
    column-count: 1;
  }
}

/* Split layout (platform) */

.section--split .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 52rem) {
  .section--split .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards ---------- */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.card {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--indigo-2) 45%, transparent);
  box-shadow: 0 22px 45px -25px var(--box-shadow);
}

.card__icon {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--card-grad);
  border: 1px solid var(--line);
}

.card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ice);
  margin-bottom: 0.25rem;
}

.card__text {
  font-size: 0.92rem;
  color: var(--muted);
}

.card--stack {
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.5rem;
}

.card--stack .card__title {
  font-size: 1.15rem;
}

.card--stack .card__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
}

.card--stack .card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.card--stack .card__badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  align-self: flex-start;
}

/* ---------- Media ---------- */

.media {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px var(--box-shadow);
}

.media img {
  width: 100%;
  height: auto;
}

/* ---------- Market figures ---------- */

.market-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.market-figure {
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  text-align: center;
}

.market-figure__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  color: var(--ice);
  background: linear-gradient(90deg, var(--indigo-2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.market-figure__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  text-align: center;
  padding-block: calc(var(--pad) * 0.75);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 50% 120%, color-mix(in srgb, var(--indigo) 28%, transparent), transparent 70%),
    var(--bg);
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.1;
  color: var(--ice);
  text-wrap: balance;
}

.cta__sub {
  color: var(--muted);
  max-width: 42rem;
  margin: 1.1rem auto 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.2rem 2.6rem;
  background: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 2.4rem;
}

@media (max-width: 44rem) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ice);
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.footer__brand img {
  height: 2.1rem;
  width: auto;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ice);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.25s var(--ease);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--accent);
}

/* ---------- Floating buttons ---------- */

.to-top {
  position: fixed;
  inset-inline-end: 1.4rem;
  bottom: 1.4rem;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--scroll-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.theme-toggle-float {
  position: fixed;
  inset-inline-start: 1.4rem;
  bottom: 1.4rem;
  z-index: 50;
}

/* ---------- Reveal on scroll ---------- */

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- RTL (Arabic): Tajawal font + no uppercase / letter-spacing ---------- */

html[lang="ar"] {
  --font-display: "Tajawal", "Nunito-Black", "Segoe UI", "Tahoma", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, "Tahoma", Arial, sans-serif;
}

[dir="rtl"] .hero__badge,
[dir="rtl"] .hero__title,
[dir="rtl"] .hero__scroll,
[dir="rtl"] .section__eyebrow,
[dir="rtl"] .section__title,
[dir="rtl"] .overlay-menu__link,
[dir="rtl"] .btn,
[dir="rtl"] .lang-dropdown__toggle,
[dir="rtl"] .card__badge,
[dir="rtl"] .market-figure__label,
[dir="rtl"] .footer__col-title,
[dir="rtl"] .hero-stat__label {
  text-transform: none;
  letter-spacing: 0;
}

[dir="rtl"] .overlay-menu__link,
[dir="rtl"] .btn,
[dir="rtl"] .lang-dropdown__toggle,
[dir="rtl"] .card__badge {
  font-weight: 700;
}

[dir="rtl"] .section__eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(270deg, var(--indigo-2), var(--cyan));
}

/* ---------- No-JS fallback ---------- */

.no-js .overlay-menu,
.no-js .menu-toggle,
.no-js .hero__scroll {
  display: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}