/* ===========================================================
   KITA landing page
   Tokens derived straight from the brand sheet: Navy / Amber /
   Mint / Warm White / Charcoal, Plus Jakarta Sans everywhere.
   =========================================================== */

:root {
  --navy: #252B48;
  --navy-soft: #3B4470;
  --navy-deep: #171B30;
  --amber: #FFB84D;
  --amber-deep: #F2971F;
  --mint: #BFE8D5;
  --teal: #1E9E82;
  --warm: #FAF9F6;
  --warm-dim: #F1EEE6;
  --charcoal: #224224;
  --ink: #20242B;
  --periwinkle: #7B85C4;

  --font: "Plus Jakarta Sans", system-ui, sans-serif;

  --container: 1160px;
  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--warm);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3 { font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; line-height: 1.6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-amber {
  background: var(--amber);
  color: var(--navy-deep);
  box-shadow: 0 10px 24px -8px rgba(255, 184, 77, 0.7);
}
.btn-amber:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(255, 184, 77, 0.8); }
.btn-ghost-light {
  background: transparent;
  color: var(--warm);
  border: 1.5px solid rgba(250, 249, 246, 0.4);
}
.btn-ghost-light:hover { background: rgba(250, 249, 246, 0.12); border-color: rgba(250, 249, 246, 0.7); }
.btn-small { padding: 10px 20px; font-size: 13.5px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 66, 36, 0.08);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark { width: 30px; height: 30px; }
.nav-word { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.nav-word i { font-style: normal; color: var(--amber-deep); }
.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink); opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 90% at 30% 0%, var(--navy-soft), var(--navy) 55%, var(--navy-deep) 100%);
  padding: 96px 28px 140px;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-sky { position: absolute; inset: 0; overflow: hidden; }
.hero-sky .star {
  position: absolute;
  background: var(--amber);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0.85;
  animation: twinkle 3.6s ease-in-out infinite;
}
.hero-sky .dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(250, 249, 246, 0.55);
  animation: twinkle 4.2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  min-width: 0;
  margin: 0 auto;
  margin-left: max(28px, calc(50% - 560px));
  text-align: left;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 58px);
  color: var(--warm);
}
.hero-title-accent { color: var(--amber); }
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  max-width: 480px;
  color: rgba(250, 249, 246, 0.78);
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-illustration {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: min(46vw, 460px);
  z-index: 1;
  opacity: 0.96;
}
.hero-figure { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 900px) {
  .hero-illustration { position: relative; right: auto; bottom: auto; width: 78vw; margin: 40px auto 0; }
  .hero-inner { margin-left: auto; margin-right: auto; text-align: center; padding: 0 16px; }
  .hero-cta { justify-content: center; }
  .hero { flex-direction: column; padding-bottom: 40px; }
  .btn { white-space: normal; text-align: center; }
}

/* ---------- context strip ---------- */
.context-strip {
  background: var(--mint);
  padding: 22px 28px;
  text-align: center;
}
.context-strip p {
  max-width: 640px;
  margin: 0 auto;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 15px;
}

/* ---------- section head ---------- */
.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 0 24px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); color: var(--navy); }
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--ink); opacity: 0.72; }
.section-head-light h2 { color: var(--warm); }
.section-head-light p { color: rgba(250, 249, 246, 0.72); }

/* ---------- roles ---------- */
.roles { padding: 110px 24px; max-width: var(--container); margin: 0 auto; }

