@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@500;700;800;900&display=swap');

:root {
  color-scheme: light;
  --bg-start: #f4f7ff;
  --bg-end: #ffffff;
  --bg-glow-1: rgba(79, 172, 254, 0.15);
  --bg-glow-2: rgba(30, 58, 138, 0.12);
  --primary: #1e3a8a;
  --primary-strong: #0f245d;
  --primary-soft: #2a4aa3;
  --accent: #4facfe;
  --accent-strong: #7fb7ff;
  --line: #2b5fd1;
  --ink: #1e3a8a;
  --ink-strong: #0f245d;
  --ink-soft: #2a4aa3;
  --text-on-dark: #ffffff;
  --text-subtle: #dbeafe;
  --surface-1: rgba(255, 255, 255, 0.85);
  --surface-2: rgba(255, 255, 255, 0.9);
  --surface-3: #ffffff;
  --border-strong: rgba(79, 172, 254, 0.35);
  --border-soft: rgba(79, 172, 254, 0.25);
  --shadow-1: rgba(2, 6, 23, 0.12);
  --shadow-2: rgba(2, 6, 23, 0.2);
  --shadow-3: rgba(2, 6, 23, 0.35);
  --card-grad-1: #1e3a8a;
  --card-grad-2: #152f73;
  --card-grad-3: #0f245d;
  --card-grad-4: #2563eb;
  --nav-link: #0056b3;
  --nav-hover-bg: #062294;
  --nav-hover-text: #ffffff;
  --cta-bg: #ffffff;
  --cta-text: #007bff;
  --toggle-bg: rgba(255, 255, 255, 0.9);
  --toggle-border: rgba(79, 172, 254, 0.35);
  --toggle-icon: #1e3a8a;
  --toggle-shadow: rgba(2, 6, 23, 0.18);
  --edu-violet: #7c4dff;
  --edu-violet-soft: rgba(124, 77, 255, 0.14);
  --edu-gold: #f2b919;
  --edu-gold-soft: rgba(242, 185, 25, 0.16);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-start: #0b1227;
  --bg-end: #050816;
  --bg-glow-1: rgba(79, 172, 254, 0.08);
  --bg-glow-2: rgba(30, 58, 138, 0.18);
  --primary: #dbeafe;
  --primary-strong: #f8fafc;
  --primary-soft: #b7d4ff;
  --accent: #7fb7ff;
  --accent-strong: #9ac5ff;
  --line: #4c7dff;
  --ink: #dbeafe;
  --ink-strong: #f8fafc;
  --ink-soft: #b7d4ff;
  --text-on-dark: #f8fafc;
  --text-subtle: #b7d4ff;
  --surface-1: rgba(12, 20, 45, 0.9);
  --surface-2: rgba(15, 26, 58, 0.92);
  --surface-3: #0f1a3a;
  --border-strong: rgba(127, 183, 255, 0.35);
  --border-soft: rgba(127, 183, 255, 0.22);
  --shadow-1: rgba(0, 0, 0, 0.45);
  --shadow-2: rgba(0, 0, 0, 0.6);
  --shadow-3: rgba(0, 0, 0, 0.75);
  --card-grad-1: #0b1a3a;
  --card-grad-2: #122a5a;
  --card-grad-3: #0a1634;
  --card-grad-4: #1d4ed8;
  --nav-link: #dbeafe;
  --nav-hover-bg: #1e3a8a;
  --nav-hover-text: #ffffff;
  --cta-bg: #0f1a3a;
  --cta-text: #dbeafe;
  --toggle-bg: rgba(15, 26, 58, 0.92);
  --toggle-border: rgba(127, 183, 255, 0.4);
  --toggle-icon: #dbeafe;
  --toggle-shadow: rgba(0, 0, 0, 0.55);
  --edu-violet: #b79bff;
  --edu-violet-soft: rgba(183, 155, 255, 0.16);
  --edu-gold: #ffd96b;
  --edu-gold-soft: rgba(255, 217, 107, 0.2);
}

/* Navbar te3 contacts ect... */
.navbar {
  position: fixed;
  top: 0;
  right: 0; 
  width: 100%;
  background: lch(0% 0 0 / 0); 
  box-shadow: 0 4px 10px var(--shadow-1);
  z-index: 20; 
  font-family: 'Segoe UI', system-ui, sans-serif;
  
  font-family: 'Poppins', sans-serif;


}

