/* ============================================================
   Homepage — TKA SD & SMP
   Berdiri sendiri (tidak memuat style.css) agar ringan.
   ============================================================ */

:root {
  --ink: #101828;
  --ink-2: #475467;
  --muted: #98a2b3;
  --line: #eef0f4;
  --violet: #7c3aed;
  --violet-d: #6d28d9;
  --radius: 18px;
  --max: 1080px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; letter-spacing: -.03em; line-height: 1.1; font-weight: 800; }
p { margin: 0; }
svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand small { display: block; font-size: .62rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; line-height: 1; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, #8b5cf6, #6d28d9);
  box-shadow: 0 5px 14px -5px rgba(124,58,237,.85);
  flex: 0 0 auto;
}
.brand-mark--sm { width: 26px; height: 26px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a {
  font-size: .9rem; font-weight: 700; color: var(--ink-2);
  padding: 8px 13px; border-radius: 9px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: #f4f2ff; color: var(--violet-d); }
.btn--nav {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff !important;
  padding: 9px 18px !important; box-shadow: 0 6px 16px -6px rgba(124,58,237,.9);
}
.btn--nav:hover { filter: brightness(1.07); background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  cursor: pointer; padding: 0;
}

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; padding: 56px 0 44px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 380px at 78% -6%, #ece9ff 0%, rgba(236,233,255,0) 62%),
    radial-gradient(520px 340px at 4% 0%, #e6fbff 0%, rgba(230,251,255,0) 60%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
}
.hero-copy { max-width: 460px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  color: #067647; background: #ecfdf3; border: 1px solid #abefc6;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 0 rgba(18,183,106,.6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18,183,106,.55); }
  70% { box-shadow: 0 0 0 8px rgba(18,183,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); }
}

.hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 14px; }
.grad {
  background: linear-gradient(100deg, #7c3aed 10%, #db2777 55%, #f59e0b 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 26px; }

/* kartu pilih jenjang */
.level-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.lvcard {
  flex: 1 1 150px; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 15px; color: #fff;
  box-shadow: 0 12px 26px -14px rgba(16,24,40,.55);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative; overflow: hidden;
}
.lvcard::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: rgba(255,255,255,.16);
}
.lvcard:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -14px rgba(16,24,40,.6); }
.lvcard--sd { background: linear-gradient(135deg, #22c55e, #059669); }
.lvcard--smp { background: linear-gradient(135deg, #6366f1, #4338ca); }
.lvcard-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; }
.lvcard-ico svg { width: 26px; height: 26px; }
.lvcard-txt { display: flex; flex-direction: column; line-height: 1.15; }
.lvcard-txt strong { font-size: 1.12rem; font-weight: 800; }
.lvcard-txt small { font-size: .72rem; opacity: .9; font-weight: 600; }
.lvcard-arrow { margin-left: auto; font-size: 1.1rem; opacity: .8; position: relative; z-index: 1; }

.hero-art { display: block; }
.hero-art svg { width: 100%; height: auto; }

/* ===================== SECTIONS ===================== */
.section { padding: 52px 0; }
.section--tint { background: #fbfaff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.ttl { font-size: 1.35rem; margin-bottom: 22px; }

/* ===================== MAPEL ===================== */
.mapel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mcard {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--tint); border: 1px solid rgba(16,24,40,.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.mcard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--c) 32%, transparent);
  box-shadow: 0 14px 28px -18px rgba(16,24,40,.45);
}
.mcard-ico {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; background: var(--c);
  box-shadow: 0 8px 18px -9px var(--c);
}
.mcard-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mcard-body strong { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.mini-row { display: flex; gap: 5px; }
.mini {
  font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 5px;
}
.mini--sd { background: #dcfce7; color: #15803d; }
.mini--smp { background: #e0e7ff; color: #4338ca; }
.mcard-go { margin-left: auto; color: var(--c); font-weight: 800; opacity: .45; transition: opacity .16s, transform .16s; }
.mcard:hover .mcard-go { opacity: 1; transform: translateX(3px); }

/* ===================== KEUNGGULAN ===================== */
.feat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { display: flex; align-items: center; gap: 11px; }
.feat strong { font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.feat-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.feat-ico svg { width: 19px; height: 19px; }
.feat-ico--violet { background: #ede9fe; color: #6d28d9; }
.feat-ico--cyan { background: #cffafe; color: #0e7490; }
.feat-ico--amber { background: #fef3c7; color: #b45309; }

/* ===================== CTA ===================== */
.cta-sec { padding: 52px 0 60px; }
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: 34px 36px; border-radius: 22px;
  background: linear-gradient(120deg, #6d28d9 0%, #7c3aed 45%, #db2777 100%);
  box-shadow: 0 22px 48px -24px rgba(109,40,217,.85);
}
.cta::before {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.11);
}
.cta::after {
  content: ""; position: absolute; left: -50px; top: -80px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,.09);
}
.cta > div { position: relative; z-index: 1; }
.cta-ttl { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.cta-sub { color: #ede9fe; font-size: .92rem; }
.btn--cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--violet-d); font-weight: 800; font-size: .95rem;
  padding: 13px 24px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.45);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(0,0,0,.5); }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--line); padding: 26px 0 30px; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: .9rem; }
.footer a { font-size: .84rem; font-weight: 700; color: var(--violet-d); }
.footer a:hover { text-decoration: underline; }
.disclaimer { font-size: .74rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ===================== RESPONSIF ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: none; }
  .hero-art { order: -1; max-width: 400px; margin: 0 auto; width: 100%; }
  .hero { padding-top: 34px; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 14px 14px; box-shadow: 0 16px 30px -18px rgba(16,24,40,.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .btn--nav { text-align: center; margin-top: 4px; }
  .nav-toggle { display: flex; }
  .section { padding: 40px 0; }
  .mapel-grid { grid-template-columns: 1fr; }
  .feat-row { grid-template-columns: 1fr; gap: 16px; }
  .cta { padding: 26px 22px; }
  .cta-ttl { font-size: 1.28rem; }
  .btn--cta { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
