/* ============================================================
   MAINKODE — landing page
   Aesthetic: playful software-house · warm cream + plum ink
   + puzzle-color accents (coral / green / blue / sunshine)
   ============================================================ */

:root {
  /* palette */
  --cream:    #FBF5EC;
  --cream-2:  #F4EADA;
  --ink:      #2C1A2E;   /* plum, from mascot hair */
  --ink-soft: #4A3450;
  --coral:    #FF6B5E;
  --green:    #4FB286;
  --blue:     #4A9DE0;
  --yellow:   #F7C548;
  --line:     rgba(44, 26, 46, 0.12);

  --shadow-pop: 6px 6px 0 var(--ink);
  --shadow-soft: 0 24px 60px -28px rgba(44, 26, 46, 0.45);

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;

  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* subtle paper grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ---------- shared layout ---------- */
.section {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head h2,
.why-head h2,
.cta-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-head p { margin-top: 1.1rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }

.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 1rem;
}
.eyebrow--light { color: var(--yellow); }

.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em;
  height: 0.34em; background: var(--coral); z-index: -1; border-radius: 4px;
  transform: rotate(-1.4deg);
}
.hl--green::after  { background: var(--green); }
.hl--blue::after   { background: var(--blue); }
.hl--yellow::after { background: var(--yellow); }
.hl--coral::after  { background: var(--coral); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  border: 2.5px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer; white-space: nowrap;
}
.btn--coral { background: var(--coral); color: #fff; box-shadow: var(--shadow-pop); }
.btn--ink   { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost-light { color: var(--cream); border-color: var(--cream); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-pop); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); box-shadow: 8px 8px 0 var(--coral); }
.btn--ink:hover { box-shadow: 8px 8px 0 var(--coral); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(251, 245, 236, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.01em; line-height: 1;
}
.brand-word em { font-style: normal; color: var(--coral); }
.brand-mark {
  position: relative; width: 28px; height: 28px; border-radius: 7px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 2px; padding: 2px; background: var(--ink);
  transform: rotate(-6deg);
}
.puz { border-radius: 3px 3px 3px 3px; }
.puz--r { background: var(--coral); border-radius: 6px 2px 2px 2px; }
.puz--g { background: var(--green); border-radius: 2px 6px 2px 2px; }
.puz--b { background: var(--blue);  border-radius: 2px 2px 2px 6px; }
.puz--y { background: var(--yellow);border-radius: 2px 2px 6px 2px; }

.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-weight: 600; font-size: 0.98rem; color: var(--ink-soft);
  position: relative; padding: 0.2rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--coral); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-size: 0.92rem; padding: 0.6rem 1.15rem; }

.nav-burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem; align-items: center;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(8px); z-index: -1; opacity: 0.5; }
.hero-blob--1 { width: 360px; height: 360px; background: var(--yellow); top: -60px; right: 18%; opacity: 0.35; }
.hero-blob--2 { width: 300px; height: 300px; background: var(--blue); bottom: -40px; left: -60px; opacity: 0.25; }

.hero-copy { max-width: 560px; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.4rem 0.9rem; font-weight: 600; font-size: 0.85rem;
  box-shadow: 3px 3px 0 var(--ink); margin-bottom: 1.6rem;
}
.pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(79,178,134,0.25); }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.7rem); line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero-title span { display: inline-block; margin-right: 0.18em; }
.hero-title .hl { color: var(--ink); }

.hero-sub { margin-top: 1.6rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; }

.hero-actions { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 2.4rem; margin-top: 2.8rem; list-style: none;
  border-top: 2px dashed var(--line); padding-top: 1.6rem;
}
.hero-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); }
.hero-stats li b::after { content: "+"; color: var(--coral); }
.hero-stats li:nth-child(3) b::after { content: ""; }

