:root {
  color-scheme: light;
  --brand-primary: #db352c;
  --brand-secondary: #ff7a3d;
  --brand-accent: #ff3c83;
  --text-primary: #0a0a0a;
  --text-secondary: #404040;
  --surface-50: #ffffff;
  --surface-100: #f7f7f9;
  --surface-200: #edf0f4;
  --surface-300: #e1e5eb;
  --font-body: "Cairo", "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 92, 90, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(86, 119, 255, 0.22), transparent 50%),
    linear-gradient(140deg, #fcfcfd 0%, #eef1f9 40%, #f7f8ff 100%);
  overflow-x: hidden;
  transition: background 600ms ease;
}

body:not(.page-ready) .page,
body:not(.page-ready) .grid-background {
  opacity: 0;
  transform: translateY(24px);
}

body.page-ready .page,
body.page-ready .grid-background {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease 120ms, transform 480ms ease 120ms;
}

.grid-background {
  position: fixed;
  inset: 0;
  background: linear-gradient(
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.92)
    ),
    radial-gradient(circle at 10% 20%, rgba(219, 53, 44, 0.12), transparent 40%),
    linear-gradient(
      120deg,
      rgba(219, 53, 44, 0.16) 0%,
      rgba(219, 53, 44, 0.04) 30%,
      transparent 70%
    );
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent);
  pointer-events: none;
  z-index: -2;
}

.grid-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0;
  transition: opacity 1200ms ease 250ms, transform 1800ms ease;
  pointer-events: none;
  z-index: -3;
}

.orb--one {
  width: 420px;
  height: 420px;
  top: -12%;
  right: 12%;
  background: radial-gradient(circle, rgba(255, 60, 131, 0.5), transparent 65%);
}

.orb--two {
  width: 360px;
  height: 360px;
  bottom: -18%;
  left: 10%;
  background: radial-gradient(circle, rgba(255, 92, 90, 0.45), transparent 70%);
}

.orb--three {
  width: 300px;
  height: 300px;
  top: 35%;
  left: 65%;
  background: radial-gradient(circle, rgba(86, 119, 255, 0.4), transparent 65%);
}

body.page-ready .orb {
  opacity: 1;
  animation: float-orb 14s ease-in-out infinite;
}

.orb--two {
  animation-duration: 18s;
}

.orb--three {
  animation-duration: 20s;
}

.page {
  width: min(960px, 90vw);
  margin: 4rem auto;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  box-shadow: 0 45px 120px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  padding: clamp(2.5rem, 4vw + 1rem, 4rem);
  position: relative;
  overflow: hidden;
}

.page::after {
  content: "";
  position: absolute;
  inset: 48% -20% -50% 40%;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.25), transparent 70%);
  filter: blur(90px);
  opacity: 0.75;
  z-index: -1;
}

.page::before {
  content: "";
  position: absolute;
  inset: -30% 30% 55% -20%;
  background: radial-gradient(circle, rgba(255, 60, 131, 0.22), transparent 60%);
  filter: blur(100px);
  opacity: 0.75;
  z-index: -1;
}

.page__header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(2rem, 1.5vw + 1rem, 3rem);
  position: relative;
  padding-inline: clamp(0rem, 2vw, 1.5rem);
}

.brand-logo {
  height: auto;
  width: clamp(260px, 42vw, 420px);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.lang-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: clamp(0rem, 2vw, 1.5rem);
  transform: translateY(-50%);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.lang-toggle:hover {
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.lang-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6),
    0 0 0 8px rgba(219, 53, 44, 0.35);
}

.hero {
  display: grid;
  gap: 1.5rem;
}

.programs {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.25rem;
}

.programs__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--text-primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.programs__title::after {
  content: "";
  display: block;
  height: 2px;
  width: 72px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-accent));
  margin-inline-start: 0.75rem;
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.program-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.6rem 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base), background var(--transition-base);
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.18);
  border-color: rgba(255, 60, 131, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

.program-card::before,
.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.program-card::before {
  background: radial-gradient(
      circle at top,
      rgba(255, 92, 90, 0.35),
      transparent 65%
    ),
    radial-gradient(circle at bottom, rgba(123, 47, 247, 0.28), transparent 60%);
}

.program-card::after {
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.program-card:hover::before,
.program-card:hover::after {
  opacity: 1;
}

.program-card__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 60, 131, 0.45), rgba(255, 60, 131, 0)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.1));
  color: var(--brand-primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 92, 90, 0.25),
    0 16px 30px rgba(255, 60, 131, 0.18);
}

