/* ===== LinkBio — halaman utama (mobile-first, terang & gelap) ===== */
:root {
  --bg: #fbf9f5; --surface: #ffffff; --soft: #f3eee5; --ink: #1b1a18; --muted: #6b665e; --line: #ebe5da;
  --brand: #ff5a36; --brand2: #ff3d81; --on-brand: #fff;
  --shadow: 0 1px 2px rgba(40,28,12,.05), 0 14px 32px -18px rgba(40,28,12,.25);
  --nav-bg: rgba(251,249,245,.82);
  --r: 20px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0e1013; --surface: #171a1f; --soft: #13161a; --ink: #f4f1ec; --muted: #9ba2ad; --line: #262b33;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 36px -20px rgba(0,0,0,.8);
  --nav-bg: rgba(14,16,19,.82);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.home { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.i { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---- tombol ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 inherit; padding: 13px 20px; border-radius: 14px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--on-brand); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fff; color: #1b1a18; }
.btn-light:hover { transform: translateY(-2px); }

.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
.theme-toggle.sm { width: 34px; height: 34px; border-radius: 10px; vertical-align: middle; margin-left: 6px; }

/* ---- navbar ---- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; padding-top: env(safe-area-inset-top); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 80%, transparent); }
.nav-links { display: none; margin-left: 20px; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.burger { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 859px) {
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 10px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-links a { padding: 14px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
}
@media (min-width: 860px) { .nav-links { display: flex; } .burger { display: none; } .nav-in { height: 72px; } }

/* ---- hero ---- */
.hero { position: relative; padding: 36px 0 56px; }
.hero-in { display: grid; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(34px, 8.5vw, 58px); line-height: 1.07; letter-spacing: -.035em; font-weight: 850; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 0 26px; font-size: clamp(16px, 4vw, 19px); color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .i { color: var(--brand); }
.ticks b { color: var(--ink); font-weight: 700; }
.ticks span { color: var(--brand); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 88px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 24px; }
}

/* ---- mockup ponsel ---- */
.hero-art { position: relative; height: 520px; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
.blob.b1 { width: 260px; height: 260px; background: color-mix(in srgb, var(--brand) 70%, transparent); top: 10%; right: 8%; }
.blob.b2 { width: 220px; height: 220px; background: color-mix(in srgb, #5b7cff 60%, transparent); bottom: 6%; left: 8%; }
html[data-theme="dark"] .blob { opacity: .3; }
.phone { position: absolute; width: 252px; height: 500px; border-radius: 40px; padding: 9px; background: #15171b; box-shadow: 0 30px 60px -22px rgba(20,14,6,.55), inset 0 0 0 1.5px #2b2f36; }
.p-front { transform: translateX(34px) rotate(3deg); z-index: 2; animation: float 6s ease-in-out infinite; }
.p-back { transform: translateX(-118px) translateY(14px) rotate(-7deg) scale(.9); z-index: 1; opacity: .96; animation: float 7s ease-in-out -2s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .p-front, .p-back { animation: none; } }
.notch { position: absolute; top: 14px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: #15171b; border-radius: 12px; z-index: 3; }
.screen { --acc: #ff5a36; position: relative; height: 100%; border-radius: 32px; overflow: hidden; padding: 44px 14px 14px; text-align: center; font-size: 12px; }
.is-light .screen { background: #f6f3ee; color: #1d1b19; --card: #fff; --mut: #6f6a63; --ln: #e8e2d8; }
.is-dark .screen { background: #0f1114; color: #f3f1ed; --card: #181b21; --mut: #9aa1ab; --ln: #272c34; }
.screen::before { content: ""; position: absolute; inset: -40px -40px auto; height: 190px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 30%, transparent), transparent); }
.av { position: relative; width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: var(--acc); box-shadow: 0 0 0 3px var(--card), 0 8px 18px -6px var(--acc); }
.nm { position: relative; font-weight: 800; font-size: 15px; }
.bio { position: relative; margin: 3px 0 9px; color: var(--mut); line-height: 1.35; }
.chips { position: relative; display: flex; justify-content: center; gap: 6px; margin-bottom: 11px; }
.chips i { font-style: normal; font-weight: 800; font-size: 9.5px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--ln); color: var(--acc); }
.search { position: relative; display: flex; align-items: center; gap: 6px; padding: 9px 11px; margin-bottom: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--ln); color: var(--mut); text-align: left; }
.search b { color: var(--acc); }
.row { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px; margin-bottom: 7px; border-radius: 14px; background: var(--card); border: 1px solid var(--ln); text-align: left; }
.row .n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 13px; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, var(--card)); }
.row .t { min-width: 0; display: flex; flex-direction: column; }
.row em { font-style: normal; font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { color: var(--mut); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.open { border-color: var(--acc); margin-bottom: 0; border-radius: 14px 14px 0 0; }
.plats { position: relative; display: flex; gap: 6px; padding: 8px; margin-bottom: 7px; border: 1px solid var(--acc); border-top: 0; border-radius: 0 0 14px 14px; background: var(--card); }
.plats i { flex: 1; font-style: normal; font-weight: 700; font-size: 10px; padding: 6px 0; border-radius: 9px; color: #fff; text-align: center; }
.plats .sp { background: #ee4d2d; } .plats .tt { background: #111; } .plats .tp { background: #42b549; }
.fab { position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--acc); box-shadow: 0 8px 18px -4px var(--acc); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 55%, transparent), 0 8px 18px -4px var(--acc); } 70%, 100% { box-shadow: 0 0 0 14px transparent, 0 8px 18px -4px var(--acc); } }
@media (prefers-reduced-motion: reduce) { .fab { animation: none; } }
@media (max-width: 899px) {
  .hero-art { height: 480px; }
  .phone { width: 232px; height: 460px; }
  .screen { padding-top: 40px; }
  .p-back { transform: translateX(-96px) translateY(12px) rotate(-7deg) scale(.88); }
  .p-front { transform: translateX(28px) rotate(3deg); }
}
@media (max-width: 400px) {
  .hero-art { height: 440px; }
  .phone { width: 214px; height: 424px; }
  .p-back { transform: translateX(-80px) translateY(12px) rotate(-7deg) scale(.86); }
  .p-front { transform: translateX(24px) rotate(3deg); }
}

/* ---- strip platform ---- */
.strip { border-block: 1px solid var(--line); background: var(--soft); }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; padding: 18px 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.strip-t { color: var(--ink); font-weight: 800; }

/* ---- section ---- */
.sec { padding: 64px 0; }
.sec.alt { background: var(--soft); border-block: 1px solid var(--line); }
.sec-head { max-width: 640px; margin: 0 auto 38px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.sec-head h2 { margin: 8px 0 10px; font-size: clamp(26px, 6vw, 38px); line-height: 1.15; letter-spacing: -.03em; font-weight: 850; }
.sec-head p { margin: 0; color: var(--muted); }
.grid3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .sec { padding: 92px 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); margin: 0; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card h3 { margin: 16px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card code { background: var(--soft); padding: 1px 7px; border-radius: 7px; font-size: .88em; color: var(--ink); word-break: break-all; }
.ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }

/* ---- langkah ---- */
.steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.steps h3 { margin: 14px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps b { color: var(--ink); word-break: break-all; }

/* ---- ulasan ---- */
.quote .stars { display: flex; gap: 2px; color: #f5a524; }
.quote .stars .i { fill: currentColor; }
.quote blockquote { margin: 14px 0 18px; font-size: 16px; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.quote figcaption span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.quote small { color: var(--muted); }
.qa { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.tag { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--muted); border: 1px dashed var(--line); }

/* ---- faq ---- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* ---- CTA & footer ---- */
.cta { padding: 20px 0 72px; }
.cta-box { text-align: center; padding: 48px 24px; border-radius: 28px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--brand) 80%, transparent); }
.cta-box h2 { margin: 0 0 8px; font-size: clamp(24px, 6vw, 36px); letter-spacing: -.03em; line-height: 1.15; }
.cta-box p { margin: 0 0 24px; opacity: .92; }
.foot { border-top: 1px solid var(--line); background: var(--soft); padding-top: 44px; }
.foot-in { display: grid; gap: 28px; padding-bottom: 28px; }
@media (min-width: 720px) { .foot-in { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot-brand p { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 320px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.foot-col a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; word-break: break-all; }
.foot-col a:hover { color: var(--brand); }
.foot-theme { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; font-weight: 600; }
.foot-bot { padding: 18px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---- animasi muncul (hanya jika JS aktif) ---- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.js .card.rv.in:hover { transform: translateY(-3px); }
