/* Warna dan huruf template ini diatur di blok :root berikut. */
:root {
  --ground: #040A18;
  --ink: #E9F6FF;
  --redup: #8FA8C2;
  --cyan: #5EF2FF;
  --r: 22px;
  --action: #5EF2FF;
  --action-ink: #031018;
  --focus: #5EF2FF;
  --font: 'Archivo', Arial, sans-serif;
  --judul: 'Archivo Black', 'Archivo', Arial, sans-serif;
}

@font-face { font-family: 'Archivo Black'; font-weight: 400; font-display: swap; src: url('fonts/archivo-black-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 500; font-display: swap; src: url('fonts/archivo-500.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
}
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
input, button { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 2px; }

.alert { font-weight: 600; }
.trial { display: inline-block; padding: 10px 0; }
.more summary { cursor: pointer; padding: 10px 0; }
.more label { display: block; }
.more input { width: 100%; padding: 10px 12px; margin-top: 4px; }

/* Halaman setelah login: alogin, status, logout, error */
.sheet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 100vh; min-height: 100svh;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 32px 20px;
}
.sheet h1 { font-size: 44px; line-height: 1.02; }
.facts { display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.action {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  background: var(--action);
  color: var(--action-ink);
  transition: transform .15s ease;
}
.action:active { transform: translateY(1px); }

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

@property --sudut { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
body { background: radial-gradient(80vmax 60vmax at 50% 0%, #0B2A4D, transparent 70%), var(--ground); font-size: 16px; }

/* Radar: cahaya mercusuar menyapu, gelombang menjalar dari menara */
.radar { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.radar b { position: absolute; left: 50%; top: 150px; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; border-radius: 50%; background: conic-gradient(from 0deg, rgba(94,242,255,.28), rgba(94,242,255,0) 22%); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 24%); mask-image: radial-gradient(circle, #000 0, transparent 24%); animation: sapu 9s linear infinite; }
.radar i { position: absolute; left: 50%; top: 150px; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border: 2px solid rgba(94,242,255,.45); border-radius: 50%; opacity: 0; animation: gelombang 8s ease-out infinite; }
.radar i:nth-child(3) { animation-delay: 2s; }
.radar i:nth-child(4) { animation-delay: 4s; }
.radar i:nth-child(5) { animation-delay: 6s; }
@keyframes sapu { to { transform: rotate(360deg); } }
@keyframes gelombang { from { transform: scale(.04); opacity: .9; } to { transform: scale(1); opacity: 0; } }

.sinyal { display: grid; gap: 14px; max-width: 1040px; margin: 0 auto; padding: 24px 14px 28px; }
h2 { font-family: var(--judul); font-weight: 400; font-size: 20px; line-height: 1.15; }

.kepala { padding: 28px 4px 12px; animation: terbit .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes terbit { from { opacity: 0; transform: translateY(18px); } }
h1 { font-family: var(--judul); font-weight: 400; font-size: 50px; line-height: .92; letter-spacing: -.03em; color: var(--ink); text-shadow: 0 0 40px rgba(94,242,255,.55); }
.kepala p { margin-top: 12px; max-width: 24ch; font-size: 18px; color: var(--cyan); }

/* Kaca gelap */
.kaca { position: relative; border-radius: var(--r); background: rgba(190, 235, 255, .07); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 28px rgba(94,242,255,.06), 0 20px 40px -18px rgba(0,0,0,.8); }
.kaca::before { content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; background: radial-gradient(240px circle at var(--mx, 20%) var(--my, 0%), rgba(255,255,255,.9), rgba(255,255,255,.12) 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .kaca { background: #0E1C30; } }
.masuk, .kontak { padding: 20px; animation: terbit .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.masuk h2 { margin-bottom: 12px; }
.form { display: grid; gap: 10px; }
label { font-weight: 500; color: var(--redup); }
#username { width: 100%; height: 56px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(94,242,255,.3); font-family: var(--judul); font-size: 24px; letter-spacing: .1em; color: var(--cyan); }
#username:focus-visible { outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--cyan), 0 0 24px rgba(94,242,255,.4); }
.action { border-radius: 14px; font-family: var(--judul); font-size: 18px; box-shadow: 0 0 28px rgba(94,242,255,.5), inset 0 2px 0 rgba(255,255,255,.7); transition: transform .2s, box-shadow .2s; }
.action:hover { box-shadow: 0 0 44px rgba(94,242,255,.8), inset 0 2px 0 rgba(255,255,255,.7); }
.alert { color: #FF8FA3; line-height: 1.3; }
.trial { color: var(--cyan); font-weight: 600; }
.more { font-size: 15px; }
.more input { border: 0; border-radius: 12px; background: rgba(0,0,0,.4); }

.paket h2 { margin-bottom: 12px; }
.paket ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paket li { display: flex; animation: terbit .8s cubic-bezier(.2,.8,.2,1) both; }
.paket li:nth-child(1) { animation-delay: .15s; }
.paket li:nth-child(2) { animation-delay: .22s; }
.paket li:nth-child(3) { animation-delay: .29s; }
.paket li:nth-child(4) { animation-delay: .36s; }
.paket button { align-content: space-between; height: 100%; position: relative; display: grid; gap: 2px; width: 100%; padding: 14px 14px 16px; border: 0; text-align: left; color: var(--ink); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.paket button:hover { transform: translateY(-3px); }
.paket button:active { transform: scale(.97); }
.lama { margin-top: 6px; font-weight: 500; color: var(--redup); }
.paket b { font-family: var(--judul); font-weight: 400; font-size: 24px; line-height: 1.1; white-space: nowrap; }

/* Batang sinyal: makin lama paketnya, makin banyak batang yang menyala */
.kuat { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.kuat i { width: 8px; border-radius: 3px; background: rgba(143,168,194,.3); transition: background .3s, box-shadow .3s; }
.kuat i:nth-child(1) { height: 25%; }
.kuat i:nth-child(2) { height: 50%; }
.kuat i:nth-child(3) { height: 75%; }
.kuat i:nth-child(4) { height: 100%; }
.k1 i:nth-child(-n+1), .k2 i:nth-child(-n+2), .k3 i:nth-child(-n+3), .k4 i:nth-child(-n+4) { background: var(--cyan); box-shadow: 0 0 12px rgba(94,242,255,.7); }
[aria-pressed="true"].kaca { background: rgba(94,242,255,.16); }
[aria-pressed="true"].kaca::before { padding: 2px; background: conic-gradient(from var(--sudut), #5EF2FF, rgba(94,242,255,.08) 30%, #5EF2FF 55%, rgba(94,242,255,.08) 80%, #5EF2FF); animation: putar 4s linear infinite; }
@keyframes putar { to { --sudut: 360deg; } }
[aria-pressed="true"] .lama { color: var(--ink); }

.kontak { display: grid; gap: 10px; }
.kontak h2 { margin-bottom: 2px; }
.kontak a { display: block; padding: 15px; border-radius: 14px; text-align: center; text-decoration: none; font-weight: 700; }
.wa { background: #25D366; color: #03140A; }
.telp { box-shadow: inset 0 0 0 2px rgba(94,242,255,.5); color: var(--cyan); }

@media (min-width: 760px) {
  .sinyal { grid-template-columns: 1fr 1fr; grid-template-areas: "kepala paket" "masuk paket" "kontak kontak"; gap: 24px 32px; padding: 56px 24px; align-items: start; }
  .kepala { grid-area: kepala; padding: 40px 0 0; }
  h1 { font-size: 80px; }
  .kepala p { font-size: 22px; }
  .masuk { grid-area: masuk; padding: 26px; }
  .paket { grid-area: paket; align-self: stretch; display: grid; grid-template-rows: auto 1fr; padding-top: 40px; }
  .paket ul { gap: 14px; grid-auto-rows: 1fr; }
  .paket button { padding: 20px 18px 22px; }
  .paket b { font-size: 30px; }
  .kuat { height: 48px; }
  .kuat i { width: 10px; }
  .kontak { grid-area: kontak; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 20px 26px; }
  .kontak h2 { font-size: 24px; }
}

.sheet h1 { font-size: 40px; color: var(--cyan); }
.sheet { position: relative; }
.facts div { padding: 12px 16px; border-radius: 14px; background: rgba(190,235,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }

@media (prefers-reduced-motion: reduce) { .radar b { display: none; } }
