:root {
  color-scheme: dark;
  --charcoal: #0b1016;
  --charcoal-2: #111922;
  --panel: rgba(16, 24, 32, 0.72);
  --line: rgba(204, 218, 231, 0.18);
  --text: #f7fbff;
  --muted: #aeb9c5;
  --blue: #18bff1;
  --blue-soft: rgba(24, 191, 241, 0.16);
  --white-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --mx: 50%;
  --my: 45%;
  --shift-x: 0px;
  --shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--charcoal);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(24, 191, 241, 0.12), transparent 30rem),
    linear-gradient(135deg, #080c11 0%, #0e151d 48%, #161d24 100%);
  color: var(--text);
  font-family:
    "Tajawal", "Manrope", "Segoe UI", "Tahoma", "Arial", sans-serif;
}

[dir="ltr"] body {
  font-family:
    "Manrope", "Tajawal", "Segoe UI", "Arial", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}

body::after {
  position: fixed;
  inset: auto 8% 5% auto;
  z-index: -1;
  width: min(34rem, 76vw);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(24, 191, 241, 0.16);
  transform: rotate(18deg);
  animation: ambient-frame 8s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 5;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--charcoal);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0;
  pointer-events: none;
}

.brand,
.header-actions {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 18vw, 245px);
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  animation: header-drop 720ms ease both 120ms;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 14, 20, 0.58);
  color: #dce8f2;
  font-size: 0.9rem;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
  animation: header-drop 720ms ease both 220ms;
}

.email-link:hover,
.email-link:focus-visible {
  border-color: rgba(24, 191, 241, 0.65);
  background: rgba(13, 24, 32, 0.82);
  color: var(--text);
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-height: 2.55rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 14, 20, 0.58);
  backdrop-filter: blur(14px);
  animation: header-drop 720ms ease both 280ms;
}

.lang-option {
  min-width: 3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  transition: background 180ms ease, color 180ms ease;
}

.lang-option.is-active {
  background: rgba(24, 191, 241, 0.16);
  color: var(--text);
}

.hero-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  align-items: center;
  min-height: 100svh;
  padding: 7.5rem 0 4rem;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: content-rise 760ms ease both 320ms;
}

.eyebrow,
.section-heading p {
  margin: 0 0 0.9rem;
  color: #90e6ff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(24, 191, 241, 0.22);
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .section-heading p {
  text-transform: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 4.05vw, 4.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-copy {
  max-width: 680px;
  margin: 1.55rem 0 0;
  color: #d3dde7;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.development-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: center;
  max-width: 780px;
  margin-top: 1.6rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(24, 191, 241, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 191, 241, 0.12), transparent 44%),
    rgba(8, 14, 20, 0.64);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  animation: content-rise 760ms ease both 520ms;
}

.development-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 0%, rgba(160, 235, 255, 0.12) 45%, transparent 72%);
  transform: translateX(80%);
  animation: panel-scan 5.4s ease-in-out infinite;
}