/* hero art */
.hero-art { display: flex; justify-content: center; }
.hero-stage { position: relative; width: min(420px, 90%); }
.hero-disc {
  position: absolute; inset: 6% 4% 2% 4%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--cream-2) 70%, transparent 72%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--ink), 0 30px 60px -30px rgba(44,26,46,0.5);
}
.hero-disc::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 3px dashed var(--ink); opacity: 0.18;
  animation: spin 26s linear infinite;
}
.hero-mascot {
  position: relative; z-index: 2; width: 100%;
  filter: drop-shadow(0 24px 24px rgba(44,26,46,0.28));
  animation: float 5s ease-in-out infinite;
}
.hero-tag {
  position: absolute; z-index: 3; background: #fff;
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 0.55rem 0.8rem; font-size: 0.78rem; line-height: 1.25;
  display: flex; align-items: center; gap: 0.55rem;
  box-shadow: var(--shadow-pop);
}
.hero-tag b { font-family: var(--font-display); }
.tag-emoji { font-size: 1.3rem; }
.hero-tag--top { top: 6%; left: -8%; animation: float 6s ease-in-out infinite; }
.hero-tag--bottom { bottom: 8%; right: -6%; animation: float 5.5s ease-in-out infinite 0.4s; }

.spark { position: absolute; z-index: 3; font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.spark--1 { top: 0; right: 8%; font-size: 1.5rem; color: var(--coral); animation: float 4.5s ease-in-out infinite; }
.spark--2 { bottom: 18%; left: -2%; font-size: 1.7rem; color: var(--blue); animation: float 6.5s ease-in-out infinite; }
.spark--3 { top: 40%; right: -4%; font-size: 1.2rem; color: var(--yellow); animation: spin 8s linear infinite; }

@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
@keyframes spin  { to { transform: rotate(360deg); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--ink); color: var(--cream);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  padding: 1rem 0; transform: rotate(-1.2deg) scale(1.04); margin: 1rem 0;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 1.6rem;
  white-space: nowrap; animation: scroll 26s linear infinite;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
}
.marquee-track .dot { color: var(--coral); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   LAYANAN — cards
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 22px;
  padding: 1.8rem 1.5rem; position: relative; overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
}
.card--coral::before  { background: var(--coral); }
.card--blue::before   { background: var(--blue); }
.card--yellow::before { background: var(--yellow); }
.card--green::before  { background: var(--green); }
.card-ic {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; font-size: 1.6rem; margin: 0.4rem 0 1rem;
  border: 2px solid var(--ink);
}
.card--coral .card-ic  { background: rgba(255,107,94,0.15); }
.card--blue .card-ic   { background: rgba(74,157,224,0.15); }
.card--yellow .card-ic { background: rgba(247,197,72,0.2); }
.card--green .card-ic  { background: rgba(79,178,134,0.15); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card-tags { display: block; margin-top: 1.1rem; font-size: 0.78rem; font-weight: 600; color: var(--ink); opacity: 0.55; }
.card:hover { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: var(--shadow-pop); }

/* ============================================================
   KENAPA — dark section
   ============================================================ */
.section--ink {
  max-width: none; padding: 0; margin: 2rem 0;
}
.why-wrap {
  background: var(--ink); color: var(--cream);
  max-width: var(--maxw); margin: 0 auto; border-radius: 32px;
  padding: 5rem 3rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.why-wrap::before {
  content: ""; position: absolute; top: -80px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,94,0.35), transparent 70%);
}
.why-head { max-width: 640px; margin-bottom: 3rem; position: relative; }
.why-head p { color: rgba(251,245,236,0.7); margin-top: 1rem; font-size: 1.1rem; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; position: relative; }
.why-item {
  border: 1px solid rgba(251,245,236,0.16); border-radius: 18px;
  padding: 1.6rem; background: rgba(251,245,236,0.03);
  transition: background 0.25s ease, transform 0.25s ease;
}
.why-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--yellow); }
.why-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 0.4rem 0 0.5rem; }
.why-item p { color: rgba(251,245,236,0.72); font-size: 0.95rem; }
.why-item:hover { background: rgba(251,245,236,0.08); transform: translateY(-4px); }

