:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --surface-dark: #122442;
  --text: #142238;
  --text-muted: #53627b;
  --primary: #17305a;
  --primary-strong: #0d1d38;
  --secondary: #1dbca4;
  --accent: #f38c43;
  --border: rgba(20, 34, 56, 0.08);
  --shadow: 0 18px 48px rgba(16, 31, 54, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Assistant", sans-serif;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
  background:
    radial-gradient(circle at top left, rgba(29, 188, 164, 0.10), transparent 26%),
    radial-gradient(circle at top right, rgba(243, 140, 67, 0.10), transparent 24%),
    var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  transform-origin: right center;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 40;
  box-shadow: 0 0 18px rgba(29, 188, 164, 0.3);
  pointer-events: none;
  display: none;
}

.game-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: clip;
  mask-image: radial-gradient(ellipse at center, transparent 0 34%, rgba(0, 0, 0, 0.25) 48%, #000 62%, #000 100%);
  display: none;
}

.particle {
  position: absolute;
  opacity: 0.34;
  filter: drop-shadow(0 10px 16px rgba(16, 31, 54, 0.08));
  transform:
    translate3d(var(--particle-x, 0px), var(--particle-y, 0px), 0)
    rotate(var(--particle-rotate-z, 0deg))
    rotateY(var(--particle-rotate-y, 0deg))
    scale(var(--particle-scale, 1));
  transition: opacity 260ms ease, filter 260ms ease;
  will-change: transform, opacity;
}

.particle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.particle-coin {
  perspective: 900px;
}

.particle-coin img {
  transform:
    rotateY(var(--coin-spin, 0deg))
    rotateZ(var(--coin-roll, 0deg));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  filter: saturate(1.02) brightness(1.02);
}

.particle-ship {
  width: 78px;
  height: 78px;
}

.particle-ship-alt {
  width: 72px;
  height: 72px;
}

.particle-coin {
  width: 58px;
  height: 58px;
}

.particle-code {
  width: 64px;
  height: 64px;
}

.particle-one {
  top: 12%;
  left: 4%;
}

.particle-two {
  top: 20%;
  right: 8%;
}

.particle-three {
  top: 42%;
  left: 5%;
}

.particle-four {
  top: 58%;
  right: 5%;
}

.particle-five {
  top: 74%;
  left: 12%;
}

.particle-six {
  top: 86%;
  right: 18%;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  max-width: 100%;
  min-width: 0;
}

.page-orb,
.page-grid {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.page-orb {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.orb-one {
  top: -120px;
  right: -80px;
  background: rgba(29, 188, 164, 0.18);
}

.orb-two {
  bottom: -120px;
  left: -80px;
  background: rgba(243, 140, 67, 0.16);
}

.page-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 48, 90, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 48, 90, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 34, 56, 0.05);
}

@media (min-width: 781px) {
  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
  }

  main {
    padding-top: 78px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Heebo", sans-serif;
  color: var(--primary-strong);
  letter-spacing: -0.02em;
  min-width: 0;
  max-width: 100%;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(23, 48, 90, 0.14));
  transition: transform 220ms ease, filter 220ms ease;
}

.brand-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.brand-text strong {
  font-size: 1.5rem;
  font-weight: 900;
}

.brand-text small {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
  transform: translateY(-1px);
}

.site-nav a[data-nav-link]::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -0.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0.25);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav a.is-active {
  color: var(--primary-strong);
}

.site-nav a.is-active::after,
.site-nav a[data-nav-link]:hover::after,
.site-nav a[data-nav-link]:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary-strong);
  border-radius: 999px;
}

.hero {
  padding: 2rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 188, 164, 0.12);
  color: #0f786c;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.section-kicker-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hero h1,
.section-heading h2,
.teacher-copy h2,
.contact-copy h2 {
  font-family: "Heebo", sans-serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.7rem, 4.6vw, 4.5rem);
  line-height: 1.06;
  margin: 0.6rem 0 1rem;
  max-width: 14ch;
}

