/* ===== Xtreaming landing page ===== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Harmonized dengan splash color app (#0f0f1a) — navy/dark purple palette */
  --bg-1: #0f0f1a;
  --bg-2: #1c1a2e;
  --bg-3: #07070d;
  --ink: #f5ecec;
  --ink-dim: #b9b0c4;
  --ink-mute: #7a7088;
  --accent-1: #ff3a5e;
  --accent-2: #ff7a3a;
  --accent-grad: linear-gradient(135deg, #ff3a5e 0%, #ff7a3a 100%);
  --green: #2ee66b;
  --line: rgba(255, 255, 255, 0.08);
  --card-radius: 18px;
  --shadow-1: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(ellipse 80% 60% at 70% 30%, var(--bg-2) 0%, var(--bg-1) 40%, var(--bg-3) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

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

/* ===== Topbar ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  width: 44px;
  height: 44px;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(46, 230, 107, 0.08);
  border: 1px solid rgba(46, 230, 107, 0.25);
  border-radius: 999px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.partner-btn:hover {
  background: rgba(46, 230, 107, 0.15);
  transform: translateY(-1px);
}

.partner-btn .dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dotPulse 1.8s ease-in-out infinite;
}

.partner-btn .dot::before,
.partner-btn .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  opacity: 0;
  pointer-events: none;
  animation: dotWave 1.8s ease-out infinite;
}

.partner-btn .dot::after {
  animation-delay: 0.9s;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

@keyframes dotWave {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-btn .dot,
  .partner-btn .dot::before,
  .partner-btn .dot::after {
    animation: none;
  }
}

/* ===== Hero ===== */
.hero {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(12px, 3vh, 32px) clamp(20px, 5vw, 64px) clamp(12px, 3vh, 32px);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  min-height: 0;
}

.hero-text { max-width: 640px; }

.kicker {
  margin: 0 0 10px;
  font-size: clamp(13px, 1.6vh, 15px);
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.headline {
  margin: 0 0 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4.8vh, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.headline-accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  margin: 0 0 22px;
  font-size: clamp(13px, 1.85vh, 18px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 540px;
}

/* ===== CTA buttons ===== */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: #ffffff;
  color: #0a0a0a;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  min-height: clamp(54px, 6.5vh, 64px);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.store-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.store-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.store-icon {
  width: clamp(22px, 2.6vh, 28px);
  height: clamp(22px, 2.6vh, 28px);
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-text-top {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.store-text-bottom {
  font-size: clamp(14px, 1.9vh, 17px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== Antivirus Total hash ===== */
.vt-hash {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: -8px 0 22px;
  max-width: 100%;
}

.vt-hash svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}

.vt-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  flex-shrink: 0;
}

.vt-link {
  display: inline-flex;
  min-width: 0;
}

.vt-link code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.vt-link:hover code { color: var(--accent-2); }

/* ===== Features ===== */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12px, 1.55vh, 14px);
  color: var(--ink-dim);
}

.features svg {
  width: clamp(13px, 1.7vh, 16px);
  height: clamp(13px, 1.7vh, 16px);
  color: var(--green);
  flex-shrink: 0;
}

/* ===== Platforms (Tersedia di ...) ===== */
.platforms {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: clamp(11px, 1.35vh, 12px);
  /* Anti-numpuk: baris platform selalu di atas elemen tetangga */
  position: relative;
  z-index: 6;
}

.platforms-label {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.platforms-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(10px, 1.3vh, 11px);
  letter-spacing: 0.02em;
}

.platform-tag svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.platform-tag.is-live {
  background: rgba(46, 230, 107, 0.12);
  border: 1px solid rgba(46, 230, 107, 0.35);
  color: var(--green);
}

.platform-tag.is-soon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-mute);
}

/* ===== Poster wall (right) — soft edges ===== */
.poster-wall-wrap {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: #07070d;
  /* Soft fade-out ke background di semua sisi, biar image "menyatu" */
  -webkit-mask-image: radial-gradient(
    ellipse 92% 95% at 50% 50%,
    #000 45%,
    rgba(0, 0, 0, 0.85) 60%,
    rgba(0, 0, 0, 0.4) 78%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 92% 95% at 50% 50%,
    #000 45%,
    rgba(0, 0, 0, 0.85) 60%,
    rgba(0, 0, 0, 0.4) 78%,
    transparent 100%
  );
}

.poster-wall {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: center;
  /* Image di-darken sedikit di tepi via filter + opacity */
  filter: brightness(0.92) saturate(1.05);
}

/* ===== Footer ===== */
.foot {
  padding: 18px clamp(20px, 5vw, 64px);
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}

.foot-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.foot-links a {
  font-size: clamp(12px, 1.5vh, 14px);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 4px;
}

.foot-links a:hover {
  text-decoration-color: var(--ink);
}

.foot-links .sep {
  color: var(--ink-mute);
}

.foot-contact {
  margin: 0 0 4px;
  font-size: clamp(12px, 1.5vh, 14px);
  color: var(--ink-dim);
}

.foot-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.foot-copy {
  margin: 0;
  font-size: clamp(11px, 1.35vh, 13px);
  color: var(--ink-mute);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  html, body { height: auto; overflow: auto; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 24px 48px;
  }

  .poster-wall-wrap {
    max-width: 540px;
    margin: 0 auto;
  }

  .headline { font-size: clamp(40px, 9vw, 64px); }
}

@media (max-width: 540px) {
  .topbar { padding: 14px 18px; }

  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 18px; }
  .partner-btn { padding: 8px 14px; font-size: 13px; }

  .headline { font-size: clamp(36px, 11vw, 56px); }

  .store-btn {
    flex: 1 1 100%;
    justify-content: center;
    padding: 12px 20px;
    min-height: 56px;
  }

  .store-text-bottom { font-size: 15px; }

  .features { gap: 10px 18px; }
  .features li { font-size: 13px; }

  .poster-wall-wrap { border-radius: 12px; }
}

/* ===== Desktop autofit (≥901px) ===== */
@media (min-width: 901px) {
  html, body { height: 100vh; overflow: hidden; }

  .hero {
    flex: 1 1 auto;
    min-height: 0;
    /* Jangan pakai overflow:auto di hero — biar 1 halaman penuh */
  }

  /* Kalau viewport terlalu pendek (≤680px), scale headline lebih kecil lagi */
  @media (max-height: 680px) {
    .headline { font-size: clamp(22px, 4.5vh, 48px); }
    .lede { font-size: clamp(12px, 1.6vh, 15px); margin-bottom: 16px; }
    .cta { margin-bottom: 16px; gap: 10px; }
    .store-btn { min-height: 48px; padding: 10px 18px; }
    .features { gap: 10px 20px; }
  }
}

/* ===== Checklist + QR sebaris (rapi 13 Okt 2026) ===== */
.hl-qr {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}
.hl-qr .highlights {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.hl-qr .qr-wrap {
  flex: 0 0 auto;
}
@media(max-width:768px) {
  .hl-qr { display: block; }
}

/* Antivirus hash: satu baris rapi, hash dipotong ellipsis */
.vt-hash {
  margin: 12px 0 18px;
}
.vt-link {
  min-width: 0;
  max-width: 100%;
}
.vt-link code {
  display: inline-block;
  max-width: min(300px, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
