*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --pink-50:  #fff0f3;
  --pink-100: #fddde6;
  --pink-200: #f9b8c8;
  --pink-300: #f490a8;
  --pink-400: #e8708a;
  --sage-50:  #f2f7f4;
  --sage-100: #d9eee3;
  --sage-200: #b4d9c5;
  --sage-300: #88c0a4;
  --sage-400: #5fa482;
  --cream:    #fdf8f4;
  --brown:    #5c3d2e;
  --text:     #3d2b24;
  --text-light: #8a7570;
  --white:    #ffffff;
  --shadow-sm: 0 2px 12px rgba(92,61,46,.08);
  --shadow-md: 0 8px 32px rgba(92,61,46,.13);
  --shadow-lg: 0 20px 60px rgba(92,61,46,.16);
  --radius:   18px;
  --radius-sm: 10px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
}

/* ===== DECORATIVE YARN CIRCLES ===== */
.yarn-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .35;
  filter: blur(60px);
}

/* ===== NAVBAR ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,248,244,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pink-100);
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}

.nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--pink-300), var(--sage-300));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: -.02em;
}

.logo-img {
  height: 64px;  
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .25s;
}

.nav-links a:hover { color: var(--pink-400); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.3rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s, box-shadow .22s, background .22s, color .22s;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid var(--pink-200);
}

.btn-ghost:hover {
  background: var(--pink-50);
  border-color: var(--pink-300);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-300) 0%, var(--pink-400) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(232,112,138,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232,112,138,.45);
}

.btn-sage {
  background: linear-gradient(135deg, var(--sage-200) 0%, var(--sage-300) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(95,164,130,.28);
}

.btn-sage:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(95,164,130,.38);
}

.btn-lg {
  padding: .8rem 2rem;
  font-size: 1rem;
}

/* ===== HERO ===== */
#beranda {
  position: relative;
  overflow: hidden;
  padding: 5rem 5vw 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

#beranda .yarn-blob.b1 {
  width: 520px; height: 520px;
  background: var(--pink-200);
  top: -120px; right: -80px;
}

#beranda .yarn-blob.b2 {
  width: 340px; height: 340px;
  background: var(--sage-200);
  bottom: -60px; left: -60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--pink-100);
  color: var(--pink-400);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--brown);
  margin-bottom: 1.2rem;
  letter-spacing: -.03em;
}

.hero-title em {
  font-style: italic;
  color: var(--pink-400);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 430px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat { text-align: left; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .2rem;
}

/* Hero Image Placeholder */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-frame {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--pink-100) 0%, var(--sage-100) 100%);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--text-light);
  font-size: .9rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(249,184,200,.4), transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(180,217,197,.35), transparent 60%);
}

.hero-img-icon {
  font-size: 5rem;
  position: relative;
  z-index: 1;
}

.hero-img-caption {
  position: relative;
  z-index: 1;
  font-size: .82rem;
  color: var(--text-light);
  letter-spacing: .03em;
}

/* Floating badge */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
}

.float-badge.top-left {
  top: 8%;
  left: -5%;
}

.float-badge.bottom-right {
  bottom: 12%;
  right: -5%;
}

.badge-icon { font-size: 1.1rem; }

.badge-title {
  font-weight: 500;
  font-size: .82rem;
}

.badge-sub {
  font-size: .72rem;
  color: var(--text-light);
}

/* ===== SECTION BASE ===== */
section { padding: 5rem 5vw; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-400);
  margin-bottom: .8rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--brown);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 3rem;
}

.section-center {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== KURSUS ===== */
#kursus {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#kursus .yarn-blob.b3 {
  width: 450px; height: 450px;
  background: var(--sage-100);
  top: -100px; right: -100px;
  opacity: .5;
  filter: blur(80px);
}

.kursus-header {
  position: relative;
  z-index: 1;
}

.kursus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  position: relative;
  z-index: 1;
}

.kursus-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--pink-100);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(92,61,46,.5);
  letter-spacing: .03em;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.card-img-photo {
  width: 100%;
  height: 100%;       
  object-fit: cover;
  display: block;
  transition: 0.3s ease;
}
.card:hover .card-img-photo {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.card-img-icon { font-size: 3.5rem; }

.card-img.pink-bg {
  background: linear-gradient(145deg, var(--pink-100), var(--pink-200));
}

.card-img.sage-bg {
  background: linear-gradient(145deg, var(--sage-100), var(--sage-200));
}

.card-img.mixed-bg {
  background: linear-gradient(145deg, #f9e4ec, #d9eee3);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--pink-400);
  font-size: .72rem;
  font-weight: 500;
  padding: .2rem .65rem;
  border-radius: 50px;
  border: 1px solid var(--pink-200);
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}

.card-level {
  font-size: .75rem;
  font-weight: 500;
  color: var(--sage-400);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.3;
}

.card-desc {
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 300;
  flex: 1;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .3rem;
}

.card-meta span { display: flex; align-items: center; gap: .3rem; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--pink-100);
}

.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown);
}

.card-price .old-price {
  font-size: .82rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
  display: block;
  margin-bottom: .1rem;
}

/* ===== TESTIMONI ===== */
#testimoni {
  background: linear-gradient(160deg, var(--pink-50) 0%, var(--sage-50) 100%);
  position: relative;
  overflow: hidden;
}

#testimoni .yarn-blob.b4 {
  width: 380px; height: 380px;
  background: var(--pink-200);
  bottom: -80px; left: -60px;
  opacity: .4;
  filter: blur(70px);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--pink-100);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testi-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: .1em;
}

.testi-text {
  font-size: .92rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.7;
  font-style: italic;
}

.testi-text::before { content: '\201C'; }
.testi-text::after  { content: '\201D'; }

.testi-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: auto;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.testi-avatar.av1 { background: var(--pink-100); }
.testi-avatar.av2 { background: var(--sage-100); }
.testi-avatar.av3 { background: linear-gradient(135deg, var(--pink-100), var(--sage-100)); }

.testi-name {
  font-weight: 500;
  font-size: .9rem;
  color: var(--brown);
}

.testi-kursus {
  font-size: .78rem;
  color: var(--text-light);
}

/* ===== FOOTER ===== */
footer {
  background: var(--brown);
  color: rgba(255,255,255,.75);
  padding: 3rem 5vw 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .65rem;
  display: block;
}

.footer-brand p {
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 270px;
}

.footer-socials {
  display: flex;
  gap: .7rem;
  margin-top: 1.3rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background .25s, transform .25s;
}

.social-btn:hover {
  background: var(--pink-300);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }

.footer-col a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 300;
  transition: color .22s;
}

.footer-col a:hover { color: var(--pink-200); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img-frame { max-width: 300px; border-radius: 50%; aspect-ratio: 1; }
  .float-badge.top-left { top: 5%; left: 2%; }
  .float-badge.bottom-right { bottom: 5%; right: 2%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
