/* ============================================================
   Dillah Ponsel & Komputer — stylesheet
   ============================================================ */

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0e1726;
  --ink-2: #334155;
  --muted: #6b7a90;
  --line: #e3e9f2;
  --accent: #1d4ed8;
  --accent-soft: #e8efff;
  --gold: #f59e0b;
  --green: #059669;
  --green-soft: #e7f7f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 8px 24px -12px rgba(14, 23, 38, .18);
  --shadow-lg: 0 24px 60px -24px rgba(14, 23, 38, .35);
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

/* ---------- top strip ---------- */
.strip {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 12.5px;
  letter-spacing: .01em;
}
.strip .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding-block: 8px; flex-wrap: wrap; }
.strip-item { display: inline-flex; align-items: center; gap: 6px; }
.strip svg { width: 14px; height: 14px; opacity: .8; }
.strip a:hover { color: #fff; }

/* ---------- header ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head .wrap { display: flex; align-items: center; gap: 18px; padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, #2563eb, #1e3a8a);
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(29, 78, 216, .7);
}
.brand-text { line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: var(--muted); }

.nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 11px;
  padding: 10px 16px;
  font-weight: 600; font-size: 14px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-wa { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(5, 150, 105, .85); }
.btn-wa:hover { background: #047857; transform: translateY(-1px); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: #dbe6ff; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: #cbd5e1; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 8px; }
.hero .wrap { display: grid; gap: 34px; grid-template-columns: 1.15fr .85fr; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: #047857;
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -.028em;
  margin: 0 0 14px;
  font-weight: 800;
}
h1 em { font-style: normal; color: var(--accent); }

.lede { font-size: 16.5px; color: var(--ink-2); max-width: 46ch; margin: 0 0 24px; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.trust { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.trust-item svg { width: 18px; height: 18px; color: var(--green); }

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.hero-card p { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }

.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 12px; }
.step-n {
  flex: 0 0 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
}
.step b { display: block; font-size: 13.8px; font-weight: 650; }
.step span { font-size: 12.8px; color: var(--muted); }

/* ---------- section ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; font-weight: 750; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- controls ---------- */
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 550;
  transition: all .15s ease;
}
.chip:hover { border-color: #cbd5e1; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.search {
  margin-left: auto; position: relative;
  flex: 1 1 230px; max-width: 300px;
}
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 11px; padding: 10px 12px 10px 36px;
  font: inherit; font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

select.sort {
  border: 1px solid var(--line); background: #fff; border-radius: 11px;
  padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink-2);
}