.navbar .container {
  display: flex;
  justify-content: flex-end; 
  padding: 15px 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px; 
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--nav-link);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
}




/* تأثير */
.nav-links li a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--nav-link);
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
  font-weight: 600;
  display: inline-block;
  position: relative;
}


.nav-links li a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: var(--nav-hover-bg); 
  border-radius: 10px;
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.nav-links li a:hover::before {
  height: 100%; 
}

.nav-links li a:hover {
  color: var(--nav-hover-text);
  transform: translateY(-6px); 
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35); 
}

@media (max-width: 768px) {
  .navbar .container {
    justify-content: center;
    padding: 10px 12px;
  }

  .nav-links {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links li a {
    font-size: 0.92rem;
    padding: 6px 10px;
  }

  .hero-steps {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .hero-steps::before {
    display: none;
  }

  .ai-contact {
    width: min(92vw, 260px);
    right: 8px;
  }
}








*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

@media (max-width: 900px) {
  .page-hero {
    margin: 60px 0 22px;
    padding: 0 16px;
  }

  .page-title {
    font-size: 2.4rem;
    padding: 10px 18px;
    max-width: 100%;
  }

  .page-subtitle {
    font-size: 1rem;
    padding: 8px 16px;
    width: auto;
    max-width: 100%;
  }

  .lesson-wrap {
    padding: 18px 4% 72px;
    max-width: 920px;
  }

  .lesson-card {
    padding: 24px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .lesson-text {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .table-wrap {
    margin: 16px 0;
  }

  .table-wrap table {
    min-width: 0;
  }

  .bit-cell {
    width: 48px;
    height: 48px;
  }

  .conv-row,
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-hero {
    margin: 50px 0 18px;
  }

  .page-title {
    font-size: 2rem;
    padding: 10px 14px;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .lesson-wrap {
    padding: 16px 4% 60px;
  }

  .lesson-card {
    padding: 20px;
    border-radius: 18px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .lesson-text,
  .layout p,
  .status-bar,
  .sim-title {
    font-size: 1rem;
  }

  .part {
    padding: 10px 14px;
  }

  .bit-cell {
    width: 44px;
    height: 44px;
  }

  .hero,
  .intro-container,
  .intro-box,
  .intro-bbox {
    padding: 18px;
  }

  .phases-row,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .hero-sub {
    margin: 16px auto 30px auto;
  }
}

body {
  background: radial-gradient(1200px 600px at 20% -10%, var(--bg-glow-1), transparent 60%),
              radial-gradient(1200px 600px at 80% -10%, var(--bg-glow-2), transparent 60%),
              linear-gradient(180deg, var(--bg-start), var(--bg-end));
  color: var(--ink);
  transition: background 0.4s ease, color 0.3s ease;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* ===== نولي للخلف ===== */
.back-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
  box-shadow: 0 12px 28px var(--shadow-2);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.22);
}

@media (max-width: 768px) {
  .back-btn {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
  }
}


h1 {
  position: absolute;
  top: 25px;
  width: 100%;
  text-align: center;
  font-size: 3rem;
  color: var(--primary);
  letter-spacing: 2px;
  z-index: 10;
}


canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}


/* logo*/ 
.logo{
font-size:50px;
font-weight: 900;
text-align: center;
margin-top: 90px;
direction: ltr;
letter-spacing: 3px;
position: relative;
z-index: 5;
}
.logo span{
display: inline-block;
opacity: 0;
transform: translateY(-40px);
text-shadow: 0  0  8px #4facfe, 0  0  18px #0077fe;
animation:dropGlow.8s ease forwards;
}
@keyframes dropGlow{
    to{opacity: 1;transform:translateY(0);}
}

/* تأثير كي تجوز الماوس */
.logo:hover {
  color: #0056b3;
  transform: scale(1.05);
  transition: 0.3s ease-in-out;
}

/* ===== Hero te3 lcare ===== */
.hero-sub {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 20px auto 40px auto;
  padding: 0 16px;
  text-align: center;
}

.hero-sub > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.8s ease forwards;
}

.hero-sub .hero-lead {
  animation-delay: 0.1s;
}

.hero-sub .hero-badges {
  animation-delay: 0.25s;
}

.hero-sub .hero-steps {
  animation-delay: 0.4s;
}



.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badges span {
  background: var(--surface-1);
  color: var(--primary);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
}

.hero-steps {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  position: relative;
  padding: 6px 0;
}

.hero-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
  opacity: 0.7;
}

.hero-steps span {
  position: relative;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px var(--shadow-1);
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-lead {
    font-size: 1.05rem;
  }
}

/* ===== care yroh l right ===== */
.intro-container,
.intro-box,
.intro-bbox {
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 45px var(--shadow-2);
  backdrop-filter: saturate(115%);
  background-size: 200% 200%;
  animation: glowShift 12s ease-in-out infinite;
}

.axis-box,
.axis-card,
.card {
  background-size: 200% 200%;
  animation: glowShift 14s ease-in-out infinite;
  border: 1px solid var(--border-soft);
}

.intro-section {
  margin-top: 160px;
}

.intro-left-image {
  margin: 80px 0;
}

@media (max-width: 900px) {
  .intro-section {
    margin-top: 120px;
  }
  .intro-left-image {
    margin: 50px 0;
  }
}

/* ===== Title Underline ===== */
.intro-text h2,
.intro-content h2,
.card h3,
.axis-card h3 {
  position: relative;
  display: inline-block;
  font-family: 'Tajawal', sans-serif;
}

.intro-text h2::after,
.intro-content h2::after,
.card h3::after,
.axis-card h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 10px auto 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), var(--primary));
  box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s ease;
}

