:root {
  --bg: #06080d;
  --panel: rgba(9, 14, 24, .78);
  --text: #f5f7ff;
  --muted: #aeb8ca;
  --cyan: #24d8ef;
  --blue: #4c8dff;
  --pink: #f28fdc;
  --purple: #9f8cff;
  --amber: #ffb84d;
  --amber-deep: #ff8a3d;
  --border: rgba(255,255,255,.15);
  --radius: 0px;
  --ease: cubic-bezier(.2,.85,.25,1);
}



* { box-sizing: border-box; border-radius: 0 !important; }

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: auto;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Ubuntu", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Language changes must never mirror or reposition the site's layout. */
/* Arabic changes text direction, not the physical layout of the site. */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] #app,
html[dir="rtl"] .home,
html[dir="rtl"] .home-center,
html[dir="rtl"] .home-menu,
html[dir="rtl"] .home-contact,
html[dir="rtl"] .home-social,
html[dir="rtl"] .page-shell,
html[dir="rtl"] .page-hero,
html[dir="rtl"] .core-box,
html[dir="rtl"] .faq-section,
html[dir="rtl"] .faq-list,
html[dir="rtl"] .get-started,
html[dir="rtl"] .defenixo-page {
  direction: ltr;
}

/* Text itself remains genuinely RTL. */
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .core-section,
html[dir="rtl"] .core-section h2,
html[dir="rtl"] .core-section p,
html[dir="rtl"] .core-section li,
html[dir="rtl"] .core-intro,
html[dir="rtl"] .discount-note,
html[dir="rtl"] .faq-section .section-heading,
html[dir="rtl"] .faq-list summary,
html[dir="rtl"] .faq-list details p,
html[dir="rtl"] .get-started > div:first-child,
html[dir="rtl"] .defenixo-copy,
html[dir="rtl"] .defenixo-copy h1,
html[dir="rtl"] .defenixo-description {
  direction: rtl;
  text-align: right;
}

/* Keep two-column facts and button groups physically in the same positions. */
html[dir="rtl"] .facts,
html[dir="rtl"] .home-contact-actions,
html[dir="rtl"] .home-social-actions,
html[dir="rtl"] .contact-actions {
  direction: ltr;
}

html[dir="rtl"] .facts dt,
html[dir="rtl"] .facts dd,
html[dir="rtl"] .home-contact-info,
html[dir="rtl"] .home-social-info,
html[dir="rtl"] .home-contact-label,
html[dir="rtl"] .branch-title {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .branch,
html[dir="rtl"] .action-button {
  direction: ltr;
}

html[dir="rtl"] .topbar,
html[dir="rtl"] .back-link,
html[dir="rtl"] .site-footer {
  direction: ltr !important;
}

body[data-page="home"] { min-height: 100vh; overflow: hidden; }

#app {
  position: relative;
  z-index: 2;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.background,
.background-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  opacity: 1;
}

/* One shared camera for every background media element.
   The camera moves, not the individual images, so a crossfade never jumps
   because the incoming image restarted its own drift animation. */
.background-stage {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  overflow: hidden;
  transform: translate3d(0,0,0) scale(1.045);
  transform-origin: center center;
  animation: background-camera-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

.background-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: blur(7px) saturate(.62) brightness(.40) contrast(.82);
  will-change: opacity;
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(.22,.72,.25,1);
}

.background-media.is-preloaded,
.background-media.is-next {
  opacity: 0;
  z-index: 2;
}

.background-media.is-current {
  opacity: 1;
  z-index: 1;
}

.background-media.is-old {
  opacity: 0;
  z-index: 0;
}

.background-overlay {
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(36,216,239,.10), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(255,184,77,.08), transparent 26%),
    radial-gradient(circle at 75% 82%, rgba(242,143,220,.07), transparent 30%),
    linear-gradient(180deg, rgba(3,5,10,.34), rgba(3,5,10,.56));
}

/* Two permanent halftone fields. The left field is larger/stronger; the
   right field is intentionally smaller/weaker. */
.halftone-field {
  position: absolute;
  pointer-events: none;
  border-radius: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.82) 0 1px, transparent 1.25px);
  background-size: 9px 9px;
  mix-blend-mode: screen;
  filter: blur(.15px);
  animation: field-drift 22s ease-in-out infinite alternate;
}

.halftone-field--left {
  width: min(48vw, 760px);
  height: min(82vh, 900px);
  left: -14vw;
  top: 9vh;
  opacity: .15;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,.82) 42%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,.82) 42%, transparent 76%);
}

.halftone-field--right {
  width: min(30vw, 470px);
  height: min(58vh, 620px);
  right: -8vw;
  top: 21vh;
  opacity: .065;
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,.55) 40%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,.55) 40%, transparent 76%);
  animation-duration: 27s;
  animation-direction: alternate-reverse;
}

