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

:root {
  --bg: #0e1311;
  --panel: #161c1a;
  --panel-2: #1f2623;
  --fg: #f5f5f0;
  --muted: #c0c7be;
  --faded: #8f9790;
  --sage: #8fa68a;
  --sage-strong: #a4bb9f;
  --border: rgba(245, 245, 240, 0.12);
  --ink: #0b0f0d;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background:
    radial-gradient(720px 520px at 18% 0%, rgba(122, 144, 118, 0.24), transparent 62%),
    radial-gradient(620px 440px at 100% 12%, rgba(164, 187, 159, 0.13), transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.brand {
  position: fixed;
  top: 22px;
  left: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.shell {
  width: 100%;
  max-width: 560px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(143, 166, 138, 0.22), transparent 68%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

.shell-wide {
  max-width: 980px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 13px;
  border: 1px solid rgba(143, 166, 138, 0.32);
  border-radius: 999px;
  background: rgba(143, 166, 138, 0.11);
  color: var(--sage-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.status {
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 17px;
}

.store-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--ink);
  color: var(--fg);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: var(--sage);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.store-button:focus-visible {
  outline: 2px solid var(--sage-strong);
  outline-offset: 3px;
}

.store-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.store-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-small {
  color: rgba(245, 245, 240, 0.76);
  font-size: 11px;
  font-weight: 600;
}

.store-name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.note {
  margin: 22px 0 0;
  color: var(--faded);
  font-size: 13px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(11, 15, 13, 0.72);
}

.app-kicker {
  margin: 0 0 12px;
  color: var(--sage-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.app-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(143, 166, 138, 0.42);
  border-radius: 14px;
  background: rgba(143, 166, 138, 0.14);
  color: var(--fg);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-link:hover {
  transform: translateY(-2px);
  border-color: var(--sage-strong);
  background: rgba(143, 166, 138, 0.2);
}

@media (max-width: 820px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 20px;
    align-items: end;
  }

  .brand {
    top: 18px;
    left: 20px;
  }

  .shell {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .store-row {
    grid-template-columns: 1fr;
  }

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

  .app-card {
    min-height: 220px;
  }
}