.reveal.show .intro-text h2::after,
.reveal.show .intro-content h2::after {
  transform: scaleX(1);
}

.reveal.show .intro-text h2,
.reveal.show .intro-content h2 {
  animation: slideInRight 0.7s ease;
}

.card.show h3::after,
.axis-card.show h3::after {
  transform: scaleX(1);
}

/* ===== Image Motion (Keep Original Colors) ===== */
.intro-visual img,
.intro-image img,
.card img,
.axis-card img {
  filter: none;
  animation: floatSoft 7s ease-in-out infinite;
}

.card img {
  animation-duration: 6.5s;
}

.axis-card img {
  animation-duration: 7.5s;
}

/* ===== Glow Motion ===== */
@keyframes glowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}






.ai-contact{
    position:absolute;
    top:45px;
    right:0;
    width:260px;
    background:linear-gradient(135deg,#050816,#1e3a8a);
    border:1px solid rgba(79,172,254,0.6);
    border-radius:18px;
    padding:15px;
    box-shadow:0 0 35px rgba(79,172,254,0.6);
    opacity:0;
    transform:translateY(-10px);
    pointer-events:none;
    transition:0.35s ease;
    z-index:999;
}

.ai-contact.active{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

@keyframes pulse{
    0%,100%{transform:scale(1)}
    50%{transform:scale(1.5)}
}

.ai-icons{
    display:flex;
    justify-content:space-between;
}

.icon{
    width:60px;
    height:60px;
    border-radius:16px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(79,172,254,0.4);
    transition:0.35s;
    cursor:pointer;
}

.icon svg{
    width:28px;
    height:28px;
    fill:white;
}

.icon:hover{
    transform:translateY(-6px) scale(1.08);
    box-shadow:0 0 20px rgba(79,172,254,0.8);
}

.insta:hover{
    background:linear-gradient(135deg,#fd1d1d,#833ab4);
}

.telegram:hover{
    background:linear-gradient(135deg,#0088cc,#00c6ff);
}

.facebook:hover{
    background:linear-gradient(135deg,#1877f2,#4facfe);
}




/* ===== Intro Section ===== */

.intro-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 140px;
}

.intro-container {
  width: 85%;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px),
    linear-gradient(135deg, var(--card-grad-1) 0%, var(--card-grad-2) 60%, var(--card-grad-3) 100%);
  border-radius: 20px;
  padding: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* النص */
.intro-text {
  flex: 1;
  color: var(--text-on-dark);

  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}



.intro-text h2 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}


.intro-text p {
  font-size: 1.4rem;
  line-height: 1.9;
  opacity: 0.95;
}


/* الصورة / الأيقونة */
.intro-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-visual img {
  max-width: 100%;
  height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

/* Responsive */
@media (max-width: 900px) {
  .intro-container {
    flex-direction: column;
    text-align: center;
  }

  .intro-visual img {
    height: 180px;
  }
}






/* =====  التصويرة يسار و النص يمين  ===== */

.intro-left-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.intro-box {
  width: 85%;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px),
    linear-gradient(135deg, var(--card-grad-1) 0%, var(--card-grad-2) 60%, var(--card-grad-3) 100%);
  border-radius: 20px;
  padding: 58px;
  display: flex;
  align-items: center;
  gap: 40px;
    z-index: 2;
}



.intro-bbox {
  width: 85%;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px),
    linear-gradient(135deg, var(--card-grad-1) 0%, var(--card-grad-2) 60%, var(--card-grad-3) 100%);
  border-radius: 20px;
  padding: 58px;
  display: flex;
  align-items: center;
  gap: 40px;
   
}

.section-sub {
  margin: 8px 0 14px 0;
  font-size: 1.1rem;
  color: var(--text-subtle);
  opacity: 0.95;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}








/* الصورة يسار */
.intro-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.intro-image img {
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

/* النص يمين */
.intro-content {
  flex: 1;
  direction: rtl;
  text-align: right;
  color: var(--text-on-dark);
  font-family: 'Cairo', sans-serif;
}

.intro-content h2 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  font-weight: 700;
}


.intro-content p {
  font-size: 1.4rem;
  line-height: 1.9;
  opacity: 0.95;
}


/* Responsive */
@media (max-width: 900px) {
  .intro-box {
    flex-direction: column;
    text-align: center;
  }

  .intro-content {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .intro-container, .intro-box {
    min-height: 250px; 
  }
}





/* ===== CTA Button ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 12px 20px;
  background-color: var(--cta-bg);
  color: var(--cta-text);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* السهم */
.cta-button .arrow {
  font-weight: bold;
  transition: transform 0.3s ease;
}

/* تأثير Hover */
.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-2);
}

.cta-button:hover .arrow {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 900px) {
  .cta-button {
    padding: 10px 18px;
    font-size: 1rem;
  }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--toggle-icon);
  box-shadow: 0 12px 28px var(--toggle-shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px var(--toggle-shadow);
}

.theme-toggle__icon {
  display: none;
  width: 20px;
  height: 20px;
}

.theme-toggle__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.theme-toggle__icon--moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

.theme-toggle--floating {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
}

@media (max-width: 768px) {
  .theme-toggle--floating {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

/* ===== Readability Layer For Educational Panels ===== */
.page :is(
  .hero,
  .section,
  .analogy-box,
  .why-box,
  .compare-box,
  .compare-card,
  .sim-section,
  .quiz-section,
  .builder,
  .builder-box,
  .quiz-card,
  .solution,
  .output-box,
  .flow-board,
  .algo-map,
  .level-panel,
  .detail-panel,
  .type-hero,
  .vs-box,
  .intro-container,
  .intro-box,
  .intro-bbox
) {
  position: relative;
  isolation: isolate;
}

.page :is(
  .hero,
  .section,
  .analogy-box,
  .why-box,
  .compare-box,
  .compare-card,
  .sim-section,
  .quiz-section,
  .builder,
  .builder-box,
  .quiz-card,
  .solution,
  .output-box,
  .flow-board,
  .algo-map,
  .level-panel,
  .detail-panel,
  .type-hero,
  .vs-box,
  .intro-container,
  .intro-box,
  .intro-bbox
)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(6, 16, 40, 0.16);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] .page :is(
  .hero,
  .section,
  .analogy-box,
  .why-box,
  .compare-box,
  .compare-card,
  .sim-section,
  .quiz-section,
  .builder,
  .builder-box,
  .quiz-card,
  .solution,
  .output-box,
  .flow-board,
  .algo-map,
  .level-panel,
  .detail-panel,
  .type-hero,
  .vs-box,
  .intro-container,
  .intro-box,
  .intro-bbox
)::after {
  background: rgba(2, 8, 24, 0.2);
}

.page :is(
  .hero,
  .section,
  .analogy-box,
  .why-box,
  .compare-box,
  .compare-card,
  .sim-section,
  .quiz-section,
  .builder,
  .builder-box,
  .quiz-card,
  .solution,
  .output-box,
  .flow-board,
  .algo-map,
  .level-panel,
  .detail-panel,
  .type-hero,
  .vs-box,
  .intro-container,
  .intro-box,
  .intro-bbox
) > * {
  position: relative;
  z-index: 1;
}