/* ============================================================
   PROSES — steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; list-style: none; counter-reset: s; }
.step { position: relative; padding-top: 1.5rem; border-top: 3px solid var(--ink); }
.step-no {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--cream-2); border: 2.5px solid var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  margin-bottom: 1rem;
}
.step:nth-child(1) .step-no { background: var(--coral); color: #fff; }
.step:nth-child(2) .step-no { background: var(--blue); color: #fff; }
.step:nth-child(3) .step-no { background: var(--green); color: #fff; }
.step:nth-child(4) .step-no { background: var(--yellow); }
.step h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   KARYA — works
   ============================================================ */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.work {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 22px;
  overflow: hidden; transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.work-thumb {
  height: 180px; display: grid; place-items: center; position: relative;
  border-bottom: 2.5px solid var(--ink);
}
.work-thumb span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.3rem 1rem; box-shadow: 3px 3px 0 var(--ink);
}
.work-thumb--a { background: repeating-linear-gradient(45deg, var(--coral), var(--coral) 16px, #ff8378 16px, #ff8378 32px); }
.work-thumb--b { background: repeating-linear-gradient(45deg, var(--blue), var(--blue) 16px, #66aee6 16px, #66aee6 32px); }
.work-thumb--c { background: repeating-linear-gradient(45deg, var(--green), var(--green) 16px, #6cc39d 16px, #6cc39d 32px); }
.work h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 1.2rem 1.3rem 0.4rem; }
.work p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 1.3rem 1.4rem; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 6rem; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--coral); color: #fff;
  border: 3px solid var(--ink); border-radius: 32px;
  padding: 4rem 3rem; display: grid; grid-template-columns: 1.4fr 0.6fr;
  align-items: center; gap: 2rem; box-shadow: 10px 10px 0 var(--ink);
}
.cta-blob {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,0.18); top: -120px; left: -80px;
}
.cta-text { position: relative; z-index: 2; }
.cta-text .eyebrow--light { color: var(--ink); }
.cta-text h2 { color: #fff; }
.cta-text p { margin-top: 1rem; font-size: 1.1rem; max-width: 40ch; color: rgba(255,255,255,0.92); }
.cta-actions { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }
.cta-actions .btn--coral { background: var(--ink); border-color: var(--ink); box-shadow: 6px 6px 0 rgba(44,26,46,0.4); }
.cta-actions .btn--coral:hover { box-shadow: 8px 8px 0 rgba(44,26,46,0.55); }
.cta-mascot {
  position: relative; z-index: 2; width: 100%; max-width: 240px; margin: 0 auto;
  filter: drop-shadow(0 20px 20px rgba(44,26,46,0.3));
  transform: scaleX(-1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 2; background: var(--ink); color: var(--cream);
  padding: 4rem 1.5rem 2rem;
}
.footer-top {
  max-width: var(--maxw); margin: 0 auto 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(251,245,236,0.15);
}
.footer .brand-word { color: var(--cream); }
.footer-tag { color: rgba(251,245,236,0.6); max-width: 30ch; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-grid h5 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 1rem; color: var(--yellow); }
.footer-grid a { display: block; color: rgba(251,245,236,0.72); font-size: 0.95rem; padding: 0.25rem 0; transition: color 0.2s; }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(251,245,236,0.15);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(251,245,236,0.6);
}
.footer-bottom code { background: rgba(251,245,236,0.1); padding: 1px 6px; border-radius: 5px; }
.heart { color: var(--coral); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal, .reveal-up { opacity: 0; }
.reveal { transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-up { transform: translateY(30px); transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1); }
.reveal-up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; text-align: left; }
  .hero-art { order: -1; }
  .hero-stage { width: min(320px, 80%); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-mascot { display: none; }
  .section { padding: 5rem 1.5rem; }
  .why-wrap { padding: 3.5rem 1.8rem; }
}

@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .hero-stats b { font-size: 1.6rem; }
  .cta-card { padding: 2.5rem 1.6rem; }
  .hero-tag--top { left: -2%; }
  .hero-tag--bottom { right: -2%; }
}

/* mobile menu open state */
.nav.open .nav-links {
  display: flex; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 0; background: var(--cream);
  border-bottom: 2px solid var(--ink); padding: 0.5rem 1.5rem 1.2rem;
}
.nav.open .nav-links a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
