:root {
  --primary: #994700;
  --primary-container: #ef7b25;
  --surface: #f9f9f9;
  --surface-low: #f3f3f3;
  --surface-lowest: #ffffff;
  --on-surface: #1a1c1c;
  --outline-ghost: rgba(89, 73, 63, 0.15);
  --footer-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 8% 6%, rgba(239, 123, 37, 0.18), transparent 38%),
    radial-gradient(circle at 92% 92%, rgba(153, 71, 0, 0.12), transparent 36%),
    linear-gradient(160deg, var(--surface) 0%, var(--surface-low) 100%);
  color: var(--on-surface);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(22px);
  pointer-events: none;
}

.bg-shape-a {
  width: min(42vw, 440px);
  height: min(42vw, 440px);
  top: -12vw;
  right: -10vw;
  background: rgba(239, 123, 37, 0.2);
}

.bg-shape-b {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  bottom: 9vh;
  left: -13vw;
  background: rgba(153, 71, 0, 0.12);
}

.landing {
  position: relative;
  margin: auto;
  width: min(92vw, 560px);
  min-height: calc(100vh - 140px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 32px 20px;
}

.brand-logo {
  width: clamp(88px, 15vw, 112px);
  height: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  padding: 8px;
  box-shadow: 0 20px 40px rgba(26, 28, 28, 0.08);
}

.brand-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.apk-section {
  width: min(92vw, 560px);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 16px 32px rgba(26, 28, 28, 0.07);
}

.apk-table-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 10px;
  color: rgba(26, 28, 28, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.apk-list {
  display: grid;
  gap: 10px;
}

.apk-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--surface-lowest);
  border-radius: 14px;
  padding: 12px;
}

.apk-row-message {
  grid-template-columns: 1fr;
  color: rgba(26, 28, 28, 0.72);
  font-weight: 600;
}

.apk-meta {
  min-width: 0;
}

.apk-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.apk-date {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(26, 28, 28, 0.66);
}

.apk-size {
  margin: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(26, 28, 28, 0.5);
}

.apk-size--warn {
  color: #b84000;
}

.apk-action {
  display: flex;
  justify-content: flex-end;
}

.download-btn {
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 124px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--outline-ghost);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--footer-text);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  box-shadow: 0 20px 32px rgba(89, 73, 63, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 36px rgba(89, 73, 63, 0.2);
  filter: saturate(1.04);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn:focus-visible {
  outline: 2px solid rgba(239, 123, 37, 0.55);
  outline-offset: 4px;
}

.download-btn--loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

.brand-footer {
  position: relative;
  z-index: 2;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--footer-text);
  background: var(--primary-container);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
}

.footer-logo {
  width: 90px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.brand-footer p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .landing {
    min-height: calc(100vh - 130px);
    gap: 18px;
    padding: 28px 16px;
  }

  .brand-title {
    font-size: clamp(1.8rem, 8.5vw, 2.35rem);
  }

  .apk-section {
    padding: 12px;
  }

  .apk-table-head {
    display: none;
  }

  .apk-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .apk-action {
    justify-content: flex-start;
  }

  .download-btn {
    width: 100%;
  }
}
