:root {
  --orange-500: #ff8a1f;
  --orange-600: #f97316;
  --orange-100: #fff3e5;
  --text-900: #1c1f2a;
  --text-700: #4a5162;
  --text-500: #6d7485;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e9edf5;
  --shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* ========== RESET & BASE ========== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--surface);
  color: var(--text-900);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 90px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section-pad {
  padding: 4rem 0;
}

.section-soft {
  background: var(--surface-soft);
}

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--text-900);
  color: #fff;
}

.skip-link:focus-visible {
  top: 1rem;
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.faq-trigger:focus-visible,
input:focus-visible,
select:focus-visible,
.wa-float:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

h6 {
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--orange-600);
  font-weight: 700;
}

.hero__sub,
.microcopy,
.testimonial-card blockquote,
.hero-card ul,
.faq-panel p {
  color: var(--text-700);
}

/* ========== HEADER & NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-900);
  font-weight: 800;
  text-decoration: none;
}

.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-600);
}

.logo__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.primary-nav {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  display: none;
  padding: 1rem 4%;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.primary-nav.is-open {
  display: block;
}

.primary-nav ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--text-700);
  font-weight: 600;
  text-decoration: none;
}

.menu-toggle {
  display: grid;
  gap: 4px;
  padding: 0.4rem;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-900);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: var(--shadow);
}

.btn--ghost {
  color: var(--orange-600);
  background: #fff;
  border-color: #ffd7b1;
}

.btn--small {
  display: none;
}

.btn--full {
  width: 100%;
}

/* ========== HERO ========== */
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero__visual {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 330px;
  overflow: visible;
}

.orbit-scene {
  position: relative;
  width: 100%;
  min-height: 420px;
}

.blob--main {
  position: absolute;
  top: 2rem;
  left: 50%;
  z-index: 1;
  width: min(78vw, 440px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 38% 62% 48% 52% / 44% 41% 59% 56%;
  background: radial-gradient(circle at 30% 30%, #ffbe7d, #ff9137);
  animation: blobSpin 18s linear infinite;
}

.orbit-ring {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(92vw, 520px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbitSpin 18s linear infinite;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  inset: 2.8rem;
  border: 1px dashed rgba(255, 138, 31, 0.18);
  border-radius: 50%;
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform-origin: center;
}

.orbit-item--1 {
  transform: translate(-50%, -50%) rotate(0deg);
}

.orbit-item--2 {
  transform: translate(-50%, -50%) rotate(105deg);
}

.orbit-item--3 {
  transform: translate(-50%, -50%) rotate(225deg);
}

.bubble {
  position: absolute;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.orbit-item .bubble {
  top: 0;
  left: 50%;
  white-space: nowrap;
  pointer-events: auto;
  transform: translateX(-50%);
  animation: orbitCounterSpin 18s linear infinite;
}

.orbit-ring .bubble {
  color: var(--text-900);
}

.program-card {
  display: block;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}

.program-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/6;
  object-fit: cover;
}

.program-card__content {
  padding: 1.5rem;
}

.program-card h3 {
  margin-bottom: 1rem;
}

.program-card p {
  margin-bottom: 1.25rem;
  color: var(--text-700);
}

.program-card__duration {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--orange-600);
  font-weight: 700;
}

.program-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--orange-600);
  font-weight: 700;
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: #ffc48a;
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.12);
}

.program-card:hover .program-card__thumb {
  transform: scale(1.03);
  transition: transform 0.35s ease;
}


.program-card:hover .program-card__more {
  color: var(--orange-600);
  transform: translateX(4px);
}

.program-card:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.program-card:active {
  transform: translateY(-3px);
}

.hero__mascot {
  position: absolute;
  left: 50%;
  bottom: 3.4rem;
  z-index: 4;
  width: min(320px, 78%);
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 22px rgba(249, 115, 22, 0.25));
  margin: 69px;
}

.hero-card {
  position: absolute;
  right: 0;
  bottom: 1rem;
  left: 2rem;
  z-index: 3;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .site-header,
body.modal-open main,
body.modal-open .site-footer,
body.modal-open .wa-float {
  filter: blur(8px);
  transition: filter 0.25s ease;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 24, 35, 0.28);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
  overflow: hidden;
}

.modal-scroll {
  max-height: 88vh;
  overflow-y: auto;
}

.modal-cover {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.modal-content {
  padding: 1.5rem;
}

.modal-content p {
  color: var(--text-700);
}

.modal-points {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-700);
}

.modal-cta {
  margin-top: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.modal-close:hover {
  transform: translateY(-1px);
}

.modal-close:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .modal-backdrop {
    padding: 1rem;
  }

  .modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px;
  }

  .modal-cover {
    aspect-ratio: 16 / 7;
  }

  .modal-content {
    padding: 1.25rem;
  }
}

/* ========== CARDS / GRIDS ========== */
.stats__grid,
.card-grid,
.program-grid,
.testimonial-grid,
.tutor-grid,
.steps {
  display: grid;
  gap: 1rem;
}

.stat-card,
.value-card,
.testimonial-card,
.tutor-card,
.steps li,
.outcomes,
.lead-form,
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-card,
.value-card,
.testimonial-card,
.tutor-card,
.steps li {
  padding: 1.3rem;
}

