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

:root {
  --bg: #07100e;
  --panel: #0d1916;
  --panel-2: #12211c;
  --line: #22332c;
  --text: #f4f1e9;
  --muted: #89978f;
  --soft: #bbc5bf;
  --blue: #d6ae5c;
  --green: #36c96b;
  --gold: #d6ae5c;
  --red: #f0645a;
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(760px 420px at 50% -120px, rgba(214, 174, 92, .13), transparent 62%),
    linear-gradient(180deg, #06100d 0%, var(--bg) 52%, #03110d 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #0d1916 url('/img/guardian-mark.svg') center / 27px 27px no-repeat;
  border: 1px solid rgba(214, 174, 92, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  font-size: 0;
}

.toplink {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .032)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-main { padding: 24px 20px 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(72, 213, 154, .28);
  border-radius: 999px;
  background: rgba(72, 213, 154, .08);
  color: #a9f0ce;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(72, 213, 154, .85);
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: .98;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 58ch;
}

.action-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  min-height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.btn-primary {
  border: 0;
  background: var(--gold);
  color: #07100e;
  box-shadow: 0 14px 36px rgba(214, 174, 92, .20);
}

.btn-green {
  border: 0;
  background: var(--gold);
  color: #06130d;
}

.btn-muted { color: var(--soft); }

.btn.is-disabled {
  pointer-events: none;
  opacity: .72;
  filter: grayscale(.25);
}

.fineprint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.stat {
  padding: 13px 12px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 25, 22, .84);
  padding: 16px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .92rem;
}

.steps, .facts {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.step, .fact {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
}

.step-num, .fact-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(214, 174, 92, .12);
  color: var(--gold);
  font-weight: 900;
  font-size: .82rem;
}

.step b, .fact b { display: block; margin-bottom: 2px; }
.step span, .fact span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }

.device-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(24, 58, 41, .9), rgba(255, 255, 255, .03));
  border: 1px solid rgba(214, 174, 92, .2);
  margin-top: 12px;
}

.device-card b { display: block; }
.device-card span { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(72, 213, 154, .10);
  border: 1px solid rgba(72, 213, 154, .24);
  color: #a9f0ce;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.download-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(240, 199, 106, .26);
  background: rgba(240, 199, 106, .075);
  margin-top: 12px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.apk-meta {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.apk-meta div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(0, 0, 0, .18);
}

.apk-meta span { color: var(--muted); font-size: .76rem; }
.apk-meta b { font-size: .86rem; }

.warning {
  border-color: rgba(255, 122, 138, .30);
  background: rgba(255, 122, 138, .075);
}

.footer {
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  padding: 8px 0 0;
}

@media (max-width: 560px) {
  .app-shell { padding: 12px 10px 22px; }
  .hero { border-radius: 22px; }
  .hero-main { padding: 21px 16px 16px; }
  .status-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .device-card { grid-template-columns: 1fr; }
}
