/* Ylabs — company profile. Satu hue ungu: malam (#1d1544) → violet aksi (#5b3df5) → lavender.
   Warna produk (oranye, hijau, pink, biru, kuning) hanya di gelembung dan baris produk. */

:root {
  --night: #1d1544;
  --night-2: #2a1e72;
  --violet: #5b3df5;
  --violet-deep: #4529c7;
  --glow: #9b82ff;
  --lavender: #ede9ff;
  --ink: #1e1a3c;
  --muted: #625c84;
  --bg: #f7f5fd;
  --card: #fff;
  --border: #e3dff3;
  --radius-sheet: 28px;
  --radius-chip: 10px;
  --font-brand: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-brand); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: var(--radius-chip); }
.on-dark :focus-visible, .hero :focus-visible, .how :focus-visible, .cta :focus-visible, .footer :focus-visible, .nav :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: #fff; color: var(--ink); border-radius: var(--radius-chip);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: 0 1.5rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--white { background: #fff; color: var(--night); box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.btn--white:hover { background: var(--lavender); }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.2); }
.btn--sm { min-height: 2.5rem; padding-inline: 1.1rem; font-size: .9rem; }

/* ---------- permukaan gelap bertekstur ---------- */
.surface-night { position: relative; isolation: isolate; color: #fff; }
.surface-night::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; color: #fff;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav.is-stuck {
  background: rgba(29,21,68,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 12px 32px -18px rgba(0,0,0,.6);
}
.nav__in { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.nav__links { display: none; gap: 1.5rem; font-weight: 600; font-size: .92rem; }
.nav__links a { text-decoration: none; color: rgba(255,255,255,.75); transition: color .18s; }
.nav__links a:hover { color: #fff; }
.nav .btn { margin-left: auto; }
@media (min-width: 48rem) { .nav__links { display: flex; } }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-brand); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand__mark {
  width: 2.1rem; height: 2.1rem; border-radius: 10px; flex: none;
  background: url("logo.svg") center / cover no-repeat;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.6);
  /* di beranda: maskot hero "mendarat" di sini saat digulir */
  opacity: var(--plate, 1);
}
.brand__name { translate: 0 1px; }

/* ---------- hero ---------- */
.hero {
  margin-top: -4rem;
  padding: 5.5rem 1.25rem 4rem;
  min-height: min(100dvh, 58rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #fff;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(155,130,255,.35), transparent 60%),
    linear-gradient(180deg, #170f3a 0%, var(--night-2) 55%, var(--violet-deep) 100%);
  position: relative; isolation: isolate; overflow-x: clip;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__mascot {
  width: min(clamp(190px, 34dvh, 320px), 100%);
  filter: drop-shadow(0 30px 40px rgba(10,5,40,.55));
  /* tombol: reset tampilan bawaan */
  appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: pointer;
  border-radius: 24px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.hero__mascot:focus-visible { outline: 3px solid #fff; outline-offset: 8px; }
.hero__mascot .flask { transform-box: fill-box; transform-origin: 50% 90%; }
.hero__mascot.is-poked .flask { animation: wobble .5s ease-out; }
@keyframes wobble {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.06, .94); }
  60% { transform: scale(.97, 1.03); }
  100% { transform: scale(1, 1); }
}
/* gelembung yang lepas: naik, melebar sedikit, lalu lenyap */
.hero__mascot .spawn circle {
  transform-box: fill-box; transform-origin: center;
  animation: pop var(--t, 1.6s) cubic-bezier(.2,.7,.3,1) forwards;
  --dx: 0px;
}
@keyframes pop {
  0% { opacity: 0; transform: translate(0, 0) scale(.3); }
  12% { opacity: 1; transform: translate(calc(var(--dx) * .2), -16px) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy, -140px)) scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mascot.is-poked .flask { animation: none; }
  .hero__mascot .spawn circle { animation-duration: .01s; }
}
.hero__mascot svg { overflow: visible; }
.hero__mascot .eyes { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .12s linear; }
.hero__mascot .bubbles a { cursor: pointer; }
.hero__mascot .bubbles circle { transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
.hero__mascot .bubbles a:hover circle, .hero__mascot .bubbles a:focus-visible circle { transform: scale(1.5); }
.hero__mascot .bubbles a:focus-visible { outline: none; }
.hero__mascot .bubbles a:focus-visible circle { stroke: #fff; stroke-width: 3; }
.hero__mascot .liquid { animation: slosh 6s ease-in-out infinite; }
.hero__mascot .escape circle { animation: rise 4s ease-in-out infinite; }
.hero__mascot .escape circle:last-child { animation-delay: -2s; }
@keyframes slosh { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-32px); } }
@keyframes rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .hero__mascot .liquid, .hero__mascot .escape circle { animation: none; }
  .hero__mascot .eyes { transition: none; }
}

.hero__hint { margin-top: .75rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.7); }
.hero__title {
  margin-top: 1rem;
  max-width: 14ch;
  font-size: clamp(42px, 10vw, 92px);
  line-height: .94; font-weight: 800; letter-spacing: -.045em;
}
.hero__body { margin-top: 1.25rem; max-width: 48ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.88); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; width: 100%; }
@media (max-width: 40rem) { .hero__actions .btn { width: 100%; } }