.section-head {
  margin-bottom: 1.4rem;
}

.program-card span {
  color: var(--orange-600);
  font-size: 0.92rem;
  font-weight: 700;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcomes {
  display: grid;
  gap: 1.2rem;
  padding: 1.2rem;
}

.outcomes ul {
  margin: 0;
  padding-left: 1.1rem;
}

.outcomes__badge {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--orange-100);
}

.outcomes__badge strong {
  display: block;
  font-size: 2rem;
}

.tutor-card--profile {
  overflow: hidden;
  padding: 0;
}

.tutor-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tutor-card__content {
  padding: 1.25rem 1.25rem 1.4rem;
}

.tutor-card__role {
  margin: 0 0 0.8rem;
  color: var(--orange-600);
  font-weight: 700;
}

.tutor-card__desc {
  margin: 0 0 1rem;
  color: var(--text-700);
}

.tutor-card__socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.tutor-card__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--orange-100);
  color: var(--orange-600);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tutor-card__socials a:hover {
  transform: translateY(-2px);
  background: #ffe7cc;
}

.tutor-card__socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tutor-card--profile {
  padding: 0 !important;
}

.avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-600);
  font-weight: 800;
}

/* ========== FAQ ========== */
.faq-item {
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 0;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-panel p {
  margin: 0;
  padding: 0 1.2rem 1rem;
}

.faq-item.active .faq-panel {
  max-height: 300px;
}

/* ========== FORM ========== */
.final-cta .container {
  position: relative;
  display: grid;
  gap: 1rem;
}

.final-cta__content,
.lead-form {
  position: relative;
  z-index: 2;
}

.final-cta__mascot {
  display: none;
}

.lead-form {
  padding: 1.2rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #d8deea;
  border-radius: 12px;
  font: inherit;
}

.error {
  display: block;
  min-height: 1rem;
  margin-top: 0.2rem;
  color: #dc2626;
  font-size: 0.85rem;
}

.form-note {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  color: #16a34a;
  font-weight: 600;
}

/* ========== FLOATING WA ========== */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 1.4rem 0 4rem;
  border-top: 1px solid var(--border);
}

.footer-wrap {
  display: grid;
  gap: 0.8rem;
}

.footer-wrap nav {
  display: flex;
  gap: 1rem;
}

.footer-wrap a {
  color: var(--text-700);
  text-decoration: none;
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ANIMATION ========== */
@keyframes orbitSpin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes orbitCounterSpin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(-360deg);
  }
}

@keyframes blobSpin {
  0% {
    transform: translateX(-50%) rotate(0deg);
    border-radius: 38% 62% 48% 52% / 44% 41% 59% 56%;
  }
  50% {
    transform: translateX(-50%) rotate(180deg);
    border-radius: 47% 53% 58% 42% / 52% 39% 61% 48%;
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
    border-radius: 38% 62% 48% 52% / 44% 41% 59% 56%;
  }
}

/* ========== TABLET & UP ========== */
@media (min-width: 760px) {
  .btn--small {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .primary-nav ul {
    display: flex;
    gap: 1.2rem;
  }

  .hero__grid,
  .outcomes,
  .final-cta .container {
    grid-template-columns: 1.1fr 1fr;
  }

  .hero__mascot {
    width: min(360px, 82%);
  }

  .stats__grid,
  .card-grid,
  .program-grid,
  .testimonial-grid,
  .tutor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== DESKTOP ========== */
@media (min-width: 1024px) {
  .section-pad {
    padding: 5rem 0;
  }

  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid,
  .program-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .testimonial-grid,
  .tutor-grid,
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .final-cta .container {
    grid-template-columns: 0.6fr 1fr 1fr;
    align-items: center;
  }

  .final-cta__mascot {
    display: block;
    width: 100%;
    max-width: 230px;
    justify-self: center;
    filter: drop-shadow(0 14px 24px rgba(255, 122, 31, 0.26));
  }

  .hero__visual {
    min-height: 520px; /* sebelumnya 600px */
  }

  .orbit-scene {
    min-height: 520px; /* sebelumnya 620px */
  }

  .blob--main {
    top: 2rem;         /* sebelumnya 0.5rem */
    width: 420px;      /* sebelumnya 500px */
  }

  .orbit-ring {
    width: 500px;      /* sebelumnya 620px */
  }

  .orbit-ring::before {
    inset: 3.2rem;     /* lingkaran dalam lebih kecil */
  }

  .hero__mascot {
    width: 320px;      /* sebelumnya 380px */
    bottom: 3.4rem;    /* sebelumnya 4.6rem */
  }

  .hero-card {
    left: 3rem;        /* sebelumnya 4.5rem */
    right: 0;
    bottom: 1rem;
    max-width: 420px;
  }
}

/* ========== MOBILE TUNING ========== */
@media (max-width: 768px) {
  .orbit-scene {
    min-height: 360px;
  }

  .blob--main {
    top: 2.5rem;
    width: 68vw;
  }

  .orbit-ring {
    width: 78vw;
  }

  .orbit-ring::before {
    inset: 3.5rem;
  }

  .orbit-item .bubble {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }

  .hero-card {
    left: 1rem;
  }
}