:root {
  --bg: #060711;
  --surface: rgba(17, 19, 36, 0.72);
  --text: #f7f7fb;
  --muted: #a7a9ba;
  --line: rgba(255, 255, 255, 0.1);
  --purple: #8b5cf6;
  --green: #3bd671;
  --cyan: #22c6e5;
  --orange: #ff8b3d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(95, 69, 167, 0.26), transparent 36rem),
    radial-gradient(circle, rgba(139, 128, 214, .18) 1.2px, transparent 1.5px) 0 0 / 36px 36px,
    var(--bg);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at center, transparent 20%, rgba(6, 7, 17, .5) 72%, rgba(6, 7, 17, .9) 100%);
}

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

#space {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.ambient {
  position: fixed;
  z-index: 1;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .12;
  pointer-events: none;
}

.ambient-one { top: 25%; left: -10rem; background: var(--cyan); }
.ambient-two { top: 65%; right: -10rem; background: var(--purple); }

.site-header,
main,
footer {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; direction: ltr; gap: 10px; }

.brand-mark {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 10px 28px rgba(0,0,0,.3);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand-copy { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; letter-spacing: 3px; line-height: 1.2; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 0; }

nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
nav > a:first-child { color: var(--muted); transition: color .25s; }
nav > a:first-child:hover { color: var(--text); }

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.04);
  transition: background .25s, border-color .25s;
}
.nav-cta:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }

.hero {
  position: relative;
  display: flex;
  min-height: 675px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 100px;
  isolation: isolate;
}

.hero-badge,
.eyebrow {
  color: #bbb7d2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.035);
}

.hero-badge span { width: 7px; height: 7px; border-radius: 50%; background: #68e894; box-shadow: 0 0 12px #68e894; }

.hero h1 {
  max-width: 760px;
  margin: 22px 0 20px;
  font-size: clamp(52px, 7.3vw, 94px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1.1;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(90deg, #a18aff, #72d7ff 80%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.hero > p { max-width: 590px; margin: 0 0 32px; color: var(--muted); font-size: 18px; line-height: 1.9; }

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-radius: 12px;
  color: #11121b;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 35px rgba(153,135,255,.15);
  transition: transform .25s, box-shadow .25s;
}
.hero-action:hover { transform: translateY(-3px); box-shadow: 0 16px 45px rgba(153,135,255,.28); }
.hero-action span { font-size: 18px; }

.hero-orbit {
  position: absolute;
  left: 5%;
  top: 50%;
  width: 270px;
  height: 270px;
  transform: translateY(-50%) rotateX(63deg) rotateZ(-12deg);
  transform-style: preserve-3d;
  pointer-events: none;
}

.orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(155,140,255,.28); border-radius: 50%; }
.ring-one { animation: orbit 12s linear infinite; }
.ring-one::after,
.ring-two::after { position: absolute; content: ""; width: 14px; height: 14px; border-radius: 50%; background: #9d89ff; box-shadow: 0 0 25px #917cff; top: 22%; left: 5%; }
.ring-two { inset: 45px; border-color: rgba(76,207,238,.28); animation: orbit 8s linear infinite reverse; }
.ring-two::after { width: 9px; height: 9px; top: 70%; left: 92%; background: #51d8f6; box-shadow: 0 0 20px #51d8f6; }
.orbit-core {
  position: absolute;
  inset: 85px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(148,126,255,.8), rgba(61,42,145,.4));
  box-shadow: inset 0 0 30px rgba(255,255,255,.12), 0 0 70px rgba(128,103,255,.4);
  font-size: 26px;
  font-weight: 700;
  transform: rotateZ(12deg) rotateX(-63deg) translateZ(30px);
}

@keyframes orbit { to { transform: rotateZ(360deg); } }

.products { padding: 100px 0 125px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.2; letter-spacing: -2px; }
.section-heading p { max-width: 360px; margin: 0 0 5px; color: var(--muted); font-size: 15px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; perspective: 1200px; }

.product-card {
  --accent: var(--purple);
  position: relative;
  display: flex;
  min-height: 430px;
  overflow: hidden;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(25,27,49,.88), rgba(11,12,24,.92));
  box-shadow: 0 20px 80px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.05);
  transform-style: preserve-3d;
  transition: border-color .35s, box-shadow .35s, transform .12s ease-out;
  will-change: transform;
}

.product-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 19%, transparent), transparent 38%);
  opacity: 0;
  transition: opacity .35s;
}

