:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050816;
  --bg-elevated: #0a1228;
  --navy: #081229;
  --cyan: #00d2ff;
  --sky: #4da6ff;
  --blue: #3a7bd5;
  --purple: #b026ff;
  --magenta: #e100ff;
  --text: #f4f7ff;
  --muted: #9aa8c7;
  --card: rgba(12, 20, 44, 0.72);
  --border: rgba(0, 210, 255, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1160px;
  --nav-h: 76px;
  --nav-bg: rgba(5, 8, 22, 0.72);
  --menu-bg: rgba(8, 14, 32, 0.96);
  --strip-bg: rgba(10, 18, 40, 0.55);
  --input-bg: rgba(5, 8, 22, 0.65);
  --pill-text: #d7e6ff;
  --formula: #c9d7f5;
  --copyright: #7f8dad;
  --hero-media-opacity: 0.14;
  --section-alt: linear-gradient(180deg, rgba(10, 18, 40, 0.35), transparent);
  --grid-dot: rgba(255, 255, 255, 0.05);
  --glow-a: #123b7a;
  --glow-b: #5b1d8a;
  --glow-opacity: 0.28;
  --tool-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6ff;
  --bg-elevated: #ffffff;
  --navy: #e8eefc;
  --text: #0b1428;
  --muted: #4a5b7c;
  --card: rgba(255, 255, 255, 0.86);
  --border: rgba(58, 123, 213, 0.2);
  --shadow: 0 18px 50px rgba(24, 48, 96, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --strip-bg: rgba(255, 255, 255, 0.72);
  --input-bg: rgba(255, 255, 255, 0.94);
  --pill-text: #1e3a5f;
  --formula: #334566;
  --copyright: #6b7a96;
  --hero-media-opacity: 0.2;
  --section-alt: linear-gradient(180deg, rgba(226, 235, 255, 0.75), transparent);
  --grid-dot: rgba(20, 40, 90, 0.08);
  --glow-a: #9ec4ff;
  --glow-b: #d8b4ff;
  --glow-opacity: 0.42;
  --tool-bg: rgba(11, 20, 40, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

html[lang="en"] body {
  font-family: "Inter", "Cairo", sans-serif;
}

body.is-loading {
  overflow: hidden;
}

html.splash-seen body.is-loading {
  overflow-x: hidden;
  overflow-y: auto;
}

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

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

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -40px;
  background: var(--cyan);
  color: #041018;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0.75rem;
}

.bg-glow {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--glow-opacity);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-a {
  top: -12vw;
  inset-inline-start: -10vw;
  background: var(--glow-a);
}

.bg-glow-b {
  bottom: 10vh;
  inset-inline-end: -12vw;
  background: var(--glow-b);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  transition: height 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.nav.is-scrolled {
  height: 64px;
  box-shadow: var(--shadow);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.25);
}

.brand-text,
.splash-card strong {
  white-space: nowrap;
}

.brand-text span:last-child,
.splash-card strong span:last-child {
  background: linear-gradient(90deg, var(--cyan), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-inline-start: auto;
  font-weight: 600;
  color: var(--muted);
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--tool-bg);
}

.lang-switch a {
  padding: 0.32rem 0.68rem;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lang-switch a.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--sky));
  color: #041018;
}

.theme-toggle,
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--tool-bg);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  display: grid;
  place-items: center;
  padding: 0;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

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

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

.nav-toggle {
  display: none;
  padding: 10px 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary,
.btn-nav {
  color: #041018;
  background: linear-gradient(90deg, var(--cyan), var(--sky) 45%, #9b6dff);
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.22);
}

.btn-nav {
  padding: 0.55rem 1rem;
  color: #041018;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: var(--hero-media-opacity);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), #7aa7ff 40%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 14ch;
}

.lead {
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1.2rem;
}

.hero-formula {
  color: var(--formula);
  font-family: Inter, Cairo, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-visual {
  display: grid;
  place-items: center;
  will-change: transform;
}

.logo-orb {
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 36px;
  padding: 0.4rem;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.45), rgba(176, 38, 255, 0.35));
  box-shadow: 0 0 80px rgba(0, 210, 255, 0.18);
  animation: float 6s ease-in-out infinite;
}

