/* ============================================================
   GOGOREJEKI – Download Page Styles (download.css)
   ============================================================ */

/* ── HERO WRAPPER ── */
.dl-hero-wrap {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 5vw 60px;
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%, rgba(155,48,255,.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(245,197,24,.07) 0%, transparent 55%),
    var(--navy);
  min-height: 100vh;
  display: flex; align-items: center;
}
.dl-hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,38,69,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,38,69,.5) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 0%, transparent 80%);
}

/* ── HERO TOP: two-column on desktop ── */
.dl-hero-top {
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── LEFT COLUMN ── */
.dl-hero-left {
  display: flex; flex-direction: column; gap: 1.4rem;
}
.dl-hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.08;
}
.dl-hero-title span { color: var(--gold); }
.dl-hero-sub {
  color: var(--text-muted); line-height: 1.75;
  font-size: .93rem; max-width: 400px;
}

/* ── SPECS ── */
.dl-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem;
}
.dl-spec {
  display: flex; align-items: center; gap: .6rem;
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 8px; padding: .6rem .85rem;
  font-size: .82rem; color: var(--text-muted);
}
.dl-spec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ── RIGHT COLUMN ── */
.dl-hero-right {
  display: flex; justify-content: center; align-items: center;
}

/* ── ANDROID DOWNLOAD CARD ── */
.dl-android-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(135deg, #0E1E0E, #1A2E1A);
  border: 2px solid rgba(76,175,80,.4);
  border-radius: 20px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1.3rem;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.dl-android-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 50px rgba(76,175,80,.25);
}
.dl-android-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(76,175,80,.12) 0%, transparent 70%);
}

.dl-card-header {
  display: flex; align-items: center; gap: 1rem; position: relative;
}
.dl-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(76,175,80,.15); border: 1.5px solid rgba(76,175,80,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; flex-shrink: 0;
}
.dl-card-platform {
  font-family: 'Rajdhani', sans-serif; font-size: .76rem;
  color: var(--green); text-transform: uppercase;
  letter-spacing: .1em; font-weight: 600;
}
.dl-card-name {
  font-family: 'Orbitron', monospace; font-size: 1.2rem;
  font-weight: 700; margin-top: .1rem;
}

.dl-card-info-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: .65rem; position: relative;
}
.dl-info-item { text-align: center; }
.dl-info-label {
  font-size: .62rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: .18rem;
}
.dl-info-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: .92rem; font-weight: 700; color: var(--text-main);
}

.dl-big-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, var(--green), #388E3C);
  border-radius: 12px; color: #fff;
  font-family: 'Rajdhani', sans-serif; cursor: pointer;
  transition: all var(--transition); position: relative;
  box-shadow: 0 0 28px rgba(76,175,80,.4);
  text-decoration: none;
}
.dl-big-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(76,175,80,.6);
}
.dl-big-btn-left { display: flex; align-items: center; gap: .9rem; }
.dl-big-btn-icon { font-size: 2rem; }
.dl-big-btn-lbl {
  font-size: .7rem; opacity: .85;
  text-transform: uppercase; letter-spacing: .08em;
}
.dl-big-btn-name { font-size: 1.1rem; font-weight: 700; letter-spacing: .03em; }
.dl-big-btn-arrow { font-size: 1.4rem; }

/* ── HOW TO INSTALL ── */
.install-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.2rem; margin-top: 2.5rem;
}
.install-step {
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 14px; padding: 1.5rem; text-align: center;
}
.install-step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-size: .85rem; font-weight: 700;
  margin: 0 auto .9rem;
}
.install-step-icon { font-size: 1.9rem; margin-bottom: .65rem; }
.install-step-title {
  font-family: 'Rajdhani', sans-serif; font-size: .97rem; font-weight: 700;
  color: var(--text-main); margin-bottom: .35rem;
}
.install-step-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.6; }

/* ── QR SECTION ── */
.qr-section {
  display: flex; align-items: center; gap: 3rem;
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 18px; padding: 2.5rem; margin-top: 2rem;
}
.qr-frame {
  width: 170px; height: 170px; flex-shrink: 0;
  background: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  box-shadow: 0 0 48px rgba(245,197,24,.2), 0 0 90px rgba(155,48,255,.1);
  position: relative;
}
.qr-corner {
  position: absolute; width: 17px; height: 17px;
  border-color: var(--gold); border-style: solid;
}
.qr-corner.tl { top: -3px; left: -3px; border-width: 2.5px 0 0 2.5px; border-radius: 3px 0 0 0; }
.qr-corner.tr { top: -3px; right: -3px; border-width: 2.5px 2.5px 0 0; border-radius: 0 3px 0 0; }
.qr-corner.bl { bottom: -3px; left: -3px; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 3px; }
.qr-corner.br { bottom: -3px; right: -3px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 3px 0; }

.qr-body { flex: 1; }
.qr-title {
  font-family: 'Rajdhani', sans-serif; font-size: 1.12rem;
  font-weight: 700; margin-bottom: .5rem;
}
.qr-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════
   MOBILE — kartu download tampil PERTAMA (di atas)
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .dl-hero-wrap {
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 48px;
    min-height: unset;
    align-items: flex-start;
  }

  /* Ubah grid jadi 1 kolom, kartu di atas teks */
  .dl-hero-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dl-hero-right { order: -1; }  /* kartu naik ke atas */
  .dl-hero-left  { order:  1; }  /* teks turun ke bawah */

  .dl-android-card { max-width: 100%; }

  .install-steps { grid-template-columns: 1fr 1fr; }
  .qr-section    { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .dl-hero-wrap {
    padding-top: calc(var(--nav-height) + 10px);
    padding-bottom: 32px;
  }

  /* Kompres card agar muat satu layar HP */
  .dl-android-card {
    padding: 1.3rem 1.1rem;
    gap: .9rem;
    border-radius: 16px;
  }

  .dl-card-name    { font-size: .95rem; }
  .dl-big-btn      { padding: .9rem 1rem; }
  .dl-big-btn-name { font-size: .97rem; }
  .dl-big-btn-icon { font-size: 1.7rem; }

  .dl-specs        { grid-template-columns: 1fr; }
  .install-steps   { grid-template-columns: 1fr; }

  /* Sembunyikan teks panjang di HP sangat kecil agar kartu langsung kelihatan */
  .dl-hero-sub     { display: none; }
}
