/* ============================================================
   BIKINWEBSITE — Design System
   Modern, elegan, responsif. Dark & Light mode.
   Anti horizontal-overflow by design.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --c-bg:        #f6f7fb;
  --c-surface:   #ffffff;
  --c-surface-2: #f0f2f8;
  --c-border:    #e4e7f0;
  --c-text:      #14161f;
  --c-text-soft: #565b6e;
  --c-muted:     #8a90a3;
  --c-primary:   #5b4bff;
  --c-primary-2: #8b5cf6;
  --c-accent:    #06b6d4;
  --c-success:   #10b981;
  --c-warning:   #f59e0b;
  --c-danger:    #ef4444;
  --c-on-primary:#ffffff;

  --grad: linear-gradient(135deg, #5b4bff 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,75,255,.12), rgba(6,182,212,.12));

  --shadow-sm: 0 1px 2px rgba(20,22,31,.06);
  --shadow:    0 8px 30px rgba(20,22,31,.08);
  --shadow-lg: 0 24px 60px rgba(20,22,31,.14);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  --container: 1200px;
  --nav-h: 68px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --fs-step: clamp(1rem, .9rem + .4vw, 1.075rem);
}

html[data-theme="dark"] {
  --c-bg:        #0b0d14;
  --c-surface:   #12141d;
  --c-surface-2: #181b27;
  --c-border:    #262a3a;
  --c-text:      #eef0f7;
  --c-text-soft: #b3b8cc;
  --c-muted:     #818799;
  --grad-soft: linear-gradient(135deg, rgba(91,75,255,.18), rgba(6,182,212,.14));
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 10px 34px rgba(0,0,0,.45);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.6);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

html, body {
  max-width: 100%;
  overflow-x: clip;            /* anti scroll horizontal TANPA mematikan position:sticky */
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--fs-step);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s var(--ease), color .3s var(--ease);
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }

p { color: var(--c-text-soft); }

::selection { background: rgba(91,75,255,.25); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; gap: 1rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.measure { max-width: 62ch; }
.hidden { display: none !important; }

/* ---------- Typography accents ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary);
  background: var(--grad-soft);
  padding: .4rem .9rem; border-radius: 999px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: var(--c-text-soft); }
.muted { color: var(--c-muted); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; user-select: none;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(91,75,255,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(91,75,255,.45); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-surface-2); transform: translateY(-2px); }
.btn-light { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-sm { --pad-y: .55rem; --pad-x: 1rem; font-size: .85rem; }
.btn-lg { --pad-y: 1rem; --pad-x: 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(91,75,255,.4); }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--c-surface-2); color: var(--c-text-soft);
}
.badge-primary { background: var(--grad); color: #fff; }
.badge-success { background: rgba(16,185,129,.15); color: var(--c-success); }
.badge-warning { background: rgba(245,158,11,.15); color: var(--c-warning); }
.badge-danger  { background: rgba(239,68,68,.15);  color: var(--c-danger); }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--c-primary);
  font-size: 1.5rem; margin-bottom: 1rem;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--c-bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--c-border); box-shadow: var(--shadow-sm); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900;
  box-shadow: 0 6px 16px rgba(91,75,255,.4);
}
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  padding: .55rem .85rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--c-text-soft); transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--c-text); background: var(--c-surface-2); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text); cursor: pointer;
  display: grid; place-items: center; font-size: 1.1rem; transition: transform .2s, background .2s;
}
.theme-toggle:hover { transform: rotate(15deg); background: var(--c-surface-2); }

.nav__burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--c-border); background: var(--c-surface); cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__burger span { width: 20px; height: 2px; background: var(--c-text); border-radius: 2px; transition: .25s var(--ease); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 520px; z-index: -1;
  background: radial-gradient(60% 80% at 70% 20%, rgba(139,92,246,.22), transparent 60%),
              radial-gradient(50% 70% at 20% 10%, rgba(6,182,212,.18), transparent 60%);
  filter: blur(10px);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero h1 { margin-block: 1rem; }
.hero .lead { max-width: 54ch; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero__stat b { font-size: 1.7rem; display: block; }
.hero__stat span { font-size: .85rem; color: var(--c-muted); }

/* ---------- Floating device preview ---------- */
.hero__art { position: relative; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }

/* ---------- Hero slider (mockup berlabel, auto-rotate) ---------- */
.hero-slider { position: relative; min-height: clamp(360px, 38vw, 430px); margin: 1rem 1rem 2.6rem; }
.hs-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none;
}
.hs-slide.active { opacity: 1; transform: none; pointer-events: auto; }

