:root {
  --bg-dark: #09090b;
  --bg-panel: #1414196b;
  --text-main: #e4e4e7;
  --text-muted: #71717a;
  --accent: #ffffff;
  --border: #27272a;
}

body {
  font-family: "Courier New", Courier, monospace, Consolas, Monaco;
  background-color: #121215fc;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .content-panel {
  align-items: flex-end;
  text-align: right;
}

[dir="rtl"] .feature-card {
  text-align: right;
}

a {
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

.topbar {
  background-color: var(--bg-panel);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 70px;
  height: auto;
  filter: grayscale(20%);
}

.links {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.links a, .btn, .cta {
  background: #26c6da;
  color: #ffffff;
  width: 191px;
  height: 43px;
  font-size: 13px;
  box-shadow: 0 4px 12px #26c6daa6;
  line-height: 45px;
  text-align: center;
  transition: all .2s ease;
  border: none;
  border-radius: 5px;
}

.links a:hover,  .cta:hover {
  box-shadow: 0 6px 16px rgb(0 197 255);
   background-color: #26c6dab8;
   transform: translateY(-2px);
   color: #fff !important;
}

.cta {
  color: #3e3937 !important;
  border-bottom: 1px dashed var(--accent) !important;
}

.lang-select {
  background-color: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 0.3rem 0.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.burger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
}

.drawer {
  display: none;
  background-color: var(--bg-panel);
  border-bottom: 2px solid var(--accent);
}

.drawer.open {
  display: block;
}

.drawer a {
  display: block;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.hero {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.panel {
  background-color: #00000073;
  border: 1px solid rgb(255 255 255);
  border-radius: 27px;
  width: 885px;
  left: 70px;
  height: 306px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 85, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.content-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.2rem;
  /* align-content: center; */
  text-align: left;
  /* max-width: 100%; */
}

.hero-badge {
  display: inline-block;
  background-color: #FF9800;
  color: #fff;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 0 12px 12px rgb(0 0 0 / 40%);
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -1px;
  text-shadow: none;
  border-bottom: none;
  padding-bottom: 0;
  width: 100%;
}

h2, h3, h4 {
  font-family: inherit;
  color: var(--text-main);
}

p {
  color: #ffffff;
  font-size: 2rem;
  margin: 0;
  line-height: 1.6;
}

.lead em {
  color: var(--text-main);
  font-style: normal;
  font-weight: 600;
}

.btns {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
   background-color: #8bc34a;
   color: #fff !important;
   overflow: hidden;
   height: 42px;
   line-height: 42px;
   font-size: 0.85rem;
   padding: 0 1.2rem;
   box-sizing: border-box;
   border-radius: 8px;
   border: 0;
   outline: 0;
   box-shadow: 0 4px 12px rgb(173 255 0 / 30%);
   text-align: center;
   text-shadow: none;
   cursor: pointer;
   min-width: unset;
   display: inline-block;
   transition: all .2s ease;
   font-weight: bold;
}

.btn:hover {
   box-shadow: 0 6px 16px rgb(88 60 46 / 50%);
   background-color: #9cd15f;
   transform: translateY(-2px);
   color: #fff !important;
}

.shot {
  width: 100%;
  max-width: 100%;
  background-color: #101019bf;
  background-image: none;
  border: 1px solid rgb(255 85 0);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin: 0;
  box-sizing: border-box;
  height: 100%;
}

.game-preview img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 4rem 0;
}

.feature-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--accent);
  border-radius: 10%;
  padding: 2rem 1.5rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.25);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.feature-card p {
  font-size: 0.85rem;
  margin: 0;
}

footer {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 3rem 0 1.5rem;
}

.foot {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-section h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-logo {
  width: 60px;
}

.footer-section a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.footer-section a:hover {
  color: var(--text-main);
  padding-left: 0;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  background-color: var(--bg-dark);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.social-icon:hover {
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #ffffff;
}

.footer-mail {
  color: var(--text-main);
}

.footer-mail:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .features-grid, .footer-content {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2.1rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
/* ضبط الشكل النهائي للصورة الرئيسية */

.hero {
  display: block;
  width: min(940px, calc(100% - 28px));
  margin: 28px auto 40px;
  padding: 0;
}

.content-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  padding: 24px 28px 28px;
  border: 0;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.hero-brand-image {
  display: block;
  width: min(100%, 700px);
  max-height: 220px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55));
}

.hero-badge {
  margin: 0 auto;
}

.lead {
  max-width: 715px;
  margin: -19px auto 0;
  text-align: center;
}

.btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.panel {
  left: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 768px) {
  .hero {
    width: calc(100% - 20px);
    margin-top: 22px;
  }

  .content-panel {
    padding: 20px 14px 24px;
    border-radius: 18px;
  }

  .hero-brand-image {
    width: 100%;
    max-height: 145px;
  }

  .lead {
    font-size: 0.82rem;
  }

  .btns {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}


/* خلفية ثابتة ومتجاوبة مع تغيير حجم الصفحة والزوم */
html {
  min-height: 100%;
  background: #050609;
}

body {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  background: transparent;
  overflow-x: hidden;
}

/* طبقة الخلفية فوق لون الصفحة وتحت جميع عناصر الموقع */
#wormxo-bg {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100%;
  min-height: 100%;
  z-index: 0;
  pointer-events: none;
}

.topbar,
.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