.hero-text,
.section-heading p,
.identity-line,
.teacher-copy p,
.contact-copy p,
.feature-card p,
.process-card p,
.track-text,
.track-list,
.project-copy p,
.faq-answer p {
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-text {
  font-size: 1.15rem;
  max-width: 62ch;
}

.hero-format {
  margin: 1rem 0 0;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.7;
}

.no-break {
  white-space: nowrap;
}

.identity-line {
  margin: -0.1rem 0 1rem;
  color: var(--primary);
  font-family: "Heebo", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.hero-copy,
.feature-card,
.process-card,
.track-card,
.project-copy,
.teacher-copy,
.contact-copy,
.faq-question,
.faq-answer p,
.contact-form,
.section-heading {
  text-align: right;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ff7a2c);
  color: #fff;
  box-shadow: 0 18px 32px rgba(243, 140, 67, 0.22);
  animation: ctaGlow 4.8s ease-in-out infinite;
}

.button-secondary {
  background: rgba(23, 48, 90, 0.08);
  color: var(--primary);
}

.button-full {
  width: 100%;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-muted);
  font-weight: 700;
}

.hero-points li::before {
  content: "";
  display: inline-block;
  inline-size: 10px;
  block-size: 10px;
  margin-inline-start: 0.55rem;
  border-radius: 999px;
  background: var(--secondary);
  vertical-align: middle;
}

.hero-mini-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.mini-card {
  min-width: 172px;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 48, 90, 0.08);
  box-shadow: 0 14px 30px rgba(16, 31, 54, 0.07);
  display: grid;
  gap: 0.18rem;
}

.mini-card strong {
  font-family: "Heebo", sans-serif;
  color: var(--primary);
}

.mini-card span:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.mini-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green {
  background: var(--secondary);
}

