/* ==========================================================================
   beautylover.id — CV Kiana Persada Kosmetika
   Palet: aubergine pekat + pink #FF6FFF. Display Bodoni Moda, utilitas Archivo.
   ========================================================================== */

:root {
  --ink:        #180a1d;
  --ink-raise:  #26102c;
  --ink-line:   rgba(255, 111, 255, .18);

  --bloom:      #ff6fff;
  --bloom-deep: #b01c86;
  --petal:      #ffe7fc;
  --shell:      #fff6fd;
  --chalk:      #efdcee;
  --chalk-dim:  #bfa3bf;

  --display: 'Bodoni Moda', 'Times New Roman', serif;
  --util:    'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad-y:  clamp(4.5rem, 9vw, 8rem);
  --nav-h:  4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--util);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--bloom); color: var(--ink); }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 50%; top: 0; z-index: 200;
  transform: translate(-50%, -120%);
  background: var(--bloom); color: var(--ink);
  padding: .7rem 1.4rem; font-weight: 700; text-decoration: none;
  border-radius: 0 0 .4rem .4rem;
}
.skip:focus { transform: translate(-50%, 0); }

:focus-visible {
  outline: 2px solid var(--bloom);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- Tipografi bersama ------------------------------------------- */

.eyebrow {
  margin: 0 0 1.4rem;
  font-family: var(--util);
  font-size: .72rem;
  font-weight: 700;
  font-stretch: 82%;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bloom);
}
.eyebrow-dark { color: var(--bloom-deep); }
.nowrap { white-space: nowrap; }

.h-display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.h-display em {
  font-style: italic;
  font-weight: 600;
  color: var(--bloom-deep);
}
.h-section { max-width: 20ch; }

/* ---------- Tombol ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--util);
  font-size: .82rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-sm { padding: .6rem 1.2rem; font-size: .72rem; }

.btn-pink { background: var(--bloom); color: var(--ink); }
.btn-pink:hover { background: #ffa5ff; transform: translateY(-2px); }

.btn-ghost { border-color: var(--ink-line); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--bloom); color: var(--bloom); transform: translateY(-2px); }

.link {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bloom-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .18s ease, color .18s ease;
}
.link::after { content: '\2192'; }
.link:hover { gap: .9rem; color: var(--ink); }
.link-light { color: var(--bloom); }
.link-light:hover { color: #ffc4ff; }

/* ---------- Navigasi ----------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(24, 10, 29, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.nav.is-stuck,
.nav.is-open {
  background: rgba(24, 10, 29, .97);
  border-bottom-color: var(--ink-line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--chalk);
}
.nav-brand img { width: auto; height: 2.3rem; }
.nav-brand span {
  font-size: .62rem;
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
  padding-left: .8rem;
  border-left: 1px solid var(--ink-line);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav-menu > a {
  font-size: .74rem;
  font-weight: 600;
  font-stretch: 90%;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chalk);
  transition: color .18s ease;
}
.nav-menu > a:hover { color: var(--bloom); }
.nav-menu > a.btn { color: var(--ink); }
.nav-menu > a.btn:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem; height: 2.75rem;
  background: none;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 1.15rem; height: 1.5px;
  background: var(--bloom);
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -5px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, 4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero: dinding merek ------------------------------------------ */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--chalk);
  overflow: hidden;
  isolation: isolate;
}

.wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding-top: var(--nav-h);
  user-select: none;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wall::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 78% at 20% 52%, rgba(24, 10, 29, .96) 0%, rgba(24, 10, 29, .78) 42%, rgba(24, 10, 29, 0) 78%),
    linear-gradient(180deg, rgba(24, 10, 29, .9) 0%, rgba(24, 10, 29, 0) 22%, rgba(24, 10, 29, 0) 70%, var(--ink) 100%);
}

.wall-row { overflow: hidden; }
.wall-track {
  display: flex;
  width: max-content;
  animation: wall-slide var(--dur, 80s) linear infinite;
}
.wall-rev .wall-track { animation-direction: reverse; }
@keyframes wall-slide { to { transform: translate3d(-50%, 0, 0); } }

.wall-seq {
  display: flex;
  align-items: center;
  font-family: var(--util);
  font-weight: 800;
  font-stretch: 70%;
  font-size: clamp(1.9rem, 5.2vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wall-seq b { font-weight: inherit; }
.wall-seq i {
  font-style: normal;
  font-size: .42em;
  color: var(--bloom);
  opacity: .55;
  -webkit-text-stroke: 0;
  margin: 0 .55em;
  transform: translateY(-.12em);
}

.wall-stroke b { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 111, 255, .34); }
.wall-fill   b { color: rgba(255, 111, 255, .10); }
.wall-lead   b { color: rgba(255, 111, 255, .16); }
.wall-lead b:first-child {
  color: var(--bloom);
  text-shadow: 0 0 48px rgba(255, 111, 255, .5);
}

.hero-in {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
  max-width: 100%;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.1rem + 5.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 1.6rem;
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--bloom);
}

