:root {
  color-scheme: light;
  --bg: #f3ede2;
  --bg-deep: #dbe8ef;
  --surface: rgba(255, 250, 244, 0.82);
  --surface-strong: #fffaf4;
  --line: rgba(18, 40, 68, 0.12);
  --text: #10233a;
  --muted: #56647a;
  --accent: #17689b;
  --accent-strong: #0c3557;
  --accent-soft: rgba(23, 104, 155, 0.12);
  --warm: #ea7b52;
  --warm-soft: rgba(234, 123, 82, 0.16);
  --shadow: 0 24px 60px rgba(15, 39, 66, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(234, 123, 82, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(23, 104, 155, 0.20), transparent 36%),
    linear-gradient(180deg, var(--bg) 0%, #f7f3ec 45%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 90%);
  opacity: 0.45;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

.brand__badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #67b4e0 100%);
  box-shadow: 0 16px 36px rgba(23, 104, 155, 0.24);
  color: #fff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__name {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.status-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-card::after,
.status-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.46), transparent 70%);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--warm {
  color: #ad4e30;
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.hero-copy,
.status-copy,
.apk-hint,
.noscript-note {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 16px 36px rgba(12, 53, 87, 0.24);
}

.button--ghost {
  border-color: rgba(23, 104, 155, 0.24);
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-strong);
}

.button--link {
  border-color: transparent;
  color: var(--text);
  background: transparent;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  line-height: 1.6;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
}

.status-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-pill--pending {
  color: #8a4f24;
  background: var(--warm-soft);
}

.status-pill--ready {
  color: #0f5c3e;
  background: rgba(71, 170, 126, 0.18);
}

.apk-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), var(--surface-strong));
  border: 1px solid var(--line);
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.status-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.status-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.status-list dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-list dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-strong);
  word-break: break-word;
}

code {
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 0.92em;
  color: var(--accent-strong);
}

.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 20px;
  }

  .topbar,
  .status-card__header,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .status-card {
    padding: 24px;
  }

  h1 {
    max-width: none;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(234, 123, 82, 0.22), transparent 42%),
      radial-gradient(circle at top right, rgba(23, 104, 155, 0.18), transparent 48%),
      linear-gradient(180deg, var(--bg) 0%, #f7f3ec 48%, var(--bg-deep) 100%);
  }

  .brand__badge {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .hero-card,
  .status-card {
    border-radius: 28px;
  }

  .feature-list li,
  .apk-panel {
    padding: 18px;
  }
}
