:root{
  --primary:#5b42ff;
  --primary2:#773cff;
  --dark:#091427;
  --text:#101828;
  --muted:#667085;
  --border:#e9ecf2;
  --bg:#f7f8fc;
  --card:#ffffff;
  --radius:20px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#fff;
  color:var(--text);
}

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

.container{
  width:min(1180px,calc(100% - 32px));
  margin:auto;
}

.topbar{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:25px;
}

.logo-mark{
  width:46px;
  height:46px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),#281a8e);
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
}

.google-btn{
  border:0;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  border-radius:14px;
  padding:12px 18px;
  font-weight:700;
}

.hero{
  background:
    radial-gradient(circle at 80% 20%,rgba(105,70,255,.55),transparent 28%),
    linear-gradient(135deg,#07111f,#111834 58%,#191051);
  color:white;
  border-radius:26px;
  padding:52px;
  min-height:420px;
  display:flex;
  align-items:center;
}

.hero-copy{
  max-width:640px;
}

.hero h1{
  font-size:56px;
  line-height:1.02;
  margin:12px 0 18px;
}

.hero h1 span{
  color:#7866ff;
}

.hero p{
  max-width:580px;
  color:#d2d7e4;
  font-size:18px;
  line-height:1.6;
}

.hero-actions{
  display:flex;
  gap:14px;
  margin-top:25px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:13px;
  font-weight:800;
}

.btn-primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
}

.btn-outline{
  border:1px solid rgba(255,255,255,.6);
  color:#fff;
}

.section{
  padding:34px 0;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:15px;
  margin-bottom:18px;
}

.section-head h2{
  margin:0;
  font-size:28px;
}

.muted{
  color:var(--muted);
}

.category-row{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}

.category-card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px 12px;
  text-align:center;
  font-weight:700;
}

.course-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.course-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(16,24,40,.06);
}

.course-thumb{
  aspect-ratio:16/9;
  background:#eef0f5;
  overflow:hidden;
}

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

.course-body{
  padding:16px;
}

.course-title{
  font-size:18px;
  line-height:1.35;
  font-weight:850;
  margin-bottom:8px;
}

.price{
  color:var(--primary);
  font-size:21px;
  font-weight:900;
}

.old-price{
  color:#98a2b3;
  text-decoration:line-through;
  margin-left:8px;
}

.empty-state{
  padding:32px;
  border:1px dashed #d0d5dd;
  border-radius:18px;
  color:var(--muted);
  text-align:center;
}

@media(max-width:768px){
  .container{
    width:min(100% - 20px,700px);
  }

  .topbar{
    height:64px;
  }

  .brand{
    font-size:21px;
  }

  .google-btn{
    padding:10px 12px;
    font-size:13px;
  }

  .hero{
    min-height:430px;
    padding:28px 24px;
    border-radius:22px;
  }

  .hero h1{
    font-size:38px;
  }

  .hero p{
    font-size:16px;
  }

  .hero-actions{
    flex-wrap:wrap;
  }

  .category-row{
    display:flex;
    overflow-x:auto;
    padding-bottom:5px;
  }

  .category-card{
    min-width:125px;
  }

  .course-grid{
    display:flex;
    overflow-x:auto;
    padding:2px 2px 14px;
    scroll-snap-type:x mandatory;
  }

  .course-card{
    min-width:82%;
    scroll-snap-align:start;
  }

  .section{
    padding:26px 0;
  }
}

.google-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
}

@media(max-width:520px){
  .brand span{
    font-size:18px;
  }

  .google-btn{
    min-height:44px;
    padding:9px 13px;
    font-size:13px;
  }
}

.benefit-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.benefit-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:17px;
}

.benefit-icon{
  width:44px;
  height:44px;
  border-radius:13px;
  display:grid;
  place-items:center;
  margin-bottom:12px;
  background:#f0edff;
  font-size:22px;
  color:#5b42ff;
}

.benefit-card strong{
  display:block;
  margin-bottom:6px;
}

.affiliate-banner{
  background:
    radial-gradient(
      circle at 90% 50%,
      rgba(255,170,0,.25),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #17113e,
      #261453,
      #5b214f
    );

  border-radius:21px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.affiliate-button{
  background:#6544ff;
  color:white;
  padding:14px 20px;
  border-radius:13px;
  font-weight:800;
  white-space:nowrap;
}

.site-footer{
  margin-top:30px;
  background:#081423;
  color:#cbd3df;
  padding:35px 0;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:30px;
}

.footer-grid a{
  display:block;
  margin-top:10px;
  color:#cbd3df;
}

@media(max-width:768px){

  .benefit-grid{
    grid-template-columns:1fr 1fr;
  }

  .affiliate-banner{
    align-items:flex-start;
    flex-direction:column;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }

}

@media(max-width:420px){

  .benefit-grid{
    grid-template-columns:1fr;
  }

}
