.hero-section{
  position:relative;
  width:100%;
  overflow:hidden;

  min-height:98vh;
  min-height:98svh;
  padding:clamp(84px, 8vw, 150px) 0 clamp(44px, 6vw, 78px);
  box-sizing:border-box;

  --c-cta:hsl(43 70% 42%);
  --c-cta-700:hsl(42 72% 35%);
  --c-cta-800:hsl(41 75% 28%);

  --hero-bg-blue:rgba(38,180,220,0.82);
  --hero-bg-blue-soft:rgba(38,180,220,0.26);
  --hero-bg-yellow:rgba(242,201,76,0.70);
  --hero-bg-yellow-soft:rgba(242,201,76,0.20);
  --hero-panel:rgba(255,255,255,0.86);
  --hero-panel-border:rgba(15,42,68,0.08);
  --hero-ink:#0F2A44;
}

.theme-dark .hero-section{
  --c-cta:hsl(45 95% 55%);
  --c-cta-700:hsl(44 85% 46%);
  --c-cta-800:hsl(43 80% 38%);

  --hero-bg-blue:rgba(34,112,148,0.70);
  --hero-bg-blue-soft:rgba(34,112,148,0.22);
  --hero-bg-yellow:rgba(196,154,38,0.55);
  --hero-bg-yellow-soft:rgba(196,154,38,0.18);
  --hero-panel:rgba(12,16,24,0.86);
  --hero-panel-border:rgba(255,255,255,0.10);
  --hero-ink:var(--c-ink);
  background-color: var(--c-bg);
}

@supports (min-height:100dvh){
  .hero-section{ min-height:98dvh; }
}

.hero-section::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;

  background:
    radial-gradient(1100px 850px at 0% 100%,
      var(--hero-bg-blue) 0%,
      var(--hero-bg-blue-soft) 40%,
      rgba(38,180,220,0.00) 72%
    ),
    radial-gradient(1100px 850px at 100% 0%,
      var(--hero-bg-yellow) 0%,
      var(--hero-bg-yellow-soft) 42%,
      rgba(242,201,76,0.00) 72%
    ),
    linear-gradient(120deg, rgba(255,255,255,0.78), rgba(255,255,255,0.34));

  filter:saturate(1.08);
}

.theme-dark .hero-section::before{
  background:
    radial-gradient(1100px 850px at 100% 0%,
      var(--hero-bg-yellow) 0%,
      var(--hero-bg-yellow-soft) 42%,
      rgba(196,154,38,0.00) 72%
    ),
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--c-bg) 92%, transparent),
      color-mix(in srgb, var(--c-bg-2) 70%, transparent)
    );

  filter:saturate(1.06);
}

.hero-section__bg-breath{
  position:absolute;
  inset:-22%;
  z-index:1;
  pointer-events:none;

  background:
    radial-gradient(1300px 1050px at 0% 100%,
      rgba(38,180,220,0.26) 0%,
      rgba(38,180,220,0.14) 45%,
      rgba(38,180,220,0.00) 78%
    ),
    radial-gradient(1300px 1050px at 100% 0%,
      rgba(242,201,76,0.22) 0%,
      rgba(242,201,76,0.12) 46%,
      rgba(242,201,76,0.00) 80%
    );

  filter:blur(40px);
  opacity:0.85;

  transform-origin:center;
  animation:heroCornerBreath 6.8s ease-in-out infinite;
  will-change:transform, opacity, filter;

  mix-blend-mode:multiply;
}

.theme-dark .hero-section__bg-breath{
  opacity:0.65;
  mix-blend-mode:screen;
}

@keyframes heroCornerBreath{
  0%,100%{
    transform:scale(0.98);
    opacity:0.70;
    filter:blur(42px);
  }
  50%{
    transform:scale(1.10);
    opacity:1;
    filter:blur(34px);
  }
}

.hero-section::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;

  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.55), rgba(255,255,255,0.00) 55%),
    radial-gradient(circle at 80% 90%, rgba(255,255,255,0.45), rgba(255,255,255,0.00) 55%),
    radial-gradient(2px 2px at 12% 22%, rgba(15,42,68,0.08) 50%, transparent 52%),
    radial-gradient(2px 2px at 32% 74%, rgba(15,42,68,0.06) 50%, transparent 52%),
    radial-gradient(2px 2px at 76% 38%, rgba(15,42,68,0.06) 50%, transparent 52%),
    radial-gradient(
      closest-side at 50% 50%,
      rgba(255,255,255,0.30),
      rgba(255,255,255,0.12) 60%,
      rgba(255,255,255,0.24)
    );

  opacity:0.95;
}