/* ---------- produk ---------- */
.products { padding: 5rem 0 6rem; }
.products__grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .products__grid { grid-template-columns: .75fr 1.25fr; gap: 4rem; }
  .products__head { position: sticky; top: 6rem; align-self: start; }
}
.products h2 { font-size: clamp(34px, 5vw, 54px); line-height: .98; font-weight: 800; letter-spacing: -.04em; }
.products__head p { margin-top: 1rem; max-width: 40ch; color: var(--muted); font-size: 1.05rem; }
.products__head em { font-style: normal; font-weight: 700; color: var(--violet); }

.plist { border-top: 1px solid var(--border); }
.prow {
  --p: var(--violet); --p-ink: var(--violet-deep);
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start;
  padding: 2rem 1rem 2rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5.5rem;
  transition: background-color .25s ease;
}
.prow::before {
  content: ""; position: absolute; inset: 0 -1rem; z-index: -1; border-radius: 20px;
  background: color-mix(in oklab, var(--p) 12%, transparent);
  opacity: 0; transition: opacity .25s ease;
}
.prow:hover::before, .prow.is-target::before { opacity: 1; }
.prow__icon {
  width: 3.5rem; height: 3.5rem; margin-top: .2rem; border-radius: 16px;
  box-shadow: 0 10px 20px -10px color-mix(in oklab, var(--p) 70%, black);
  transition: transform .25s ease;
}
.prow:hover .prow__icon, .prow.is-target .prow__icon { transform: rotate(-4deg) scale(1.06); }
@media (min-width: 48rem) { .prow__icon { width: 4.5rem; height: 4.5rem; border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .prow__icon { transition: none; } }
.prow h3 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.prow p { margin-top: .5rem; max-width: 52ch; color: var(--ink); opacity: .85; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; font-size: .8rem; font-weight: 700; }
.tags li { padding: .25rem .65rem; border-radius: 999px; background: var(--lavender); color: var(--violet-deep); }
.tags .tag--live { background: color-mix(in oklab, var(--p) 22%, white); color: var(--p-ink); }
.tags .tag--soon { background: #fff; border: 1px dashed var(--border); color: var(--muted); }
.prow__link {
  grid-column: 2; justify-self: start;
  font-weight: 700; color: var(--p-ink); text-decoration: none;
  padding: .55rem 1rem; border-radius: 999px; background: color-mix(in oklab, var(--p) 18%, white);
  transition: background-color .18s;
}
a.prow__link:hover { background: color-mix(in oklab, var(--p) 32%, white); }
.prow__link--soon { background: transparent; color: var(--muted); padding-inline: 0; }
@media (min-width: 40rem) {
  .prow { grid-template-columns: auto 1fr auto; }
  .prow__link { grid-column: auto; align-self: center; }
}

/* ---------- cara kerja ---------- */
.how { padding: 5.5rem 0; color: #fff; background: var(--night); position: relative; isolation: isolate; }
.how::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.how h2 { font-size: clamp(34px, 5vw, 54px); line-height: .98; font-weight: 800; letter-spacing: -.04em; max-width: 14ch; }
.how__grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .how__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.how article {
  padding: 1.75rem; border-radius: 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.how h3 { font-size: 1.35rem; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.how article p { margin-top: .75rem; color: rgba(255,255,255,.75); }
.how article:nth-child(1) h3::before, .how article:nth-child(2) h3::before, .how article:nth-child(3) h3::before {
  content: ""; display: block; width: 2.25rem; height: .35rem; border-radius: 999px; margin-bottom: 1rem; background: var(--glow);
}

/* ---------- tentang ---------- */
.about { padding: 5.5rem 0; }
.about__in { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .about__in { grid-template-columns: .75fr 1.25fr; gap: 4rem; } }
.about h2 { font-size: clamp(34px, 5vw, 54px); line-height: .98; font-weight: 800; letter-spacing: -.04em; }
.about__text { display: grid; gap: 1.25rem; }
.about__text p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 52ch; }
.about__text p:first-child { font-family: var(--font-brand); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3; letter-spacing: -.02em; }

/* ---------- cta ---------- */
.cta { padding: 0 0 5rem; }
.cta__card {
  padding: 3.5rem 1.5rem; text-align: center; color: #fff;
  border-radius: var(--radius-sheet);
  background: linear-gradient(180deg, var(--night-2), var(--violet));
  box-shadow: 0 40px 80px -40px rgba(42,30,114,.7);
  display: flex; flex-direction: column; align-items: center;
}
@media (min-width: 48rem) { .cta__card { padding: 5rem 2.5rem; } }
.cta__logo { margin-bottom: 1.5rem; border-radius: 24px; filter: drop-shadow(0 18px 26px rgba(10,5,40,.45)); }
.cta h2 { font-size: clamp(34px, 6vw, 64px); line-height: .96; font-weight: 800; letter-spacing: -.045em; max-width: 16ch; }
.cta p { margin-top: 1rem; max-width: 40ch; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.cta .btn { margin-top: 2rem; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: #fff; font-size: .92rem; }
.footer__in { display: grid; gap: 2.5rem; padding: 3rem 0; }
@media (min-width: 48rem) { .footer__in { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand p { margin-top: .75rem; max-width: 30ch; color: rgba(255,255,255,.7); }
.footer__head { font-weight: 700; }
.footer ul { margin-top: .75rem; display: grid; gap: .6rem; }
.footer a:not(.brand) { color: rgba(255,255,255,.7); text-decoration: none; }
.footer a:not(.brand):hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .8rem; color: rgba(255,255,255,.6); }
