:root{
  --bg:#030503;
  --panel:rgba(9,14,9,.92);
  --green:#7cf20c;
  --green-2:#a4ff1a;
  --text:#fff;
  --muted:rgba(255,255,255,.76);
  --soft:rgba(255,255,255,.56);
  --border:rgba(255,255,255,.16);
  --border-green:rgba(124,242,12,.38);
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  overflow-x:hidden;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 78% 16%, rgba(124,242,12,.20), transparent 31%),
    radial-gradient(circle at 18% 68%, rgba(31,106,0,.24), transparent 30%),
    linear-gradient(135deg,#010201,#061006 48%,#020302);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:radial-gradient(circle at center,#000,transparent 84%);
}
a{color:inherit;text-decoration:none}

.catalog-shell{
  position:relative;
  width:min(var(--max),calc(100% - 44px));
  margin:18px auto 24px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(12,18,12,.92),rgba(2,6,2,.90));
  box-shadow:0 28px 90px rgba(0,0,0,.42),0 0 60px rgba(124,242,12,.08);
}

.hero-courses{
  position:relative;
  min-height:250px;
  display:grid;
  place-items:center;
  padding:24px 24px 26px;
  text-align:center;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.48),rgba(0,0,0,.88)),
    radial-gradient(circle at 50% 10%,rgba(124,242,12,.14),transparent 38%),
    url('../img/home-header-wallpaper.png') center/cover no-repeat;
}
.hero-courses::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.22),rgba(2,8,2,.72));
}
.hero-inner{
  position:relative;
  z-index:1;
  width:min(780px,100%);
}
.home-logo{
  display:block;
  width:min(300px,52vw);
  max-height:220px;
  margin:0 auto;
  object-fit:contain;
  filter:drop-shadow(0 14px 24px rgba(0,0,0,.50));
}

.whatsapp-section{
  display:grid;
  justify-items:center;
  gap:18px;
  padding:28px 24px 34px;
  text-align:center;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(4,10,4,.92),rgba(2,7,3,.96));
}
.whatsapp-section p{
  max-width:620px;
  margin:0;
  color:rgba(255,255,255,.90);
  font-size:clamp(16px,2vw,20px);
  line-height:1.45;
}

.primary-cta,.course-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:56px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,var(--green),var(--green-2));
  color:#071006;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.3px;
  box-shadow:0 16px 42px rgba(124,242,12,.24);
}
.primary-cta::after,.course-button::after{
  content:'›';
  position:relative;
  z-index:2;
  font-size:24px;
  line-height:1;
}
.whatsapp-cta{
  position:relative;
  isolation:isolate;
  width:min(340px,100%);
  overflow:hidden;
  border:2px solid rgba(255,255,255,.26);
  background:linear-gradient(135deg,#72ff00 0%,#b8ff18 45%,#55e900 100%);
  background-size:220% 220%;
  box-shadow:0 0 0 0 rgba(124,242,12,.42),0 18px 48px rgba(124,242,12,.38),0 0 28px rgba(124,242,12,.32);
  animation:whatsappButtonPulse 1.05s ease-in-out infinite, whatsappGradientMove 2.2s ease-in-out infinite;
  will-change:transform,box-shadow,background-position,filter;
}
.whatsapp-cta::before{
  content:"";
  position:absolute;
  inset:-60% -35%;
  z-index:0;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.82) 47%,rgba(255,255,255,.34) 53%,transparent 70%);
  transform:translateX(-85%) rotate(8deg);
  animation:whatsappButtonShine 1.7s ease-in-out infinite;
  pointer-events:none;
}
.whatsapp-symbol{
  position:relative;
  z-index:2;
  width:26px;
  height:26px;
  object-fit:contain;
  animation:whatsappIconBounce 1.25s ease-in-out infinite;
}

.courses-section{padding:42px 46px 38px}
.section-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin-bottom:24px;
  color:#fff;
  font-size:18px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.section-title span{color:var(--green)}