.theme-dark .hero-section::after{
  background:
    radial-gradient(
      closest-side at 50% 50%,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0.04) 60%,
      rgba(255,255,255,0.10)
    );
  opacity:0.55;
}

.hero-section__grid{
  position:relative;
  z-index:3;
  width:100%;
  margin:0;
  padding:clamp(28px, 4.4vw, 64px) clamp(18px, 4vw, 64px);

  display:grid;
  align-items:stretch;
  grid-template-columns:1fr 1.20fr;
  gap:clamp(30px, 4.2vw, 72px);
}

.hero-section__content{
  max-width:700px;
  height:100%;
  padding:clamp(22px, 3vw, 38px);
  border-radius:clamp(20px, 2.6vw, 32px);
  background:var(--hero-panel);
  border:1px solid var(--hero-panel-border);
  box-shadow:
    0 24px 60px rgba(15,42,68,0.10),
    inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}

.hero-section__title{
  font-size:clamp(1.95rem, 2.15vw + 1.10rem, 3.05rem);
  margin:0 0 .9rem;
  font-weight:950;
  letter-spacing:-.05em;
  line-height:1.08;
  color:var(--hero-ink);
}

.theme-dark .hero-section__title{
  color:var(--c-ink);
}

.hero-section__text{
  margin:0 0 clamp(24px, 2.6vw, 38px);
  color:rgba(15,42,68,0.80);
  font-size:clamp(16px, 1.25vw, 19px);
  line-height:1.7;
  max-width:58ch;
}

.theme-dark .hero-section__text{
  color:var(--c-ink-82);
}

.hero-section__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:14px 22px;
  border-radius:999px;
  align-self:flex-start;

  background:linear-gradient(135deg, var(--c-cta), var(--c-cta-700));
  color:#fff;
  font-weight:900;
  text-decoration:none;

  box-shadow:
    0 18px 56px color-mix(in srgb, var(--c-cta) 36%, transparent),
    inset 0 0 0 1px rgba(255,255,255,0.22);
  transition:transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change:transform;
}

.hero-section__cta:hover{
  color:#fff;
  transform:translateY(-3px) scale(1.03);
  box-shadow:
    0 28px 90px color-mix(in srgb, var(--c-cta) 44%, transparent),
    0 0 24px color-mix(in srgb, var(--c-cta-700) 34%, transparent);
  filter:saturate(1.15) contrast(1.06);
}

