/* =========================================================
   BFTX Link: halaman publik, bahasa visual BFTX Creative (bftx.site)
   Biru #2563FF, navy #0F183D, off-white #F7F9FF, koral #FF4D6D.
   Plus Jakarta Sans untuk teks, Geist Mono untuk label kecil.
   Tanpa gaya sebaris: halaman ini dilayani dengan CSP ketat.
   ========================================================= */

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/plus-jakarta-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/geist-mono.woff2') format('woff2');
}

:root {
  --blue: #2563ff;
  --blue-hi: #3b74ff;
  --navy: #0f183d;
  --navy-2: #182459;
  --off: #f7f9ff;
  --off-2: #eef3ff;
  --light: #cfe0ff;
  --coral: #ff4d6d;
  --coral-hi: #ff6a85;
  --ink: #0f183d;
  --muted: #5f6b85;
  --line: rgba(15, 24, 61, 0.12);

  --r-lg: 26px;
  --gutter: clamp(16px, 5vw, 32px);
  --col: 560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- Tema ---------- */
/* Biru BFTX: biru hero bftx.site, cahaya terang hanya di bagian bawah supaya teks putih tetap terbaca. */
.t-biru {
  --bg:
    radial-gradient(70% 420px at 50% -80px, rgba(15, 24, 61, 0.38), transparent 70%) top / 100% 640px no-repeat,
    linear-gradient(180deg, rgba(126, 163, 255, 0), #8eb0ff) bottom / 100% 380px no-repeat,
    #2563ff;
  --fg: #fff;
  --fg-soft: rgba(255, 255, 255, 0.86);
  --dot: var(--light);
  --glow: rgba(255, 255, 255, 0.6);
  --ring: rgba(255, 255, 255, 0.45);
  --ln-bg: #fff;
  --ln-bg-hi: #fff;
  --ln-fg: var(--navy);
  --ln-note: var(--muted);
  --ln-edge: 0 18px 38px -24px rgba(15, 24, 61, 0.7);
  --ln-edge-hi: 0 24px 44px -22px rgba(15, 24, 61, 0.75);
  --ic-bg: var(--off-2);
  --ic-fg: var(--blue);
  --go-bg: var(--navy);
  --go-fg: #fff;
  --hot-bg: var(--coral);
  --hot-bg-hi: var(--coral-hi);
  --hot-go-bg: var(--navy);
  --hot-go-fg: #fff;
  --soc-bg: rgba(255, 255, 255, 0.16);
  --soc-bg-hi: rgba(255, 255, 255, 0.28);
  --soc-fg: #fff;
  --soc-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  --badge-bg: #fff;
  --badge-fg: var(--blue);
  --made-bg: #fff;
  --made-fg: var(--navy);
  --made-edge: 0 14px 30px -18px rgba(15, 24, 61, 0.55);
}
.t-navy {
  --bg:
    radial-gradient(85% 440px at 50% -90px, rgba(37, 99, 255, 0.55), transparent 70%) top / 100% 700px no-repeat,
    radial-gradient(55% 300px at 100% 100%, rgba(255, 77, 109, 0.2), transparent 70%) bottom / 100% 420px no-repeat,
    var(--navy);
  --fg: #fff;
  --fg-soft: rgba(255, 255, 255, 0.72);
  --dot: var(--coral);
  --glow: rgba(37, 99, 255, 0.32);
  --ring: rgba(255, 255, 255, 0.16);
  --ln-bg: rgba(255, 255, 255, 0.06);
  --ln-bg-hi: rgba(255, 255, 255, 0.11);
  --ln-fg: #fff;
  --ln-note: rgba(255, 255, 255, 0.62);
  --ln-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  --ln-edge-hi: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  --ic-bg: rgba(255, 255, 255, 0.08);
  --ic-fg: #fff;
  --go-bg: var(--blue);
  --go-fg: #fff;
  --hot-bg: var(--blue);
  --hot-bg-hi: var(--blue-hi);
  --hot-go-bg: #fff;
  --hot-go-fg: var(--navy);
  --soc-bg: rgba(255, 255, 255, 0.08);
  --soc-bg-hi: rgba(255, 255, 255, 0.16);
  --soc-fg: #fff;
  --soc-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  --badge-bg: var(--blue);
  --badge-fg: #fff;
  --made-bg: rgba(255, 255, 255, 0.08);
  --made-fg: #fff;
  --made-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.t-terang {
  --bg:
    radial-gradient(70% 380px at 50% -60px, rgba(37, 99, 255, 0.15), transparent 70%) top / 100% 600px no-repeat,
    #fff;
  --fg: var(--navy);
  --fg-soft: var(--muted);
  --dot: var(--blue);
  --glow: rgba(37, 99, 255, 0.1);
  --ring: #fff;
  --ln-bg: var(--off);
  --ln-bg-hi: var(--off-2);
  --ln-fg: var(--navy);
  --ln-note: var(--muted);
  --ln-edge: inset 0 0 0 1px var(--line);
  --ln-edge-hi: inset 0 0 0 1px rgba(37, 99, 255, 0.35);
  --ic-bg: #fff;
  --ic-fg: var(--blue);
  --go-bg: var(--navy);
  --go-fg: #fff;
  --hot-bg: var(--blue);
  --hot-bg-hi: var(--blue-hi);
  --hot-go-bg: #fff;
  --hot-go-fg: var(--navy);
  --soc-bg: var(--off-2);
  --soc-bg-hi: var(--light);
  --soc-fg: var(--navy);
  --soc-edge: none;
  --badge-bg: var(--blue);
  --badge-fg: #fff;
  --made-bg: var(--off-2);
  --made-fg: var(--navy);
  --made-edge: none;
}
.t-langit {
  --bg: linear-gradient(180deg, #cfe0ff 0%, #e2ecff 45%, #f4f7ff 100%);
  --fg: var(--navy);
  --fg-soft: #46527a;
  --dot: var(--coral);
  --glow: rgba(255, 255, 255, 0.95);
  --ring: #fff;
  --ln-bg: var(--navy);
  --ln-bg-hi: var(--navy-2);
  --ln-fg: #fff;
  --ln-note: rgba(255, 255, 255, 0.66);
  --ln-edge: 0 18px 36px -24px rgba(15, 24, 61, 0.7);
  --ln-edge-hi: 0 24px 44px -22px rgba(15, 24, 61, 0.75);
  --ic-bg: rgba(255, 255, 255, 0.1);
  --ic-fg: #fff;
  --go-bg: #fff;
  --go-fg: var(--navy);
  --hot-bg: var(--coral);
  --hot-bg-hi: var(--coral-hi);
  --hot-go-bg: var(--navy);
  --hot-go-fg: #fff;
  --soc-bg: #fff;
  --soc-bg-hi: var(--off-2);
  --soc-fg: var(--navy);
  --soc-edge: 0 0 0 1px rgba(15, 24, 61, 0.06);
  --badge-bg: var(--blue);
  --badge-fg: #fff;
  --made-bg: #fff;
  --made-fg: var(--navy);
  --made-edge: 0 0 0 1px rgba(15, 24, 61, 0.06);
}

/* ---------- Dasar ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--off);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--off);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
p,
ul {
  margin: 0;
}
::selection {
  background: var(--blue);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ic {
  flex: none;
  width: 20px;
  height: 20px;
}

/* ---------- Kartu halaman ---------- */
/* Bingkai membulat dengan tepi off-white, seperti hero bftx.site. */
.lp {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 16px);
  min-height: calc(100svh - 16px);
  margin: 8px;
  padding: calc(64px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  overflow: clip;
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg);
}
.t-terang .lp {
  box-shadow: 0 0 0 1px rgba(15, 24, 61, 0.06), 0 30px 80px -50px rgba(15, 24, 61, 0.35);
}
.lp::before,
.lp::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 2.4;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(10px);
  pointer-events: none;
}
.lp::before {
  left: -22%;
  bottom: -12%;
}
.lp::after {
  right: -18%;
  bottom: -16%;
  width: 56%;
  opacity: 0.8;
}

.lp-share {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soc-bg);
  box-shadow: var(--soc-edge);
  color: var(--soc-fg);
  transition: background 0.25s;
}
.lp-share:hover {
  background: var(--soc-bg-hi);
}
.lp-share .ic {
  width: 18px;
  height: 18px;
}

/* ---------- Profil ---------- */
.lp-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--col);
  text-align: center;
}
.lp-avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--off-2);
  box-shadow: 0 0 0 4px var(--ring), 0 22px 44px -20px rgba(15, 24, 61, 0.6);
  color: var(--blue);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.lp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-handle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--fg-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lp-handle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
}
.lp-name {
  margin-top: 10px;
  font-size: clamp(2rem, 8.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.lp-name em {
  position: relative;
  font-style: normal;
  white-space: nowrap;
}
.lp-name em::after {
  content: '';
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -0.2em;
  height: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 22 2, 38 2, 58 7 S 98 12, 118 6 S 160 1, 198 7' fill='none' stroke='%23ff4d6d' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}
.lp-verified {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.2em;
  vertical-align: 0.04em;
}
.lp-verified-bg {
  fill: var(--badge-bg);
}
.lp-verified-check {
  fill: none;
  stroke: var(--badge-fg);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-bio {
  max-width: 30rem;
  margin-top: 16px;
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.lp-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.lp-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soc-bg);
  box-shadow: var(--soc-edge);
  color: var(--soc-fg);
  transition: transform 0.35s var(--ease), background 0.25s;
}
.lp-socials a:hover {
  transform: translateY(-2px);
  background: var(--soc-bg-hi);
}

/* ---------- Tautan ---------- */
.lp-links {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: var(--col);
  margin-top: 34px;
  padding: 0;
  list-style: none;
}
.lp-h {
  padding: 16px 8px 2px;
}
.lp-h:first-child {
  padding-top: 0;
}
.lp-h h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lp-h h2::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
}
.ln {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 10px 8px 9px;
  border-radius: 32px;
  background: var(--ln-bg);
  box-shadow: var(--ln-edge);
  color: var(--ln-fg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.25s;
}
.ln:hover {
  transform: translateY(-2px);
  background: var(--ln-bg-hi);
  box-shadow: var(--ln-edge-hi);
}
.ln:active {
  transform: translateY(0) scale(0.99);
}
.ln-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ic-bg);
  color: var(--ic-fg);
}
.t-terang .ln-ic {
  box-shadow: 0 0 0 1px var(--line);
}
.ln-text {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
  padding-block: 4px;
}
.ln--plain .ln-text {
  padding-left: 14px;
}
.ln-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ln-note {
  color: var(--ln-note);
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
/* Panah bulat khas tombol bftx.site, berputar 45 derajat saat disorot */
.ln-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--go-bg);
  color: var(--go-fg);
}
.ln-go .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease);
}
.ln:hover .ln-go .ic {
  transform: rotate(45deg);
}
.ln--hot {
  --ln-bg: var(--hot-bg);
  --ln-bg-hi: var(--hot-bg-hi);
  --ln-fg: #fff;
  --ln-note: rgba(255, 255, 255, 0.86);
  --ic-bg: rgba(255, 255, 255, 0.2);
  --ic-fg: #fff;
  --go-bg: var(--hot-go-bg);
  --go-fg: var(--hot-go-fg);
  --ln-edge: 0 20px 40px -22px rgba(15, 24, 61, 0.6);
  --ln-edge-hi: 0 26px 46px -22px rgba(15, 24, 61, 0.65);
}
.t-terang .ln--hot .ln-ic {
  box-shadow: none;
}
.lp-empty {
  margin-top: 34px;
  color: var(--fg-soft);
  font-size: 15px;
}