.product-card:hover { border-color: color-mix(in srgb, var(--accent) 42%, transparent); box-shadow: 0 28px 90px rgba(0,0,0,.4), 0 0 45px color-mix(in srgb, var(--accent) 9%, transparent); }
.product-card:hover::before { opacity: 1; }
.card-green { --accent: var(--green); }
.card-cyan { --accent: var(--cyan); }
.card-orange { --accent: var(--orange); }

.card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; direction: ltr; transform: translateZ(25px); }
.card-number { color: rgba(255,255,255,.28); font-size: 12px; letter-spacing: 2px; }
.launch-icon { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color .25s, background .25s, transform .25s; }
.product-card:hover .launch-icon { color: #07100a; background: var(--accent); transform: rotate(-8deg); }

.product-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 35px 0 24px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 21px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  box-shadow: inset 0 0 25px color-mix(in srgb, var(--accent) 8%, transparent), 0 12px 35px rgba(0,0,0,.25);
  transform: translateZ(42px);
}
.product-icon svg { width: 43px; height: 43px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card-copy { position: relative; z-index: 1; transform: translateZ(30px); }
.category { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.card-copy h3 { margin: 6px 0 8px; font-size: 25px; line-height: 1.4; }
.card-copy p { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.card-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 25px; color: #dfe0e8; font-size: 13px; font-weight: 600; transform: translateZ(30px); }
.card-link b { color: var(--accent); font-size: 18px; transition: transform .25s; }
.product-card:hover .card-link b { transform: translateX(-5px); }

.card-glow { position: absolute; width: 180px; height: 180px; left: -80px; bottom: -90px; border-radius: 50%; background: var(--accent); filter: blur(70px); opacity: .1; pointer-events: none; }

.closing { padding: 100px 0 140px; text-align: center; }
.closing h2 { margin: 12px 0 14px; font-size: clamp(45px, 7vw, 78px); line-height: 1.15; letter-spacing: -3px; }
.closing p { color: var(--muted); }

footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; color: var(--text); }
footer > a:last-child { direction: ltr; transition: color .2s; }
footer > a:last-child:hover { color: var(--text); }

@media (max-width: 820px) {
  .site-header, main, footer { width: min(100% - 32px, 650px); }
  .hero { min-height: 720px; justify-content: flex-start; padding-top: 100px; }
  .hero h1 { letter-spacing: -2.5px; }
  .hero-orbit { top: auto; right: 50%; bottom: 10px; left: auto; width: 210px; height: 210px; transform: translateX(50%) rotateX(63deg) rotateZ(-12deg); opacity: .85; }
  .orbit-core { inset: 66px; border-radius: 22px; }
  .ring-two { inset: 35px; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 410px; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: calc(100% - 28px); }
  .site-header { padding-block: 18px; }
  .brand-copy, nav > a:first-child { display: none; }
  nav { gap: 0; }
  .hero { min-height: 690px; padding-top: 80px; }
  .hero h1 { margin-top: 18px; font-size: 50px; letter-spacing: -2px; }
  .hero > p { font-size: 16px; }
  .products { padding-block: 75px 90px; }
  .product-card { min-height: 430px; padding: 23px; border-radius: 21px; }
  .section-heading h2 { font-size: 40px; }
  .closing { padding-block: 70px 100px; }
  .closing h2 { font-size: 47px; }
  footer { min-height: 150px; flex-wrap: wrap; justify-content: center; gap: 12px 24px; padding-block: 25px; }
  footer p { width: 100%; margin: 0; text-align: center; order: 3; }
}

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