* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #15151a;
  --muted: #6d6d78;

  --purple: #7657ff;
  --purple-dark: #5940d9;

  --green: #b8f05c;
  --cream: #fffaf0;

  --border: rgba(25, 25, 35, 0.09);
}

body {
  min-height: 100vh;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);

  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(184, 240, 92, 0.24),
      transparent 30%
    ),

    radial-gradient(
      circle at 90% 20%,
      rgba(118, 87, 255, 0.19),
      transparent 33%
    ),

    radial-gradient(
      circle at 50% 100%,
      rgba(104, 214, 255, 0.17),
      transparent 36%
    ),

    #fbfaf8;
}


/* =========================
   THANH MENU
========================= */

.navbar {
  width: min(1180px, calc(100% - 48px));

  margin: auto;

  padding: 28px 0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  position: relative;

  z-index: 10;
}


.logo {
  font-size: 15px;

  line-height: 1.15;

  font-weight: 900;

  letter-spacing: -0.3px;
}

.logo span {
  display: block;

  color: var(--purple);
}


nav {
  display: flex;

  gap: 30px;
}

nav a {
  text-decoration: none;

  color: #45454f;

  font-size: 14px;

  font-weight: 650;

  transition: 0.2s;
}

nav a:hover {
  color: var(--purple);
}


/* =========================
   HERO
========================= */

.hero {
  width: min(1180px, calc(100% - 48px));

  min-height: 690px;

  margin: auto;

  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  gap: 70px;

  align-items: center;

  position: relative;

  z-index: 2;
}


.hero-left {
  max-width: 650px;
}


.mini-label {
  display: inline-flex;

  align-items: center;

  background: rgba(255, 255, 255, 0.7);

  border: 1px solid var(--border);

  backdrop-filter: blur(12px);

  padding: 9px 14px;

  border-radius: 50px;

  font-size: 13px;

  font-weight: 750;

  margin-bottom: 24px;
}


h1 {
  font-size: clamp(50px, 6.3vw, 82px);

  line-height: 0.98;

  letter-spacing: -4px;

  font-weight: 850;
}

h1 span {
  color: var(--purple);
}


.hero-description {
  max-width: 580px;

  margin-top: 28px;

  color: var(--muted);

  font-size: 18px;

  line-height: 1.65;
}


/* =========================
   BUTTON
========================= */

.buttons {
  margin-top: 34px;

  display: flex;

  gap: 12px;

  flex-wrap: wrap;
}


button {
  font-family: inherit;
}


.primary-button {
  border: none;

  cursor: pointer;

  color: white;

  background: var(--text);

  padding: 16px 21px;

  border-radius: 15px;

  font-size: 15px;

  font-weight: 780;

  display: flex;

  gap: 30px;

  align-items: center;

  box-shadow:
    0 10px 24px
    rgba(20, 20, 30, 0.13);

  transition: 0.2s;
}


.primary-button:hover {
  transform: translateY(-3px);

  box-shadow:
    0 16px 30px
    rgba(20, 20, 30, 0.17);
}


.secondary-button {
  border: 1px solid var(--border);

  cursor: pointer;

  background: rgba(255, 255, 255, 0.55);

  backdrop-filter: blur(15px);

  padding: 16px 20px;

  border-radius: 15px;

  font-size: 15px;

  font-weight: 700;
}


/* =========================
   THỐNG KÊ NHỎ
========================= */

.features {
  margin-top: 44px;

  padding-top: 23px;

  border-top: 1px solid var(--border);

  display: flex;

  gap: 42px;
}


.features strong {
  display: block;

  font-size: 15px;
}

.features span {
  display: block;

  color: #8b8b94;

  font-size: 12px;

  margin-top: 4px;
}


/* =========================
   CARD QUIZ
========================= */

.hero-right {
  display: flex;

  justify-content: center;

  position: relative;
}


.practice-card {
  width: 100%;

  max-width: 455px;

  background:
    rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(24px);

  border:
    1px solid rgba(255, 255, 255, 0.8);

  border-radius: 30px;

  padding: 26px;

  box-shadow:
    0 30px 80px
    rgba(42, 35, 80, 0.13);

  transform: rotate(1.5deg);
}


.card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 27px;
}


.card-tag {
  font-size: 11px;

  letter-spacing: 1.2px;

  font-weight: 850;

  color: #777782;
}


.level {
  background: #eeebff;

  color: var(--purple-dark);

  padding: 7px 10px;

  border-radius: 100px;

  font-size: 11px;

  font-weight: 800;
}


.situation-icon {
  width: 62px;

  height: 62px;

  border-radius: 19px;

  background: #efffd5;

  display: grid;

  place-items: center;

  font-size: 30px;

  margin-bottom: 20px;

  transform: rotate(-4deg);
}