.logo-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.strip {
  border-block: 1px solid var(--border);
  background: var(--strip-bg);
  padding: 1.4rem 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.strip article {
  padding: 0.3rem 0.6rem;
}

.strip strong {
  display: block;
  color: var(--text);
}

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

.section {
  padding: 5rem 0;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.section-head h2,
.split-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.cards-4,
.cards-grid {
  display: grid;
  gap: 1rem;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 255, 0.45);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.16), rgba(176, 38, 255, 0.1));
}

.icon-wrap svg {
  width: 26px;
  height: 26px;
}

.card-link {
  margin-top: auto;
  color: var(--cyan);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}

.split.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split.reverse .split-copy {
  order: 2;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.feature-list li {
  position: relative;
  padding-inline-start: 1.4rem;
  margin-bottom: 0.55rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0 1rem;
}

.pills span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: var(--pill-text);
  background: rgba(0, 210, 255, 0.06);
  font-weight: 600;
  font-size: 0.92rem;
}

.muted {
  margin-bottom: 0;
}

.store-row {
  display: grid;
  gap: 0.8rem;
}

.store-badge {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--tool-bg);
}

.store-badge strong {
  display: block;
}

.ai-intro {
  margin-bottom: 1.2rem;
}

.ai-intro p {
  margin: 0;
  font-size: 1.02rem;
}

.mini h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.mini p {
  margin: 0;
  font-size: 0.95rem;
}

.solutions .span-2 {
  grid-column: span 2;
}

.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
}

.step {
  display: inline-block;
  font-family: Inter, sans-serif;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 210, 255, 0.45);
  outline-offset: 1px;
}

.form-note {
  min-height: 1.4em;
  margin: 0;
  color: var(--cyan);
  font-weight: 700;
}

.form-note a {
  color: var(--cyan);
  text-decoration: underline;
}

.contact-channels {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--tool-bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.channel:hover {
  border-color: rgba(0, 210, 255, 0.45);
  transform: translateY(-2px);
}

.channel span span,
.footer-contacts a {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.channel strong {
  display: block;
  color: var(--text);
}

.channel-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.16), rgba(176, 38, 255, 0.1));
}

.channel-icon svg {
  width: 22px;
  height: 22px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0.4rem 0 0.6rem;
}

.footer-contacts a:hover {
  color: var(--cyan);
}

.copyright {
  color: var(--copyright);
  font-size: 0.9rem;
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.15rem;
  inset-inline-start: 1.15rem;
  z-index: 30;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

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

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.is-done,
html.splash-seen .splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-card {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  animation: splash-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-card img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.35);
}

.splash-card strong {
  font-size: 1.7rem;
  font-weight: 800;
}

.splash-bar {
  display: block;
  width: 148px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.16);
  overflow: hidden;
}

.splash-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  animation: splash-bar 1.15s ease-in-out infinite;
}

@keyframes splash-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes splash-bar {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(280%);
  }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s ease;
  transition-delay: var(--d, 0ms);
}

.reveal[data-animate="fade-right"] {
  transform: translate3d(-52px, 18px, 0);
}

.reveal[data-animate="fade-left"] {
  transform: translate3d(52px, 18px, 0);
}

html[dir="rtl"] .reveal[data-animate="fade-right"] {
  transform: translate3d(52px, 18px, 0);
}

html[dir="rtl"] .reveal[data-animate="fade-left"] {
  transform: translate3d(-52px, 18px, 0);
}

.reveal[data-animate="zoom-in"] {
  transform: scale(0.86);
  filter: blur(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse,
  .contact-grid,
  .cards-4,
  .process {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .strip-grid,
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .solutions .span-2 {
    grid-column: span 2;
  }

  .hero-visual {
    order: -1;
  }

  .logo-orb {
    width: min(100%, 240px);
  }

  .nav-tools {
    margin-inline-start: auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-scrolled .nav-menu {
    top: 64px;
  }

  .nav-menu.open {
    display: flex;
  }

  .btn-nav {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .strip-grid,
  .cards-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .solutions .span-2 {
    grid-column: auto;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .lang-switch a {
    padding-inline: 0.52rem;
  }
}

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

  .logo-orb,
  .splash-card,
  .splash-bar::after,
  .btn,
  .service-card {
    animation: none;
    transition: none;
  }

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