:root {
  --primary: #0b1526;
  --navy: #0b1526;
  --navy-soft: #12203a;
  --accent: #1f6bff;
  --accent-2: #3b82f6;
  --accent-soft: rgba(31, 107, 255, 0.12);
  --background: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #eef3f9;
  --text: #0b1526;
  --muted: #5c6675;
  --line: rgba(11, 21, 38, 0.08);
  --shadow: 0 10px 30px rgba(11, 21, 38, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 88px;
  --container: 1180px;
  --whatsapp: #25d366;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--background);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font-family: inherit;
}

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

.skip-link {
  position: absolute;
  right: 12px;
  top: -48px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.4;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 107, 255, 0.22);
}

.btn-primary:hover {
  background: #1858d6;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  width: 220px;
}

.brand-logo-inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 957 / 397;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.logo-signal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.sig-arc {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.sig-inner {
  stroke: #1f6bff;
  stroke-width: 36;
  animation: sigInner 3.8s ease-in-out infinite;
}

.sig-outer {
  stroke: #3b82f6;
  stroke-width: 40;
  animation: sigOuter 3.8s ease-in-out infinite;
}

.logo-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.logo-shine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 38%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(255, 255, 255, 0.12) 62%,
    transparent 100%
  );
  animation: logoShine 2.6s linear infinite;
}

@keyframes sigInner {
  0%,
  10% {
    opacity: 0;
  }
  18%,
  64% {
    opacity: 1;
  }
  76%,
  100% {
    opacity: 0;
  }
}

@keyframes sigOuter {
  0%,
  28% {
    opacity: 0;
  }
  36%,
  64% {
    opacity: 1;
  }
  76%,
  100% {
    opacity: 0;
  }
}

@keyframes logoShine {
  0% {
    transform: translateX(250%);
  }
  100% {
    transform: translateX(-250%);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

.nav .btn {
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  right: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(11, 21, 38, 0.28);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 85% 18%, rgba(31, 107, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.28;
}

.hero .hero-copy {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 540px;
  font-weight: 400;
}

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

.hero-visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.speed-gauge {
  width: min(100%, 420px);
  text-align: center;
}

.gauge-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-track {
  fill: none;
  stroke: #e7edf5;
  stroke-width: 18;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: url(#gaugeSweep);
  stroke-width: 18;
  stroke-linecap: round;
}

.gauge-min,
.gauge-max,
.gauge-mid {
  fill: var(--muted);
  font-size: 13px;
  font-family: var(--font);
}

.gauge-max {
  fill: var(--accent);
  font-weight: 700;
  text-anchor: middle;
}

.gauge-min {
  fill: #e11d2a;
  font-weight: 600;
  text-anchor: middle;
}

.gauge-mid {
  text-anchor: middle;
}

.gauge-needle polygon {
  fill: #e11d2a;
}

.gauge-needle circle {
  fill: var(--navy);
  stroke: #fff;
  stroke-width: 3;
}

.speed-gauge.is-fast .gauge-needle polygon {
  fill: var(--accent);
}

.gauge-readout {
  margin-top: -18px;
}

.gauge-phase {
  display: inline-block;
  color: #e11d2a;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.45s ease, color 0.45s ease, font-size 0.45s ease;
}

.gauge-phase.is-after {
  color: var(--accent);
  font-size: 1.85rem;
  transform: scale(1.08);
}

.gauge-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
}

.gauge-value small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.check-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-height: 108px;
  font-weight: 500;
}

.check-item::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 10px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' d='M5 12.5l5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.products {
  background: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: right;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 21, 38, 0.1);
  border-color: rgba(31, 107, 255, 0.35);
}

.product-media {
  overflow: hidden;
}

.product-media-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--surface-2);
}

.product-media img + img {
  display: none;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-body .btn {
  margin-top: auto;
  width: 100%;
}

.product-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.badge {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.price {
  font-weight: 700;
  color: var(--navy);
}

.install {
  background:
    linear-gradient(180deg, #0b1526 0%, #12203a 100%);
  color: #fff;
}

.install .lead {
  color: rgba(255, 255, 255, 0.74);
}

.install .eyebrow {
  color: #8fb4ff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  counter-reset: step;
  margin-top: 28px;
}

.step {
  counter-increment: step;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 168px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.why {
  background: var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.why-card svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  margin-bottom: 12px;
}

.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-col {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}

.compare-col.before {
  background: #f8fafc;
  color: var(--muted);
}

.compare-col.after {
  background: var(--navy);
  color: #fff;
  border: 0;
}

.compare-col h3 {
  margin-top: 0;
}

.faq {
  background: var(--surface);
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  font-weight: 400;
  color: var(--muted);
}

.cta-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(31, 107, 255, 0.28), transparent 28%),
    var(--navy);
  color: #fff;
}

.cta-band .lead {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}

.site-footer {
  background: var(--navy);
  color: #d5dbe6;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer .brand-logo {
  width: 200px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 8px 10px 6px;
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 0.9rem;
}

.float-wa {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 12px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 26, 0.55);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.28s ease;
}

.modal.is-closing .modal-dialog {
  animation: modalOut 0.2s ease forwards;
}

.modal-close {
  position: sticky;
  top: 12px;
  float: left;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.2rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  clear: both;
}

.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  background: var(--surface);
}

.gallery {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.gallery button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery img {
  width: 64px;
  height: 48px;
  object-fit: cover;
}

.modal-content {
  padding: 8px 28px 24px;
}

.modal-content h2 {
  margin: 8px 0;
}

.modal-content h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.modal-content p,
.modal-content li {
  font-weight: 400;
}

body.modal-open {
  overflow: hidden;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js-ready .reveal.is-in {
  animation: fadeUp 0.65s ease forwards;
}

@keyframes arcPulse {
  0% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.25;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-ready .reveal,
  .js-ready .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .sig-inner,
  .sig-outer {
    animation: none;
    opacity: 1;
  }

  .logo-shine::before {
    animation: none;
    opacity: 0;
  }
}
