/*
 * File: css/style.css
 * Role: Visual design for Ariana Digital Solutions.
 * Bootstrap supplies the grid, navbar collapse, and form controls.
 * This file sets the studio look and the right-to-left adjustments.
 */

:root {
  --ink: #241414;
  --muted: #5e4646;
  --paper: #fbf7f6;
  --card: #ffffff;
  --brand: #e20202;
  --brand-deep: #b00000;
  --navy: #2a0606;
  --teal: var(--brand);
  --teal-deep: var(--brand-deep);
  --amber: var(--brand);
  --line: rgba(36, 20, 20, 0.12);
  --shadow: 0 16px 40px rgba(180, 0, 0, 0.08);
  --display: "Manrope", "Noto Kufi Arabic", sans-serif;
  --sans: "DM Sans", "Noto Kufi Arabic", sans-serif;
  --radius: 18px;
  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--ink);
  --bs-primary: var(--teal);
}

html[lang="fa"],
html[lang="ps"] {
  --display: "Noto Kufi Arabic", "Manrope", sans-serif;
  --sans: "Noto Kufi Arabic", "DM Sans", sans-serif;
}

html[lang="fa"] body,
html[lang="ps"] body {
  line-height: 1.9;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 40% at 0% -10%, rgba(226, 2, 2, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 100% 0%, rgba(226, 2, 2, 0.06), transparent);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3, .brand-name, .section-title {
  font-family: var(--display);
  letter-spacing: -0.02em;
  font-weight: 600;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .brand-name,
html[dir="rtl"] .section-title {
  letter-spacing: 0;
  font-weight: 700;
}

h1, .section-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  text-wrap: balance;
}

html[dir="rtl"] h1,
html[dir="rtl"] .section-title {
  line-height: 1.55;
}

html[dir="rtl"] h2.section-title,
html[dir="rtl"] h3 {
  line-height: 1.6;
}

h2.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p { overflow-wrap: anywhere; }

a { color: var(--teal-deep); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav .navbar-nav { list-style: none; }

:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--navy);
  color: #f6f1e7;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
}

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

