:root {
  --bg: #0b0b10;
  --bg-soft: #111118;
  --card: #15151e;
  --border: rgba(255, 255, 255, 0.08);
  --fg: #f6f6f8;
  --muted: #a1a1ae;
  --primary: #ff2d6f;
  --primary-2: #ff7a3d;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  --radius: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}

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

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

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

main.container {
  flex: 1;
}

.muted { color: var(--muted); }
.small { font-size: 14px; }
.xsmall { font-size: 12px; }

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* App icon */
.app-icon {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 22%;
  background: #141816;
  box-shadow: 0 6px 20px rgba(255, 45, 111, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.app-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-icon--xs { width: 24px; height: 24px; box-shadow: none; }
.app-icon--sm { width: 36px; height: 36px; }
.app-icon--md { width: 44px; height: 44px; }
.app-icon--lg { width: 76px; height: 76px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(255, 45, 111, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(255, 45, 111, 0.5);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 3px solid rgba(255, 45, 111, 0.5);
  outline-offset: 2px;
}
.btn--sm { height: 40px; padding: 0 16px; }
.btn--lg { height: 48px; padding: 0 24px; }
.btn--block { width: 100%; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav {
  display: none;
  align-items: center;
  gap: 24px;
  margin-left: 24px;
  font-size: 14px;
  color: var(--muted);
}
.nav a { transition: color 0.15s; }
.nav a:hover { color: var(--fg); }
.topbar-cta {
  display: none;
  margin-left: auto;
}

/* Sections */
.section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.section:first-child { border-top: 0; }
.section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head { margin-bottom: 20px; }
.section-head p { margin-top: 4px; }

/* Hero */
.hero {
  position: relative;
}
.hero-glow {
  position: absolute;
  top: -40px;
  left: -120px;
  width: 520px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(255, 45, 111, 0.22), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.hero-title {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}
.hero h1 {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
}
.badge--rating svg {
  width: 12px;
  height: 12px;
  fill: #ffc53d;
}
.hero-cta-desktop { display: none; margin-top: 20px; }
.hero-cta-mobile { margin-top: 20px; }
.hero-text {
  margin-top: 20px;
  max-width: 672px;
}
.hero-text .lead {
  font-size: 16px;
  font-weight: 700;
}
.hero-text .muted {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.65;
}

.stats {
  display: flex;
  max-width: 560px;
  margin-top: 24px;
  padding: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.stat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font-size: 14px; font-weight: 700; }
.stat-label { margin-top: 2px; font-size: 11px; color: var(--muted); }

/* Screenshot rail */
.rail {
  display: flex;
  gap: 16px;
  margin: 0 -20px;
  padding: 0 20px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.shot {
  flex-shrink: 0;
  width: 200px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  scroll-snap-align: start;
  border-radius: 1.35rem;
}
.shot:focus-visible { outline: 3px solid rgba(255, 45, 111, 0.5); outline-offset: 3px; }
.shot-frame {
  display: block;
  padding: 6px;
  border-radius: 1.35rem;
  background: #1c1c26;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot:hover .shot-frame {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 45, 111, 0.25), 0 0 0 1px rgba(255, 45, 111, 0.35);
}
.shot-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 1rem;
  background: #000;
}
.shot-caption {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* Cards */
.card {
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

/* Features */
.features {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature h3 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}
.feature p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 45, 111, 0.12);
  color: var(--primary);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* About */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
.prose {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.prose p + p { margin-top: 16px; }

.details dl {
  margin: 12px 0 0;
  font-size: 14px;
}
.details dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.details dl > div:first-child { border-top: 0; }
.details dt { color: var(--muted); }
.details dd {
  margin: 2px 0 0;
  font-weight: 600;
  word-break: break-word;
}
.details-head .small { margin-top: 4px; }
.link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-underline-offset: 4px;
}
.link:hover { text-decoration: underline; }

/* Steps */
.steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.step .card-title { margin-top: 4px; }
.step p { margin-top: 4px; line-height: 1.6; }
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: rgba(255, 45, 111, 0.12);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
.pasang-cta { margin-top: 24px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(17, 17, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-bar-text { min-width: 0; flex: 1; }
.mobile-bar-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 12px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.18s ease;
}
.lightbox[hidden] { display: none; }
.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-height: 100%;
}
.lb-figure img {
  max-height: calc(100vh - 110px);
  width: auto;
  max-width: min(420px, 78vw);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.lb-figure figcaption {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-btn:hover { background: rgba(255, 45, 111, 0.6); }
.lb-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Breakpoints */
@media (min-width: 640px) {
  body { padding-bottom: 0; }
  .topbar-cta { display: block; }
  .section { padding: 48px 0; }
  .hero-head { gap: 28px; }
  .app-icon--lg { width: 144px; height: 144px; }
  .hero h1 { font-size: 3rem; }
  .hero-sub { font-size: 16px; }
  .hero-cta-desktop { display: block; }
  .hero-cta-mobile { display: none; }
  .hero-text .lead { font-size: 18px; }
  .hero-text .muted { font-size: 16px; }
  .stat-value { font-size: 15px; }
  .stat-label { font-size: 12px; }
  .rail { margin: 0; padding: 0 0 8px; }
  .shot { width: 230px; }
  .prose { font-size: 16px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-inner .small { max-width: 560px; text-align: right; }
  .mobile-bar { display: none; }
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 480px) {
  .lb-prev, .lb-next {
    position: absolute;
    bottom: 20px;
  }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-figure img { max-height: calc(100vh - 150px); max-width: 86vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