@keyframes background-camera-drift {
  0%   { transform: translate3d(-.7%, .4%, 0) scale(1.045); }
  35%  { transform: translate3d(.9%, -.5%, 0) scale(1.070); }
  70%  { transform: translate3d(.3%, 1%, 0) scale(1.055); }
  100% { transform: translate3d(-.8%, .1%, 0) scale(1.075); }
}

@keyframes field-drift {
  0%   { transform: translate3d(-2%, 1%, 0) rotate(-1deg); }
  50%  { transform: translate3d(2%, -2%, 0) rotate(1deg); }
  100% { transform: translate3d(0%, 2%, 0) rotate(-.5deg); }
}

/* Explicit stacking. Do not give the header a generic `position: relative`:
   it must remain fixed to the viewport in both LTR and RTL layouts. */
#app { position: relative; z-index: 2; }
.topbar {
  direction: ltr !important;
  position: fixed !important;
  top: 24px;
  left: 24px !important;
  right: auto !important;
  width: 96px;
  height: 96px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  z-index: 20;
  margin: 0;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(5,8,14,.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(0,0,0,.24);
}

.brand {
  display: block;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .72rem;
  line-height: 1.1;
  opacity: .9;
  direction: ltr !important;
}

.topbar-actions {
  display: contents;
}

.topbar .language-button {
  flex: 0 0 auto;
  width: 100%;
  min-height: 38px;
}

.back-link {
  position: fixed !important;
  left: 24px !important;
  right: auto !important;
  top: 128px !important;
  width: 96px !important;
  min-width: 96px;
  min-height: 42px !important;
  height: 42px;
  padding: 9px 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  direction: ltr !important;
  z-index: 20;
}

.back-link[hidden] { display: none !important; }

.back-link:not([hidden]) {
  border-color: rgba(255,255,255,.16);
  background: rgba(8,12,20,.82);
}

.back-link:not([hidden])::before {
  content: "←";
  margin-right: 7px;
  font-size: 1.05em;
  line-height: 1;
}

.language-button,
.back-link,
.action-button {
  border: 1px solid rgba(255,255,255,.16);
  padding: 9px 14px;
  background: rgba(8,12,20,.82);
  color: var(--text);
  cursor: pointer;
  transition: transform .12s var(--ease), background .12s var(--ease), color .12s var(--ease), border-color .12s var(--ease), box-shadow .12s var(--ease);
}

.language-button:hover,
.back-link:hover,
.action-button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.30);
  box-shadow: 0 8px 24px rgba(0,0,0,.20);
}

.language-button:active,
.back-link:active,
.action-button:active { transform: translateY(0); }

.page-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 12vh;
}

.page-hero { max-width: 1160px; margin-bottom: 42px; }

.eyebrow,
.home-kicker {
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--cyan);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .98;
  letter-spacing: 0.005em;
  text-align: center;
  color: var(--cyan);
}

h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.1; letter-spacing: -.025em; }
.lead { max-width: 780px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }

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

.action-button--primary { background: rgba(8,12,20,.82); color: var(--text); border-color: rgba(255,255,255,.16); font-weight: 700; }
.discount-note { margin-top: 14px; color: var(--amber); font-weight: 750; }

.content-grid { display: block; }

.core-box {
  width: 100%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
  padding: 0 28px;
}

.core-section {
  position: relative;
  padding: 28px 0;
}

.core-section + .core-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple), var(--pink), var(--amber));
}

.core-section--last { padding-bottom: 30px; }

.core-intro { margin: 0 0 18px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }

.core-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0;
}

.core-section p { color: var(--muted); max-width: 900px; }

.compact-list {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--muted);
}

.compact-list li + li { margin-top: 7px; }

.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: minmax(100px, .25fr) 1fr; gap: 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

.action-button--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.faq-section { margin-top: 54px; }
.section-heading { margin-bottom: 16px; }
.faq-list { display: grid; gap: 10px; }

.faq-list details {
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--cyan); font-size: 1.25rem; }
.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--muted);
  max-width: 900px;
}

.get-started {
  margin-top: 64px;
  padding: 28px 0 4px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.get-started-text { margin-bottom: 0; color: var(--muted); }

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
  width: min(430px, 100%);
  flex: 0 0 auto;
}

.contact-actions .action-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-actions .action-button--fiverr { grid-column: 1 / -1; }

.contact-actions .action-button:hover,
.home-contact-actions .action-button:hover,
.home-social-actions .action-button:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.30);
}

.defenixo-page {
  min-height: calc(100vh - 90px);
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding-top: 90px;
}