.practice-card h2 {
  font-size: 27px;

  line-height: 1.2;

  letter-spacing: -0.7px;
}


.practice-card p {
  margin-top: 11px;

  margin-bottom: 23px;

  color: var(--muted);

  line-height: 1.55;

  font-size: 14px;
}


.fake-choice {
  padding: 13px 14px;

  border:
    1px solid var(--border);

  border-radius: 13px;

  margin-bottom: 9px;

  font-size: 13px;

  background: rgba(255, 255, 255, 0.6);
}


.fake-choice.selected {
  border-color: rgba(118, 87, 255, 0.45);

  background: #f0edff;

  color: #4f38ca;

  font-weight: 700;
}


.card-footer {
  margin-top: 20px;

  padding-top: 18px;

  border-top: 1px solid var(--border);

  display: flex;

  justify-content: space-between;

  font-size: 13px;
}


/* =========================
   STICKER NỀN
========================= */

.sticker {
  position: fixed;

  z-index: 0;

  font-size: 46px;

  opacity: 0.15;

  user-select: none;

  filter: saturate(0.8);

  animation:
    floatSticker 7s ease-in-out infinite;
}


.sticker-1 {
  left: 3%;
  top: 24%;
  transform: rotate(-14deg);
}

.sticker-2 {
  right: 4%;
  top: 17%;
  transform: rotate(12deg);
}

.sticker-3 {
  left: 5%;
  bottom: 12%;
}

.sticker-4 {
  right: 6%;
  bottom: 14%;
}

.sticker-5 {
  right: 35%;
  top: 10%;
}

.sticker-6 {
  left: 43%;
  bottom: 5%;
}


@keyframes floatSticker {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -14px;
  }

}


/* =========================
   KIỂM TRA ĐẦU VÀO
========================= */

.placement-section {
  display: none;

  width:
    min(900px, calc(100% - 48px));

  margin:
    20px auto 100px;

  position: relative;

  z-index: 5;
}


.placement-section.show {
  display: block;

  animation:
    appear 0.5s ease;
}


.placement-card {
  background:
    #17171d;

  color: white;

  padding: 34px;

  border-radius: 25px;

  display: flex;

  gap: 24px;

  align-items: center;
}


.placement-icon {
  min-width: 72px;

  width: 72px;

  height: 72px;

  display: grid;

  place-items: center;

  background: var(--purple);

  border-radius: 22px;

  font-size: 34px;
}


.small-title {
  color: #b8f05c;

  font-size: 11px;

  font-weight: 850;

  letter-spacing: 1.5px;
}


.placement-card h2 {
  margin-top: 7px;

  font-size: 29px;
}


.placement-card p {
  margin-top: 10px;

  color: #bcbcc5;

  line-height: 1.6;
}