.hero-section__cta:visited{ color:#fff; }
.hero-section__cta:active{ color:#fff; }

.hero-section__tags{
  margin-top:clamp(26px, 3vw, 42px);
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-self:center;
  justify-content:center;
}

.hero-section__tag{
  --tag-color:var(--accent, #0B5BD3);
  display:inline-flex;
  align-items:center;
  gap:.45rem;

  padding:.38rem .95rem;
  border-radius:999px;

  font-size:.72rem;
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;

  background:color-mix(in srgb, var(--tag-color) 12%, rgba(255,255,255,0.92));
  border:1px solid color-mix(in srgb, var(--tag-color) 40%, rgba(15,42,68,0.10));
  color:color-mix(in srgb, var(--tag-color) 88%, #1b3a57);

  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  transition:transform 160ms ease, box-shadow 160ms ease;
}

.theme-dark .hero-section__tag{
  background:color-mix(in srgb, var(--accent, #4f8cff) 16%, rgba(10,14,22,0.70));
  border:1px solid color-mix(in srgb, var(--accent, #4f8cff) 45%, rgba(255,255,255,0.12));
  color:var(--accent-text, #dbe8ff);
}

.hero-section__tag::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--tag-color);
}

.hero-section__tag:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 26px color-mix(in srgb, var(--tag-color) 18%, transparent);
}

.hero-section__tag:nth-child(1){ --tag-color:var(--accent, #0B5BD3); }
.hero-section__tag:nth-child(2){ --tag-color:var(--c-cta); }
.hero-section__tag:nth-child(3){ --tag-color:color-mix(in srgb, var(--hero-bg-blue) 70%, #0b5bd3); }

.hero-visual{ width:100%; }

.hero-visual__media{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:clamp(320px, 38vw, 520px);
  padding:clamp(12px, 2vw, 24px);
  height:100%;
}

.hero-visual__img{
  position:relative;
  z-index:2;
  width:min(980px, 100%);
  max-width:980px;
  height:auto;
  border-radius:36px;
  box-shadow:0 26px 58px rgba(0,0,0,0.14);
}

.theme-dark .hero-visual__img{
  box-shadow:0 30px 70px rgba(0,0,0,0.55);
}
.hero-visual__video{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  max-width:980px;
  border-radius:36px;
  box-shadow:0 26px 58px rgba(0,0,0,0.14);
  display:block;
  object-fit:cover;
}

.theme-dark .hero-visual__video{
  box-shadow:0 30px 70px rgba(0,0,0,0.55);
}

/* Playful icon pattern (school vibe) */

.hero-visual__media::before{
  content:"";
  position:absolute;
  inset:clamp(10px, 2vw, 22px);
  border-radius:40px;
  background:linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.10));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.55);
  z-index:1;
  pointer-events:none;
}

.theme-dark .hero-visual__media::before{
  background:linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.12);
}
.hero-visual__placeholder{
  width:min(780px, 100%);
  height:420px;
  border-radius:28px;
  background:rgba(255,255,255,0.50);
  border:1px solid rgba(255,255,255,0.65);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    0 18px 50px rgba(15,42,68,0.10);

  display:flex;
  align-items:center;
  justify-content:center;

  color:rgba(15,42,68,0.65);
  font-size:14px;
  text-align:center;
  padding:18px;

  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.hero-visual__shape{
  position:absolute;
  pointer-events:none;
  z-index:4;
  transform-origin:center;
}

.hero-visual__shape--blob{
  left:clamp(-64px, -4vw, -28px);
  bottom:clamp(-64px, -4vw, -28px);
  animation:heroFloat 7.5s ease-in-out infinite;
}
.hero-visual__shape--yellow{
  top:clamp(-48px, -3vw, -18px);
  left:clamp(-48px, -3vw, -18px);
  animation:heroFloatSmall 6s ease-in-out infinite;
}
.hero-visual__shape--blue{
  right:clamp(-42px, -2.6vw, -12px);
  bottom:clamp(-34px, -2.8vw, -10px);
  animation:heroFloatSmall 6.8s ease-in-out infinite;
}

.hero-visual__shape svg{
  display:block;
  transform-origin:center;
}

.hero-visual__shape--blob svg{ transform:scale(1); }
.hero-visual__shape--yellow svg{ transform:scale(1); }
.hero-visual__shape--blue svg{ transform:scale(1); }

@keyframes heroFloat{
  0%{transform:translate(0,0) rotate(0deg);}
  50%{transform:translate(6px,-10px) rotate(2deg);}
  100%{transform:translate(0,0) rotate(0deg);}
}
@keyframes heroFloatSmall{
  0%{transform:translateY(0) rotate(0deg);}
  50%{transform:translateY(-8px) rotate(-2deg);}
  100%{transform:translateY(0) rotate(0deg);}
}

@media (max-width:1024px){
  .hero-section__grid{
    grid-template-columns:1fr;
    gap:clamp(26px, 5vw, 54px);
  }

  .hero-section__content{
    max-width:unset;
    text-align:center;
    margin:0 auto;
  }

  .hero-section__text{
    margin-left:auto;
    margin-right:auto;
  }

  .hero-section__cta{
    margin-left:auto;
    margin-right:auto;
  }

  .hero-section__tags{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
  }

  .hero-visual__shape--blob svg{ transform:scale(0.80); }
  .hero-visual__shape--yellow svg{ transform:scale(0.78); }
  .hero-visual__shape--blue svg{ transform:scale(0.78); }
}

@media (max-width:768px){
  .hero-visual__shape--blob svg{ transform:scale(0.64); }
  .hero-visual__shape--yellow svg{ transform:scale(0.62); }
  .hero-visual__shape--blue svg{ transform:scale(0.60); }
}

@media (max-width:480px){
  .hero-section{
    padding:clamp(74px, 12vw, 120px) 0 clamp(40px, 9vw, 66px);
  }

  .hero-visual__img{
    width:min(680px, 100%);
    max-width:680px;
  }

  .hero-visual__shape--blob svg{ transform:scale(0.54); }
  .hero-visual__shape--yellow svg{ transform:scale(0.52); }
  .hero-visual__shape--blue svg{ transform:scale(0.50); }
}

@media (prefers-reduced-motion:reduce){
  .hero-visual__shape{ animation:none !important; }
  .hero-section__bg-breath{ animation:none !important; }
}
