:root {
  color-scheme: dark;
  --bg: #050912;
  --navy: #081426;
  --blue: #009dff;
  --cyan: #00c2ff;
  --silver: #b9c5d3;
  --muted: #a6b4c8;
  --line: rgba(67, 163, 235, 0.26);
  --card-border: rgba(38, 123, 176, 0.85);
}

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

body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* Background canvas & ambient glow */
#particles,
.ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(12, 40, 75, 0.92) 0%, transparent 58%),
    radial-gradient(circle at 50% 0%, rgba(0, 157, 255, 0.14) 0%, transparent 45%),
    linear-gradient(180deg, #050912 0%, #030711 100%);
  z-index: -2;
}

/* Layout shell */
.shell {
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.top,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(10px, 1.5vh, 18px) 0;
  flex-shrink: 0;
}

.top {
  justify-content: flex-end;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.status {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status i,
.launch-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.language {
  color: #fff;
  background: rgba(8, 20, 38, 0.55);
  border: 1px solid var(--line);
  padding: 8px 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.language:hover {
  border-color: var(--cyan);
  background: rgba(0, 157, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 194, 255, 0.2);
}

/* Main stage */
main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 280px;
  max-height: 660px;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  perspective: 1000px;
  isolation: isolate;
}

.visual-core {
  position: absolute;
  inset: 0;
}

.logo-position {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(44%, 560px, 60svh);
  z-index: 3;
}

.logo-motion {
  position: relative;
  will-change: transform;
}

.master-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(0, 130, 255, 0.28));
}

.scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(100, 210, 255, 0.16) 49%, transparent 63%);
  opacity: 0;
  mix-blend-mode: screen;
}

/* Electric-blue energy rings & platform */
.orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 82%;
  height: 60%;
  border: 1px solid rgba(23, 100, 161, 0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
  box-shadow: 0 0 22px rgba(0, 123, 255, 0.16), inset 0 0 22px rgba(0, 123, 255, 0.14);
  z-index: 0;
  pointer-events: none;
}

.orbit2 {
  width: 76%;
  height: 68%;
  transform: translate(-50%, -50%) rotate(12deg);
  border-style: dashed;
  opacity: 0.45;
}

.beam {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(0, 170, 255, 0.1) 20deg, transparent 40deg);
  mask-image: linear-gradient(#000, transparent);
  -webkit-mask-image: linear-gradient(#000, transparent);
  z-index: -1;
  pointer-events: none;
}

.platform {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 21%;
  border: 2px solid #197bc9;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 186, 255, 0.36), rgba(6, 19, 43, 0.88) 40%, rgba(1, 5, 12, 0.95) 74%);
  box-shadow: 0 0 42px rgba(0, 123, 255, 0.35), inset 0 0 24px rgba(0, 157, 255, 0.35);
  z-index: 0;
  pointer-events: none;
}

.platform i {
  position: absolute;
  inset: 12% 8%;
  border: 1px solid rgba(0, 191, 255, 0.6);
  border-radius: 50%;
}

.platform i:nth-child(2) {
  inset: 26% 18%;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.55);
}

/* Six floating service cards */
.service {
  position: absolute;
  z-index: 4;
  width: clamp(148px, 17.5%, 215px);
}

.float {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(16, 46, 78, 0.86), rgba(5, 13, 27, 0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(120, 210, 255, 0.22), inset 0 0 18px rgba(0, 157, 255, 0.08);
  font-size: clamp(12px, 1.05vw, 14.5px);
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  will-change: transform;
}

.float:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 157, 255, 0.35), inset 0 1px 0 rgba(150, 225, 255, 0.4);
}

.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 194, 255, 0.55));
}

.glyph svg {
  width: 100%;
  height: 100%;
}

.s1 { left: 1.5%; top: 35%; }
.s2 { left: 17%; top: 2%; }
.s3 { right: 17%; top: 2%; }
.s4 { right: 1.5%; top: 35%; }
.s5 { left: 7%; bottom: 9%; }
.s6 { right: 7%; bottom: 9%; }