.program-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  transition: transform var(--transition-base), filter var(--transition-base);
}

.program-card__icon i {
  font-size: 24px;
}

.program-card:hover .program-card__icon img {
  transform: scale(1.08);
}

.program-card__title {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-primary);
  text-align: center;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 92, 90, 0.15), rgba(255, 60, 131, 0.18));
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.75rem;
  width: fit-content;
  box-shadow: inset 0 0 0 1px rgba(255, 92, 90, 0.2);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 12px rgba(219, 53, 44, 0.65);
}

.hero h1 {
  font-size: clamp(3.1rem, 7vw, 5rem);
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
  background: linear-gradient(120deg, #090909 0%, #ff2f68 60%, #7b2ff7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.5vw + 0.7rem, 1.3rem);
  color: rgba(10, 10, 10, 0.72);
  margin: 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 24px 60px rgba(15, 23, 42, 0.16);
}

.countdown__segment {
  display: grid;
  gap: 0.4rem;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: transform var(--transition-base), border-color var(--transition-base);
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 92, 90, 0.18);
}

.countdown__segment:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 60, 131, 0.45);
}

.countdown__segment::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(255, 60, 131, 0.45),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.countdown__segment:hover::after {
  opacity: 1;
}

.countdown__value {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
}

.countdown__label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(10, 10, 10, 0.6);
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.notify-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.notify-form input::placeholder {
  color: rgba(64, 64, 64, 0.6);
}

.notify-form input:focus-visible {
  outline: none;
  border-color: rgba(219, 53, 44, 0.8);
  box-shadow: 0 0 0 3px rgba(219, 53, 44, 0.25);
}

.notify-form button {
  padding: 1rem 2.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, var(--brand-primary), #f05a51);
  color: var(--surface-50);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 16px 40px rgba(219, 53, 44, 0.35);
}

.notify-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(219, 53, 44, 0.4);
}

.notify-form button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6),
    0 0 0 8px rgba(219, 53, 44, 0.35);
}

.page__footer {
  margin-top: clamp(2rem, 2vw + 1rem, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.social-links a {
  color: rgba(10, 10, 10, 0.7);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
  transition: color var(--transition-base);
}

.social-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px 0;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.social-links a:hover {
  color: var(--text-primary);
}

.social-links a:hover::after {
  transform: scaleX(1);
}

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(10, 10, 10, 0.55);
}

[dir="rtl"] .hero {
  text-align: right;
}

[dir="ltr"] .hero {
  text-align: left;
}

[dir="rtl"] .programs__title {
  flex-direction: row-reverse;
}

[dir="rtl"] .programs__title::after {
  order: -1;
  margin-inline-start: 0;
  margin-inline-end: 0.75rem;
}

[dir="rtl"] .notify-form {
  direction: rtl;
}

[dir="ltr"] .notify-form {
  direction: ltr;
}

[dir="rtl"] .notify-form input,
[dir="rtl"] .notify-form button {
  text-align: right;
}

body.lang-ar .badge,
body.lang-ar .notify-form button,
body.lang-ar .countdown__label,
body.lang-ar .social-links a {
  text-transform: none;
  letter-spacing: 0.02em;
}

body.lang-en .badge,
body.lang-en .notify-form button,
body.lang-en .social-links a {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.lang-en .countdown__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.orb--one,
.orb--two,
.orb--three {
  transform-origin: center;
}

.orb--one {
  animation-delay: 0.2s;
}

.orb--two {
  animation-delay: 0.6s;
}

.orb--three {
  animation-delay: 1s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -30px, 0) scale(1.08);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .page {
    margin: 2.5rem auto;
    padding: clamp(1.8rem, 6vw, 2.4rem);
  }

  .notify-form {
    grid-template-columns: 1fr;
  }

  .notify-form button {
    width: 100%;
  }
}