.section-title::before,.section-title::after{
  content:"";
  width:72px;
  height:1px;
  opacity:.65;
  background:linear-gradient(90deg,transparent,var(--green));
}
.section-title::after{background:linear-gradient(90deg,var(--green),transparent)}
.courses-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.course-card{
  position:relative;
  min-height:350px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(14,18,14,.94),rgba(4,8,4,.94));
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.course-card:hover{
  transform:translateY(-4px);
  border-color:rgba(124,242,12,.54);
  box-shadow:0 18px 56px rgba(0,0,0,.34),0 0 28px rgba(124,242,12,.11);
}
.course-image{
  position:relative;
  height:185px;
  overflow:hidden;
  background:#071007;
}
.course-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.08) contrast(1.02);
}
.course-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(4,8,4,.98));
}
.course-icon{
  position:absolute;
  left:18px;
  bottom:-28px;
  z-index:2;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border:1px solid rgba(124,242,12,.55);
  border-radius:50%;
  background:rgba(8,18,8,.96);
  color:var(--green);
  font-size:30px;
  box-shadow:0 0 24px rgba(124,242,12,.14);
}
.course-body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:42px 18px 18px;
}
.course-body h2{
  margin:0 0 10px;
  font-size:var(--course-title-size, clamp(24px,2.5vw,32px));
  line-height:1;
  text-transform:none;
  letter-spacing:-.5px;
  color:var(--course-title-color,#fff);
}
.course-body h2 span{
  display:block;
  margin-top:8px;
  color:var(--course-subtitle-color,var(--green));
  font-size:.78em;
  letter-spacing:.2px;
}
.course-body p{
  margin:0;
  color:var(--course-description-color,var(--muted));
  font-size:var(--course-description-size, 14px);
  line-height:1.45;
}
.course-button{
  width:100%;
  min-height:48px;
  margin-top:auto;
  border:1px solid rgba(124,242,12,.55);
  background:rgba(124,242,12,.06);
  color:var(--green);
  box-shadow:none;
}
.course-button:hover{
  background:linear-gradient(135deg,var(--green),var(--green-2));
  color:#071006;
}

.catalog-footer{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:26px 24px 34px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.10);
}
.dev-credit{
  display:grid;
  justify-items:center;
  gap:8px;
  color:var(--soft);
  font-size:12px;
}
.dev-credit img{
  width:170px;
  max-height:44px;
  object-fit:contain;
}
.dev-credit small{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,.62);
  font-size:12px;
  line-height:1.4;
}

@keyframes whatsappButtonPulse{
  0%,100%{
    transform:translateY(0) scale(1);
    filter:brightness(1);
    box-shadow:0 0 0 0 rgba(124,242,12,.46),0 18px 48px rgba(124,242,12,.38),0 0 28px rgba(124,242,12,.32);
  }
  50%{
    transform:translateY(-3px) scale(1.045);
    filter:brightness(1.13);
    box-shadow:0 0 0 10px rgba(124,242,12,.10),0 26px 70px rgba(124,242,12,.56),0 0 46px rgba(124,242,12,.55);
  }
}
@keyframes whatsappGradientMove{
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}
@keyframes whatsappButtonShine{
  0%{transform:translateX(-90%) rotate(8deg);opacity:0}
  25%{opacity:1}
  62%,100%{transform:translateX(90%) rotate(8deg);opacity:0}
}
@keyframes whatsappIconBounce{
  0%,100%{transform:scale(1) rotate(0deg)}
  50%{transform:scale(1.12) rotate(-4deg)}
}

@media (max-width: 860px){
  .catalog-shell{
    width:min(420px,calc(100% - 20px));
    margin-top:10px;
    border-radius:18px;
  }
  .hero-courses{
    min-height:0;
    padding:10px 14px 12px;
    background-position:center;
  }
  .home-logo{
    width:min(220px,62vw);
    max-height:165px;
  }
  .whatsapp-section{
    padding:24px 18px 30px;
  }
  .whatsapp-section p{
    max-width:310px;
    font-size:15px;
  }
  .whatsapp-cta{
    width:min(315px,100%);
    min-height:52px;
    gap:10px;
    font-size:13px;
  }
  .courses-section{
    padding:26px 12px 22px;
  }
  .section-title{
    gap:10px;
    font-size:13px;
  }
  .section-title::before,.section-title::after{width:42px}
  .courses-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  .course-card{
    min-height:0;
    display:grid;
    grid-template-columns:96px 1fr;
    align-items:stretch;
    border-radius:14px;
  }
  .course-image{height:112px}
  .course-icon{
    left:10px;
    bottom:10px;
    width:42px;
    height:42px;
    font-size:22px;
  }
  .course-body{
    min-width:0;
    padding:14px 12px;
  }
  .course-body h2{
    margin-bottom:6px;
    font-size:var(--course-title-size, 18px);
    line-height:1.02;
  }
  .course-body h2 span{font-size:.72em}
  .course-body p{
    display:block;
    font-size:var(--course-description-size, 11px);
    line-height:1.28;
    margin:0 0 8px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .course-button{
    min-height:38px;
    margin-top:10px;
    border-radius:10px;
    font-size:11px;
  }
  .catalog-footer{
    display:grid;
    justify-items:center;
    padding:20px 16px 24px;
    text-align:center;
  }
  .dev-credit img{width:140px}
}