.defenixo-copy { max-width: 720px; padding: 8vh 0; }
.defenixo-copy h1 {
  font-size: clamp(4rem, 11vw, 9rem);
  background: linear-gradient(100deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.defenixo-description { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }

/* Cinematic home screen */
.home {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.home-center {
  width: 100%;
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: 128px 24px 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.home-title-wrap { margin-bottom: 24px; overflow: visible; flex: 0 0 auto; }
.home-kicker { color: var(--amber); text-shadow: 0 0 24px rgba(255,184,77,.14); }

.home-title {
  margin: 0;
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: .82;
  letter-spacing: 0em;
  font-weight: 950;
  overflow: visible;
  width: auto;
  max-width: none;
  
}

.home-title span {
  display: inline-block;
  width: max-content;
  max-width: none;
  overflow: visible;
  padding-right: .08em;

  background: linear-gradient(
    105deg,
    #ffffff 5%,
    #d9e6ff 42%,
    var(--cyan) 72%,
    var(--amber) 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  filter: drop-shadow(0 14px 35px rgba(0,0,0,.35));
}

.home-subtitle {
  margin: 18px auto 0;
  max-width: 680px;
  color: rgba(245,247,255,.72);
  font-size: clamp(.95rem, 1.7vw, 1.15rem);
}

.home-menu {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 24px;
  border: 0;
  background: rgba(0,0,0,.50);
}

.branch {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid transparent;
  padding: 18px 26px;
  background:
    linear-gradient(rgba(7,11,19,.82), rgba(7,11,19,.82)) padding-box,
    linear-gradient(110deg, var(--cyan), var(--blue), var(--purple), var(--pink), var(--amber)) border-box;
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  transition: transform .13s var(--ease), background .13s var(--ease), color .13s var(--ease), box-shadow .13s var(--ease);
}

.branch:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)) padding-box,
    linear-gradient(110deg, var(--cyan), var(--blue), var(--purple), var(--pink), var(--amber)) border-box;
}

.branch:active { transform: translateY(0); }

.branch-title {
    margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--cyan);
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--cyan);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.home-contact,
.home-social {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.55);
  text-align: start;
  flex: 0 0 auto;
}

.home-contact { margin-top: 0; }
.home-social { margin-top: 0; }

.home-contact-info {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.home-contact-info strong { color: var(--text); font-weight: 500; }
.home-contact-info small { color: var(--muted); }

.home-contact-label {
  color: var(--amber);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.home-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  width: min(420px, 100%);
}

.home-contact-actions .action-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-social-info {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.home-social-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 150px));
  gap: 10px;
}

.home-social-actions .action-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  position: fixed;
  left: 18px !important;
  right: auto !important;
  bottom: 10px;
  z-index: 20;
  color: rgba(245,247,255,.45);
  font-size: .72rem;
  direction: ltr !important;
  text-align: left;
  pointer-events: none;
}

.punch-in { animation: punch-in .34s var(--ease) both; }
@keyframes punch-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

body.is-leaving > *:not(.background):not(.background-overlay) {
  opacity: 0;
}

/* Never fade the persistent background during navigation. */
body.is-leaving .background {
  opacity: 1 !important;
}


@media (orientation: portrait) {
  .background.has-remembered-media {
    background-size: 110% auto;
  }
}

@media (max-width: 850px) {
  .home-menu { grid-template-columns: 1fr; width: 100vw; }
  .branch { min-height: 64px; }
}

@media (max-width: 760px) {
  .page-shell, .defenixo-page { width: min(100% - 28px, 1160px); }
  .topbar { left: 14px !important; right: auto !important; top: 14px; width: 88px; height: 88px; }
  .back-link { left: 14px !important; right: auto !important; top: 106px !important; width: 88px !important; min-width: 88px; }
  .content-grid { grid-template-columns: 1fr; }
  .info-card--wide { grid-column: auto; }
  .get-started { align-items: flex-start; flex-direction: column; gap: 24px; }
  .contact-actions { width: 100%; }
  .home-contact, .home-social { align-items: flex-start; flex-direction: column; }
  .home-contact-actions, .home-social-actions { width: 100%; }
  .page-shell { padding-top: 112px; }
  .home-center { padding: 112px 14px 40px; }
  .home-title { font-size: clamp(4.2rem, 22vw, 8rem); }
}

@media (max-width: 460px) {
  .contact-actions, .home-contact-actions, .home-social-actions { grid-template-columns: 1fr; }
  .contact-actions .action-button--fiverr { grid-column: auto; }
  .home-title-wrap { margin-bottom: 18px; overflow: visible; }
  .home-contact, .home-social { padding: 10px 14px; gap: 10px; }
  .home-contact-info, .home-social-info { font-size: .86rem; }
}


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


/* The header has a fixed physical layout in both languages. */
html[dir="rtl"] .topbar { direction: ltr; }
html[dir="rtl"] .topbar-actions { direction: ltr; }


/* Final RTL text/layout guard. Keep page geometry LTR while Arabic text is RTL. */
html[dir="rtl"] .compact-list,
html[dir="rtl"] .faq-list,
html[dir="rtl"] .faq-list details {
  direction: ltr;
}
html[dir="rtl"] .compact-list li,
html[dir="rtl"] .faq-list summary,
html[dir="rtl"] .faq-list details p {
  direction: rtl;
  text-align: right;
}