@keyframes appear {

  from {
    opacity: 0;

    transform:
      translateY(20px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}


/* =========================
   ĐIỆN THOẠI
========================= */

@media (max-width: 800px) {

  nav {
    display: none;
  }


  .hero {
    grid-template-columns: 1fr;

    padding-top: 50px;

    gap: 60px;
  }


  h1 {
    letter-spacing: -2.5px;
  }


  .hero-right {
    padding-bottom: 70px;
  }


  .features {
    gap: 20px;

    flex-wrap: wrap;
  }


  .practice-card {
    transform: none;
  }


  .sticker {
    font-size: 32px;
  }

}


/* =========================
   BÀI ĐÁNH GIÁ TRÌNH ĐỘ V2
========================= */

.placement-section {
  width:
    min(980px, calc(100% - 48px));

  margin:
    40px auto 100px;

  scroll-margin-top: 40px;
}


.diagnostic-shell,
.result-shell {

  background:
    rgba(255,255,255,0.84);

  backdrop-filter:
    blur(24px);

  border:
    1px solid
    rgba(30,30,40,0.08);

  border-radius:
    30px;

  padding:
    38px;

  box-shadow:
    0 30px 80px
    rgba(35,30,70,0.10);

}


.diagnostic-top {

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  gap:
    20px;

}


.diagnostic-label {

  color:
    #7657ff;

  font-size:
    11px;

  font-weight:
    900;

  letter-spacing:
    1.5px;

}


.question-number {

  margin-top:
    7px;

  color:
    #6d6d78;

  font-size:
    14px;

}


.question-area {

  background:
    #f0edff;

  color:
    #5940d9;

  padding:
    8px 12px;

  border-radius:
    100px;

  font-size:
    12px;

  font-weight:
    800;

}


.test-progress {

  height:
    7px;

  background:
    #ececf2;

  border-radius:
    100px;

  overflow:
    hidden;

  margin:
    25px 0 38px;

}


.test-progress-fill {

  height:
    100%;

  background:
    linear-gradient(
      90deg,
      #7657ff,
      #9d87ff
    );

  border-radius:
    100px;

  transition:
    width .3s ease;

}


.diagnostic-question {

  max-width:
    780px;

}


.diagnostic-question h2 {

  font-size:
    clamp(
      27px,
      4vw,
      40px
    );

  line-height:
    1.15;

  letter-spacing:
    -1.2px;

}


.diagnostic-question p {

  color:
    #696973;

  font-size:
    16px;

  line-height:
    1.65;

  margin-top:
    15px;

}


.diagnostic-options {

  display:
    grid;

  gap:
    12px;

  margin-top:
    30px;

}


.diagnostic-option {

  width:
    100%;

  display:
    flex;

  align-items:
    center;

  gap:
    15px;

  text-align:
    left;

  border:
    1px solid
    rgba(30,30,40,0.10);

  background:
    rgba(255,255,255,0.7);

  border-radius:
    16px;

  padding:
    16px;

  color:
    #25252c;

  font-size:
    15px;

  line-height:
    1.5;

  cursor:
    pointer;

  transition:
    .17s ease;

}


.diagnostic-option:hover {

  border-color:
    rgba(118,87,255,0.45);

  transform:
    translateY(-2px);

  box-shadow:
    0 10px 25px
    rgba(40,35,80,0.06);

}


.option-letter {

  width:
    33px;

  min-width:
    33px;

  height:
    33px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    10px;

  background:
    #f2f2f6;

  font-size:
    12px;

  font-weight:
    900;

}


.diagnostic-option.chosen {

  border-color:
    #7657ff;

  background:
    #f1eeff;

}


.diagnostic-option.chosen
.option-letter {

  background:
    #7657ff;

  color:
    white;

}


.diagnostic-note {

  margin-top:
    25px;

  color:
    #9898a2;

  font-size:
    12px;

  line-height:
    1.55;

}


/* KẾT QUẢ */

.result-heading {

  display:
    flex;

  align-items:
    center;

  gap:
    20px;

}


.result-icon {

  width:
    78px;

  min-width:
    78px;

  height:
    78px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    23px;

  background:
    #efffd6;

  font-size:
    37px;

}


.result-heading h2 {

  margin-top:
    7px;

  font-size:
    32px;

  letter-spacing:
    -1px;

}


.result-heading h2 span {

  color:
    #7657ff;

}


.result-heading p {

  color:
    #707079;

  margin-top:
    8px;

  line-height:
    1.55;

}


.overall-result {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  background:
    #18181e;

  color:
    white;

  padding:
    19px 22px;

  border-radius:
    17px;

  margin-top:
    30px;

}


.overall-result span {

  color:
    #bfbfc7;

  font-size:
    14px;

}


.overall-result strong {

  font-size:
    26px;

}


.skill-results {

  margin-top:
    30px;

  display:
    grid;

  gap:
    20px;

}


.skill-info {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  margin-bottom:
    8px;

}


.skill-info span {

  font-size:
    14px;

  font-weight:
    700;

}


.skill-info strong {

  font-size:
    13px;

}


.skill-bar {

  height:
    8px;

  border-radius:
    100px;

  background:
    #ebebf0;

  overflow:
    hidden;

}


.skill-fill {

  height:
    100%;

  border-radius:
    100px;

  background:
    linear-gradient(
      90deg,
      #7657ff,
      #ad98ff
    );

}


.result-insights {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    13px;

  margin-top:
    32px;

}


.insight-card {

  border-radius:
    18px;

  padding:
    20px;

}


.insight-card.good {

  background:
    #f0ffdc;

}


.insight-card.improve {

  background:
    #fff4df;

}


.insight-card span {

  font-size:
    10px;

  letter-spacing:
    1.3px;

  font-weight:
    900;

  color:
    #6f6f78;

}


.insight-card h3 {

  margin-top:
    7px;

  font-size:
    19px;

}


.insight-card p {

  margin-top:
    7px;

  color:
    #707079;

  font-size:
    13px;

  line-height:
    1.5;

}


.result-note {

  margin-top:
    22px;

  padding:
    16px;

  border:
    1px solid
    rgba(30,30,40,.08);

  border-radius:
    15px;

  color:
    #74747e;

  font-size:
    13px;

  line-height:
    1.6;

}


.result-note strong {

  color:
    #303038;

}


.result-buttons {

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    11px;

  margin-top:
    23px;

}


@media (
  max-width: 650px
) {

  .diagnostic-shell,
  .result-shell {

    padding:
      23px;

    border-radius:
      22px;

  }


  .diagnostic-top {

    flex-direction:
      column;

  }


  .result-heading {

    align-items:
      flex-start;

    flex-direction:
      column;

  }


  .result-insights {

    grid-template-columns:
      1fr;

  }

}