.dot-orange {
  background: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual > * {
  will-change: transform;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-text,
.hero-copy .hero-actions,
.hero-copy .hero-points,
.hero-copy .hero-mini-cards {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 720ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-copy h1 { animation-delay: 80ms; }
.hero-copy .hero-text { animation-delay: 160ms; }
.hero-copy .hero-actions { animation-delay: 240ms; }
.hero-copy .hero-points { animation-delay: 320ms; }
.hero-copy .hero-mini-cards { animation-delay: 400ms; }

.hero-photo-card {
  position: absolute;
  width: 180px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 42px rgba(16, 31, 54, 0.16);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.photo-card-top {
  top: 26px;
  left: 0;
  transform: rotate(-5deg);
}

.photo-card-bottom {
  right: 18px;
  bottom: 88px;
  width: 150px;
  transform: rotate(6deg);
}

.pixel-ring {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  animation: floaty 6s ease-in-out infinite;
}

.ring-one {
  top: -18px;
  right: 16px;
  width: 180px;
  height: 120px;
}

.ring-two {
  left: 18px;
  bottom: 92px;
  width: 120px;
  height: 120px;
  animation-delay: -2s;
}

.visual-panel {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.panel-large {
  inset: 0 0 auto auto;
  width: min(100%, 520px);
  background: linear-gradient(160deg, #203963, #0c1830);
  padding: 1.2rem;
  animation: heroPanelIn 820ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both;
}

.panel-code {
  left: 0;
  bottom: 40px;
  width: 240px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  backdrop-filter: blur(8px);
  animation: heroCardIn 860ms cubic-bezier(0.2, 0.7, 0.2, 1) 380ms both;
}

.visual-badge {
  position: absolute;
  right: 18px;
  bottom: 0;
  transform: translateY(45%);
  background: var(--surface);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow);
  font-weight: 800;
  animation: heroBadgeIn 780ms cubic-bezier(0.2, 0.7, 0.2, 1) 520ms both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 18%;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background:
    radial-gradient(circle, rgba(255, 216, 107, 0.95) 0 35%, transparent 36%),
    linear-gradient(90deg, transparent 44%, rgba(255, 216, 107, 0.95) 44% 56%, transparent 56%),
    linear-gradient(transparent 44%, rgba(255, 216, 107, 0.95) 44% 56%, transparent 56%);
  transform: rotate(18deg);
  opacity: 0.8;
  animation: sparkleFloat 4.8s ease-in-out infinite;
}

.screen-card,
.code-window {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
}

.screen-card {
  padding: 1rem;
}

.screen-card-photo {
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
}

.screen-card-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.screen-top {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.screen-top span {
  inline-size: 11px;
  block-size: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.game-preview {
  position: relative;
  min-height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #76c8ff 0%, #5d8df0 60%, #294c7f 100%);
}

.game-sun {
  position: absolute;
  top: 24px;
  right: 24px;
  inline-size: 70px;
  block-size: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffed9f 0%, #ffc857 65%, transparent 70%);
}

.game-mountain {
  position: absolute;
  bottom: 70px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.game-mountain.one {
  left: 30px;
  inline-size: 180px;
  block-size: 160px;
  background: rgba(30, 84, 133, 0.8);
}

.game-mountain.two {
  left: 140px;
  inline-size: 220px;
  block-size: 180px;
  background: rgba(17, 54, 94, 0.9);
}

.game-ground {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 88px;
  background:
    linear-gradient(180deg, rgba(85, 155, 89, 0.3), rgba(85, 155, 89, 0.3)),
    repeating-linear-gradient(
      90deg,
      #5b9658 0 34px,
      #689f60 34px 68px
    );
}

.game-player {
  position: absolute;
  left: 120px;
  bottom: 82px;
  inline-size: 36px;
  block-size: 58px;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, #ff9052, #d95622);
  box-shadow: 12px 0 0 -4px rgba(255, 255, 255, 0.15);
}

.code-window {
  padding: 1rem;
  background: linear-gradient(160deg, #f8fbff, #eef5fb);
}

.hero-info-card {
  padding: 1rem 1rem 0.9rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #f8fbff, #eef5fb);
  border: 1px solid rgba(23, 48, 90, 0.06);
}

.hero-info-title {
  margin: 0 0 0.7rem;
  color: var(--primary);
  font-family: "Heebo", sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.hero-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--text-muted);
  font-weight: 800;
}

.hero-info-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-info-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  flex: 0 0 10px;
}

section {
  padding: 5.5rem 0;
}

.section-heading {
  margin-bottom: 2.2rem;
  max-width: 760px;
  position: relative;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 216, 107, 0.22) 0 12%, transparent 13%),
    radial-gradient(circle, rgba(29, 188, 164, 0.14), transparent 68%);
  opacity: 0;
  transform: scale(0.45);
  pointer-events: none;
}

.section-heading h2,
.teacher-copy h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0.9rem 0 0.85rem;
}

.value-grid,
.tracks-grid,
.skills-grid,
.faq-list {
  display: grid;
  gap: 1.25rem;
}

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

.feature-card,
.process-card,
.track-card,
.project-card,
.skill-chip,
.contact-form,
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(29, 188, 164, 0.14), rgba(243, 140, 67, 0.04) 70%, transparent 100%);
  opacity: 1;
  pointer-events: none;
}

.feature-visual {
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 48, 90, 0.05);
  box-shadow: 0 14px 28px rgba(16, 31, 54, 0.06);
  position: relative;
  z-index: 1;
}

.feature-visual img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.section-kicker,
.project-card,
.feature-card,
.track-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.section-kicker {
  position: relative;
  overflow: hidden;
}

.section-kicker::before {
  content: "";
  inline-size: 12px;
  block-size: 12px;
  flex: 0 0 12px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.96) 38% 62%, transparent 62%),
    linear-gradient(transparent 38%, rgba(255, 255, 255, 0.96) 38% 62%, transparent 62%),
    linear-gradient(135deg, rgba(29, 188, 164, 0.95), rgba(243, 140, 67, 0.92));
  box-shadow: 0 0 0 5px rgba(29, 188, 164, 0.08);
  animation: pixelTwinkle 3.8s ease-in-out infinite;
}