/* ---------- grid ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .25s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5deec; }

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #eef3fb, #e2eaf7);
  display: grid; place-items: center;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: grid; place-items: center; gap: 8px; color: #a8b8cd; }
.thumb-ph svg { width: 42px; height: 42px; }

.badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  padding: 4px 9px; border-radius: 999px;
  background: #fff; color: var(--ink-2);
  box-shadow: 0 2px 8px rgba(14, 23, 38, .12);
}
.badge.baru { background: var(--green); color: #fff; }
.badge.bekas { background: #fff7e6; color: #b45309; }
.badge.po { background: #6366f1; color: #fff; }

.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
.card-name { font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; margin: 0; }

.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-now { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price-was { font-size: 13.5px; color: #8794a8; text-decoration: line-through; text-decoration-thickness: 1.5px; }

.warranty { font-size: 12px; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.warranty svg { width: 13px; height: 13px; }

.card .btn { margin-top: 4px; font-size: 13.5px; padding: 9px 12px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 15px; }

/* ---------- trade in ---------- */
.band {
  margin: 8px 0;
  background: linear-gradient(135deg, #0e1726, #1e3a8a 70%, #1d4ed8);
  border-radius: 22px;
  color: #fff;
  padding: 40px;
  display: grid; gap: 26px; grid-template-columns: 1.1fr .9fr;
  align-items: center;
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 62%);
}
.band h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.band p { color: #c7d2e4; margin: 0 0 20px; font-size: 15px; max-width: 44ch; }
.band .btn { position: relative; z-index: 1; }
.band-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.band-tag {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 13px; border-radius: 999px; font-size: 12.8px; font-weight: 550;
}
.band-tags { position: relative; z-index: 1; }

/* ---------- store info ---------- */
.info { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.info-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.info-card svg { width: 20px; height: 20px; color: var(--accent); margin-bottom: 12px; }
.info-card h4 { margin: 0 0 6px; font-size: 14px; letter-spacing: -.01em; }
.info-card p, .info-card a { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.55; }
.info-card a:hover { color: var(--accent); }

/* ---------- news / instagram section ---------- */
.news-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-news {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .25s ease, border-color .18s;
  cursor: pointer;
}
.card-news:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5deec; }
.news-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card-news:hover .news-thumb img { transform: scale(1.03); }
.news-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(14, 23, 38, 0.85); color: #fff;
  backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 4px;
}
.news-badge svg { width: 12px; height: 12px; fill: currentColor; }
.news-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-date { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.news-date svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--muted); }
.news-title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 2px 0 4px; color: var(--ink); }
.news-excerpt { font-size: 13.2px; color: var(--ink-2); line-height: 1.45; margin: 0; flex: 1; }
.news-footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; gap: 8px; }
.btn-read-more { background: none; border: none; padding: 0; color: var(--accent); font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.btn-read-more:hover { text-decoration: underline; }
.btn-news-wa { padding: 6px 10px; font-size: 12px; border-radius: 8px; font-weight: 600; text-decoration: none !important; }
.btn-news-wa svg { width: 14px; height: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.foot .wrap { padding-block: 28px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  display: grid; place-items: center; transition: all .15s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.socials svg { width: 16px; height: 16px; }

/* ---------- modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 20px;
  background: rgba(14, 23, 38, .55);
  backdrop-filter: blur(4px);
}
.modal-box {
  background: #fff; border-radius: 20px; max-width: 620px; width: 100%;
  max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-thumb { aspect-ratio: 16 / 9; background: linear-gradient(150deg, #eef3fb, #e2eaf7); display: grid; place-items: center; color: #8ea2c0; }
.modal-thumb svg { width: 56px; height: 56px; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 20px 22px 22px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 2px 10px rgba(14, 23, 38, .2);
  display: grid; place-items: center; font-size: 18px; color: var(--ink-2);
}
.modal-body h3 { margin: 6px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.modal-price { font-size: 24px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.specs { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.specs li { display: flex; gap: 9px; font-size: 13.8px; color: var(--ink-2); }
.specs svg { width: 15px; height: 15px; color: var(--green); flex: 0 0 15px; margin-top: 3px; }
.modal-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* ---------- live tiktok banner ---------- */
.live-banner {
  background: linear-gradient(90deg, #ff004f, #00f2fe 180%);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(255, 0, 79, 0.25);
}
.live-banner .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 800;
}
.live-banner .live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0055;
  box-shadow: 0 0 0 rgba(255, 0, 85, 0.7);
  animation: live-pulse 1.4s infinite;
}
@keyframes live-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.live-banner a.live-btn {
  background: #fff;
  color: #0e1726;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform .12s ease;
}
.live-banner a.live-btn:hover { transform: scale(1.04); }

/* ---------- seken / used phone list ---------- */
.seken-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.seken-item {
  display: grid;
  grid-template-columns: 100px 1.8fr 1.2fr 130px 130px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}
.seken-item:last-child { border-bottom: none; }
.seken-item:hover { background: #f8fafc; }
.seken-brand {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
  display: inline-block;
}
.seken-name { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.seken-warna { font-size: 12px; color: var(--muted); margin-top: 2px; }
.seken-spec { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.seken-badge-cond {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  margin-bottom: 3px;
}
.seken-price { font-size: 15px; font-weight: 800; color: var(--ink); text-align: right; }
.seken-item .btn { padding: 7px 12px; font-size: 12px; border-radius: 8px; width: 100%; }

@media (max-width: 820px) {
  .seken-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .seken-price { text-align: left; font-size: 16px; margin-top: 2px; }
}

/* ---------- sticky wa (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: none;
  box-shadow: 0 14px 30px -10px rgba(5, 150, 105, .9);
  border-radius: 999px;
  padding: 13px 20px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .band { grid-template-columns: 1fr; padding: 30px 24px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .strip .wrap { justify-content: center; gap: 12px; font-size: 11.5px; }
  .head .btn-wa span { display: none; }
  .head .btn-wa { padding: 10px 12px; }
  .section { padding: 38px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 13.5px; }
  .price-now { font-size: 15px; }
  .card .btn { font-size: 12.5px; padding: 8px 10px; }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .fab { display: inline-flex; }
  body { padding-bottom: 72px; }
}