/* Typography & CTA section */
.message {
  text-align: center;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  padding: 6px 0 clamp(14px, 2.2vh, 24px);
}

h1 {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  font-weight: 700;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #f1f8ff 10%, #00bfff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 194, 255, 0.28);
  background: rgba(0, 157, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: #bcecff;
}

@media (min-width: 761px) and (min-height: 500px) {
  .shell {
    height: 100svh;
    overflow: hidden;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(100deg, #0076d8, #00a9df);
  border: 1px solid #62d5ff;
  color: #fff;
  border-radius: 8px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 0 22px rgba(0, 157, 255, 0.25);
  transition: box-shadow 0.2s, transform 0.2s, filter 0.2s;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 157, 255, 0.5);
  filter: brightness(1.06);
}

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

footer {
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* Enquiry dialog */
dialog {
  position: relative;
  max-width: min(440px, 90vw);
  width: 100%;
  border: 1px solid rgba(98, 213, 255, 0.35);
  border-radius: 16px;
  padding: 32px 28px 28px;
  background: linear-gradient(160deg, #0b1c36 0%, #061020 100%);
  color: #fff;
  line-height: 1.6;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 32px rgba(0, 157, 255, 0.16);
}

dialog::backdrop {
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.close {
  position: absolute;
  inset-inline-end: 14px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  transition: color 0.2s, background-color 0.2s;
}

.close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

dialog h2 {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  margin: 0 0 10px;
  padding-inline-end: 24px;
  line-height: 1.25;
}

dialog p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 14.5px;
}

dialog .cta {
  margin-top: 8px;
  width: 100%;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 27, 0.72);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cyan);
}

.contact-row a,
.contact-address {
  font-size: 13.5px;
  color: #e6f1ff;
  line-height: 1.5;
  word-break: break-word;
}

.contact-row a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

/* RTL adjustments */
[dir="rtl"] h1,
[dir="rtl"] .launch {
  letter-spacing: 0;
}

[dir="rtl"] dialog h2 {
  font-family: 'IBM Plex Sans Arabic', 'Inter', Arial, sans-serif;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 5px var(--cyan);
  }
}

/* Tablet layout (761px - 1024px) */
@media (max-width: 1024px) {
  .logo-position {
    width: min(43%, 420px, 50svh);
  }

  .service {
    width: clamp(142px, 21%, 190px);
  }

  .s1 { left: 0.5%; top: 34%; }
  .s4 { right: 0.5%; top: 34%; }
  .s2 { left: 10%; top: 1%; }
  .s3 { right: 10%; top: 1%; }
  .s5 { left: 4%; bottom: 6%; }
  .s6 { right: 4%; bottom: 6%; }
}

/* Mobile layout (<= 760px) */
@media (max-width: 760px) {
  .shell {
    padding: 0 16px;
  }

  .top {
    padding: 14px 0;
    justify-content: space-between;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .status {
    font-size: 11px;
    line-height: 1.25;
  }

  .language {
    padding: 7px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .stage {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 0 16px;
  }

  .visual-core {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    height: auto;
    padding: 16px 0 26px;
  }

  .logo-position {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .platform {
    bottom: 4px;
    height: 36%;
    width: 78%;
    opacity: 0.65;
  }

  .orbit {
    top: 48%;
    width: 96%;
    height: 76%;
  }

  .orbit2 {
    top: 48%;
    width: 90%;
    height: 84%;
  }

  .service {
    position: relative;
    inset: auto;
    width: auto;
  }

  .float {
    min-height: 56px;
    padding: 10px 11px;
    font-size: 12px;
    gap: 8px;
  }

  .glyph {
    width: 20px;
    height: 20px;
  }

  .message {
    padding: 14px 0 28px;
  }

  .eyebrow {
    font-size: 9.5px;
    letter-spacing: 1.5px;
  }

  footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 16px 0;
    gap: 8px 16px;
  }
}

@media (max-width: 380px) {
  .status {
    font-size: 10px;
  }

  .float {
    padding: 9px 8px;
    font-size: 11px;
    gap: 6px;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .scan {
    display: none;
  }
}
