:root {
  --bg: #050807;
  --panel: #0c1210;
  --panel-2: #111a17;
  --line: rgba(157, 255, 174, 0.14);
  --text: #f7fff9;
  --muted: #a7b5ad;
  --soft: #d7e4db;
  --green: #49d35d;
  --green-2: #80f295;
  --orange: #f08a28;
  --blue: #5e9bff;
  --purple: #9a6cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

@font-face {
  font-family: "TIAArabicBody";
  src: url("../assets/fonts/alfont_com_All-Genders-Bold-v4.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "TIAArabicDisplay";
  src: url("../assets/fonts/A%20Thuluth.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 0%, rgba(73, 211, 93, 0.15), transparent 34rem),
    radial-gradient(circle at 0% 15%, rgba(94, 155, 255, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: "TIAArabicBody", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2 {
  font-family: "TIAArabicDisplay", "TIAArabicBody", Tahoma, Arial, sans-serif;
  font-weight: 400;
}

html[dir="rtl"] h1 {
  line-height: 1.22;
}

html[dir="rtl"] h2 {
  line-height: 1.3;
}

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

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

:focus-visible {
  outline: 3px solid rgba(128, 242, 149, 0.72);
  outline-offset: 4px;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 7, 0.88);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-text {
  display: block;
}

.brand img {
  width: 54px;
  height: auto;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 4px;
}

.brand-text span {
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 0.92rem;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 13px;
}

.nav-links a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(128, 242, 149, 0.45);
}

.btn.primary {
  border-color: rgba(73, 211, 93, 0.35);
  background: linear-gradient(180deg, #38c94e, #1f8f33);
  box-shadow: 0 12px 34px rgba(73, 211, 93, 0.22);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.88fr);
  gap: 54px;
  align-items: center;
  padding: 56px 0 34px;
}

.eyebrow {
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5.1vw, 4.95rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.05rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.lead {
  max-width: 620px;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
}

.trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(rgba(128, 242, 149, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 242, 149, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(73, 211, 93, 0.18);
  border-radius: 26px;
  transform: perspective(700px) rotateX(58deg) rotateZ(-18deg);
  background: rgba(73, 211, 93, 0.03);
}

.path-line {
  position: absolute;
  left: 18%;
  top: 52%;
  width: 62%;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  box-shadow: 0 0 24px rgba(73, 211, 93, 0.58);
  transform: rotate(-18deg);
}

.visual-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 94px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(19, 29, 25, 0.95), rgba(9, 15, 13, 0.95));
  color: var(--text);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  font-weight: 900;
}

.visual-node.web {
  right: 18%;
  top: 13%;
  color: var(--green-2);
}

.visual-node.mobile {
  left: 12%;
  top: 44%;
  color: var(--blue);
}

.visual-node.games {
  right: 14%;
  bottom: 24%;
  color: var(--orange);
}

.visual-flag {
  position: absolute;
  left: 50%;
  bottom: 13%;
  color: var(--green);
  font-weight: 900;
}

.loop-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(7, 12, 10, 0.82);
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.loop-steps span,
.stage-dot {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(73, 211, 93, 0.14);
  border: 1px solid rgba(73, 211, 93, 0.35);
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.goals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.roadmap-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(17, 26, 23, 0.96), rgba(9, 14, 12, 0.96));
  padding: 20px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(73, 211, 93, 0.34);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 24px rgba(73, 211, 93, 0.07);
}

.card p,
.detail-copy,
.muted {
  color: var(--muted);
  line-height: 1.62;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 800;
}

.roadmap-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(73, 211, 93, 0.95), rgba(35, 139, 50, 0.95));
  font-weight: 900;
}

.roadmap-card:nth-child(2) .roadmap-icon {
  background: linear-gradient(180deg, var(--purple), #5d3bb1);
}

.roadmap-card:nth-child(3) .roadmap-icon {
  background: linear-gradient(180deg, var(--orange), #a64f0e);
}

.stage-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.outcome-list,
.clean-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  color: var(--soft);
}

.outcome-list li,
.clean-list li {
  position: relative;
  padding-inline-start: 20px;
}

.outcome-list li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(73, 211, 93, 0.6);
}

html[dir="rtl"] .hero-visual::before {
  transform: perspective(700px) rotateX(58deg) rotateZ(18deg);
}

html[dir="rtl"] .path-line {
  transform: rotate(18deg);
}

html[dir="rtl"] .visual-node.web {
  left: 18%;
  right: auto;
}

html[dir="rtl"] .visual-node.mobile {
  right: 12%;
  left: auto;
}

html[dir="rtl"] .visual-node.games {
  left: 14%;
  right: auto;
}

html[dir="rtl"] .visual-flag {
  right: 50%;
  left: auto;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.workflow .card {
  text-align: center;
}

.labs-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: rgba(73, 211, 93, 0.45) transparent;
}

.lab-card {
  min-height: 172px;
}

.status-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
  align-items: stretch;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-list span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(73, 211, 93, 0.22);
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(73, 211, 93, 0.12), rgba(255, 255, 255, 0.04));
}

.footer {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-hero {
  padding: 56px 0 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 18px;
  align-items: start;
}

.stage-stack {
  display: grid;
  gap: 12px;
}

.stage-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}

.stage-detail {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.stage-detail strong {
  display: block;
  color: var(--green-2);
  margin-bottom: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.next-action {
  border-color: rgba(73, 211, 93, 0.26);
  background: linear-gradient(135deg, rgba(73, 211, 93, 0.12), rgba(255, 255, 255, 0.035));
}

.side-panel {
  position: sticky;
  top: 94px;
}

@media (max-width: 980px) {
  .hero,
  .detail-layout,
  .status-panel {
    grid-template-columns: 1fr;
  }

  .grid.goals,
  .grid.roadmap-cards,
  .grid.two,
  .grid.four,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-inner {
    min-height: 68px;
  }

  .brand img {
    width: 46px;
  }

  .brand span {
    display: none;
  }

  .brand-text {
    display: none;
  }

  .nav-links {
    gap: 4px;
    font-size: 0.82rem;
  }

  .nav-links a {
    padding: 9px 8px;
  }

  .nav-links a.optional {
    display: none;
  }

  .hero {
    padding: 34px 0 24px;
    gap: 26px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: 1.02;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-visual {
    min-height: 270px;
  }

  .visual-node {
    width: 68px;
    height: 50px;
    font-size: 0.76rem;
  }

  .loop-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .loop-card strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .loop-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-actions,
  .final-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 32px 0;
  }

  .section-head {
    display: block;
  }

  .grid.goals,
  .grid.roadmap-cards,
  .grid.two,
  .grid.four,
  .workflow,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .labs-row {
    grid-template-columns: repeat(6, minmax(210px, 78vw));
  }
}

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