.role-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.role-tab {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(34, 66, 36, 0.14);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.role-tab:hover { border-color: var(--navy); }
.role-tab.is-active { background: var(--navy); border-color: var(--navy); color: var(--warm); }

.role-panels { position: relative; }
.role-panel {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  background: var(--warm-dim);
  border-radius: var(--radius-l);
  padding: 52px;
}
.role-panel.is-active { display: grid; }
.role-panel-text h3 { font-size: 25px; color: var(--navy); margin-bottom: 12px; }
.role-panel-text > p { opacity: 0.75; margin-bottom: 22px; font-size: 15.5px; }
.role-panel-text ul { display: flex; flex-direction: column; gap: 12px; }
.role-panel-text li {
  font-size: 15px;
  padding-left: 26px;
  position: relative;
  color: var(--ink);
}
.role-panel-text li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.role-panel-art {
  aspect-ratio: 1 / 0.85;
  border-radius: var(--radius-m);
  background: linear-gradient(145deg, var(--navy), var(--navy-soft));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}
.role-panel-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 20%, rgba(255,184,77,0.35), transparent 40%),
                     radial-gradient(circle at 20% 80%, rgba(191,232,213,0.3), transparent 45%);
}
.role-art-svg { position: relative; z-index: 1; width: 100%; max-width: 300px; }
.role-panel-art[data-art="sekolah"] { background: linear-gradient(145deg, var(--teal), #14705B); }
.role-panel-art[data-art="ortu"] { background: linear-gradient(145deg, var(--periwinkle), var(--navy-soft)); }
.role-panel-art[data-art="siswa"] { background: linear-gradient(145deg, var(--amber-deep), #C97400); }

@media (max-width: 820px) {
  .role-panel { grid-template-columns: 1fr; padding: 32px 24px; }
  .role-panel-art { order: -1; aspect-ratio: 16/10; }
}

/* ---------- journey (signature moment) ---------- */
.journey {
  background: var(--navy-deep);
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
.journey-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 1400px;
}
.journey-path { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.journey-walker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
  will-change: transform;
}

.journey-stop {
  position: absolute;
  top: var(--stop-top);
  width: 46%;
  transform: translateY(-50%);
}
.journey-stop[data-align="left"] { left: 0; text-align: right; }
.journey-stop[data-align="right"] { right: 0; text-align: left; }

.journey-dot {
  display: none;
}

.journey-card {
  background: rgba(250, 249, 246, 0.05);
  border: 1px solid rgba(250, 249, 246, 0.1);
  border-radius: var(--radius-m);
  padding: 26px 28px;
  backdrop-filter: blur(6px);
}
.journey-card-final { background: var(--amber); border-color: transparent; }
.journey-card-final .journey-kicker,
.journey-card-final h3,
.journey-card-final p { color: var(--navy-deep); }

.journey-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 8px;
}
.journey-card h3 { font-size: 19px; color: var(--warm); margin-bottom: 8px; }
.journey-card p { font-size: 14.5px; color: rgba(250, 249, 246, 0.68); }

@media (max-width: 780px) {
  .journey-path, .journey-walker { display: none; }
  .journey-track { min-height: 0; }
  .journey-stop {
    position: static;
    width: 100%;
    transform: none;
    text-align: left !important;
    margin-bottom: 20px;
  }
}

/* ---------- modules ---------- */
.modules { padding: 110px 24px; max-width: var(--container); margin: 0 auto; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}
.module-card {
  background: var(--warm-dim);
  border-radius: var(--radius-m);
  padding: 30px;
  grid-column: span 2;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -18px rgba(37, 43, 72, 0.35);
}
.module-card-feature {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.module-card-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 10%, rgba(255,255,255,0.14), transparent 45%);
  pointer-events: none;
}
.module-navy { background: linear-gradient(150deg, var(--navy), var(--navy-soft)); }
.module-navy h3, .module-navy p { color: var(--warm); }
.module-navy p { opacity: 0.75; }
.module-mint { background: linear-gradient(150deg, var(--mint), #9BD8C0); }
.module-mint h3, .module-mint p { color: var(--charcoal); }

.module-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 24px;
  margin-bottom: 16px;
}
.module-icon-light { background: rgba(250, 249, 246, 0.16); }
.module-icon-dark { background: rgba(34, 66, 36, 0.14); }
.module-icon-amber { background: rgba(255, 184, 77, 0.28); }
.module-icon-mint { background: rgba(30, 158, 130, 0.16); }
.module-icon-navy { background: rgba(37, 43, 72, 0.1); }

.module-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; position: relative; z-index: 1; }
.module-card p { font-size: 14px; opacity: 0.7; position: relative; z-index: 1; }

@media (max-width: 900px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .module-card, .module-card-feature { grid-column: span 2; grid-row: span 1; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--teal);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 2; }
.cta-banner h2 { color: var(--navy-deep); font-size: clamp(28px, 4vw, 40px); }
.cta-banner p { margin-top: 16px; color: rgba(23, 27, 48, 0.75); font-size: 16.5px; }
.cta-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-ghost-light { color: var(--navy-deep); border-color: rgba(23,27,48,0.3); }
.cta-banner .btn-ghost-light:hover { background: rgba(23,27,48,0.08); border-color: rgba(23,27,48,0.5); }
.cta-spark { position: absolute; width: 46px; opacity: 0.5; animation: twinkle 3.2s ease-in-out infinite; }
.cta-spark-1 { top: 14%; left: 8%; }
.cta-spark-2 { bottom: 12%; right: 10%; width: 34px; animation-delay: 1.1s; }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); padding: 44px 24px; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand .footer-logo { height: 22px; width: auto; }
.footer-brand p { margin-top: 8px; font-size: 13px; color: rgba(250,249,246,0.55); }
.footer-copy { font-size: 13px; color: rgba(250,249,246,0.45); }