/* Header ------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 36, 60, 0.04);
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  border-radius: 8px;
}

.footer-logo-link { display: inline-block; text-decoration: none; }
.footer-logo {
  display: block;
  height: 72px;
  width: auto;
  border-radius: 10px;
}
.site-footer .footer-logo-link:hover { text-decoration: none; }

.brand-panel {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin-inline: auto;
  border-radius: 18px;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: auto;
}

.site-nav .navbar-nav {
  align-items: center;
  gap: 0.1rem;
}

.site-nav .navbar-toggler {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.site-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(226, 2, 2, 0.15);
}

.site-nav .navbar-toggler-icon {
  width: 1.15rem;
  height: 1.15rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23241414' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-nav .nav-link {
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.site-nav .nav-link.active,
.site-nav .nav-link:hover {
  background: rgba(226, 2, 2, 0.12);
  color: var(--teal-deep);
}

.lang-switch {
  position: relative;
  margin-inline-start: 0.35rem;
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid var(--line);
}

.lang-menu { position: relative; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.3rem 0.8rem 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang-toggle::-webkit-details-marker { display: none; }

.lang-toggle:hover,
.lang-menu[open] .lang-toggle {
  border-color: rgba(226, 2, 2, 0.35);
  background: rgba(226, 2, 2, 0.08);
}

.lang-globe { flex: none; color: var(--teal); }

.lang-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: rgba(18, 36, 60, 0.07);
  color: var(--navy);
  font-family: "DM Sans", "Noto Kufi Arabic", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-current-name,
.lang-option-name { line-height: 1.2; }

.language-menu .lang-link[lang="en"] { font-family: "DM Sans", sans-serif; }
.language-menu .lang-link[lang="fa"],
.language-menu .lang-link[lang="ps"] { font-family: "Noto Kufi Arabic", sans-serif; }

.lang-chevron {
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-start: 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms ease;
}

.lang-menu[open] .lang-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.lang-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(18, 36, 60, 0.14);
}

.lang-menu[open] .lang-panel { animation: lang-in 140ms ease; }

@keyframes lang-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.lang-option::after {
  content: "";
  width: 0.38rem;
  height: 0.68rem;
  margin-inline-start: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(226, 2, 2, 0.1);
  color: var(--teal-deep);
}

.lang-option.active {
  background: var(--navy);
  color: #f6f1e7;
}

.lang-option.active::after { opacity: 1; }

.lang-option.active .lang-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

#site-notice { margin-top: 1rem; }
#site-notice:empty { display: none; margin: 0; }

.site-alert { border: 0; border-radius: 14px; }

/* Hero --------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(160deg, #ff3b2e 0%, #e20202 48%, #9d0000 100%);
  color: #fff;
  padding: 4.25rem 0 6.5rem;
}

.hero h1 { max-width: 14ch; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

html[dir="ltr"] .eyebrow { letter-spacing: 0.08em; text-transform: uppercase; }

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--amber);
}

.eyebrow-light { color: #fff; }

.hero .lead-text,
.hero .typed-line { color: rgba(246, 241, 231, 0.88); }

.lead-text {
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.typed-line {
  min-height: 1.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.typed-prefix { margin-inline-end: 0.35rem; }

.typed-cursor { color: #fff; }

.hero-actions, .section-end { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn-ariana,
.btn-ariana-ghost {
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  min-height: 44px;
}

.btn-ariana {
  background: var(--brand);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px rgba(226, 2, 2, 0.28);
}

.btn-ariana:hover,
.btn-ariana:focus {
  background: var(--brand-deep);
  color: #fff;
}

.hero .btn-ariana,
.cta-band .btn-ariana {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.hero .btn-ariana:hover,
.hero .btn-ariana:focus,
.cta-band .btn-ariana:hover,
.cta-band .btn-ariana:focus {
  background: #fff4f3;
  color: var(--brand-deep);
}

.btn-ariana-ghost {
  background: transparent;
  color: #f6f1e7;
  border: 1px solid rgba(246, 241, 231, 0.45);
}

.btn-ariana-ghost:hover,
.btn-ariana-ghost:focus {
  background: rgba(246, 241, 231, 0.08);
  color: #fff;
}

.preview-card {
  border: 1px solid rgba(246, 241, 231, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 0.6rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.preview-top { display: flex; align-items: center; gap: 0.4rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(246, 241, 231, 0.35); }
.dot:first-child { background: #e0b15c; }
.preview-title { margin-inline-start: 0.4rem; font-weight: 600; }
.preview-kicker { margin: 1rem 0 0.4rem; color: rgba(246, 241, 231, 0.7); }

.preview-metrics { list-style: none; margin: 0; padding: 0; }
.preview-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
}
.preview-metrics strong { font-variant-numeric: tabular-nums; }

/* Sections and cards ------------------------------------------------------- */
.section { padding: 4.25rem 0; }
.section-tight { padding-top: 1rem; }
.page-hero { padding: 3.25rem 0 0.5rem; }
.narrow { max-width: 40rem; }

body[data-page="home"] .process-wrap {
  margin-top: -3.25rem;
  position: relative;
  z-index: 2;
}

.process-list {
  list-style: none;
  margin-top: 1.5rem;
  padding-inline-start: 0;
}

.step-card,
.service-card,
.solution-card,
.value-card {
  position: relative;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step-card::before,
.service-card::before,
.solution-card::before,
.value-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--teal);
}

.step-index,
.solution-index {
  display: block;
  color: var(--amber);
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(226, 2, 2, 0.1);
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.service-card p,
.solution-card p,
.step-card p,
.value-card p,
.service-body { color: var(--muted); margin-bottom: 0; }

.service-card .service-body { margin-top: 0.75rem; }
.service-card h3,
.solution-card h3,
.step-card h3,
.value-card h3 { margin-bottom: 0.45rem; }

.service-card p + p,
.solution-card .result { margin-top: 0.8rem; }

.result span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-inline-end: 0.35rem;
}

html[dir="ltr"] .result span { letter-spacing: 0.06em; text-transform: uppercase; }

.prose p { font-size: 1.08rem; color: var(--muted); max-width: 44rem; }
.section-end { margin-top: 1.75rem; }

