/* ===== Reset ===== */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(1000px 500px at -10% 20%, rgba(56, 189, 248, .15), transparent 60%),
    #f8fafc;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Unbounded', 'Inter', sans-serif; letter-spacing: -0.02em; }
.h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 28px; text-align: center; color: #0f172a;
}

/* ===== Topbar ===== */
.topbar {
  max-width: 1200px; margin: 0 auto;
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: #0f172a;
  font-family: 'Unbounded', sans-serif;
}
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 22px -6px rgba(124, 58, 237, .55);
}
.brand__mark--sm { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
.brand__name b { background: linear-gradient(135deg, #7c3aed, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: flex; gap: 24px; font-weight: 500; color: #475569; font-family: 'Inter', sans-serif; }
.topnav a:hover { color: #7c3aed; }

/* ===== Hero ===== */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 24px 28px 80px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .3);
  color: #6d28d9; font-weight: 600; font-size: 13px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05; margin: 0 0 20px;
  font-weight: 800; color: #0f172a;
}
.hero__title s {
  color: #cbd5e1; text-decoration-color: #ef4444; text-decoration-thickness: 4px;
}
.grad {
  background: linear-gradient(135deg, #7c3aed 0%, #38bdf8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #475569; max-width: 560px; margin: 0 0 32px;
}

/* ===== Steps ===== */
.steps { display: grid; gap: 14px; margin-bottom: 28px; }
.step {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px -16px rgba(15, 23, 42, .15);
}
.step__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step__dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff;
}
.step__dot--1 { background: linear-gradient(135deg, #7c3aed, #38bdf8); }
.step__dot--2 { background: #cbd5e1; color: #64748b; }
.step__label { font-weight: 600; color: #475569; font-size: 14px; }
.step__hint { margin: 10px 0 0; font-size: 13px; color: #64748b; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px;
  width: 100%;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--max {
  background: #fff; color: #0f172a;
  border: 1.5px solid #0f172a;
  box-shadow: 4px 4px 0 #0f172a;
}
.btn--max:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #0f172a; }
.btn--max.is-done {
  background: #ecfdf5; border-color: #059669; color: #047857;
  box-shadow: 4px 4px 0 #059669;
}
.btn__icon {
  width: 26px; height: 26px; border-radius: 7px;
  object-fit: contain; display: block;
}
.btn--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #38bdf8 100%);
  color: #fff; padding: 16px 24px;
  box-shadow: 0 14px 34px -10px rgba(124, 58, 237, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(124, 58, 237, .65); }
.btn--big { padding: 20px 32px; font-size: 17px; }
.cta--locked {
  background: #e2e8f0 !important; color: #94a3b8 !important;
  cursor: not-allowed; box-shadow: none !important;
}

/* ===== Trust ===== */
.trust { display: flex; align-items: center; gap: 14px; }
.trust__avatars { display: flex; }
.trust__avatars span {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
  border: 2px solid #f8fafc;
  margin-left: -8px;
}
.trust__avatars span:first-child { margin-left: 0; }
.trust__text { font-size: 14px; color: #475569; }
.trust__text b { color: #0f172a; }

/* ===== Hero right (mock cards) ===== */
.hero__right { position: relative; min-height: 420px; }
.card {
  position: absolute;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 25px 50px -25px rgba(15, 23, 42, .35);
}
.card--task {
  top: 0; left: 0; right: 30%;
  transform: rotate(-2deg);
}
.card--solve {
  top: 130px; left: 15%; right: 0;
  transform: rotate(1.5deg);
  z-index: 2;
}
.card--mini {
  bottom: 0; left: 0; right: 40%;
  transform: rotate(-1deg);
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
}
.card--mini > span { font-size: 22px; }
.card--mini b { display: block; font-size: 14px; color: #78350f; margin-bottom: 2px; }
.card--mini p { margin: 0; font-size: 13px; color: #92400e; }

.card__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 12px; color: #64748b; font-weight: 600;
}
.card__tag {
  padding: 4px 10px; border-radius: 999px;
  background: #ede9fe; color: #6d28d9;
}
.card__check {
  width: 22px; height: 22px; border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  display: inline-grid; place-items: center; font-weight: 800; font-size: 12px;
  margin-right: 8px;
}
.card__body { font-size: 16px; color: #0f172a; }
.solve {
  margin: 6px 0 0; padding-left: 20px;
  font-size: 13px; color: #334155; line-height: 1.7;
}
.solve code {
  background: #f1f5f9; padding: 1px 6px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: #7c3aed;
}

/* ===== How ===== */
.how {
  max-width: 1200px; margin: 0 auto; padding: 60px 28px;
}
.how__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.how__item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.how__item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .2); }
.how__num {
  font-family: 'Unbounded', sans-serif;
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.how__item h3 { margin: 0 0 8px; font-size: 18px; color: #0f172a; }
.how__item p  { margin: 0; color: #475569; font-size: 14px; }

/* ===== Subjects (chips) ===== */
.subjects-wrap {
  max-width: 1000px; margin: 0 auto; padding: 60px 28px;
}
.chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.chip {
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid #e2e8f0;
  font-weight: 500; color: #334155; font-size: 14px;
  transition: all .2s;
}
.chip:hover { border-color: #7c3aed; color: #7c3aed; }
.chip--more {
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  color: #fff; border-color: transparent;
}

/* ===== Stats ===== */
.stats {
  max-width: 1000px; margin: 20px auto;
  padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px; text-align: center;
}
.stat b {
  display: block; font-family: 'Unbounded', sans-serif;
  font-size: 26px; line-height: 1.2;
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13px; color: #64748b; }

/* ===== Reviews ===== */
.reviews {
  max-width: 1200px; margin: 0 auto; padding: 60px 28px;
}
.reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.review {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
}
.review__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.review__ava {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
}
.review__head > div { flex: 1; display: flex; flex-direction: column; }
.review__head b { color: #0f172a; font-size: 14px; }
.review__head span { color: #94a3b8; font-size: 12px; }
.review__stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.review p { margin: 0; color: #475569; font-size: 14px; }

/* ===== Final CTA ===== */
.final {
  max-width: 1200px; margin: 40px auto; padding: 0 28px;
}
.final__inner {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #0c4a6e 100%);
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
  position: relative; overflow: hidden;
}
.final__inner::before, .final__inner::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px);
}
.final__inner::before {
  width: 280px; height: 280px; background: rgba(124, 58, 237, .5);
  top: -80px; left: -60px;
}
.final__inner::after {
  width: 320px; height: 320px; background: rgba(56, 189, 248, .4);
  bottom: -100px; right: -80px;
}
.final h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); position: relative; }
.final p  { margin: 0 0 24px; color: #cbd5e1; position: relative; }
.final .btn { max-width: 420px; margin: 0 auto; position: relative; }

/* ===== FAQ ===== */
.faq-wrap {
  max-width: 800px; margin: 0 auto; padding: 60px 28px;
}
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: #0f172a;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after {
  content: '+'; font-size: 22px; color: #7c3aed; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: #475569; font-size: 14px; }

/* ===== Footer ===== */
.footer {
  max-width: 1200px; margin: 40px auto 0;
  padding: 32px 28px;
  border-top: 1px solid #e2e8f0;
  color: #64748b; font-size: 13px;
}
.footer__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 10px; color: #0f172a; font-weight: 600; }
.footer__brand b { background: linear-gradient(135deg, #7c3aed, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer__links a:hover { color: #7c3aed; }
.age { padding: 2px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-weight: 600; }
.footer__note { margin: 14px 0 0; color: #94a3b8; font-size: 12px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .hero__right { min-height: 380px; max-width: 480px; margin: 0 auto; width: 100%; }
  .how__grid, .reviews__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .card--task, .card--solve, .card--mini { right: 0 !important; left: 0 !important; transform: none !important; position: relative; margin-bottom: 12px; }
  .hero__right { min-height: auto; }
  .final__inner { padding: 36px 20px; }
}