.section-kicker:hover,
.project-card:hover,
.feature-card:hover,
.track-card:hover {
  transform: translateY(-2px);
}

.process-card:hover,
.project-card:hover,
.skill-chip:hover,
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 31, 54, 0.1);
}

@media (min-width: 781px) {
  .brand:hover .brand-logo,
  .brand:focus-visible .brand-logo {
    transform: rotate(-5deg) scale(1.04);
    filter: drop-shadow(0 16px 24px rgba(23, 48, 90, 0.18));
  }

  .hero-visual:hover .panel-large {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 22px 40px rgba(16, 31, 54, 0.14);
  }

  .hero-visual:hover .photo-card-top {
    transform: rotate(-7deg) translateY(-4px);
    box-shadow: 0 22px 40px rgba(16, 31, 54, 0.18);
  }

  .hero-visual:hover .photo-card-bottom {
    transform: rotate(8deg) translateY(-5px);
    box-shadow: 0 22px 40px rgba(16, 31, 54, 0.18);
  }
}

.feature-card h3,
.process-card h3,
.track-card h3,
.project-copy h3 {
  margin: 0 0 0.65rem;
  font-family: "Heebo", sans-serif;
  font-size: 1.35rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-grid::before {
  display: none;
}

.process-card {
  padding: 1.7rem;
}

.process-number {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 14px 28px rgba(29, 188, 164, 0.22);
  position: relative;
}

.process-number.accent {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(29, 188, 164, 0.22);
}

.process-number::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(29, 188, 164, 0.22);
  opacity: 0;
  transform: scale(0.88);
  animation: checkpointPulse 3.6s ease-out infinite;
}

.tracks-section {
  background: linear-gradient(180deg, rgba(18, 36, 66, 0.03), rgba(18, 36, 66, 0.00));
}

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

.track-card {
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.track-card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary), rgba(29, 188, 164, 0.08));
}

.track-card.featured {
  background: linear-gradient(180deg, #17305a, #132746);
  color: #fff;
}

.track-card.featured .track-text,
.track-card.featured .track-list,
.track-card.featured .track-age {
  color: rgba(255, 255, 255, 0.82);
}

.track-card.featured::after {
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.15));
}

.track-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(29, 188, 164, 0.1);
  color: #0f786c;
  font-size: 0.9rem;
  font-weight: 800;
}

.track-card.featured .track-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.track-age {
  margin: 0 0 0.45rem;
  font-weight: 800;
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  overflow: hidden;
}

.project-thumb {
  height: 220px;
}

.project-image-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #dfe8f6, #c8d6ea);
}

.project-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(18, 36, 66, 0.16));
}

.project-copy {
  padding: 1.35rem;
}

.skills-section {
  background: linear-gradient(180deg, rgba(29, 188, 164, 0.04), rgba(29, 188, 164, 0));
}

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

.skill-chip {
  padding: 1.15rem 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 48, 90, 0.06);
  box-shadow: 0 10px 28px rgba(16, 31, 54, 0.05);
}

.skill-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.teacher-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.teacher-photo {
  display: flex;
  justify-content: center;
}

.teacher-photo-frame {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1.1;
  border-radius: 32px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    linear-gradient(180deg, rgba(29, 188, 164, 0.16), rgba(243, 140, 67, 0.14)),
    linear-gradient(160deg, #f7fbff, #dceaf8);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  padding: 0.8rem;
}

.teacher-image {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
}

.teacher-points,
.track-list {
  line-height: 1.8;
}

.teacher-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 48, 90, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(16, 31, 54, 0.06);
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.6;
}

