/* ==========================================================================
   KIDO · Sections — bản định hướng (hero + dải nổi bật + ghi chú)
   ========================================================================== */

/* --- Thanh ghi chú đầu trang ---------------------------------------------- */
.board-bar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

.board-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 38px;
  flex-wrap: wrap;
}

.board-bar strong {
  color: var(--amber);
  font-weight: 700;
}

.board-bar a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Kéo hero lên dưới header trong suốt để nền trời chạy xuyên qua menu */
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(1.25rem, 2.6vw, 2.25rem)) clamp(7rem, 12vw, 10rem);
  background:
    radial-gradient(ellipse 55% 48% at 82% 16%, rgba(90, 169, 240, 0.32), transparent 62%),
    radial-gradient(ellipse 48% 42% at 8% 92%, rgba(238, 168, 47, 0.2), transparent 64%),
    linear-gradient(168deg, #0b2444 0%, #194789 54%, #1f4d8f 100%);
  color: rgba(255, 255, 255, 0.8);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__content {
  max-width: 620px;
}

.hero .eyebrow {
  color: var(--amber-300);
}

.hero__title {
  margin: 0 0 0.45em;
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__title .hl {
  position: relative;
  display: inline-block;
  color: var(--amber-300);
  white-space: nowrap;
  z-index: 0;
}

.hero__title .hl::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.02em;
  height: 0.28em;
  border-radius: 6px;
  background: rgba(238, 168, 47, 0.24);
  z-index: -1;
  transform: rotate(-1.2deg);
}

.hero__lead {
  max-width: 46ch;
  margin-bottom: var(--sp-6);
  font-size: var(--fs-md);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin: var(--sp-7) 0 0;
  padding: 0;
  list-style: none;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.hero__trust svg {
  flex: none;
  color: var(--amber-300);
}

/* --- Hero media ------------------------------------------------------------ */
.hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
}

.hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 56% 44% 46% 54% / 44% 46% 54% 56%;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #e8f4ff 45%, #d7eaff 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75), 0 0 0 12px rgba(255, 255, 255, 0.06);
  aspect-ratio: 1 / 1.06;
  display: grid;
  place-items: center;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 10px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.hero__frame img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
}

.hero__chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 0.95em;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  line-height: 1.15;
  color: var(--ink);
}

.hero__chip strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.hero__chip span span {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
}

.hero__chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber-50);
  color: var(--amber-700);
  flex: none;
}

.hero__chip--a {
  top: 4%;
  left: -5%;
}

.hero__chip--b {
  right: -5%;
  bottom: 4%;
}

.hero__chip--b .hero__chip-icon {
  background: var(--mint-50);
  color: var(--mint);
}

/* --- Decoration ------------------------------------------------------------ */
.deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco__cloud {
  position: absolute;
  color: #fff;
  opacity: 0.1;
}

.deco__cloud--1 {
  top: 8%;
  right: 6%;
  width: 150px;
}

.deco__cloud--2 {
  top: 34%;
  left: -30px;
  width: 120px;
  opacity: 0.8;
}

.deco__cloud--3 {
  bottom: 26%;
  right: 40%;
  width: 96px;
  opacity: 0.7;
}

.deco__star {
  position: absolute;
  color: var(--amber-300);
  opacity: 0.9;
}

.deco__star--1 {
  top: 16%;
  left: 44%;
  width: 26px;
  animation: floaty 7s var(--ease) infinite;
}

.deco__star--2 {
  top: 58%;
  right: 4%;
  width: 20px;
  animation: floaty 9s var(--ease) infinite 1s;
}

.deco__star--3 {
  bottom: 30%;
  left: 6%;
  width: 16px;
  color: var(--sky);
  animation: floaty 8s var(--ease) infinite 0.6s;
}

.deco__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.deco__blob--1 {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(90, 169, 240, 0.18), transparent 68%);
}

.deco__blob--2 {
  width: 360px;
  height: 360px;
  bottom: 0;
  left: -140px;
  background: radial-gradient(circle, rgba(238, 168, 47, 0.14), transparent 68%);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(6deg);
  }
}

/* --- Wave --------------------------------------------------------------- */
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: clamp(70px, 9vw, 120px);
  display: block;
}

/* --- Feature strip (nổi lên trên sóng) ------------------------------------- */
.feature-wrap {
  position: relative;
  z-index: 5;
  margin-top: clamp(-110px, -7vw, -70px);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-1);
  padding: clamp(0.6rem, 1.2vw, 0.9rem);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(228, 235, 244, 0.9);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85em;
  padding: clamp(0.85rem, 1.6vw, 1.15rem);
  border-radius: var(--r-lg);
  transition: background-color var(--dur-2) var(--ease);
}

.feature:hover {
  background: var(--navy-50);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  flex: none;
  background: var(--sky-50);
  color: var(--navy);
}

.feature:nth-child(2) .feature__icon {
  background: var(--mint-50);
  color: var(--mint);
}
.feature:nth-child(3) .feature__icon {
  background: var(--amber-50);
  color: var(--amber-700);
}
.feature:nth-child(4) .feature__icon {
  background: var(--peach-50);
  color: #b4611f;
}

.feature__title {
  margin: 0 0 0.15em;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feature__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
}

/* --- Board notes ----------------------------------------------------------- */
.board-notes {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #fff;
}

.board-notes__head {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.board-notes__head h2 {
  margin-bottom: 0.35em;
}

.board-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.note-card {
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.note-card--ok {
  background: var(--mint-50);
  border-color: rgba(63, 143, 127, 0.18);
}

.note-card--ask {
  background: var(--amber-50);
  border-color: rgba(238, 168, 47, 0.25);
}

.note-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-3);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}

.note-card h3 {
  margin: 0 0 0.5em;
  font-size: var(--fs-md);
}

.note-card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: var(--fs-base);
  line-height: 1.6;
}

.note-card li + li {
  margin-top: 0.35em;
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }
  .hero__media {
    order: -1;
    width: min(100%, 420px);
  }
  .hero__content {
    max-width: none;
  }
  .board-notes__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: clamp(6rem, 16vw, 8rem);
  }
  .hero__title {
    font-size: clamp(1.95rem, 1.2rem + 4vw, 2.6rem);
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__chip--a {
    left: 0;
    top: 2%;
  }
  .hero__chip--b {
    right: 0;
  }
  .feature-strip {
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--r-lg);
  }
  .feature-wrap {
    margin-top: -60px;
  }
  .deco__cloud--1,
  .deco__cloud--3 {
    display: none;
  }
}