/* ---------- Kaki ---------- */
.lp-foot {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding-top: 48px;
}
.lp-made {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--made-bg);
  box-shadow: var(--made-edge);
  color: var(--made-fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.35s var(--ease);
}
.lp-made:hover {
  transform: translateY(-2px);
}
.lp-made img {
  width: auto;
  height: 14px;
  padding-right: 10px;
  border-right: 1px solid currentColor;
  box-sizing: content-box;
  opacity: 0.95;
}

.lp-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 16px 36px -14px rgba(15, 24, 61, 0.6);
  color: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: toast 0.35s var(--ease);
}
.t-navy .lp-toast {
  background: #fff;
  color: var(--navy);
}

/* Pratinjau di editor: bingkai ponsel sudah cukup, bilah gulir hanya memakan lebar */
html:has(.is-preview) {
  scrollbar-width: none;
}
html:has(.is-preview)::-webkit-scrollbar {
  display: none;
}

/* Halaman 404 */
.lp-head--solo {
  margin-top: clamp(24px, 10vh, 96px);
}

/* ---------- Gerak ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes toast {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.is-preview) .lp-head,
  body:not(.is-preview) .lp-links > li {
    animation: rise 0.7s var(--ease) both;
  }
  body:not(.is-preview) .lp-links > li:nth-child(1) { animation-delay: 0.08s; }
  body:not(.is-preview) .lp-links > li:nth-child(2) { animation-delay: 0.12s; }
  body:not(.is-preview) .lp-links > li:nth-child(3) { animation-delay: 0.16s; }
  body:not(.is-preview) .lp-links > li:nth-child(4) { animation-delay: 0.2s; }
  body:not(.is-preview) .lp-links > li:nth-child(5) { animation-delay: 0.24s; }
  body:not(.is-preview) .lp-links > li:nth-child(6) { animation-delay: 0.28s; }
  body:not(.is-preview) .lp-links > li:nth-child(7) { animation-delay: 0.32s; }
  body:not(.is-preview) .lp-links > li:nth-child(8) { animation-delay: 0.36s; }
  body:not(.is-preview) .lp-links > li:nth-child(n + 9) { animation-delay: 0.4s; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layar lebar ---------- */
@media (min-width: 720px) {
  .lp {
    padding-top: calc(84px + env(safe-area-inset-top, 0px));
  }
  .lp-share {
    top: 22px;
    right: 22px;
  }
}