.testimonials-section {
  background: linear-gradient(180deg, rgba(23, 48, 90, 0.03), rgba(23, 48, 90, 0));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid rgba(23, 48, 90, 0.06);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: 0 14px 28px rgba(16, 31, 54, 0.06);
  position: relative;
}

.testimonial-card::before {
  content: "”";
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  font-family: "Heebo", sans-serif;
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(29, 188, 164, 0.18);
}

.testimonial-quote {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.9;
}

.testimonial-name {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(23, 48, 90, 0.05);
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: right;
  direction: rtl;
  padding: 1.35rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--secondary);
  line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  direction: rtl;
  text-align: right;
  transition: max-height 220ms ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.4rem;
  margin: 0;
}

.contact-section {
  background: linear-gradient(180deg, #132746, #0f1d38);
  color: #fff;
}

.contact-section .section-kicker,
.contact-section p,
.contact-section h2 {
  color: inherit;
}

.contact-section .section-kicker {
  background: rgba(255, 255, 255, 0.12);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-section .identity-line {
  color: #ffffff;
}

.contact-form {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.form-message {
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.form-message.is-success {
  background: rgba(29, 188, 164, 0.18);
  border: 1px solid rgba(29, 188, 164, 0.35);
  color: #dffcf5;
}

.form-message.is-error {
  background: rgba(243, 140, 67, 0.16);
  border: 1px solid rgba(243, 140, 67, 0.34);
  color: #fff0e4;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.field-error {
  color: #ffd0b2;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.86);
}

.contact-form input,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  min-height: 50px;
  padding: 0.8rem 0.95rem;
}

.contact-form input.is-invalid,
.contact-form select.is-invalid {
  border-color: rgba(255, 138, 91, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 138, 91, 0.14);
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.contact-form select option {
  color: var(--text);
}

.contact-direct {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-direct-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  width: fit-content;
  max-width: 100%;
  color: #fff;
  font-weight: 800;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, background 180ms ease;
}

.contact-direct-item:hover,
.contact-direct-item:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.contact-inline-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 42px;
}

.contact-inline-icon svg {
  width: 22px;
  height: 22px;
}

.whatsapp-item .contact-inline-icon {
  background: rgba(37, 211, 102, 0.2);
  color: #7ff1a6;
}

.reveal,
.reveal-card {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.reveal.is-visible,
.reveal-card.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.is-visible .section-heading::after {
  animation: none;
}

.reveal-card:nth-child(2) { transition-delay: 80ms; }
.reveal-card:nth-child(3) { transition-delay: 140ms; }
.reveal-card:nth-child(4) { transition-delay: 200ms; }
.reveal-card:nth-child(5) { transition-delay: 260ms; }
.reveal-card:nth-child(6) { transition-delay: 320ms; }

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroBadgeIn {
  from {
    opacity: 0;
    transform: translateY(56%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(45%) scale(1);
  }
}

@keyframes ctaGlow {
  0%, 100% {
    box-shadow: 0 18px 32px rgba(243, 140, 67, 0.22);
  }

  50% {
    box-shadow: 0 22px 38px rgba(243, 140, 67, 0.3);
  }
}

@keyframes checkpointPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.88);
  }

  20% {
    opacity: 0.5;
  }

  60% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes pixelTwinkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 0 5px rgba(29, 188, 164, 0.08);
  }

  50% {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 0 0 7px rgba(243, 140, 67, 0.10);
  }
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translateY(0) rotate(18deg) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-8px) rotate(28deg) scale(1.08);
    opacity: 1;
  }
}

