/* ---------- Hero beranda ---------- */
.home-hero {
  position: relative;
  background-color: var(--sun-soft); background-image: radial-gradient(rgba(255, 127, 80, .18) 1.2px, transparent 1.2px); background-size: 26px 26px;
  color: var(--text); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-pill {
  display: inline-block; margin-bottom: 1.25rem; padding: .4rem 1rem; border-radius: 999px;
  background: #fff; border: 2px solid var(--coral-soft); color: var(--ink); font-weight: 700;
}
.home-hero h1 { color: var(--ink); font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -.015em; max-width: 17ch; }
.home-hero .lead { color: var(--text); font-size: clamp(1.1rem, 2vw, 1.25rem); max-width: 46ch; }
.home-hero .btn-row { margin-top: 2rem; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; font-weight: 600; color: var(--ink); }

/* ---------- Papan robot interaktif ---------- */
.robot-lab {
  background: #fff; color: var(--text); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 2px solid var(--sea-line);
  box-shadow: 0 8px 0 var(--sea), 0 30px 60px -30px rgba(7, 59, 76, .35);
}
.lab-head h2 { font-size: 1.5rem; margin-bottom: .15rem; }
.lab-head p { color: var(--muted); font-size: .98rem; }



@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .robot-lab { max-width: 520px; }
}

/* ---------- Manfaat ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.benefit-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 2rem; background: var(--coral-soft); margin-bottom: 1rem;
}
.benefit:nth-child(2) .benefit-icon { background: var(--sun-soft); }
.benefit:nth-child(3) .benefit-icon { background: var(--mint-soft); }
.benefit h3 { font-size: 1.4rem; }
.benefit p { color: var(--muted); }
@media (max-width: 800px) { .benefits { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Jalur program (preview) ---------- */
.tracks { display: grid; gap: 1rem; }
.track {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem 1.5rem;
  padding: 1.4rem 1.6rem; border-radius: var(--radius-md); background: #fff;
  border: 2px solid var(--line); border-left: 10px solid var(--track, var(--sea));
  text-decoration: none; color: inherit; transition: border-color .15s ease;
}
.track:hover { border-color: var(--track); }
.track-emoji { font-size: 2.4rem; line-height: 1; }
.track h3 { font-size: 1.45rem; margin-bottom: .1rem; }
.track p { color: var(--muted); }
.track-age { font-weight: 700; color: var(--ink); white-space: nowrap; }
.track-starter { --track: var(--mint); }
.track-explorer { --track: var(--sea); }
.track-creator { --track: var(--coral); }
@media (max-width: 640px) {
  .track { grid-template-columns: auto 1fr; }
  .track-age { grid-column: 2; }
}

/* ---------- Langkah memulai (urutan nyata) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%;
  border-top: 3px dashed var(--sea-line);
}
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--coral); color: var(--ink);
  font: 800 1.5rem/1 var(--font-display); box-shadow: 0 0 0 8px #fff;
  position: relative;
}
.step:nth-child(2)::before { background: var(--sun); }
.step:nth-child(3)::before { background: var(--mint); }
.step:nth-child(4)::before { background: var(--sea); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 58px 1fr; gap: 0 1rem; text-align: left; }
  .step::before { grid-row: span 2; margin: 0; }
}

/* ---------- Tentang CodeNova ---------- */
.about-teaser { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-avatar {
  aspect-ratio: 1; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: var(--sun); display: grid; place-items: center; font-size: 5.5rem;
  box-shadow: 0 8px 0 var(--sun-dark);
}
.about-teaser h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.about-teaser .check-list { margin: 1.25rem 0 1.75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) {
  .about-teaser { grid-template-columns: 1fr; }
  .about-avatar { width: 180px; }
  .about-teaser .check-list { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sea-soft); color: var(--sea); font-size: 1.3rem; font-weight: 700;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.3rem 0; color: var(--muted); }

@media (max-width: 420px) {
  .hero-pill { font-size: .9rem; }
  .lab-cmd { font-size: .92rem; white-space: nowrap; padding: 0 .25rem; }
  .lab-actions .btn { padding-inline: 1rem; }
}