.hero-lede {
  max-width: 46ch;
  margin: 0 0 2.4rem;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  color: var(--chalk);
}
.hero-lede strong { color: #fff; font-weight: 600; }

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

/* ---------- Pita statistik ----------------------------------------------- */

.ribbon {
  position: relative;
  z-index: 1;
  background: var(--bloom);
  color: var(--ink);
}
.hero + .ribbon { margin-top: -1px; }
.ribbon-in {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
}
.stat { display: flex; flex-direction: column; gap: .1rem; }
.stat strong {
  font-family: var(--util);
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 1;
  letter-spacing: -.01em;
}
.stat strong em {
  font-style: normal;
  font-size: .4em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-left: .3em;
}
.stat span {
  font-size: .7rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
}

/* ---------- Kerangka seksi ----------------------------------------------- */

.section { padding: var(--pad-y) 0; scroll-margin-top: var(--nav-h); }
.section-light { background: var(--shell); color: var(--ink); }
.section-dark  { background: var(--ink);   color: var(--chalk); }

.section-light + .section-light { padding-top: 0; }

.section-dark .h-display { color: #fff; }
.section-dark .h-display em { color: var(--bloom); }

/* ---------- Perusahaan --------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.split-aside { position: sticky; top: calc(var(--nav-h) + 2rem); }

.facts { margin: 0; }
.facts dt {
  font-size: .68rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bloom-deep);
  padding-top: .9rem;
  border-top: 1px solid rgba(176, 28, 134, .2);
}
.facts dd {
  margin: .15rem 0 1.1rem;
  font-size: 1rem;
  font-weight: 500;
}

.split-main p { margin: 0 0 1.15rem; max-width: 62ch; }
.split-main p:last-child { margin-bottom: 0; }

/* ---------- Kartu lini usaha --------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: #fff;
  border: 1px solid rgba(176, 28, 134, .14);
  border-radius: 1.4rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card-wide { grid-column: span 7; }
.card:hover {
  border-color: var(--bloom);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -30px rgba(176, 28, 134, .7);
}
.card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.card p { margin: 0; max-width: 48ch; }
.card .link { margin-top: auto; padding-top: .5rem; }

/* ---------- Alur barang -------------------------------------------------- */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.flow li {
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink-line);
}
.flow-num {
  display: block;
  font-family: var(--util);
  font-size: 2.1rem;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1;
  color: var(--bloom);
  margin-bottom: .9rem;
}
.flow h3 {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
}
.flow p { margin: 0; font-size: .95rem; color: var(--chalk-dim); }

/* ---------- Kanal belanja ------------------------------------------------ */

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.channel {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: #fff;
  border: 1px solid rgba(176, 28, 134, .14);
  border-radius: 1.4rem;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.channel:hover { transform: translateY(-3px); border-color: var(--bloom); }
.channel-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.3rem + .7vw, 2rem);
  line-height: 1.1;
}
.channel-shops {
  font-size: .92rem;
  color: #6b4e69;
  min-height: 2.6em;
}
.channel-go {
  margin-top: .6rem;
  font-size: .72rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bloom-deep);
}
.channel-go::after { content: ' \2192'; }

.channel-accent { background: var(--petal); border-color: rgba(176, 28, 134, .3); }

/* ---------- Kontak ------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink-line);
}
.contact-block h3 {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bloom);
}
.contact-block address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #fff;
}
.contact-block .note { margin: 0; font-size: .93rem; color: var(--chalk-dim); }
.contact-block .link { margin-top: auto; }

/* ---------- Footer ------------------------------------------------------- */

.foot {
  background: var(--ink);
  color: var(--chalk-dim);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--ink-line);
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.foot-logo { width: 100%; max-width: 13rem; height: auto; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
}
.foot-cols p { margin: 0 0 .3rem; font-size: .95rem; }
.foot-cols a {
  display: block;
  font-size: .95rem;
  text-decoration: none;
  padding: .12rem 0;
  transition: color .18s ease;
}
.foot-cols a:hover { color: var(--bloom); }
.foot-h {
  font-size: .68rem !important;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bloom);
  margin-bottom: .8rem !important;
}

.foot-legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
}
.foot-legal p { margin: 0; font-size: .8rem; }

/* ---------- Reveal ------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsif ---------------------------------------------------- */

@media (max-width: 62rem) {
  .split { grid-template-columns: 1fr; }
  .split-aside { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card-wide { grid-column: span 1; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .nav-toggle { display: block; }
  .nav-in { flex-wrap: wrap; align-content: flex-start; row-gap: 0; }
  .nav-brand { min-height: var(--nav-h); }
  /* Panel tetap di dalam kotak .nav agar backdrop-filter induk ikut menutupinya. */
  .nav-menu {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding-bottom .3s ease;
  }
  .nav-menu.is-open {
    max-height: 26rem;
    padding-bottom: 1.5rem;
  }
  .nav-menu > a {
    padding: .95rem 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .nav-menu > a.btn {
    margin-top: 1.1rem;
    border-bottom: 1px solid transparent;
    justify-content: center;
  }

  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .ribbon-in { gap: 1.75rem 2.5rem; }
  .h-section { max-width: none; }
  .channel-shops { min-height: 0; }
  .hero h1 br.wide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-track { animation: none; transform: translate3d(-6%, 0, 0); }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