@keyframes headingBurst {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(-10deg);
  }

  35% {
    opacity: 0.95;
    transform: scale(1.08) rotate(8deg);
  }

  100% {
    opacity: 0.36;
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-primary,
  .pixel-ring,
  .sparkle,
  .section-kicker::before,
  .process-number::after,
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .hero-text,
  .hero-copy .hero-actions,
  .hero-copy .hero-points,
  .hero-copy .hero-mini-cards,
  .panel-large,
  .panel-code,
  .visual-badge {
    animation: none !important;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .hero-text,
  .hero-copy .hero-actions,
  .hero-copy .hero-points,
  .hero-copy .hero-mini-cards,
  .panel-large,
  .panel-code,
  .visual-badge {
    opacity: 1 !important;
    transform: none !important;
  }

  .button,
  .process-card,
  .project-card,
  .skill-chip,
  .gallery-card,
  .feature-card,
  .track-card,
  .brand-logo,
  .site-nav a,
  .hero-photo-card,
  .visual-panel {
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .teacher-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid,
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .process-grid::before {
    display: none;
  }

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

  .hero-photo-card {
    width: 150px;
  }

  .teacher-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 30;
    background: rgba(245, 247, 251, 0.97);
  }

  main {
    padding-top: 72px;
  }

  .site-header,
  .site-nav,
  .hero-photo-card,
  .contact-direct-item {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .pixel-ring,
  .sparkle {
    animation: none;
  }

  .reveal,
  .reveal-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.is-visible .section-heading::after {
    animation: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    inset-inline: 1rem;
    top: calc(100% + 0.75rem);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.55rem 0;
  }

  .site-nav a[data-nav-link]::after {
    bottom: 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.4rem;
  }

  .hero {
    padding-top: 1.25rem;
  }

  .container {
    width: min(calc(100% - 1rem), calc(100vw - 1rem));
  }

  .header-inner {
    gap: 0.5rem;
    min-height: 72px;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100vw - 4.5rem);
    gap: 0.5rem;
  }

  .hero-grid {
    gap: 1.4rem;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.15rem, 9.4vw, 3.15rem);
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand-text strong {
    font-size: 1.05rem;
    line-height: 1.05;
  }

  .brand-text small {
    font-size: 0.7rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 1.8rem;
  }

  .hero-photo-card {
    width: 126px;
    border-radius: 20px;
  }

  .photo-card-top {
    display: none;
  }

  .photo-card-bottom {
    right: 10px;
    bottom: 1rem;
    width: 110px;
    z-index: 2;
  }

  .panel-large {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 0.8rem;
  }

  .panel-code {
    display: none;
  }

  .screen-card-photo img {
    min-height: 320px;
  }

  .visual-badge {
    display: none;
  }

  section {
    padding: 4rem 0;
  }

  .value-grid,
  .tracks-grid,
  .skills-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-cards {
    display: none;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }

  .hero-actions,
  .contact-form {
    gap: 0.8rem;
  }

  .button,
  .button-full {
    width: 100%;
  }

  .feature-card {
    padding: 1.35rem;
    text-align: center;
  }

  .feature-card::before {
    display: none;
  }

  .feature-visual {
    margin-inline: auto;
    margin-bottom: 0.9rem;
  }

  .scroll-progress {
    height: 3px;
  }

  .game-particles {
    opacity: 1;
    mask-image: none;
  }

  .particle {
    opacity: 0.68;
    filter: drop-shadow(0 14px 20px rgba(16, 31, 54, 0.16));
  }

  .particle-ship,
  .particle-ship-alt {
    width: 68px;
    height: 68px;
  }

  .particle-coin,
  .particle-code {
    width: 54px;
    height: 54px;
  }

  .particle-coin img {
    filter: saturate(1.14) brightness(1.12) drop-shadow(0 8px 14px rgba(22, 50, 88, 0.18));
  }

}

@media (max-width: 460px) {
  .hero-points {
    grid-template-columns: 1fr;
  }

  .screen-card-photo img {
    min-height: 290px;
  }

  .photo-card-bottom {
    width: 98px;
    bottom: 0.85rem;
  }

  .particle-three,
  .particle-six {
    display: none;
  }

  .particle {
    opacity: 0.6;
  }

  .game-particles {
    mask-image: none;
  }

  .particle-coin img {
    filter: saturate(1.18) brightness(1.14) drop-shadow(0 8px 16px rgba(22, 50, 88, 0.22));
  }

}
