:root {
  --bg: #060608;
  --bg-soft: #0d0d12;
  --panel: rgba(14, 14, 20, 0.78);
  --panel-solid: #111118;
  --line: rgba(243, 21, 89, 0.25);
  --line-soft: rgba(255, 255, 255, 0.11);
  --text: #ffffff;
  --muted: #c5c5cf;
  --muted-2: #8f909d;
  --accent: #f31559;
  --accent-2: #41e4c7;
  --danger: #ff617f;
  --success: #55d899;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 3px rgba(243, 21, 89, 0.45);
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, 0.96), rgba(6, 6, 8, 0.78) 46%, rgba(6, 6, 8, 0.98)),
    #060608;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(243, 21, 89, 0.12), transparent 28%, transparent 68%, rgba(65, 228, 199, 0.06));
}

.noscript {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #121219;
  border-radius: var(--radius);
  color: var(--text);
}

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(8, 8, 11, 0.66);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid rgba(243, 21, 89, 0.55);
  border-radius: var(--radius);
  background: #050507;
  padding: 5px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.25;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.language-toggle {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(243, 21, 89, 0.24);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 44px;
  align-items: center;
  min-height: 100vh;
  padding-top: 132px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.panel-kicker,
.english-line {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 4rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.55rem;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.hero-lead,
.section-lead,
.split p,
.measurement p,
.privacy p,
.final-cta p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.hero-points span,
.metrics span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.hero-points span {
  padding: 9px 12px;
  font-size: 0.92rem;
}

.watcher {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 24px 0;
  padding: 12px 14px;
  border: 1px solid rgba(243, 21, 89, 0.22);
  border-radius: var(--radius);
  background: rgba(243, 21, 89, 0.06);
}

.watcher p {
  margin: 0;
  color: var(--muted);
}

.eyes {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.eye {
  position: relative;
  display: block;
  width: 34px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease-out;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.english-line {
  margin-top: 22px;
  color: var(--muted-2);
  text-transform: none;
}

.lead-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.lead-panel h2 {
  font-size: 1.55rem;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field,
.consent,
.form-status,
.privacy-note,
.submit-button {
  grid-column: 1 / -1;
}

.field:nth-of-type(1),
.field:nth-of-type(2),
.field:nth-of-type(3),
.field:nth-of-type(4),
.field:nth-of-type(5),
.field:nth-of-type(6) {
  grid-column: auto;
}

.field label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field label span {
  color: var(--muted-2);
  font-size: 0.78rem;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 12px;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 14px 20px, 8px 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

option {
  background: #111118;
  color: var(--text);
}

.error {
  display: block;
  min-height: 18px;
  color: var(--danger);
  font-size: 0.78rem;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
}

.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 5px;
  accent-color: var(--accent);
}

.privacy-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error-status {
  color: var(--danger);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.trust-item {
  min-height: 130px;
  padding: 24px;
  background: rgba(8, 8, 12, 0.82);
}

.trust-item strong {
  display: block;
  color: var(--accent);
  font-size: 2.4rem;
  line-height: 1;
}

.trust-item span {
  color: var(--muted);
}

.split,
.measurement {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 38px;
  align-items: start;
}

.problem-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-list li {
  position: relative;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-right: 3px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.system {
  text-align: center;
}

.system .section-lead {
  max-width: 780px;
  margin-inline: auto;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  text-align: right;
}

.system-grid article,
.service-groups article,
.journey-detail {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.system-grid article {
  min-height: 190px;
  padding: 22px;
}

.system-grid span,
.journey-detail span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 900;
}

.system-grid p,
.service-groups p,
.journey-detail p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.journey-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.journey-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(8, 8, 12, 0.62);
  overflow: hidden;
}

.journey-map::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(243, 21, 89, 0.24);
  border-radius: var(--radius);
  animation: dataPulse 4s linear infinite;
}

.journey-node {
  position: relative;
  z-index: 1;
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(12, 12, 18, 0.92);
  color: var(--muted);
  padding: 12px;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.journey-node strong {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
}

.journey-node:hover,
.journey-node.active {
  border-color: rgba(243, 21, 89, 0.72);
  color: var(--text);
  transform: translateY(-2px);
}

.journey-node.handoff-node {
  border-color: rgba(65, 228, 199, 0.45);
}

.journey-node.handoff-node strong {
  color: var(--accent-2);
}

.journey-detail {
  min-height: 360px;
  padding: 26px;
  background: rgba(14, 14, 21, 0.84);
}

.handoff {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(65, 228, 199, 0.32);
  border-radius: var(--radius);
  background: rgba(65, 228, 199, 0.055);
}

.handoff strong {
  color: var(--accent-2);
}

.handoff p {
  margin: 8px 0 0;
  color: var(--muted);
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.service-groups article {
  min-height: 220px;
  padding: 20px;
  cursor: default;
}

.service-groups h3 {
  color: var(--accent);
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .service-groups h3 {
  text-align: right;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.metrics span {
  padding: 10px 12px;
  direction: ltr;
  text-align: left;
}

.privacy,
.sub-services,
.final-cta {
  text-align: center;
}

.privacy p,
.sub-services p,
.final-cta p {
  max-width: 820px;
  margin-inline: auto;
}

.sub-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
  text-align: start;
}

.sub-service-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.sub-service-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 900;
}

.sub-service-grid p {
  color: var(--muted);
}

.final-cta {
  margin-bottom: 40px;
  border: 1px solid rgba(243, 21, 89, 0.25);
  border-radius: var(--radius);
  background: rgba(243, 21, 89, 0.07);
}

.final-cta .hero-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-link {
  color: var(--accent);
  direction: ltr;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(85, 216, 153, 0.45);
  border-radius: var(--radius);
  background: #128c4a;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.wa-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  line-height: 1;
}

.simple-page {
  min-height: 100vh;
}

.thank-you-shell {
  display: grid;
  align-content: center;
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 60px 0;
}

.thank-brand {
  width: fit-content;
  margin-bottom: 22px;
}

.thank-card {
  padding: 44px;
  border: 1px solid rgba(243, 21, 89, 0.28);
  border-radius: var(--radius);
  background: rgba(14, 14, 20, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.thank-card h1 {
  font-size: 3rem;
}

.thank-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

html[dir="ltr"] .problem-list li {
  border-right-width: 1px;
  border-left: 3px solid var(--accent);
}

html[dir="ltr"] .system-grid,
html[dir="ltr"] .journey-node {
  text-align: left;
}

html[dir="ltr"] select {
  background-position: calc(100% - 14px) 20px, calc(100% - 20px) 20px;
}

@keyframes dataPulse {
  0% {
    opacity: 0.25;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.01);
  }
  100% {
    opacity: 0.25;
    transform: scale(0.98);
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

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

  .primary-nav {
    position: fixed;
    top: 78px;
    inset-inline: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(10, 10, 14, 0.96);
  }

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

  .primary-nav a {
    padding: 12px;
  }

  .header-cta {
    justify-self: end;
  }

  .hero,
  .split,
  .measurement,
  .journey-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .lead-panel {
    max-width: 680px;
    width: 100%;
    justify-self: center;
  }

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

  .service-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-service-grid {
    grid-template-columns: 1fr;
  }

  .journey-map {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    grid-template-columns: auto auto 1fr;
    min-height: 62px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 8px;
    justify-self: end;
  }

  .language-toggle {
    min-height: 40px;
    padding: 7px 10px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 74px 0;
  }

  .hero {
    padding-top: 110px;
    gap: 28px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-lead,
  .section-lead,
  .split p,
  .measurement p,
  .privacy p,
  .final-cta p {
    font-size: 0.98rem;
  }

  .watcher {
    align-items: flex-start;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .lead-panel {
    padding: 18px;
  }

  form,
  .field:nth-of-type(1),
  .field:nth-of-type(2),
  .field:nth-of-type(3),
  .field:nth-of-type(4),
  .field:nth-of-type(5),
  .field:nth-of-type(6) {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }

  .trust-strip,
  .system-grid,
  .service-groups,
  .sub-service-grid,
  .journey-map {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    width: min(100% - 24px, 1180px);
  }

  .journey-map {
    max-height: 620px;
    overflow: auto;
  }

  .site-footer {
    width: min(100% - 24px, 1180px);
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 86px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .thank-card {
    padding: 26px;
  }

  .thank-card h1 {
    font-size: 2rem;
  }
}

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