:root {
  --brand-green: #17513f;
  --brand-gold: #b18a55;
  --bg-deep: #020308;
  --bg-soft: #050910;

  --text-main: #f9fafb;
  --text-muted: #a0a6b3;
  --border-soft: rgba(203, 176, 141, 0.35);

  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* الخلفية */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.bg-gradient {
  background:
    radial-gradient(circle at top, #08141a 0, var(--bg-deep) 48%, #000 100%);
  background-size: 200% 200%;
  animation: bgShift 16s ease-in-out infinite alternate;
}

.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.8;
}

.bg-orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -2;
}

.orb-left {
  top: -140px;
  left: -160px;
  background: radial-gradient(circle, var(--brand-green) 0%, transparent 65%);
}

.orb-right {
  bottom: -160px;
  right: -160px;
  background: radial-gradient(
    circle,
    rgba(203, 176, 141, 0.9) 0%,
    transparent 65%
  );
}

/* الهيدر */

.site-header {
  position: relative;
  padding: 20px 7vw 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.brand-badge {
    color: var(--brand-gold);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, #050b0f 0, #050910 60%);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
  animation: fadeDown 0.9s ease-out both;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.605));
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

body.lang-ar .brand-meta {
  align-items: flex-end;
  text-align: end;
}

body.lang-en .brand-meta {
  align-items: flex-start;
  text-align: start;
}

.brand-name-en {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-name-en + .brand-name-en {
  margin-top: 1px;
}

.brand-desc {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* سويتش اللغة */

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(5, 11, 15, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.lang-btn {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.lang-btn.active {
  background: linear-gradient(
    135deg,
    var(--brand-gold),
    rgba(255, 255, 255, 0.95)
  );
  color: #111827;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

/* الهيرو */

.hero {
  position: relative;
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 7vw 40px;
  z-index: 1;
}

.hero-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  transition: transform 0.25s ease-out;
}

/* watermark للشعار */
.hero-mark {
  position: absolute;
  inset: -60px;
  margin: auto;
  width: 340px;
  height: 340px;
  background-image: url("logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.06;
  filter: grayscale(30%);
  pointer-events: none;
}

/* إطار المحتوى */

.hero-frame {
  position: relative;
  border-radius: 32px;
  padding: 32px 30px 34px;
  background:
    radial-gradient(circle at top left, #050b0f 0, #050910 60%);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(24px);
  overflow: hidden;
  transform-style: preserve-3d;
  animation: frameIn 1s 0.3s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* خط متحرك حول الكارد */
.hero-frame::before {
  content: "";
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(203, 176, 141, 0.1) 60deg,
    transparent 120deg
  );
  animation: sweep 8s linear infinite;
  opacity: 0.8;
}

.hero-glow {
  position: absolute;
  inset: 1px;
  border-radius: 30px;
  border: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(
    circle at top,
    rgba(203, 176, 141, 0.12),
    transparent 60%
  );
  pointer-events: none;
}

/* المحتوى داخل الكارد */

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

/* شارة الحالة */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(5, 11, 15, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(14px);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s 0.7s ease-out forwards;
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand-gold);
  box-shadow: 0 0 0 0 rgba(203, 176, 141, 0.8);
  animation: pulseDot 1.6s infinite;
}

.pill-text {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* العنوان */

.hero-title {
  position: relative;
  margin: 0 0 10px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-main);
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  opacity: 0;
  animation: titleReveal 1.1s 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* نمط مختلف عندما اللغة عربية */
body.lang-ar .hero-title {
  font-family: "Tajawal", system-ui, sans-serif;
  letter-spacing: 0.1em;
}

.hero-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0,
    rgba(255, 255, 255, 0.9) 40%,
    transparent 80%
  );
  transform: translateX(-120%);
  mix-blend-mode: screen;
  animation: shine 2s 1.2s ease-out forwards,
             titleGlow 4s 2.4s ease-in-out infinite;
}

/* النص الصغير تحت العنوان */

.hero-sub {
  margin: 4px auto 0;
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s 1.2s ease-out forwards;
}

/* فوتر */

.site-footer {
  position: relative;
  padding: 18px 7vw 26px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 1;
}

.footer-text span {
  font-variant-numeric: tabular-nums;
}

/* هوفر بسيط */
.brand-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 1);
  transition: all 0.22s ease-out;
}

/* أنيميشن */

@keyframes bgShift {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 40% 60%;
  }
  100% {
    background-position: 100% 100%;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes frameIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(203, 176, 141, 0.9);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(203, 176, 141, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(203, 176, 141, 0);
  }
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
  }
  50% {
    text-shadow:
      0 0 24px rgba(203, 176, 141, 0.85),
      0 20px 60px rgba(0, 0, 0, 1);
  }
  100% {
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
  }
}

/* استجابة */

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .brand-badge {
    justify-content: space-between;
    width: 100%;
    max-width: none;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-mark {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 600px) {
  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-name-en {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .brand-desc {
    font-size: 0.76rem;
  }

  .hero-frame {
    padding: 26px 20px 26px;
  }

  .hero-sub {
    font-size: 0.88rem;
  }
}