.hs-window { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hs-chrome { height: 36px; background: var(--c-surface-2); display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--c-border); }
.hs-cdot { width: 10px; height: 10px; border-radius: 50%; }
.hs-url { margin-left: 8px; flex: 1; background: var(--c-bg); border-radius: 7px; height: 22px; display: flex; align-items: center; padding: 0 10px; font-size: .7rem; color: var(--c-muted); overflow: hidden; white-space: nowrap; }
.hs-appbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 1rem; border-bottom: 1px solid var(--c-border); }
.hs-brand { font-weight: 800; font-size: .9rem; color: var(--accent); white-space: nowrap; }
.hs-actions { display: flex; align-items: center; gap: .4rem; }
.hs-actions i { font-style: normal; font-size: .82rem; opacity: .65; }
.hs-actions b { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .62rem; font-weight: 800; }
.hs-nav { display: flex; gap: .18rem; padding: .4rem .7rem; border-bottom: 1px solid var(--c-border); overflow: hidden; }
.hs-nav span { font-size: .64rem; font-weight: 600; color: var(--c-text-soft); padding: .26rem .46rem; border-radius: 7px; white-space: nowrap; }
.hs-nav span.on { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.hs-body { padding: .85rem 1rem; display: flex; flex-direction: column; gap: .65rem; }
.hs-banner { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 52%, #6d28d9)); color: #fff; border-radius: 12px; padding: .75rem .95rem; }
.hs-banner b { font-size: 1rem; display: block; line-height: 1.2; }
.hs-banner span { font-size: .74rem; opacity: .88; }
.hs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.hs-card { background: var(--c-surface-2); border-radius: 11px; padding: .55rem .5rem; }
.hs-cic { font-size: 1.25rem; }
.hs-card b { display: block; font-size: .72rem; margin-top: .2rem; }
.hs-card i { font-style: normal; font-size: .62rem; color: var(--c-muted); }
.hs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.hs-stat { text-align: center; background: var(--c-surface-2); border-radius: 11px; padding: .45rem; }
.hs-stat b { display: block; font-size: .92rem; color: var(--accent); }
.hs-stat span { font-size: .58rem; color: var(--c-muted); }

.hs-phone { position: absolute; right: -12px; bottom: -20px; width: 116px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: .55rem; }
.hs-pbar { font-size: .62rem; font-weight: 800; color: var(--accent); text-align: center; margin-bottom: .4rem; }
.hs-prow { display: flex; align-items: center; gap: .3rem; font-size: .55rem; color: var(--c-text-soft); background: var(--c-surface-2); border-radius: 6px; padding: .3rem; margin-bottom: .28rem; }
.hs-prow span { width: 13px; height: 13px; border-radius: 4px; background: var(--accent); flex-shrink: 0; }
.hs-pnav { display: flex; justify-content: space-between; gap: 3px; margin: .35rem 0 .3rem; }
.hs-pnav em { font-style: normal; flex: 1; height: 16px; border-radius: 5px; background: var(--c-surface-2); color: var(--accent); display: grid; place-items: center; font-size: .5rem; font-weight: 800; }
.hs-plabel { font-size: .56rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 6px; text-align: center; padding: .25rem; }

.hs-badge { position: absolute; top: -12px; left: -6px; background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow); border-radius: 999px; padding: .35rem .8rem; font-size: .72rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

.hs-dots { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; }
.hs-dot { width: 9px; height: 9px; border-radius: 999px; border: none; background: var(--c-border); cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
.hs-dot.on { background: var(--grad); width: 26px; }

@media (max-width: 600px) {
  .hs-phone { right: -2px; width: 100px; }
  .hs-badge { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide { transition: opacity .3s linear; transform: none; }
}

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin: 0 auto clamp(2rem,5vw,3.5rem); text-align: center; }
.sec-head .lead { margin-top: .8rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.input, .select, .textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(91,75,255,.15);
}
.textarea { min-height: 130px; resize: vertical; }
.field-error { color: var(--c-danger); font-size: .82rem; margin-top: .3rem; }

/* ---------- Alerts / flash ---------- */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 600; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: rgba(16,185,129,.12); color: var(--c-success); border-color: rgba(16,185,129,.3); }
.alert-error   { background: rgba(239,68,68,.12);  color: var(--c-danger);  border-color: rgba(239,68,68,.3); }
.alert-info    { background: var(--grad-soft); color: var(--c-primary); }

/* ---------- Article body typography ---------- */
.article-body { color: var(--c-text); }
.article-body p { color: var(--c-text-soft); margin-bottom: 1.1rem; }
.article-body h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin: 1.8rem 0 .8rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.article-body li { color: var(--c-text-soft); }
.article-body a { color: var(--c-primary); font-weight: 600; text-decoration: underline; }
.article-body strong { color: var(--c-text); }
.article-body .attribution { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--c-border); }

/* ---------- Share buttons ---------- */
.share-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.25rem; }
.share-label { font-weight: 700; font-size: .9rem; color: var(--c-text-soft); }
.share-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); font-weight: 700; font-size: .82rem;
  cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.share-btn .si { font-size: .95rem; line-height: 1; width: 16px; text-align: center; }
.s-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.s-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.s-x:hover  { background: #000;     color: #fff; border-color: #000; }
.s-tg:hover { background: #229ED9; color: #fff; border-color: #229ED9; }
.s-in:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.s-em:hover { background: #6b7280; color: #fff; border-color: #6b7280; }
.s-copy:hover, .s-native:hover { background: var(--grad); color: #fff; border-color: transparent; }
.share-btn.ok { background: var(--c-success); color: #fff; border-color: var(--c-success); }
.share-foot { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
@media (max-width: 480px) {
  .share-btn .sl { display: none; }
  .share-btn { padding: .55rem; width: 40px; justify-content: center; }
  .share-btn .si { width: auto; }
}

/* ---------- Footer ---------- */
.footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding-block: 3.5rem 1.5rem; margin-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer a { color: var(--c-text-soft); display: block; padding: .25rem 0; }
.footer a:hover { color: var(--c-primary); }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--c-muted); font-size: .88rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 200; max-width: 520px; margin-inline: auto;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.25rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie p { font-size: .88rem; flex: 1 1 240px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    padding: 1rem clamp(1rem,4vw,2rem); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav__links.open { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: .85rem 1rem; }
}
@media (max-width: 680px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 380px) {
  :root { --container: 100%; }
}