.development-copy,
.countdown {
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(144, 230, 255, 0.28);
  border-radius: 999px;
  background: rgba(24, 191, 241, 0.1);
  color: #dff8ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(24, 191, 241, 0.52);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.development-copy p {
  margin: 0.75rem 0 0;
  color: #c9d5df;
  font-size: 0.98rem;
  line-height: 1.65;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.countdown-item {
  min-width: 0;
  padding: 0.72rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.countdown-item strong {
  display: block;
  color: #f7fdff;
  font-family: "Manrope", "Tajawal", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1;
}

.countdown-item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border: 1px solid rgba(125, 226, 255, 0.8);
  border-radius: 999px;
  background: linear-gradient(135deg, #18bff1, #d7f8ff);
  color: #071017;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(24, 191, 241, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  animation: button-breathe 3.6s ease-in-out infinite;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(24, 191, 241, 0.3);
  filter: saturate(1.08);
}

.coming-note {
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-visual {
  position: relative;
  min-height: clamp(320px, 52vw, 620px);
  transform: translate3d(var(--shift-x), var(--shift-y), 0);
  transition: transform 220ms ease-out;
}

.hero-visual::before {
  position: absolute;
  inset: 8% 0 3%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(20deg, rgba(24, 191, 241, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.025);
  clip-path: polygon(14% 90%, 14% 34%, 49% 16%, 86% 34%, 86% 90%);
  box-shadow: var(--shadow);
  animation: mass-pulse 5.6s ease-in-out infinite alternate;
}

.hero-visual::after {
  position: absolute;
  inset: 12% 6% 11%;
  content: "";
  border: 1px solid rgba(24, 191, 241, 0.22);
  clip-path: polygon(18% 88%, 18% 39%, 48% 24%, 82% 39%, 82% 88%);
  opacity: 0.72;
  transform-origin: center;
  animation: blueprint-echo 4.8s ease-in-out infinite;
}

.architecture-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.structure,
.detail-lines {
  fill: none;
  stroke: url("#edge");
  stroke-linecap: round;
  stroke-linejoin: round;
}

.structure {
  stroke-width: 2.8;
}

.detail-lines {
  stroke-width: 1.8;
  opacity: 0.64;
}

.structure path,
.detail-lines path {
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
  animation: draw-line 1.5s cubic-bezier(0.22, 0.78, 0.18, 1) forwards;
}

.detail-lines path {
  animation-delay: 420ms;
}

.airflow {
  fill: none;
  stroke: url("#cool");
  stroke-width: 13;
  stroke-linecap: round;
  opacity: 0.78;
  stroke-dasharray: 170 560;
  animation: airflow 4.8s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(24, 191, 241, 0.32));
}

.airflow-two {
  stroke-width: 9;
  animation-delay: 1.1s;
  opacity: 0.58;
}

.services {
  padding: 0 0 5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.65rem, 3.8vw, 3.2rem);
  line-height: 1.08;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  min-height: 16rem;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(11, 17, 23, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(18px);
  animation: card-rise 620ms ease forwards;
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.service-card:nth-child(2) {
  animation-delay: 150ms;
}

.service-card:nth-child(3) {
  animation-delay: 300ms;
}

.service-card::after {
  position: absolute;
  inset: auto 1.1rem 1.1rem auto;
  width: 44%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(24, 191, 241, 0.58));
  transform-origin: right;
  animation: service-line 3.8s ease-in-out infinite;
}

.service-card:hover {
  border-color: rgba(24, 191, 241, 0.45);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(24, 191, 241, 0.04)),
    rgba(11, 17, 23, 0.76);
  transform: translateY(-4px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(24, 191, 241, 0.24);
  border-radius: 8px;
  background: rgba(24, 191, 241, 0.08);
}

.service-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: #bdefff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.service-card h3 {
  margin: 1.15rem 0 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.service-card p {
  max-width: 27rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #dff8ff;
  text-decoration-color: rgba(24, 191, 241, 0.55);
  text-underline-offset: 0.28em;
}

[dir="ltr"] .hero {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
}

[dir="ltr"] .hero-content {
  grid-column: 2;
}

[dir="ltr"] .hero-visual {
  grid-column: 1;
  grid-row: 1;
}

[dir="ltr"] h1 {
  max-width: 17ch;
}

[dir="ltr"] .hero-content {
  max-width: 760px;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes airflow {
  0% {
    stroke-dashoffset: 720;
  }
  50% {
    opacity: 0.92;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes ambient-frame {
  from {
    opacity: 0.34;
    transform: rotate(18deg) translate3d(0, 0, 0);
  }
  to {
    opacity: 0.62;
    transform: rotate(18deg) translate3d(-18px, -12px, 0);
  }
}

@keyframes blueprint-echo {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  32% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes mass-pulse {
  from {
    filter: drop-shadow(0 0 0 rgba(24, 191, 241, 0));
  }
  to {
    filter: drop-shadow(0 0 34px rgba(24, 191, 241, 0.14));
  }
}

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-breathe {
  0%,
  100% {
    box-shadow: 0 16px 40px rgba(24, 191, 241, 0.2);
  }
  50% {
    box-shadow: 0 18px 58px rgba(24, 191, 241, 0.36);
  }
}

@keyframes service-line {
  0%,
  100% {
    transform: scaleX(0.38);
    opacity: 0.36;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.9;
  }
}

@keyframes panel-scan {
  0%,
  44% {
    transform: translateX(82%);
  }
  100% {
    transform: translateX(-82%);
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 191, 241, 0.5);
  }
  70% {
    box-shadow: 0 0 0 0.6rem rgba(24, 191, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 191, 241, 0);
  }
}

@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .site-header {
    width: min(100% - 1.25rem, 1180px);
    align-items: flex-start;
  }

  .brand {
    width: clamp(132px, 34vw, 190px);
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .email-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 7.3rem;
    gap: 0;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    grid-row: 1;
    min-height: clamp(250px, 70vw, 410px);
    margin-bottom: -1.2rem;
    opacity: 0.84;
  }

  [dir="ltr"] .hero {
    grid-template-columns: 1fr;
  }

  [dir="ltr"] .hero-content,
  [dir="ltr"] .hero-visual {
    grid-column: auto;
  }

  .section-heading,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding-top: 3.5rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    padding-top: 0.8rem;
  }

  .language-switcher {
    min-height: 2.35rem;
  }

  .lang-option {
    min-width: 2.65rem;
  }

  .hero-shell,
  .site-footer {
    width: min(100% - 1.1rem, 1180px);
  }

  .hero {
    padding-top: 6.3rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: clamp(1.9rem, 9.8vw, 3.05rem);
    max-width: 13.8ch;
    line-height: 1.12;
  }

  .hero-actions {
    align-items: stretch;
  }

  .development-panel {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .countdown {
    gap: 0.4rem;
  }

  .countdown-item {
    padding: 0.65rem 0.25rem;
  }

  .countdown-item span {
    font-size: 0.68rem;
  }

  .primary-button {
    width: 100%;
  }

  .service-card {
    min-height: 13rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .structure path,
  .detail-lines path {
    stroke-dashoffset: 0;
  }
}