.cta-band {
  background: var(--teal);
  color: #f6f1e7;
  border-radius: 28px;
  padding: 2.2rem 1.6rem;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.cta-band p { margin: 0; color: rgba(246, 241, 231, 0.9); }
.cta-action { display: flex; }

@media (min-width: 992px) {
  .cta-action { justify-content: flex-end; }
}

/* Contact ------------------------------------------------------------------ */
.aside-copy { color: var(--muted); }
.mail-link { font-weight: 700; text-decoration: none; }
.mail-link:hover { text-decoration: underline; }
.location-line { color: var(--muted); }
.required-note { color: var(--muted); font-size: 0.95rem; }
.req { color: #8d2e2e; }
.optional { color: var(--muted); font-weight: 500; }

.contact-form {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-control {
  border-radius: 12px;
  border-color: rgba(18, 36, 60, 0.16);
  min-height: 46px;
  background: #fff;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(226, 2, 2, 0.15);
}

.field-error {
  color: #8d2e2e;
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.field-error:empty { display: none; }

#contact-submit { margin-top: 1rem; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #e7e1d6;
  padding: 3.2rem 0 1.4rem;
  margin-top: 2rem;
}

.footer-brand { font-family: var(--display); font-size: 1.35rem; margin-bottom: 0.4rem; }
.site-footer p { overflow-wrap: break-word; }
.footer-blurb + .footer-heading { margin-top: 1.35rem; }
.footer-blurb, .site-footer p { color: rgba(231, 225, 214, 0.82); }
.footer-heading { color: #fff; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a,
.site-footer a { color: #f6f1e7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links li + li { margin-top: 0.35rem; }

.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
  padding: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(246, 241, 231, 0.22);
  border-radius: 999px;
  background: rgba(246, 241, 231, 0.04);
  font-weight: 600;
}

.site-footer .social-links a:hover {
  text-decoration: none;
  background: rgba(246, 241, 231, 0.12);
  border-color: rgba(240, 215, 173, 0.55);
}
.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
  font-size: 0.92rem;
}

/* Motion and loading ------------------------------------------------------- */
#page-root { transition: opacity 180ms ease; }
#page-root.is-loading { opacity: 0.45; }

#load-bar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 35%;
  background: var(--amber);
  z-index: 2000;
  animation: load-slide 0.9s ease infinite;
}

html[dir="rtl"] #load-bar { animation-name: load-slide-rtl; }

@keyframes load-slide {
  from { transform: translateX(-40%); }
  to { transform: translateX(280%); }
}

@keyframes load-slide-rtl {
  from { transform: translateX(40%); }
  to { transform: translateX(-280%); }
}

@media (hover: hover) {
  .service-card,
  .solution-card,
  .value-card,
  .step-card { transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
  .service-card:hover,
  .solution-card:hover,
  .value-card:hover,
  .step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(226, 2, 2, 0.28);
    box-shadow: 0 18px 36px rgba(18, 36, 60, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-root,
  .service-card,
  .solution-card,
  .value-card,
  .step-card,
  .lang-chevron { transition: none; }
  .lang-menu[open] .lang-panel { animation: none; }
  #load-bar { animation: none; width: 100%; }
}

/* Small screens ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.45rem 0.7rem 0.9rem;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-cluster {
    flex-direction: column;
    align-items: stretch;
    margin-inline-start: 0;
    width: 100%;
    padding: 0.35rem 0 0.2rem;
    gap: 0.35rem;
  }

  .site-nav .navbar-nav { align-items: stretch; }
  .site-nav .nav-link { padding: 0.7rem 0.75rem; }

  .lang-switch {
    margin-inline-start: 0;
    padding-inline-start: 0;
    padding-top: 0.65rem;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .lang-toggle { width: 100%; justify-content: flex-start; }
  .lang-chevron { margin-inline-start: auto; }

  .lang-panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.45rem;
    box-shadow: none;
  }

  .hero { padding: 2.8rem 0 4.5rem; }
  .hero h1 { max-width: none; }
  body[data-page="home"] .process-wrap { margin-top: 0; }
  .cta-action .btn { width: 100%; }
}

@media (max-width: 575.98px) {
  .hero-actions .btn,
  #contact-submit { width: 100%; }
  .contact-form { padding: 1rem; }
  .section { padding: 2.8rem 0; }
}

/* Studio layout ------------------------------------------------------------- */
.studio-nav {
  background: #140607;
  border-bottom: 0;
  box-shadow: none;
  padding-block: 0.85rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.studio-nav .brand-logo { height: 48px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline-start: auto;
}

.studio-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.studio-nav .nav-link.active,
.studio-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-cta,
.btn-light,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta,
.btn-light {
  background: #fff;
  color: var(--brand);
}

.nav-cta:hover,
.btn-light:hover,
.btn-light:focus {
  background: #fff4f3;
  color: var(--brand-deep);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline-start: 0.35rem;
  padding-inline-start: 0.65rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
}

.language-menu .lang-link {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
}

.language-menu .lang-link.active,
.language-menu .lang-link:hover {
  background: var(--brand);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

body[data-page="home"] .process-wrap { margin-top: 0; background: #fff; }

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(165deg, #ff3a2c 0%, #e20202 42%, #7d0000 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.home-hero h1 {
  max-width: 12em;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
}

html[dir="rtl"] .home-hero h1 { letter-spacing: 0; }

.home-hero .lead-text,
.home-hero .typed-line { color: rgba(255, 255, 255, 0.9); }

.hero-note {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.hero-stage { position: relative; min-height: 320px; }

.product-screen {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 6, 7, 0.45);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.screen-bar,
.screen-layout,
.screen-stats,
.screen-table { display: flex; }

.screen-bar {
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.screen-bar i,
.screen-layout aside i,
.screen-table i,
.screen-stats span {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.screen-bar i { width: 8px; height: 8px; }
.screen-bar span { margin-inline-start: 0.4rem; }

.screen-layout { min-height: 210px; }
.screen-layout aside {
  width: 28%;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
}
.screen-layout aside b {
  height: 10px;
  width: 70%;
  border-radius: 999px;
  background: #fff;
}
.screen-layout aside i { height: 8px; width: 100%; }
.screen-main { flex: 1; padding: 1rem; }
.screen-stats { gap: 0.5rem; }
.screen-stats span { flex: 1; height: 42px; border-radius: 10px; }
.screen-chart { margin: 0.8rem 0; }
.screen-chart path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}
.screen-table { flex-direction: column; gap: 0.45rem; }
.screen-table i { height: 8px; width: 100%; }

.orbit-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.orbit-one { inset-inline-start: -0.5rem; bottom: 1.5rem; }
.orbit-two { inset-inline-end: 0.4rem; top: -0.8rem; }
.orbit-two strong { color: var(--brand); font-size: 1.15rem; }

.home-stats { background: #fff; }
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.home-stats article {
  padding: 1.6rem 0.5rem;
  text-align: center;
}
.home-stats article + article { border-inline-start: 1px solid var(--line); }
.home-stats strong {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.home-stats b { color: var(--brand); font-size: 1.4rem; }
.home-stats span { display: block; color: var(--muted); font-weight: 600; }

.home-block-muted { background: #fff7f6; }
.home-section-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.75rem;
}
.home-section-head span,
.process-wrap .eyebrow {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.04em;
}
html[dir="rtl"] .home-section-head span { letter-spacing: 0; }
.home-section-head h2,
.process-wrap .section-title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  margin: 0.35rem 0 0;
}
.home-section-head p { margin: 0; color: var(--muted); }

.text-link {
  font-weight: 800;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

body[data-page="home"] .solution-card,
body[data-page="home"] .service-card,
.process-wrap .step-card {
  border-radius: 22px;
}

.faq-list { display: grid; gap: 0.75rem; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.35rem 1rem;
}
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 52px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--brand); }
.faq-list summary i { margin-inline-start: auto; font-style: normal; font-size: 1.4rem; }
.faq-list details p { color: var(--muted); padding-bottom: 0.8rem; }

.home-final-cta {
  background: var(--brand);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.home-final-cta span { font-weight: 800; letter-spacing: 0.04em; }
html[dir="rtl"] .home-final-cta span { letter-spacing: 0; }
.home-final-cta h2 {
  max-width: 16em;
  margin: 0.5rem auto 0.6rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}
.home-final-cta p { max-width: 38rem; margin: 0 auto 1.2rem; color: rgba(255, 255, 255, 0.9); }

.site-footer { background: #140607; }

@media (max-width: 991.98px) {
  .menu-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    inset-inline: 0.75rem;
    top: calc(100% + 0.4rem);
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0.7rem;
    background: #1c090b;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .studio-nav { position: sticky; }
  .nav-wrap { position: relative; }
  .language-menu {
    margin: 0.4rem 0 0;
    padding: 0.55rem 0 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: space-between;
  }
  .nav-cta { margin-top: 0.35rem; }
  .home-hero-inner,
  .home-section-head,
  .home-stats-grid { grid-template-columns: 1fr; }
  .home-stats article + article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .orbit-one, .orbit-two { position: static; margin-top: 0.75rem; }
  .hero-stage { min-height: 0; }
}
