:root {
  color-scheme: dark;
  --ink: #f5f7fb;
  --muted: #aab6c8;
  --soft: #d8e3f4;
  --panel: rgba(12, 18, 31, 0.74);
  --panel-strong: rgba(16, 24, 42, 0.88);
  --line: rgba(192, 221, 255, 0.18);
  --cyan: #69e7ff;
  --green: #77f0b4;
  --gold: #ffd166;
  --blue: #7ca7ff;
  --red: #ff6b6b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(105, 231, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(119, 240, 180, 0.12), transparent 28rem),
    linear-gradient(145deg, #050810 0%, #08111d 48%, #090b13 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[dir="rtl"] body {
  direction: ltr;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
}

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

.data-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
}

.brand,
.site-header nav,
.language-switcher {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 20px;
  font-size: 1.155rem;
  font-weight: 800;
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 77px;
  overflow: hidden;
}

.brand-mark img {
  width: 175%;
  height: 175%;
  object-fit: contain;
}

.brand-tagline {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-header nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.62);
  backdrop-filter: blur(18px);
}

.site-header nav a {
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.62);
  backdrop-filter: blur(18px);
}

.language-option {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-option:hover,
.language-option.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.language-option.is-active {
  color: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 86px);
  padding: 54px 0 86px;
}

[dir="rtl"] .hero,
[dir="rtl"] .platform-band {
  direction: ltr;
}

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

[dir="rtl"] .hero-copy,
[dir="rtl"] .brand-copy,
[dir="rtl"] .node,
[dir="rtl"] .ai-signal-copy,
[dir="rtl"] .platform-band > div,
[dir="rtl"] .capability-grid,
[dir="rtl"] .contact-band {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 1.066rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(4.4rem, 12.1vw, 9.35rem);
  line-height: 0.9;
  font-weight: 800;
}

.title-i {
  position: relative;
  display: inline-block;
  width: 0.23em;
  height: 0.78em;
  margin: 0 0.02em;
  vertical-align: -0.04em;
}

.title-stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.18em;
  height: 0.56em;
  border-radius: 0.04em;
  background: var(--ink);
  transform: translateX(-50%);
}

.title-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.18em;
  height: 0.18em;
  border-radius: 999px;
  background: #d71920;
  transform: translateX(-50%);
}

.status {
  width: fit-content;
  margin-bottom: 28px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.1);
  color: var(--gold);
  font-weight: 800;
}

.intro {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--soft);
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-actions,
.contact-band {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-action {
  background: var(--ink);
  color: #07101c;
  box-shadow: 0 18px 48px rgba(105, 231, 255, 0.2);
}

.primary-action:hover {
  background: var(--cyan);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.secondary-action:hover {
  border-color: rgba(105, 231, 255, 0.5);
  color: var(--ink);
}

.architecture-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.architecture-visual::before,
.architecture-visual::after {
  position: absolute;
  inset: 10%;
  content: "";
  border: 1px solid rgba(105, 231, 255, 0.18);
  transform: rotate(34deg);
}

.architecture-visual::after {
  inset: 22%;
  border-color: rgba(119, 240, 180, 0.16);
  transform: rotate(-18deg);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 18s linear infinite;
}

.orbit-one {
  width: 78%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 54%;
  aspect-ratio: 1;
  animation-duration: 26s;
  animation-direction: reverse;
}

.orbit::before {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.platform-core,
.node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.platform-core {
  left: 50%;
  top: 50%;
  width: min(240px, 70%);
  padding: 24px;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 70px rgba(105, 231, 255, 0.18);
}

.platform-core span,
.node span {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.platform-core strong {
  display: block;
  font-size: 1.3rem;
}

.ai-signal {
  position: absolute;
  right: 42px;
  top: calc(50% + 92px);
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(330px, calc(100% - 58px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(105, 231, 255, 0.08)),
    rgba(9, 14, 26, 0.82);
  box-shadow:
    0 0 36px rgba(255, 209, 102, 0.18),
    0 18px 52px rgba(0, 0, 0, 0.26);
  transform: translateY(0);
  backdrop-filter: blur(18px);
  animation: aiFloat 4.8s ease-in-out infinite;
}

.top-ai-signal {
  position: relative;
  inset: auto;
  width: min(560px, 100%);
  margin: 10px auto 6px;
  transform: none;
}

.ai-signal::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 18px;
  content: "";
  background: radial-gradient(circle, rgba(255, 209, 102, 0.2), transparent 62%);
  opacity: 0.85;
  animation: aiPulse 2.8s ease-in-out infinite;
}

.ai-orb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow:
    0 0 0 6px rgba(255, 209, 102, 0.12),
    0 0 28px rgba(255, 209, 102, 0.72);
}

.ai-signal-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-signal-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.3;
}

.ai-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.ai-bars span {
  width: 4px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(105, 231, 255, 0.5);
  animation: aiBars 1.2s ease-in-out infinite;
}

.ai-bars span:nth-child(1) {
  height: 12px;
}

.ai-bars span:nth-child(2) {
  height: 22px;
  animation-delay: 0.16s;
}

.ai-bars span:nth-child(3) {
  height: 16px;
  animation-delay: 0.32s;
}

.node {
  width: 180px;
  padding: 16px;
}

.node strong {
  display: block;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.35;
}

.node-cloud {
  left: 28px;
  top: 58px;
}

.node-local {
  right: 28px;
  top: 112px;
}

.node-ai {
  left: 44px;
  bottom: 92px;
}

.node-analytics {
  right: 42px;
  bottom: 58px;
}

.platform-band,
.contact-band {
  margin-bottom: 34px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.platform-band {
  display: grid;
  grid-template-columns: 0.86fr 1.3fr;
  gap: 38px;
}

h2 {
  max-width: 590px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 1;
}

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

.capability-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.capability-index {
  display: inline-block;
  color: var(--gold);
  font-size: 2.106rem;
  font-weight: 800;
  line-height: 1;
  transform: scaleY(1.2);
  transform-origin: left center;
}

h3 {
  margin: 48px 0 14px;
  font-size: 1.1rem;
}

.capability-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-band {
  justify-content: space-between;
}

.contact-band h2 {
  flex: 1 1 520px;
}

@keyframes rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes aiFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes aiPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes aiBars {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.58;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero,
  .platform-band {
    grid-template-columns: 1fr;
  }

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

  .architecture-visual {
    min-height: 460px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 26px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-option {
    flex: 1;
  }

  .top-ai-signal {
    width: 100%;
    margin: 0 0 8px;
  }

  .site-header nav a {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: clamp(3.6rem, 22vw, 5.8rem);
  }

  .intro {
    font-size: 1.02rem;
  }

  .hero-actions a,
  .contact-band a {
    width: 100%;
  }

  .architecture-visual {
    min-height: 520px;
  }

  .architecture-visual .ai-signal {
    right: 16px;
    top: calc(50% + 126px);
    grid-template-columns: auto 1fr;
  }

  .architecture-visual .ai-bars {
    display: none;
  }

  .node {
    width: 150px;
  }

  .node-cloud,
  .node-ai {
    left: 16px;
  }

  .node-local,
  .node-analytics {
    right: 16px;
  }
}

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