:root {
  color-scheme: dark;
  --ink: #f4fbff;
  --muted: #8da5b6;
  --line: rgba(160, 196, 218, .14);
  --navy: #071523;
  --navy-soft: #0b2032;
  --cyan: #1bd6dc;
  --cyan-soft: #78f1e9;
  --blue: #3993ff;
  --violet: #947cff;
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 9%, rgba(27, 214, 220, .11), transparent 29%),
    radial-gradient(circle at 5% 88%, rgba(57, 147, 255, .12), transparent 31%),
    linear-gradient(145deg, #06121e 0%, #081b2b 48%, #06131f 100%);
  font-family: "Cairo", "Tajawal", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: .22;
  background-image:
    linear-gradient(rgba(143, 188, 214, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 188, 214, .09) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -2;
  border: 1px solid rgba(80, 211, 226, .14);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  position: absolute;
  inset: 13%;
  content: "";
  border: inherit;
  border-radius: inherit;
}

.ambient::after {
  inset: 29%;
}

.ambient-one {
  top: -28vw;
  left: -18vw;
  width: 61vw;
  aspect-ratio: 1;
  animation: orbit 22s linear infinite;
}

.ambient-two {
  right: -24vw;
  bottom: -38vw;
  width: 66vw;
  aspect-ratio: 1;
  border-color: rgba(89, 122, 255, .12);
  animation: orbit 30s linear infinite reverse;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1420px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px clamp(22px, 4.5vw, 72px) 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 55px;
  height: 55px;
  filter: drop-shadow(0 12px 25px rgba(23, 208, 215, .18));
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-copy small {
  margin-top: 6px;
  color: #7792a4;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .19em;
}

.platform-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 37px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a8bdca;
  background: rgba(10, 30, 47, .62);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.platform-state i,
.project-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3be1a5;
  box-shadow: 0 0 0 5px rgba(59, 225, 165, .09), 0 0 15px rgba(59, 225, 165, .52);
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(540px, 1.45fr);
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
  padding: 38px 0 28px;
}

.hero-copy {
  position: relative;
  max-width: 510px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
  color: var(--cyan-soft);
  font-size: 10px;
  font-weight: 800;
}

.eyebrow i {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.eyebrow b {
  color: #627e91;
  font-size: 8px;
  letter-spacing: .18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.1vw, 66px);
  line-height: 1.24;
  letter-spacing: -.055em;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(98deg, #f7fdff 8%, #71eee9 54%, #73adff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.hero-copy > p {
  max-width: 470px;
  margin: 23px 0 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #849daf;
  font-size: 9px;
  font-weight: 700;
}

.flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flow b {
  color: var(--cyan);
  font-size: 8px;
}

.flow i {
  color: #32546a;
  font-style: normal;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.project-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(69, 225, 229, .12), transparent 32%),
    linear-gradient(145deg, rgba(17, 44, 64, .86), rgba(7, 22, 35, .93));
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
  backdrop-filter: blur(18px);
  transform: translateZ(0);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.project-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .48;
  background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,.07) 48%, transparent 68%);
  transform: translateX(120%);
  transition: transform .7s ease;
}

.project-card::after {
  position: absolute;
  right: -52px;
  bottom: -56px;
  z-index: -2;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(102, 225, 231, .1);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px rgba(102, 225, 231, .025), inset 0 0 0 56px rgba(102, 225, 231, .018);
}

.project-card.printing {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(116, 114, 255, .14), transparent 32%),
    linear-gradient(145deg, rgba(22, 38, 67, .88), rgba(8, 21, 36, .94));
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(102, 232, 233, .36);
  box-shadow: 0 35px 100px rgba(0,0,0,.46), 0 0 0 1px rgba(50, 214, 220, .06);
  transform: translateY(-8px);
}

.project-card.printing:hover,
.project-card.printing:focus-visible {
  border-color: rgba(139, 139, 255, .4);
}

.project-card:hover::before,
.project-card:focus-visible::before {
  transform: translateX(-120%);
}

.project-card:focus-visible {
  outline: 3px solid rgba(112, 238, 233, .42);
  outline-offset: 4px;
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-number {
  color: #567286;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8da5b6;
  font-size: 9px;
  font-weight: 700;
}

.project-status i {
  width: 5px;
  height: 5px;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 44px 0 31px auto;
  border: 1px solid rgba(91, 225, 229, .24);
  border-radius: 25px;
  color: #62e5e5;
  background: linear-gradient(145deg, rgba(35, 182, 190, .14), rgba(14, 49, 68, .28));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 20px 42px rgba(0,0,0,.23);
}

.printing .project-icon {
  border-color: rgba(136, 132, 255, .27);
  color: #9c9eff;
  background: linear-gradient(145deg, rgba(100, 90, 235, .18), rgba(20, 39, 70, .31));
}

.project-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-content small {
  display: block;
  margin-bottom: 9px;
  color: #5a788b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.project-content h2 {
  margin: 0 0 13px;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -.04em;
}

.project-content p {
  margin: 0;
  color: #86a0b1;
  font-size: 11px;
  line-height: 1.9;
}

.card-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(137, 177, 200, .11);
  color: #d7e9f2;
  font-size: 10px;
  font-weight: 800;
}

.card-footer b {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #071a28;
  background: var(--cyan);
  font-size: 16px;
  transition: transform .3s ease;
}

.printing .card-footer b {
  color: white;
  background: linear-gradient(135deg, #857bff, #5194ff);
}

.project-card:hover .card-footer b,
.project-card:focus-visible .card-footer b {
  transform: translateX(-5px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 34px;
  color: #5d788a;
  font-size: 8px;
  font-weight: 600;
}

.footer-line {
  width: 28px;
  height: 1px;
  background: #29475a;
}

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

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 54px;
  }

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

  .hero h1 {
    font-size: clamp(38px, 7vw, 62px);
  }

  .projects {
    max-width: 820px;
  }

  .project-card {
    min-height: 395px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    display: block;
    padding: 17px 16px 18px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .platform-state {
    height: 33px;
    padding: 0 12px;
    font-size: 8px;
  }

  .hero {
    display: block;
    padding: 52px 0 24px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(34px, 11.2vw, 47px);
    line-height: 1.3;
  }

  .hero-copy > p {
    margin: 19px 0 23px;
    font-size: 11px;
  }

  .flow {
    margin-bottom: 36px;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-card {
    min-height: 320px;
    padding: 21px;
    border-radius: 23px;
  }

  .project-icon {
    width: 68px;
    height: 68px;
    margin: 27px 0 22px auto;
    border-radius: 20px;
  }

  .project-icon svg {
    width: 35px;
    height: 35px;
  }

  .project-content h2 {
    font-size: 22px;
  }

  .project-content p {
    font-size: 10px;
  }

  .card-footer {
    padding-top: 18px;
  }

  .footer {
    margin-top: 12px;
    min-height: 42px;
  }
}

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